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
pyvent-0.1.1-py3-none-any.whl
(6.3 kB
view hashes)