Hector — a collection manager
Install
Hector is available on PyPI under the name bl_hector.
To install, just run python -m pip install bl_hector.
Configure
Hector is configured using environment variables.
See the settings module for
a comprehensive list of configuration variables.
All the variable names must be prefixed with HECTOR_. For instance :
# The secret can be generated using the `secrets.token_hex()` function.
$ export HECTOR_SECRET_KEY="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
# Additional Python database drivers might be required depending on the DSN.
$ export HECTOR_DSN="sqlite:///data.sqlite"
Authentication
To enable WebAuthn authentication, you must install extra dependencies (bl-hector[webauthn])
and enable it explicitly:
$ export HECTOR_WEBAUTHN_ENABLED=1
TOTP authentication is provided to be able to login on servers that do not (yet) support
the cryptography module. You must install extra dependencies (bl-hector[totp])
and enable it explicitly by setting a base32 random secret:
# The secret can be generated using the `pyotp.random_base32()` function.
$ export HECTOR_TOTP_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Note that it is a highly insecure way of authenticating, as anyone gaining access to your OTP generator would be able to login.
Initialise
Once configured, you must initialise Hector's database with the dedicated command:
$ hector init-db
Run
Hector being a Flask application, it can be run using any WSGI server, for instance, with Gunicorn:
$ gunicorn --access-logfile="-" -w 4 -b 127.0.0.1:3000 "bl_hector.configuration.wsgi:app()"
Contributing
See CONTRIBUTING.md to set up a development environment.
Metadata
Release files for bl_hector 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bl_hector-0.4.6.tar.gz | 717.3 kB | Without provenance | Details for bl_hector-0.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bl_hector-0.4.6-py3-none-any.whl | Python 3 | none | any | Details for bl_hector-0.4.6-py3-none-any.whl |
Total release size: 1.5 MB
Release files / bl_hector-0.4.6.tar.gz
| Download URL | bl_hector-0.4.6.tar.gz |
|---|---|
| Size | 717.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c9501acccf905b1bcf78686027308ad93e5a5b6d73b9110c77d732657562e53
|
|
BLAKE2b-256 checksum How to use checksums |
442721b760026bd890224e8ad659e686a015702e2bb050571c5b0389c1bd8f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.11 Linux/6.17.7-gnu
|
Release files / bl_hector-0.4.6-py3-none-any.whl
| Download URL | bl_hector-0.4.6-py3-none-any.whl |
|---|---|
| Size | 771.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
623214fe10933ccfc9c54725a824edf0dfbf4d5dc9e94f1a64fe5e35f8b40a66
|
|
BLAKE2b-256 checksum How to use checksums |
e078566a239fca29aa788205be1b4e6cd75f20f03511f8fbe5a2c2dda1a9cfa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.11 Linux/6.17.7-gnu
|
Security for bl_hector 0.4.6
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.