Skip to main content

A collection manager.

Project description

Hector — a collection manager

Install

For the time being, Hector cannot be installed from PyPI. See CONTRIBUTING.md to set up a development environment.

Configure

Hector is configured using environment variables. All the variable names are prefixed with HECTOR_.

$ export HECTOR_SECRET_KEY="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
$ export HECTOR_DSN="sqlite:///data.sqlite"

The secret can be generated using the token_hex() function from the Python's secrets module.

Additional Python database drivers might be required depending on the DSN.

See the settings module for a comprehensive list of configuration variables.

Authentication

To enable WebAuthn authentication, you must install extra dependencies (bl-hector[webauthn]) and enable it explicitly:

$ export HECTOR_WEBAUTHN=1

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()"

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.1.0a4.tar.gz (733.6 kB view hashes)

Uploaded Source

Built Distribution

bl_hector-0.1.0a4-py3-none-any.whl (780.9 kB view hashes)

Uploaded Python 3

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