Skip to main content

Generic Django Apps Plugin System

Project description

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)
  • Support this work financially. Feel free to send me a few bucks vie Ethereum at 0xf29f45a3632a1721b9ea3795808337eba06e1814: Ethereum QR-code

Credits

I was majorly influenced by other plugin systems when writing this code, big thanks to them:

License

GDAPS is licensed under the BSD License, see License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gdaps-0.8.3-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file gdaps-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: gdaps-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.1 CPython/3.10.10

File hashes

Hashes for gdaps-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2335194cf94cad1ecc2d9a6421a506a5e4f5ec0a9968dbb38958c5291a12989a
MD5 33c0bb2198acadae818b7af1e28bd9e8
BLAKE2b-256 c1945a4802e94ef2dc8c95782380d0853939554dbf770381c073d07278d507cc

See more details on using hashes here.

Provenance

Supported by

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