Skip to main content

Python package Quality Gate Status

About

huskytools provides tools for interacting with the HuskyLens AI camera.

Features

  • Low-level API for interacting with the HuskyLens camera. It's meant as a replacement for the official HuskyLens Python API. It's not a drop-in replacement but all the functionality, except for I2C-support, is there.

  • A command line interface for quick testing and debugging.[NOT IMPLEMENTED YET]

  • Helper classes for working with the HuskyLens camera, e.g. a class for working with faces. [NOT IMPLEMENTED YET]

Installation

huskytools is available on PyPI, so you can install it with pip:

pip install huskytools

Alternatively, you can install the latest development version of huskytools by cloning the repository and install it with pip:

git clone https://github.com/Andreasdahlberg/husky-tools.git
cd husky-tools
pip install .

Usage

API

This example shows how to connect to the HuskyLens.

from huskytools import huskylens

with huskylens.Interface("/dev/ttyUSB0") as lens:
    if lens.knock():
        print("HuskyLens connected")
    else:
        print("HuskyLens not found")

This example shows how to get all detected faces from the HuskyLens.

from huskytools import huskylens

with huskylens.Interface("/dev/ttyUSB0") as lens:
    if lens.knock():
        lens.set_algorithm(huskylens.RecognitionAlgorithm.FACE_RECOGNITION)
        for block in lens.get_blocks():
            print("Block ID: {}, X: {}, Y: {}".format(block.id, block.x, block.y))

Command line interface

NOT IMPLEMENTED YET

Helper classes

NOT IMPLEMENTED YET

Contributing

Contributions are welcome. Please open an issue or a pull request on GitHub.

Support

If you have any questions or problems, please open an issue on GitHub and i will be happy to help.

Metadata

Release files for huskytools 0.2.1

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

Source distribution (sdist)

Source distribution for huskytools 0.2.1
File Size Uploaded Provenance Actions
huskytools-0.2.1.tar.gz 6.1 kB Without provenance Details for huskytools-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for huskytools 0.2.1
File Interpreter ABI Platform Actions
huskytools-0.2.1-py3-none-any.whl Python 3 none any Details for huskytools-0.2.1-py3-none-any.whl

Total release size: 12.8 kB

Release files / huskytools-0.2.1.tar.gz

Download URL huskytools-0.2.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
87547f937b6e38ed8a2a96b2d15066b3cf619247c874aa30b03c180f50f39a14
BLAKE2b-256 checksum
How to use checksums
f4bd18a490a3fe369e295a148dcbc8051272b04312c6d0a59d65d8b826a3d66b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / huskytools-0.2.1-py3-none-any.whl

Download URL huskytools-0.2.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e9631c0343ea499b3ae812f869bee3bb0e68d1eda2ea90bb33aa1333ea668b5
BLAKE2b-256 checksum
How to use checksums
ee5b909e8b3e925707f089f35b86484dd1564e86396f36b98550ea11654a72af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for huskytools 0.2.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.

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