Skip to main content

base-api-utils

DRF common utilities

Virtual Env

$ python3 -m venv env

$ source env/bin/activate

python setup

sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get -y -f install python3.7 python3-pip python3.7-dev python3.7-venv libpython3.7-dev python3-setuptools
sudo -H pip3 --default-timeout=50 install --upgrade pip
sudo -H pip3 install virtualenv

Install reqs

pip install -r requirements.txt

Development dependencies

To install dev dependencies (e.g. pytest):

pip install -e ".[dev]"

Packaging

Create ~/.pypirc:

[distutils]
index-servers =
    pypi

[pypi]
username = __token__
password = pypi-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
python3 -m pip install --upgrade build
python3 -m build

Uploading

python3 -m pip install --upgrade twine

Test Py Pi

python3 -m twine upload --repository testpypi dist/*

Production PyPi

python3 -m twine upload dist/*

Install from testPyPi.Org

pip install -i https://test.pypi.org/simple/ base-api-utils --no-deps

Install from GitHub

pip install git+https://github.com/fntechgit/base-api-utils

Failed Celery Async Tasks Management

For a deep dive into the technical implementation, CLI usage, and troubleshooting steps, please refer to the dedicated management guide:

Management & Recovery Deep Dive: /docs/celery-management.md

Logging and the OTLP log bridge

base_api_utils.logging_config.build_logging builds a service's settings.LOGGING, and base_api_utils.otel_logging.configure_otel_logging ships its log records over OTLP:

Logging and the OTLP log bridge: /docs/logging.md

Traces

base_api_utils.otel_instrumentation, base_api_utils.tracing and base_api_utils.otel_celery give a service its traces, a root span for jobs and consumers, and the Celery worker hooks:

Traces, root spans and the Celery worker hooks: /docs/tracing.md

Metadata

Release files for base-api-utils 1.1.125

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

Source distribution (sdist)

Source distribution for base-api-utils 1.1.125
File Size Uploaded Provenance Actions
base_api_utils-1.1.125.tar.gz 130.0 kB Without provenance Details for base_api_utils-1.1.125.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for base-api-utils 1.1.125
File Interpreter ABI Platform Actions
base_api_utils-1.1.125-py3-none-any.whl Python 3 none any Details for base_api_utils-1.1.125-py3-none-any.whl

Total release size: 241.2 kB

Release files / base_api_utils-1.1.125.tar.gz

Download URL base_api_utils-1.1.125.tar.gz
Size 130.0 kB
Tags Source
SHA-256 checksum
How to use checksums
efb8cf8bcfa30f565baa3c5b12be79fa8b502258759641446ffb844a5cbba96c
BLAKE2b-256 checksum
How to use checksums
0148fa8354501ed18a717c2a8dc4dbfbe50e1cd2d74adb6c14b4da06726664f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / base_api_utils-1.1.125-py3-none-any.whl

Download URL base_api_utils-1.1.125-py3-none-any.whl
Size 111.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc91ecec0d13a9d959e66939b8fb971a60e9817b60cb7f12f607308772eb1c3f
BLAKE2b-256 checksum
How to use checksums
3da1d419cb0dbfc78d090a52d0a3f616ff5bb75bafa102e1e25381164ba7220f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for base-api-utils 1.1.125

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.

Release history Release notifications | RSS feed

This release

1.1.125 This release

2 release files No 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