Skip to main content

An event store.

Project description

Scrypture – a standalone event store

Install

TODO

Configure

The application is configured using environment variables.

The available configuration variables are:

  • SCRYPTURE_READ_ONLY
  • SCRYPTURE_DSN
  • SCRYPTURE_REDIS_HOST
  • SCRYPTURE_REDIS_PORT
  • SCRYPTURE_REDIS_DB

Initialise

Once configured, you must initialise the database with the dedicated command:

$ scrypture init-db

Run

It requires Redis:

docker run --rm --name scrypture-redis -p 6379:6379 redis

As a Flask application, it can be run using any WSGI server, for instance, with Gunicorn:

$ gunicorn \
  --access-logfile="-" \
  --worker-class gevent \
  --workers 4 \
  --bind 127.0.0.1:5000 \
  "bl_scrypture.configuration.wsgi:app()"

Notice that we are using gevent workers as some clients might follow some streams.

Contribute

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_scrypture-0.1.0a2.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

bl_scrypture-0.1.0a2-py3-none-any.whl (17.2 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