Skip to main content

A collection manager.

Project description

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.

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

bl_hector-0.4.5.tar.gz (720.9 kB view details)

Uploaded Source

Built Distribution

bl_hector-0.4.5-py3-none-any.whl (771.0 kB view details)

Uploaded Python 3

File details

Details for the file bl_hector-0.4.5.tar.gz.

File metadata

  • Download URL: bl_hector-0.4.5.tar.gz
  • Upload date:
  • Size: 720.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.7 Linux/6.9.11-gnu

File hashes

Hashes for bl_hector-0.4.5.tar.gz
Algorithm Hash digest
SHA256 887971f6f658ec876c7e551ecb347b27feb5e179f3ce015ca59cbb97b3762a66
MD5 bde6a8a38ad26a1134245e2995e3c083
BLAKE2b-256 14ba609589b1296c536d97662a6258b08a4c903595a903bdd9a88fb279fdc835

See more details on using hashes here.

File details

Details for the file bl_hector-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: bl_hector-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 771.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.7 Linux/6.9.11-gnu

File hashes

Hashes for bl_hector-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0695465e7fd75d7bda771385a8cad03638862eea426946a8ab27f67f7354738a
MD5 89998814b5bc6ecba5aae90fa9ee4cc2
BLAKE2b-256 43bdb99a7ef6a2caff09be01924e29ce7af735906a646586203e863f6fc34078

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