Skip to main content

minstrel

An instrumentation hardware orchestration platform.

Install

PyPI

Install and update using pip:

pip install -U minstrel

Repository

When using git, clone the repository and change your present working directory.

git clone http://github.com/mcpcpc/minstrel
cd minstrel/

Create and activate a virtual environment.

python -m venv venv
source venv/bin/activate

Install minstrel to the virtual environment.

pip install -e .

Commands

db-init

The backend database can be initialized or re-initialized with the following command.

quart --app minstrel init-db

token

In order to prevent unauthorized or accidental backend database manipulation, some API actions require a token key argument. Token strings can be generated with the following command.

quart --app minstrel token

The token command also accepts an integer argument that defines the duration (in seconds) in which the generated token is valid. The default argument value is 300.

Note that changing the SECRET_KEY variable will invalidate any previously generated tokens once the application instance is restarted.

Docker Container

Pulling the latest container image from command line.

docker pull ghcr.io/mcpcpc/minstrel:latest

Deployment

Before deployment, overriding the default SECRET_KEY variable is strongly encourage. This can be done by creating a conf.py file and placing it in the same root as the instance (i.e. typically where the backend database resides).

SECRET_KEY = 192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf

There are a number of ways to generate a secret key value. The simplest would be to use the built-in secrets Python library.

$ python -c ‘import secrets; print(secrets.token_hex())’
‘192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf’

Quart

Non-production ASGI via quart for development and debugging.

quart --debug --app minstrel run

Uvicorn

Production ASGI via uvicorn.

pip install uvicorn
uvicorn --factory minstrel:create_app

Test

python3 -m unittest

Run with coverage report.

coverage run -m unittest
coverage report
coverage html  # open htmlcov/index.html in a browser

Release files for minstrel 0.0.3

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

Source distribution (sdist)

Source distribution for minstrel 0.0.3
File Size Uploaded
minstrel-0.0.3.tar.gz 76.4 kB Details

Built distribution (wheel)

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

Total release size: 156.3 kB

Release files / minstrel-0.0.3.tar.gz

Download URL minstrel-0.0.3.tar.gz
Size 76.4 kB
Tags Source
SHA-256 checksum
How to use checksums
307ad9c8614aa99605996dcec38715b21113f36f0ef7908ed7b6776d35131111
BLAKE2b-256 checksum
How to use checksums
13aa578563722161341ce6d7341a32be69a2dd72648c8bd91d80f54f40e0a8df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / minstrel-0.0.3-py3-none-any.whl

Download URL minstrel-0.0.3-py3-none-any.whl
Size 79.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
160c08415303e42fe14f4d87a579198b157412fa6e7827329b7ac2db3c132b14
BLAKE2b-256 checksum
How to use checksums
ecd195e2ba73bc6c5a81a3ad328c88e6fd58ef7f2e1c75dbcb0ba969ccf287be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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