# Pyvent
Pyvent is a dead-simple IPC to use that uses ZMQ and PyDispatcher under the hood.
## Usage
### Basic
```python
# script1.py
import pyvent
@pyvent.connect('order-food')
def order(food, drink='water'):
print(f'You ordered {food} and {drink}!')
```
```python
# script2.py
import pyvent
pyvent.send('order-food', food='sushi', drink='sake')
```
```shell
$ python3 script1.py &
$ python3 script2.py
> You ordered sushi and sake!
```
Pyvent is a dead-simple IPC to use that uses ZMQ and PyDispatcher under the hood.
## Usage
### Basic
```python
# script1.py
import pyvent
@pyvent.connect('order-food')
def order(food, drink='water'):
print(f'You ordered {food} and {drink}!')
```
```python
# script2.py
import pyvent
pyvent.send('order-food', food='sushi', drink='sake')
```
```shell
$ python3 script1.py &
$ python3 script2.py
> You ordered sushi and sake!
```
Release files for pyvent 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvent-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pyvent-0.1.1-py3-none-any.whl
| Download URL | pyvent-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a00e68009808cbf2e533baa5094c8b9193ec8cffc2ea1d4fb6ec82fd63bbb3b
|
|
BLAKE2b-256 checksum How to use checksums |
2b6e0222ef1412e340bec4b6b3ae775138fbbb1a142f894e7c52a736a27c2d45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.5
|