pretix-participantlist 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. pretix_participantlist-0.2.0/LICENSE +15 -0
  2. pretix_participantlist-0.2.0/MANIFEST.in +5 -0
  3. pretix_participantlist-0.2.0/PKG-INFO +118 -0
  4. pretix_participantlist-0.2.0/README.rst +101 -0
  5. pretix_participantlist-0.2.0/pretix_participantlist/__init__.py +1 -0
  6. pretix_participantlist-0.2.0/pretix_participantlist/apps.py +33 -0
  7. pretix_participantlist-0.2.0/pretix_participantlist/exporters.py +780 -0
  8. pretix_participantlist-0.2.0/pretix_participantlist/fields.py +407 -0
  9. pretix_participantlist-0.2.0/pretix_participantlist/forms.py +146 -0
  10. pretix_participantlist-0.2.0/pretix_participantlist/locale/de/LC_MESSAGES/django.po +17 -0
  11. pretix_participantlist-0.2.0/pretix_participantlist/locale/de_Informal/.gitkeep +0 -0
  12. pretix_participantlist-0.2.0/pretix_participantlist/locale/de_Informal/LC_MESSAGES/django.po +385 -0
  13. pretix_participantlist-0.2.0/pretix_participantlist/migrations/0001_initial.py +88 -0
  14. pretix_participantlist-0.2.0/pretix_participantlist/migrations/__init__.py +0 -0
  15. pretix_participantlist-0.2.0/pretix_participantlist/models.py +107 -0
  16. pretix_participantlist-0.2.0/pretix_participantlist/signals.py +98 -0
  17. pretix_participantlist-0.2.0/pretix_participantlist/static/pretix_participantlist/.gitkeep +0 -0
  18. pretix_participantlist-0.2.0/pretix_participantlist/templates/pretix_participantlist/branding_form.html +28 -0
  19. pretix_participantlist-0.2.0/pretix_participantlist/templates/pretix_participantlist/kind_delete.html +19 -0
  20. pretix_participantlist-0.2.0/pretix_participantlist/templates/pretix_participantlist/kind_form.html +34 -0
  21. pretix_participantlist-0.2.0/pretix_participantlist/templates/pretix_participantlist/kind_list.html +61 -0
  22. pretix_participantlist-0.2.0/pretix_participantlist/templates/pretix_participantlist/kind_placeholders.html +48 -0
  23. pretix_participantlist-0.2.0/pretix_participantlist/urls.py +41 -0
  24. pretix_participantlist-0.2.0/pretix_participantlist/views.py +186 -0
  25. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/PKG-INFO +118 -0
  26. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/SOURCES.txt +38 -0
  27. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/dependency_links.txt +1 -0
  28. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/entry_points.txt +5 -0
  29. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/requires.txt +1 -0
  30. pretix_participantlist-0.2.0/pretix_participantlist.egg-info/top_level.txt +1 -0
  31. pretix_participantlist-0.2.0/pyproject.toml +110 -0
  32. pretix_participantlist-0.2.0/setup.cfg +34 -0
  33. pretix_participantlist-0.2.0/setup.py +3 -0
  34. pretix_participantlist-0.2.0/tests/test_exporters.py +807 -0
  35. pretix_participantlist-0.2.0/tests/test_fields.py +288 -0
  36. pretix_participantlist-0.2.0/tests/test_forms.py +199 -0
  37. pretix_participantlist-0.2.0/tests/test_main.py +12 -0
  38. pretix_participantlist-0.2.0/tests/test_models.py +37 -0
  39. pretix_participantlist-0.2.0/tests/test_signals.py +38 -0
@@ -0,0 +1,15 @@
1
+
2
+ Copyright 2026 ET15
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
@@ -0,0 +1,5 @@
1
+ recursive-include pretix_participantlist/static *
2
+ recursive-include pretix_participantlist/templates *
3
+ recursive-include pretix_participantlist/locale *
4
+ include LICENSE
5
+ exclude .gitlab-ci.yml
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: pretix-participantlist
3
+ Version: 0.2.0
4
+ Summary: Exports attendees as customizable participant lists (PDF and CSV)
5
+ Author: JDAV Hessen
6
+ Author-email: ET15 <37038563+et15@users.noreply.github.com>
7
+ Maintainer-email: ET15 <37038563+et15@users.noreply.github.com>
8
+ License-Expression: Apache-2.0
9
+ Project-URL: homepage, https://github.com/et15/pretix-participantlist
10
+ Project-URL: repository, https://github.com/et15/pretix-participantlist
11
+ Keywords: pretix
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/x-rst
14
+ License-File: LICENSE
15
+ Requires-Dist: reportlab>=4.0.0
16
+ Dynamic: license-file
17
+
18
+ Participant List Export
19
+ ==========================
20
+
21
+ This is a plugin for `pretix`_.
22
+
23
+ Exports attendees as customizable participant lists (PDF and CSV)
24
+
25
+ Features
26
+ --------
27
+
28
+ - **PDF participant list** for a single event (landscape A4), available in the
29
+ event's export page and as a shortcut in the event menu.
30
+ - **List kinds**: named column selections that an organizer defines once and
31
+ that are then available in every event, each with an optional sort order,
32
+ download filename prefix/suffix and a "confidential" marker.
33
+ - **Custom list**: per event, columns can also be typed in directly, one per
34
+ line. Join fields with ``+`` to stack them in one column and append ``=Title``
35
+ to set the column header, e.g. ``email+ticket=Contact``.
36
+ - **Fields**: index, name, first/last name, age, email, order code, ticket type,
37
+ company, address, a signature column and any question with an identifier
38
+ (``question:<identifier>``). The age is computed from the organizer-wide
39
+ birth date question.
40
+ - **Branding**: logo and header text of the PDF, configured per organizer.
41
+ - **CSV/XLSX export** across multiple events.
42
+
43
+ The plugin is activated for the organizer and then available in all its events.
44
+
45
+ Development setup
46
+ -----------------
47
+
48
+ 1. Make sure that you have a working `pretix development setup`_.
49
+
50
+ 2. Clone this repository.
51
+
52
+ 3. Activate the virtual environment you use for pretix development.
53
+
54
+ 4. Execute ``pip install -e .`` within this directory to register this application with pretix's plugin registry.
55
+
56
+ 5. Execute ``make`` within this directory to compile translations.
57
+
58
+ 6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in
59
+ the 'plugins' tab in the settings.
60
+
61
+ This plugin has CI set up to enforce a few code style rules with `Ruff`_. To
62
+ check locally, you need it installed::
63
+
64
+ pip install ruff
65
+
66
+ To check your plugin for rule violations, run::
67
+
68
+ ruff format --check .
69
+ ruff check .
70
+
71
+ You can auto-fix most of these issues by running::
72
+
73
+ ruff format .
74
+ ruff check --fix .
75
+
76
+ To automatically check for these issues before you commit, you can run ``.install-hooks.sh``.
77
+
78
+ Commits in this repository follow `Conventional Commits`_ and releases are
79
+ cut with `Commitizen`_ (``cz bump``), which updates the version in
80
+ ``pyproject.toml`` and ``pretix_participantlist/__init__.py``, writes
81
+ ``CHANGELOG.md`` and creates the matching git tag. The version starts at
82
+ 0.1.0; while it is 0.x, breaking changes bump the minor version.
83
+
84
+
85
+ Quick start without a pretix checkout
86
+ -------------------------------------
87
+
88
+ To run the tests and the style checks you do not need a full pretix development
89
+ setup. With `uv`_, a few commands create a throwaway environment that contains
90
+ the plugin and pretix from its git master branch::
91
+
92
+ uv venv
93
+ source .venv/bin/activate
94
+ uv pip install -e . --group dev --group test
95
+ make
96
+ pytest tests
97
+ ruff check .
98
+
99
+ ``make`` needs GNU gettext (Debian package ``gettext``). To try the plugin in a
100
+ running pretix, use the development setup above instead.
101
+
102
+
103
+ License
104
+ -------
105
+
106
+
107
+ Copyright 2026 ET15
108
+
109
+ Released under the terms of the Apache License 2.0
110
+
111
+
112
+
113
+ .. _pretix: https://github.com/pretix/pretix
114
+ .. _pretix development setup: https://docs.pretix.eu/en/latest/development/setup.html
115
+ .. _Ruff: https://docs.astral.sh/ruff/
116
+ .. _uv: https://docs.astral.sh/uv/
117
+ .. _Conventional Commits: https://www.conventionalcommits.org/
118
+ .. _Commitizen: https://commitizen-tools.github.io/commitizen/
@@ -0,0 +1,101 @@
1
+ Participant List Export
2
+ ==========================
3
+
4
+ This is a plugin for `pretix`_.
5
+
6
+ Exports attendees as customizable participant lists (PDF and CSV)
7
+
8
+ Features
9
+ --------
10
+
11
+ - **PDF participant list** for a single event (landscape A4), available in the
12
+ event's export page and as a shortcut in the event menu.
13
+ - **List kinds**: named column selections that an organizer defines once and
14
+ that are then available in every event, each with an optional sort order,
15
+ download filename prefix/suffix and a "confidential" marker.
16
+ - **Custom list**: per event, columns can also be typed in directly, one per
17
+ line. Join fields with ``+`` to stack them in one column and append ``=Title``
18
+ to set the column header, e.g. ``email+ticket=Contact``.
19
+ - **Fields**: index, name, first/last name, age, email, order code, ticket type,
20
+ company, address, a signature column and any question with an identifier
21
+ (``question:<identifier>``). The age is computed from the organizer-wide
22
+ birth date question.
23
+ - **Branding**: logo and header text of the PDF, configured per organizer.
24
+ - **CSV/XLSX export** across multiple events.
25
+
26
+ The plugin is activated for the organizer and then available in all its events.
27
+
28
+ Development setup
29
+ -----------------
30
+
31
+ 1. Make sure that you have a working `pretix development setup`_.
32
+
33
+ 2. Clone this repository.
34
+
35
+ 3. Activate the virtual environment you use for pretix development.
36
+
37
+ 4. Execute ``pip install -e .`` within this directory to register this application with pretix's plugin registry.
38
+
39
+ 5. Execute ``make`` within this directory to compile translations.
40
+
41
+ 6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in
42
+ the 'plugins' tab in the settings.
43
+
44
+ This plugin has CI set up to enforce a few code style rules with `Ruff`_. To
45
+ check locally, you need it installed::
46
+
47
+ pip install ruff
48
+
49
+ To check your plugin for rule violations, run::
50
+
51
+ ruff format --check .
52
+ ruff check .
53
+
54
+ You can auto-fix most of these issues by running::
55
+
56
+ ruff format .
57
+ ruff check --fix .
58
+
59
+ To automatically check for these issues before you commit, you can run ``.install-hooks.sh``.
60
+
61
+ Commits in this repository follow `Conventional Commits`_ and releases are
62
+ cut with `Commitizen`_ (``cz bump``), which updates the version in
63
+ ``pyproject.toml`` and ``pretix_participantlist/__init__.py``, writes
64
+ ``CHANGELOG.md`` and creates the matching git tag. The version starts at
65
+ 0.1.0; while it is 0.x, breaking changes bump the minor version.
66
+
67
+
68
+ Quick start without a pretix checkout
69
+ -------------------------------------
70
+
71
+ To run the tests and the style checks you do not need a full pretix development
72
+ setup. With `uv`_, a few commands create a throwaway environment that contains
73
+ the plugin and pretix from its git master branch::
74
+
75
+ uv venv
76
+ source .venv/bin/activate
77
+ uv pip install -e . --group dev --group test
78
+ make
79
+ pytest tests
80
+ ruff check .
81
+
82
+ ``make`` needs GNU gettext (Debian package ``gettext``). To try the plugin in a
83
+ running pretix, use the development setup above instead.
84
+
85
+
86
+ License
87
+ -------
88
+
89
+
90
+ Copyright 2026 ET15
91
+
92
+ Released under the terms of the Apache License 2.0
93
+
94
+
95
+
96
+ .. _pretix: https://github.com/pretix/pretix
97
+ .. _pretix development setup: https://docs.pretix.eu/en/latest/development/setup.html
98
+ .. _Ruff: https://docs.astral.sh/ruff/
99
+ .. _uv: https://docs.astral.sh/uv/
100
+ .. _Conventional Commits: https://www.conventionalcommits.org/
101
+ .. _Commitizen: https://commitizen-tools.github.io/commitizen/
@@ -0,0 +1 @@
1
+ __version__ = "0.2.0"
@@ -0,0 +1,33 @@
1
+ from django.utils.translation import gettext_lazy
2
+
3
+ from . import __version__
4
+
5
+ try:
6
+ from pretix.base.plugins import PLUGIN_LEVEL_ORGANIZER, PluginConfig
7
+ except ImportError:
8
+ raise RuntimeError(
9
+ "Please use pretix 2026.1.0 or above to run this plugin!",
10
+ ) from None
11
+
12
+
13
+ class PluginApp(PluginConfig):
14
+ default = True
15
+ name = "pretix_participantlist"
16
+ verbose_name = "Participant List Export"
17
+
18
+ class PretixPluginMeta:
19
+ name = gettext_lazy("Participant List Export")
20
+ author = "ET15"
21
+ description = gettext_lazy(
22
+ "Exports attendees as customizable participant lists (PDF and CSV)"
23
+ )
24
+ visible = True
25
+ version = __version__
26
+ category = "FORMAT"
27
+ compatibility = "pretix>=2026.1.0"
28
+ level = PLUGIN_LEVEL_ORGANIZER
29
+ settings_links = []
30
+ navigation_links = []
31
+
32
+ def ready(self):
33
+ from . import signals # NOQA