Networking made simply using nng
Project description
This is pynng.
Ergonomic bindings for nanomsg next generation (nng), in Python. pynng provides a nice interface on top of the full power of nng. nng, and therefore pynng, make it easy to communicate between processes on a single computer or computers across a network.
Goals
Provide a Pythonic, works-out-of-the box library on Windows and Unix-y platforms. Like nng itself, the license is MIT, so it can be used without restriction.
Installation
On Windows and 64-bit Linux, the usual
pip install pynng
should suffice. Building from source is a little convoluted, due to some issues with the way the setup.py script is written. Nevertheless, it can be done:
git clone https://github.com/codypiersall/pynng
cd pynng
pip install .
python setup.py build
python setup.py build_ext --inplace
pytest
Installing on Mac
This project does not yet know how to build for Mac, because I don't have a Mac to test on. The tricky bit is letting cffi know the correct object file to link to, and ensuring whatever the Mac equivalent of -fPIC is set when compiling.
TODO
- Support Mac
- More docs
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 Distribution
Built Distributions
Hashes for pynng-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765d88a98d7a2513f07ae7074e47908962de05e7841d3e150e167134b1999714 |
|
MD5 | cace68ddc27c08fe39c91c630ed86d6f |
|
BLAKE2b-256 | e2b4cfe459395cd38c020417073eb8e901905b06617100b69ea4f4e118c51cfe |
Hashes for pynng-0.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ff52b6afcf954b33a9da6f6453f093a9ac3b5300abb5953d2eb99927543394 |
|
MD5 | a08cbedaa4866fe8c1e917a0ff75a4bc |
|
BLAKE2b-256 | 4da1e1811580e8b1f9f66553e07b0a460c511f231b800a6012f6340e9b0da5a3 |
Hashes for pynng-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039f3ae26dd7e01a01aab85e57f92dcf48f292a0a323848c21829e8777877353 |
|
MD5 | c2186330c0e47cebf36aa1cc73aa9ee2 |
|
BLAKE2b-256 | ebd78de3423d177528031a617c5a89c17372acb5ddfd226fcc47a909aaae61e7 |
Hashes for pynng-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94aa704391243b5300c734a4d4916e113db2619c825219b983887de1f7e54938 |
|
MD5 | a75c7a395ffa029c0e72b6549cffdbca |
|
BLAKE2b-256 | e76536fea9358ce18b6f419429293fa88f49a0367a800f03252ccd71d3c3af0e |
Hashes for pynng-0.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36b81810f3896e121a30191460957a1e2a1357f7bc142554f5b33c31a8d491e |
|
MD5 | c93e337f38f5736d3061c6d10891ae4b |
|
BLAKE2b-256 | 04c54002543dff36aa4a5eb43f8f5facca675d75c2dbc12a3095afe470d877bc |
Hashes for pynng-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6b8e9d10e9182393447d3f58997f5784ba04b6b822f6f2ffff853b7a7395ac |
|
MD5 | e4a6c39fd95786107a9e191d16434f79 |
|
BLAKE2b-256 | 8c1f510bbdee1345b572d86f2872412d96582687a61a0dc5e8e5d45251e53e28 |
Hashes for pynng-0.1.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6bd721aff86a1aa096e004dc64830311eb8237892438945059576da48b06953 |
|
MD5 | 7fe4a34b843f30a508113d69a3187c06 |
|
BLAKE2b-256 | d6ee8b9f5e29cc97c31eb6ead548f4a44d93b01d144a485ef24ab5690f56fa33 |
Hashes for pynng-0.1.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca3cf17214f4d5b08d7a219c566f41e6111089473f2494a31a526087863cd209 |
|
MD5 | 7ff04992258431d311f13c5679d149e9 |
|
BLAKE2b-256 | b1ed5275c26a1b2feac7a3fcc1659fb860ba7428b2a3e8901aa67f1dc20aedaf |
Hashes for pynng-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0cfc8b8afabb6e7c7adebe31d2fbed39e366410b3e5703300a7a94d65b0445 |
|
MD5 | b8debb2da4c38b25f7afa193be10f264 |
|
BLAKE2b-256 | cd87fb3d19e2acf230a5753e1afffa4f0ab0ce3eb6d5b976c116af4b2c0107c3 |