Skip to main content

Wadas Inference Runtime

Project description

WADAS Runtime

Description

WADAS Runtime is a library designed to facilitate inference using OpenVINO for the Wild Animals Detection and Alert System (WADAS) project. It provides tools and utilities to streamline the decryption and execution of AI models.

Usage

To use the WADAS Runtime library, follow these steps:

  1. Install the library locally:

    pip install wadas_runtime
    
  2. Import the library in your Python project:

    import wadas_runtime as wadas
    
  3. Load and compile the model. The library will decrypt the model in real time

    import wadas_runtime as wadas
    
    xml, bin = # Path to the model XML and encrypted binary file
    compiled_model = wadas.load_and_compile_model(xml, bin, "GPU")
    

Developer Guide

It is suggested to install the package locally by using pip install -e .[dev]. OpenSSL is required to build the package and needs to be installed separately.

Git hooks

All developers should install the git hooks that are tracked in the .githooks directory. We use the pre-commit framework for hook management. The recommended way of installing it is using pip:

pre-commit install

If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files. To run individual hooks use pre-commit run <hook_id>.

Uninstalling the hooks can be done using

pre-commit uninstall

Testing the library

Python test uses pytest library. Type

cd test && pytest

to run the full test suite.

Generate Python packets

To create packets run the following commands

python -m build --sdist
cibuildwheel --platform windows --output-dir dist

Publishing packets

Then check on the built sdist and wheel that are properly formatted (all files should return a green PASSED)

twine check dist/*

Upload the packets to testpypi

twine upload --repository testpypi dist/*

To upload them to the real index (verify first with testpypi)

twine upload dist/*

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

wadas_runtime-0.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distributions

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

wadas_runtime-0.2.0-cp313-cp313-win_amd64.whl (68.2 kB view details)

Uploaded CPython 3.13Windows x86-64

wadas_runtime-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

wadas_runtime-0.2.0-cp312-cp312-win_amd64.whl (68.2 kB view details)

Uploaded CPython 3.12Windows x86-64

wadas_runtime-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

wadas_runtime-0.2.0-cp311-cp311-win_amd64.whl (67.9 kB view details)

Uploaded CPython 3.11Windows x86-64

wadas_runtime-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

wadas_runtime-0.2.0-cp310-cp310-win_amd64.whl (66.4 kB view details)

Uploaded CPython 3.10Windows x86-64

wadas_runtime-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file wadas_runtime-0.2.0.tar.gz.

File metadata

  • Download URL: wadas_runtime-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for wadas_runtime-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a9a43e612b995d520efb3ba31b0514f5038e27ce0efa16451cda7464ea88fd24
MD5 8f59ac8269a9f7c3dd051abc4455d1fb
BLAKE2b-256 15bac78a8ce00b92d2a3d59a8b4901606603df1a67422ed8157c46b8f83593cc

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 281e050ab69ee039c6ef429d7add8d6dc2b071b9e7d831b85a9a2882f642076b
MD5 ce2c6f9b447e2609de8da2a26dcd3bbd
BLAKE2b-256 8d2a78867624dcf31c31d0ae4bf2bcd4cf331e47b3b0aa218afd9addd54eed8d

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b38796c6b40e5c1202c25a9290a38276401203410af4ca25909682bbc1c4a0b1
MD5 94aab7f541151155766ab128d1c25e85
BLAKE2b-256 4af08345dcc80babfd0edc9c59b3fc7652d5b848548767a23a04059a77d6782a

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36ac3db0cdbecf77e3fe8f95f684ae7da65fd1157c46e1b7c8f12d2dc5d4f090
MD5 c2ca603f26206cfc486e232a84ba932b
BLAKE2b-256 abc5fbac1cbb91aafb4756a783d574adf06ad5d6206933cd2661c845ac8f2d6f

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c437f256128a4ad3fe6ee06b0c42a106faaf6d2507c6dd0a73de317503f0980e
MD5 eb6f7d7fd673bbb62c589952d732332c
BLAKE2b-256 b07c870cb15d899cf32d47c1f76687dcdb5c518aa3ea37eb714ae4aab40cd2bd

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0306c19d7748c0f7ddf572581081fe8b9c0d054941a995f92c3eda93985be91b
MD5 66d55511ee9020a00d4c2943a6a5d706
BLAKE2b-256 774212f00c990e89ce33814c1b936e8adb61fabdc152c9e1a972f235b7be2c25

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e1c17c96d21da5b9052bf03a0b592586d951ebfaecd6e3a7d490f52b7866879
MD5 77263d6c18dfb3b1085fc9accefa9dab
BLAKE2b-256 9592ffcfb7663884a7f64fb22e1d2283f3315f3b299e272d89aeac352c4a4232

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7485bc657b6012cfdbdf890dc03dad75da8279eacda9aaa0951586c35195c03f
MD5 a88c9d56a6f0262913fccf78269bd824
BLAKE2b-256 a50e0c40a6eab03c07c79db37cf3b69ca2a56cbe714e3a703e2ca397b420bef1

See more details on using hashes here.

File details

Details for the file wadas_runtime-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wadas_runtime-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0fdba00bd9451f9edf985d1f7178adde80a5e1c385976438691d0241f7458d22
MD5 0966c79747515e397dd7943f9c6bcd09
BLAKE2b-256 dd99e8effc7cfd0158466427044a39be6ba2c73192dfb74a6140b5bb1c182ed1

See more details on using hashes here.

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