pyhy
Python bindings for libhydrogen.
Install
Requires libhydrogen to be installed on system. Testing/development has been done on linux, specifically Ubuntu 18.04. Additional work may be required for other platforms/distros.
pip3 install pyhy
Usage
- An end-to-end example for
kx(N, KK, XX) is provided using paho-mqtt. See demo for instructions. - The wiki contains a few usage examples.
- tests.py is fairly self-describing. Just copy that somewhere, run it, and hack away.
Bindings
This project uses cffi docs/bitbucket. If you experience low-level issues you may want to look there for help.
Ensuring latest version:
pip3 uninstall pyhy
pip3 install pyhy --no-cache
To generate bindings yourself:
sudo apt-get install python3-dev
virtualenv env --python=$(which python3)
source env/bin/activate
pip3 install cffi
git clone https://github.com/someburner/pyhy
cd pyhy
./bind.py
./test.py
NOTE: For development you may need to compiled/install libhydrogen with
-fPIC flag (add it to CFLAGS at the top of its Makefile).
License
See LICENSE. Same as libhydrogen.
Release files for pyhy 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhy-0.0.8.tar.gz | 6.8 kB | Details |
Release files / pyhy-0.0.8.tar.gz
| Download URL | pyhy-0.0.8.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92b05e3626c1be5e2858283b2f04954bff001d6f33b47a69624d19b7e5371feb
|
|
BLAKE2b-256 checksum How to use checksums |
b6cb30704294088031feff67084446990f2d0401d810a81c3263ba33acab3378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|