Skip to main content

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
pip3 install paho-mqtt # for running the demo

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.

Metadata

Release files for pyhy 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhy 0.0.9
File Size Uploaded Provenance Actions
pyhy-0.0.9.tar.gz 32.4 kB Without provenance Details for pyhy-0.0.9.tar.gz

Release files / pyhy-0.0.9.tar.gz

Download URL pyhy-0.0.9.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
235fc487c1175c5e4f608932a4566e0ca392bb6870f3a3b2740db2eee15da846
BLAKE2b-256 checksum
How to use checksums
f7cf6ecfab7bdf6cd3459f7ab1f51d6eb435c9638be79889a0f9315b4bcafa94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5rc1

Security for pyhy 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page