IPC over ZMQ, made easy
Project description
# 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!
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyvent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a00e68009808cbf2e533baa5094c8b9193ec8cffc2ea1d4fb6ec82fd63bbb3b
|
|
| MD5 |
57fc74e253f4f4816a44c0fbf746db22
|
|
| BLAKE2b-256 |
2b6e0222ef1412e340bec4b6b3ae775138fbbb1a142f894e7c52a736a27c2d45
|