Skip to main content

No project description provided

Project description

byoa

byoa is a command-line utility to Build Your Own Analytic based on metrics and imagery data following your business logic.

  • Create your own processor from a template
  • Use the processor in Docker containers or as a simple Python library
  • Deploy processor in an analytics cluster

Getting started

Installation

Install via from PyPI

pip install byoa

Create the processor project

Once byoa is installed, create a new processor with:

byoa init

Several input values will be asked:

  • name is the display name of the processor
  • slug is the identifier of the processor
  • repository is the name of the folder the project will be created in

And voila ! The new project is located in the repository folder. You should be able to:

cd repository

Building the processor

As a Python library

Then build the processor. As a Python library (wheel):

byoa build wheel

The wheel file is located in the dist folder. You can then install the library with:

pip install path_to_wheel_file.whl

As a Docker image

If you would rather build a Docker image:

byoa build image

Then run the image with:

byoa run image --mode

--mode determines the entrypoint used to run the image. For example, --api runs the processor as a FastAPI application.

Deploy the processor

Deploying a processor does several things :

  • Registers the processor in an Analytics Cluster (if it is the first deployment)
  • Registers the processor's version to deploy in an Analytics Cluster
  • Builds and push the processor image in a container registry

The version is set in the VERSION file. You may have to set your Python path (PYTHONPATH environment variable) to src.

Deploy your processor with the following command:

byoa deploy

You undo the deployment with the command:

byoa delete --version VERSION

Contact

  • Report a bug or request a feature: Issue
  • For any additional information, please email us
  • Socials : LinkedIn, X

License

Distributed under the MIT License.

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

byoa-0.1.0a5.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

byoa-0.1.0a5-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file byoa-0.1.0a5.tar.gz.

File metadata

  • Download URL: byoa-0.1.0a5.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for byoa-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 fd36995dab7ad5da43d40eee8b444ca75641988d0d4b706eb7d3cc7f1472feb5
MD5 367f2cc9487abfe75746bac4e1b5736d
BLAKE2b-256 fefdd6b5bbf43b319de6c5e5a4a1db46fc178ae697a770911587a5f3faee2680

See more details on using hashes here.

File details

Details for the file byoa-0.1.0a5-py3-none-any.whl.

File metadata

  • Download URL: byoa-0.1.0a5-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for byoa-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 2d8a982c00ca0962e56e63c38409e4c91294892fbc365e54dc783826ba9f8d3c
MD5 fff814ddcd9693044e9992e551891a21
BLAKE2b-256 4bb83774db4f8c39bcc7cb4dee196382f9db43c434e39bc43b19b29c5ccf6983

See more details on using hashes here.

Supported by

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