Skip to main content

Pretix Automated Orders

This is a plugin for pretix.

Plugin for Pretix software that allows automated orders.

Given an event product and a list of emails, sends orders of that product to those emails. (Good for sending free tickets or free products to customers.)

This Pretix plugin uses Celery, Redis and e-mail servers. Before you work on it, make sure you have a basic understanding of these tools.

How-to-Use

Install the plugin using pip. In your event, go to the left settings tab and select plugins. Inside choose the “Pretix Automated Orders” plugin.

Build

To build this plugin, run:

make build

(NOTE: Make sure you have the correct version set in setup.cfg and the __init__.py file inside the plugin Django app folder.)

This will generate two files in the dist/ folder. You can use either to install the package using pip.

This package will be uploaded to PyPi anyways so it’s available to anyone but you can also copy the .whl file to your Pretix installation and install it using pip.

Translations

Run

django-admin makemessages -l lang_code

to generate the translations file. After that use any translation software to translate using the .mo/.po files.

After the translations, run:

django-admin compilemessages -l lang_code

(Run both commands inside the plugin app folder.)

Development

For development on this plugin, you can follow the documentation for plugin development provided on the Pretix documentation at their website.

There is an issue where Celery can’t load the Pretix settings correctly when in development mode due to the way Pretix dynamically loads them using a .cfg file.

To bypass these problems, you can force the settings by editing the settings.py file inside the src/ directory of your Pretix development environment.

Pretix provides the Celery app in as src/pretix/celery_app.py.

In production, there shouldn’t be any problem. Just install the plugin.

Development setup (Pretix)

  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 docformatter

To check your plugin for rule violations, run:

docformatter --check -r .
black --check .
isort -c .
flake8 .

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

docformatter -r .
isort .
black .

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

License

Copyright 2023 João Pires, Evolutio

Released under the terms of the Apache License 2.0

Metadata

Release files for pretix-automated-orders 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretix-automated-orders 1.1.7
File Size Uploaded Provenance Actions
pretix-automated-orders-1.1.7.tar.gz 15.2 kB Without provenance Details for pretix-automated-orders-1.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pretix-automated-orders 1.1.7
File Interpreter ABI Platform Actions
pretix_automated_orders-1.1.7-py3-none-any.whl Python 3 none any Details for pretix_automated_orders-1.1.7-py3-none-any.whl

Total release size: 33.7 kB

Release files / pretix-automated-orders-1.1.7.tar.gz

Download URL pretix-automated-orders-1.1.7.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0b824638c14ac6c610a7c4cfd23ded04e1d53b42e7db50f759cabaa7beade7de
BLAKE2b-256 checksum
How to use checksums
699b4020a13b05294a808e9ae7a21c24b9e3562b1ad17ddf476ff8c77f5062ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pretix_automated_orders-1.1.7-py3-none-any.whl

Download URL pretix_automated_orders-1.1.7-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
256173ea8b145f09f4ae74cf40d6e547bdf2dfa3b0645b1b4d5d0fda0327e757
BLAKE2b-256 checksum
How to use checksums
92e520c1b8a9a85bafff287e4175ade9a59894f17948c5f77e93fa9f7b37ef93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for pretix-automated-orders 1.1.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page