The GDAPS library allows Django to make real "pluggable" apps.
A standard Django "app" is reusable (if done correctly), but is not pluggable, like being distributed and "plugged" into a Django main application without modifications. GDAPS is filling this gap.
The reason you want to use GDAPS is: you want to create an application that should be extended via plugins. GDAPS consists of a few bells and twistles where Django lacks "automagic":
- Apps are automatically found using setuptools' entry points
- Apps can provide their own URLs (they are included and merged into urlpatterns automatically)
- Apps can define
Interfaces, that other GDAPS apps then can implement - Apps can provide template hooks that can be filled with plugins' content
Limitations
- GDAPS interfaces cannot inherit classes that import models (like
PermissionRequiredMixin), as the declaration is too early in the Django setup process, and apps aren't loaded at that time.
Contribute
You can support me in various ways.
- Test the code and write bug reports.
- Write code
- Suggest ideas (as bug report)
Credits
I was majorly influenced by other plugin systems when writing this code, big thanks to them:
- Marty Alchin's Simple plugin framework
- The PyUtilib library
- The Pretix ecosystem
- Yapsy
- Django-Rest-Framework
- Graphene-Django
License
GDAPS is licensed under the BSD License, see License.
Release files for gdaps 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gdaps-0.21.0.tar.gz | 114.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gdaps-0.21.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 220.1 kB
Release files / gdaps-0.21.0.tar.gz
| Download URL | gdaps-0.21.0.tar.gz |
|---|---|
| Size | 114.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3418e7dfc655e7659cea0e14f98089f8551cb1d91698b0d5b269d2b53650d91b
|
|
BLAKE2b-256 checksum How to use checksums |
0d6917d6af6452cf6e72e605253ad0b3727d2c226e32bb0f99a0de8b9862603c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / gdaps-0.21.0-py3-none-any.whl
| Download URL | gdaps-0.21.0-py3-none-any.whl |
|---|---|
| Size | 105.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
404fb2a9f69623b8ac6fa6ab20918b9cceded5df2a00f25a7d7f2601117696fd
|
|
BLAKE2b-256 checksum How to use checksums |
72427479383cfd2a0fa15288dbf1c88cf6686fe593953701540ee0be3bf14e9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|