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.1.tar.gz (10.0 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.1-cp313-cp313-win_amd64.whl (72.3 kB view details)

Uploaded CPython 3.13Windows x86-64

wadas_runtime-0.2.1-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.1-cp312-cp312-win_amd64.whl (72.3 kB view details)

Uploaded CPython 3.12Windows x86-64

wadas_runtime-0.2.1-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.1-cp311-cp311-win_amd64.whl (72.1 kB view details)

Uploaded CPython 3.11Windows x86-64

wadas_runtime-0.2.1-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.1-cp310-cp310-win_amd64.whl (70.7 kB view details)

Uploaded CPython 3.10Windows x86-64

wadas_runtime-0.2.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for wadas_runtime-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2077b7f8eb4c6f387c06a0df47c9c51a06c15f61210a9cb4b556804592618620
MD5 729d2a553e95428f172cbea817a61c30
BLAKE2b-256 2af8dbe795e8556125d59a1b4d1044696ddedaf4a8b5fe0bdf805c95d7aa5fb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 acf320fb6366eeb84a0d37fd069c45255034086d6cb6950ae2d6d2d409d606ce
MD5 3b05b62aa1fa7da172f47c1dfc2ad02c
BLAKE2b-256 246fffd71bb77e93065c548318381b1a198bdb6c42743001c0c090eadd626953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 18bfb07a7d98aedecc503cba417859bdd987a7919d663b45d115a53ec92c3373
MD5 f77ce31e64d97eff1e0e0558be62522a
BLAKE2b-256 fbb2f88ec29dde90526224541fc2ccb54bc5023a8e65a4c37cf3d784b19ff942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c7312cd7355d64c27ed98285aaaae9029b17f38cf637b7c557cdac8144ab508
MD5 ca6b7bd9b0f7ca3df61adb03d524d2a5
BLAKE2b-256 c672edf7b5bffe21a28fce83becb50830294083ece04eefce6671da170336151

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 246ae25d5937232e4d9cb19ba74d74463277ef7a3792cd082a0015f45a62e758
MD5 6bc0b7750b958da7c23887f360c33be8
BLAKE2b-256 a4b172d0f9e3c9b0c92912642762499b1985f07ff642211649f718199a76c3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 35972088f6467d5fa0f0ee3b5ebf6c39c943fef37ece2241fc52bfbd032fb694
MD5 33a4499810caaafe89e2c7206bd84258
BLAKE2b-256 eabe1eebbeaeee97277ddcd948f801ff4fb32abcf979d94bb7b812c89e3c99ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c749eb720c4371a4ae1228e7153401e267c09fa1326ae5b365cc3d2259a82332
MD5 85248dec7452d94f20235e142faa7574
BLAKE2b-256 7a6b399282f10f51dc38a0181d04d8d8020df4bfade0185ae93c2c6eca8d8edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c87c79628e8a10de926aba3b964da209790b9e7564d9ea1b5bec4dc27c2a00a6
MD5 5f3e87cf5e40070722d651acf085b4b4
BLAKE2b-256 5ffb820cbf0d3678716b2e813ee5101598c5d728eec4b2ba667bb3d8b728c614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wadas_runtime-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f984f321ad9b50942a3f6f5fc7cc1013180d0bdb34c68d3ca354aea1228111db
MD5 73314ec75e22ca0120838a417c22a3c4
BLAKE2b-256 5d73925cd474b922e250d9ec09af2690c32c48f0123944ab30b036ccbbab7d86

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