semvec/pypi-packages huggingface dataset:
torsposer 1.0.1
Expose Services to the TOR network automatically
License: MIT
Requires Python: >=3.8,<4.0

# TOR Service Exposer (torsposer)

```
dMMMMMMP .aMMMb  dMMMMb  .dMMMb  dMMMMb  .aMMMb  .dMMMb  dMMMMMP dMMMMb 
   dMP   dMP"dMP dMP.dMP dMP" VP dMP.dMP dMP"dMP dMP" VP dMP     dMP.dMP 
  dMP   dMP dMP dMMMMK"  VMMMb  dMMMMP" dMP dMP  VMMMb  dMMMP   dMMMMK"  
 dMP   dMP.aMP dMP"AMF dP .dMP dMP     dMP.aMP dP .dMP dMP     dMP"AMF   
dMP    VMMMP" dMP dMP  VMMMP" dMP      VMMMP"  VMMMP" dMMMMMP dMP dMP
```

Expose Services to the TOR network automatically


## Installation

### Using PyPi

- Use pip 

    ```bash
    python3 -m pip install torsposer
    ```

### Using GitHub + Pip

- Install requirements
    - Git

- Use below command

    ```bash
    python3 -m pip install git+https://github.com/dmdhrumilmistry/torsposer.git
    ```

## Usage

- Help menu

    ```bash
    ❯ torsposer
    dMMMMMMP .aMMMb  dMMMMb  .dMMMb  dMMMMb  .aMMMb  .dMMMb  dMMMMMP dMMMMb 
       dMP   dMP"dMP dMP.dMP dMP" VP dMP.dMP dMP"dMP dMP" VP dMP     dMP.dMP 
      dMP   dMP dMP dMMMMK"  VMMMb  dMMMMP" dMP dMP  VMMMb  dMMMP   dMMMMK"  
     dMP   dMP.aMP dMP"AMF dP .dMP dMP     dMP.aMP dP .dMP dMP     dMP"AMF   
    dMP    VMMMP" dMP dMP  VMMMP" dMP      VMMMP"  VMMMP" dMMMMMP dMP dMP    
    --------------------------------------------------------------------------
    Written By: dmdhrumilmistry
    GitHub: https://github.com/dmdhrumilmistry/torsposer
    --------------------------------------------------------------------------
    Warning: works only on debian based OSes!!
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    usage: torsposer [-h] -s SERVICE_NAME [-sp SERVICE_PORT] [-tp TOR_PORT]
    torsposer: error: the following arguments are required: -s/--service
    ```

- expose localhost server running on port 80 to tor network on tor host port 80

    ```bash
    torsposer -s http_service -sp 80 -tp 80
    ```

> Note: if `torsposer` doesn't work try replacing it with `python3 -m torsposer`
convoy-python 0.2.0
Python SDK for Convoy
License: MIT

# convoy-python
Convoy SDK for Python

This is the Convoy Python SDK. This SDK contains methods for easily interacting with Convoy's API. Below are examples to get you started. For additional examples, please see our official documentation at (https://convoy.readme.io/reference)


## Installation
Install convoy-python with

```bash
pip install convoy-python
```

## Setup Client
Next, import the `convoy` module and setup with your auth credentials.

```python
from convoy import Convoy
convoy = Convoy({"api_key":"your_api_key", "project_id": "your_project_id"})
```
The SDK also supports authenticating via Basic Auth by defining your username and password.

In the event you're using a self-hosted convoy instance, you can define the `uri` as part of what is passed into the convoy's constructor.

```python
convoy = Convoy({ "api_key": 'your_api_key', "uri": 'self-hosted-instance', "project_id": "your_project_id"})
```

## Usage

### Get all groups

```python
(response, status) = convoy.group.all({ "perPage": 10, "page": 1 })
```

### Create an Endpoint

An endpoint represents a target URL to receive events.

```python
endpointData = {
    "url": "https://0d87-102-89-2-172.ngrok.io",
    "description": "Default Endpoint",
    "secret": "endpoint-secret",
    "events": ["*"],
  }

(response, status) = convoy.endpoint.create({}, endpointData)
endpoint_id = response["data"]["uid"]
```

### Sending an Event

To send an event, you'll need the `uid` we created in the earlier section.

```python
eventData = {
    "endpoint_id": endpoint_id,
    "event_type": "payment.success",
    "data": {
      "event": "payment.success",
      "data": {
        "status": "Completed",
        "description": "Transaction Successful",
        "userID": "test_user_id808",
      },
    },
  }

(response, status) = convoy.event.create({}, eventData)
```

## Testing

```python
pytest ./test/test.py
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.MD) for details.


## Credits

- [Frain](https://github.com/frain-dev)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.