Skip to main content

drf-subscription

License: GPL v3 CI

A generic subscription app for django.

Installation

Dependencies are managed exclusively with uv:

uv sync

REST API

The app ships a DRF router exposing these endpoints (admin-only by default):

  • /api/subscriptions/
  • /api/subscription-lines/
  • /api/subscription-events/
  • /api/resources/

Versioning

This project follows Semantic Versioning. The version is kept in subscription/__init__.py (__version__) and read by pyproject.toml. To bump it:

uv run python scripts/bump_version.py patch            # or minor / major
uv run python scripts/bump_version.py patch --tag      # and create the git tag vX.Y.Z

Release

Releases are a two-step process handled by two GitHub Actions workflows:

  1. Bump version (Actions → Bump version → Run workflow): choose patch, minor or major. It bumps the version, updates the changelog, commits, tags and pushes.
  2. Publish (Actions → Publish → Run workflow): builds the package, publishes it to PyPI and creates the GitHub Release for the current version.

Alternatively, you can do it locally — bumping and pushing triggers the Publish workflow automatically:

uv run python scripts/bump_version.py patch --commit --tag --push

PyPI publishing setup

Publication uses Trusted Publishing (recommended) or an API token.

  1. On PyPI, go to your project → Settings → Publishing.
  2. Click Add a new trusted publisher and fill in:
    • Owner: gmork2
    • Repository: drf-subscription
    • Workflow name: publish.yml
    • Environment name: leave blank
  3. Save.

Only publish.yml publishes to PyPI, so a single trusted publisher is enough.

API token (alternative)

Create an API token on PyPI and add it as a GitHub Actions secret named PYPI_TOKEN. If set, it takes precedence over trusted publishing.

Metadata

Release files for drf-subscription 0.1.3

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

Source distribution (sdist)

Source distribution for drf-subscription 0.1.3
File Size Uploaded Provenance Actions
drf_subscription-0.1.3.tar.gz 44.3 kB Without provenance Details for drf_subscription-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drf-subscription 0.1.3
File Interpreter ABI Platform Actions
drf_subscription-0.1.3-py3-none-any.whl Python 3 none any Details for drf_subscription-0.1.3-py3-none-any.whl

Total release size: 83.2 kB

Release files / drf_subscription-0.1.3.tar.gz

Download URL drf_subscription-0.1.3.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
17e1f016fc1adffade997c1dc6b7d0f8720acfb981390b920f0f1fe3d2b225b8
BLAKE2b-256 checksum
How to use checksums
bd00a779d9abf0740cfb33e5a36c868d3911e74e1d497e27d65e60f986b44d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / drf_subscription-0.1.3-py3-none-any.whl

Download URL drf_subscription-0.1.3-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcbb6d1dc5e96ab74169c55766d31a62d467d55605f0da1469620e7ce03d0f34
BLAKE2b-256 checksum
How to use checksums
88c75626cf8fff6a9d70893150380008e492ca2ed4970f595ccd76530e922d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for drf-subscription 0.1.3

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