Skip to main content

Countdown

This is a plugin for pretix.

Shows a live countdown in the ticket shop until ticket sales open:

  • Event countdown: a banner on the shop’s front page that counts down to the Start of presale set in the event settings. In an event series, each date counts down to its own presale start.

  • Product countdown: products and variations that are not available yet show “Available in 2 days 04:13:22” until their Available from date. pretix only lists such a product before that date if its availability mode is set to show info on why it is unavailable. Otherwise the product stays hidden until then.

The plugin uses the dates you already set in pretix, so there is nothing extra to keep in sync. When a countdown reaches zero, the page reloads so visitors can buy right away. pretix itself still decides whether something can be bought, so the countdown can never open sales early. Without JavaScript, for example in the embedded widget, the opening date and time is shown instead.

Configure it under Settings → Countdown in your event. You can turn both countdowns on or off and change:

  • Event heading, default “Ticket sales open in”. {date} is the date ticket sales open.

  • Product text, default “Available in {countdown}”. {countdown} is the remaining time and {date} the date the product goes on sale.

  • Countdown format, one of:

    Clock

    2 days 04:13:22

    Compact

    2d 4h 13m 22s

    Written out

    2 days, 4 hours, 13 minutes, 22 seconds

    Custom

    your own template, see below

  • Date format for {date} and for visitors without JavaScript: short, long, or a custom Django date format such as l j F Y, H:i.

A custom countdown format can use these placeholders:

  • {days}, {hours}, {minutes}, {seconds}: the numbers.

  • {hh}, {mm}, {ss}: hours, minutes and seconds padded to two digits.

  • {days_label}, {hours_label}, {minutes_label}, {seconds_label}: “day” or “days” etc., matching the number.

Text in square brackets is left out while all numbers in it are zero, so [{days} {days_label} ]{hh}:{mm}:{ss} shows 2 days 04:13:22 and later 04:13:22. Units you leave out are added to the next smaller unit: {hours}:{mm}:{ss} shows 52:13:22 with two days left.

To install: pip3 install pretix-countdown && python3 -m pretix migrate && python3 -m pretix rebuild && service pretix-web restart

Then just activate it in your event config.

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 pip3 install -e . 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 2026 Christiaan de Die le Clercq (techwolf12)

Released under the terms of the Apache License 2.0

Metadata

Release files for pretix-countdown 0.1.1

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-countdown 0.1.1
File Size Uploaded Provenance
pretix_countdown-0.1.1.tar.gz 23.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pretix-countdown 0.1.1
File Interpreter ABI Platform
pretix_countdown-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 60.0 kB

Release files / pretix_countdown-0.1.1.tar.gz

Download URL pretix_countdown-0.1.1.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
795bc4e1060e2e65100efcd30600a0703e3f4ac1d117caf7479ef5ec318b14af
BLAKE2b-256 checksum
How to use checksums
c6dcef412e3b7effb9d7e1e228b2f49f947c1af83878cc720380e2417be26744
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / pretix_countdown-0.1.1-py3-none-any.whl

Download URL pretix_countdown-0.1.1-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82a4a0a3cefb2fb9a304c7ac5d84855b238b073caae327ff76011e1d407af02b
BLAKE2b-256 checksum
How to use checksums
e69a98d7db84ed205259ae3459ca21a4215d12f68e8d1390bd22ce64a28e6dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for pretix-countdown 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pretix_countdown-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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