Skip to main content

Django Rest Framework micro services common utilities

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

base_api_utils-1.1.119.tar.gz (64.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

base_api_utils-1.1.119-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

Details for the file base_api_utils-1.1.119.tar.gz.

File metadata

  • Download URL: base_api_utils-1.1.119.tar.gz
  • Upload date:
  • Size: 64.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for base_api_utils-1.1.119.tar.gz
Algorithm Hash digest
SHA256 f3b8428eb6d1287c094b01beedce0c63e0075351a4469f6d7fa6ff4bc01059a4
MD5 3d678c02b1f73a5ae15b5b399d2c72f6
BLAKE2b-256 5e72a647d0afe38f0affcd961f6324e4cc0f636784bf4c387ed70342940bd209

See more details on using hashes here.

File details

Details for the file base_api_utils-1.1.119-py3-none-any.whl.

File metadata

File hashes

Hashes for base_api_utils-1.1.119-py3-none-any.whl
Algorithm Hash digest
SHA256 00580dcce41df83017dbfa4bf002cb4bbe97c41c2d1085432c127ad2f52319e7
MD5 e141dd340f393e14824cbc79ed965dc6
BLAKE2b-256 deeb93c1ffcaa713dec9239060cee3934e7d31ea0835a277f484848f1b3c7b45

See more details on using hashes here.

Supported by

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