onnion
Installation
From PyPI:
$ pip3 install onnion
From Dockerhub:
docker pull idein/onnion:20221014
Usage
$ onnion ssd-10-post.onnx -o ssd_post_model.py
$ python
>>> from ssd_post_model import init_graph
>>> graph = init_graph()
>>> inputs = ... # List[np.array]
>>> outputs = graph.run(*inputs)
With docker:
$ docker run --rm -it -u $UID:$GID -v $(pwd):/work idein/onnion:20221014 ssd-10-post.onnx -o ssd_post_model.py
The order of the inputs and the outputs in the run method corresponds to the order of the inputs and the outputs in the onnx graph.
See also tutorial.
Development Guide
$ poetry install
Metadata
Release files for onnion 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| onnion-0.8.1.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onnion-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / onnion-0.8.1.tar.gz
| Download URL | onnion-0.8.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1483bca89092c679554396eb75ccb9c3a8b35f4713d0ec71e351694448394d1
|
|
BLAKE2b-256 checksum How to use checksums |
2ccceccc82783585613f904091ebd30cfbeb9411737df8ff8d9cacee8807587b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.15 Linux/5.13.0-1023-aws
|
Release files / onnion-0.8.1-py3-none-any.whl
| Download URL | onnion-0.8.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4746d06b667ec9972dca6b796a530c81dab5ea492b7cfc1472ee234d96748494
|
|
BLAKE2b-256 checksum How to use checksums |
96b9495a0d50b6cfb0e329aff80c0897113b246075de9312652a59ac03a51fb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.15 Linux/5.13.0-1023-aws
|
Security for onnion 0.8.1
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.