Skip to main content

A plugin for pretix allowing automated validation of ESNcard numbers

Project description

ESNcard Validity Checker

A plugin for Pretix allowing automated validation of ESNcard numbers.

Installation

Make sure to run from Pretix's virtual environment

sudo -u pretix -s
source /var/pretix/venv/bin/activate

Then install the wheel and update the database just in case

pip3 install path/to/file.whl
python -m pretix migrate
python -m pretix rebuild

Finally restart Pretix

sudo systemctl restart pretix-web pretix-worker

You can now activate the plugin from the organizer or event settings.

For more information, see Pretix documentation

Development setup

  1. Make sure that you have a working pretix development setup

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix's plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the 'plugins' tab in the settings.

This plugin has CI set up to enforce a few code style rules. To check locally, you need these packages installed:

pip install flake8 isort black

To check your plugin for rule violations, run:

black --check .
isort -c .
flake8 .

You can auto-fix some of these issues by running:

isort .
black .

To automatically check for these issues before you commit, you can run .install-hooks.

License

Copyright 2023 ESN Sea Battle OC

Released under the terms of the Apache License 2.0

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

pretix_esncard-1.1.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretix_esncard-1.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pretix_esncard-1.1.3.tar.gz.

File metadata

  • Download URL: pretix_esncard-1.1.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pretix_esncard-1.1.3.tar.gz
Algorithm Hash digest
SHA256 660b4bfe8325f7fe5f9a0d2703aa326580e4c9c240097c42dbf7612cb074334a
MD5 193ba60e40179463118adf0f3d3df92d
BLAKE2b-256 f32f18a3f67b333f28415dbc765fd002b712b8317d58840b08e1b4ab9d2e3160

See more details on using hashes here.

File details

Details for the file pretix_esncard-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: pretix_esncard-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pretix_esncard-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1d89dae70490836456a5745a8a7bdcf610f1737a788edf84b36dc76b8dd7463
MD5 7a20ef9950fe4ae730eb6867645008cb
BLAKE2b-256 3755b624897e3028a9042b9ddde2060fda38942ab12731a0cf2551180dcf959c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page