Skip to main content

Python bindings over the SiFi Bridge tool.

Project description

SiFi Bridge Python

PyPI - Version License pdm-managed

SiFi Bridge Python is a convenient wrapper over SiFi Bridge CLI.

The Python wrapper opens the CLI tool in a subprocess. Thus, it is highly recommended to implement threading, since reading from standard input is a blocking operation. To use the wrapper, start by instantiating a SifiBridge object. Documentation is provided as inline doc-strings. It is recommended to then deliver the samples with some sort of higher-level server-client scheme.

Documentation

Inline documentation is provided. Sphinx API documentation will be coming eventually.

Examples

Examples are available in the examples/ directory of this project.

Tests

Tests are located under tests/. They can be ran with: python -m unittest -v from the root of the project's directory.

Installing

pip install sifi_bridge_py should work for most use cases.

Versioning

The wrapper is updated for every SiFi Bridge version. Major and minor versions will always be kept in sync, while the patch version will vary for project-specific bug fixes.

Deployment

NOTE If you add new enums or types to sifi-bridge-py, don't forget to re-export them in src/__init__.py.

First, run the tests: python -m unittest -v. Then, to deploy to PyPI, push a tag to the main branch. The tag must respect semantic versioning format: x.y.z.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sifi_bridge_py-1.3.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sifi_bridge_py-1.3.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file sifi_bridge_py-1.3.0.tar.gz.

File metadata

  • Download URL: sifi_bridge_py-1.3.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sifi_bridge_py-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f24175571bdfc2f5ad77e58d6ced18016046f5d8b2d48f23b0d58e72e28eb778
MD5 f821345521edd39b2d365e0c61b81ed9
BLAKE2b-256 a8c60a4cbb6a7e21be9a8bdf8cc033975a4257ceb282e904c337ba41aee25610

See more details on using hashes here.

Provenance

The following attestation bundles were made for sifi_bridge_py-1.3.0.tar.gz:

Publisher: release.yml on SiFiLabs/sifi-bridge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sifi_bridge_py-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: sifi_bridge_py-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sifi_bridge_py-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5be36f9ad601aa5b623c373c7800a28c27f2a43a13197beb173031183751a546
MD5 388caf89db5d6e7faa7211c7ebbf742e
BLAKE2b-256 6cc62466f374aee2860472cf57cab1ed67a56b80e8d1b45388f4ad6e8fa069a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sifi_bridge_py-1.3.0-py3-none-any.whl:

Publisher: release.yml on SiFiLabs/sifi-bridge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page