Skip to main content

Python toolbox of Ambient Digital containing an abundance of useful tools and gadgets.

Project description

PyPI release Downloads Coverage Linting Coding Style Documentation Status

Python toolbox of Ambient Digital containing an abundance of useful tools and gadgets.

PyPI | GitHub | Full documentation

Creator & Maintainer: Ambient Digital

Features

  • Useful classes and mixins for Django admin
  • Coverage script for GitLab
  • Extensions for DRF and GraphQL
  • Mailing backends for Django
  • Management commands for validating a projects test structure
  • Object ownership tracking with timestamping
  • Pattern for improved workflow with Django ORM
  • Helper and util functions for many different use-cases
  • Sentry plugins
  • django-scrubber wrapper class
  • Mixins and test classes for django (class-based) views

Migration from "ai_django_core"

This package was previously known as ai_django_core. Due to the misleading nature of the name, we chose to rename it with something more meaningful.

The migration is really simple, just:

  • Install ambient-toolbox and remove the dependency to ai-django-core
  • Search and replace all usages of from ai_django_core... to from ambient_toolbox...
  • The class-based mail functionality was moved to a separate package called django-pony-express.

Installation

  • Install the package via pip:

    pip install ambient-toolbox

    or via uv:

    uv add ambient-toolbox

  • Add module to INSTALLED_APPS within the main django settings.py:

INSTALLED_APPS = (
    # ...
    "ambient_toolbox",
)
  • Apply migrations by running:

    python ./manage.py migrate

Publish to ReadTheDocs.io

  • Fetch the latest changes in GitHub mirror and push them
  • Trigger new build at ReadTheDocs.io (follow instructions in admin panel at RTD) if the GitHub webhook is not yet set up.

Preparation and building

This package uses uv for dependency management and building.

  • Update documentation about new/changed functionality

  • Update the CHANGES.md

  • Increment version in main __init__.py

  • Create pull request / merge to "master"

  • This project uses uv to publish to PyPI. This will create distribution files in the dist/ directory.

    uv build
    

Publishing to PyPI

To publish to the production PyPI:

uv publish

To publish to TestPyPI first (recommended for testing):

uv publish --publish-url https://test.pypi.org/legacy/

You can then test the installation from TestPyPI:

uv pip install --index-url https://test.pypi.org/simple/ ambient-package-update

Maintenance

Please note that this package supports the ambient-package-update. So you don't have to worry about the maintenance of this package. This updater is rendering all important configuration and setup files. It works similar to well-known updaters like pyupgrade or django-upgrade.

To run an update, refer to the documentation page of the "ambient-package-update".

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

ambient_toolbox-12.7.2.tar.gz (254.4 kB view details)

Uploaded Source

Built Distribution

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

ambient_toolbox-12.7.2-py3-none-any.whl (86.6 kB view details)

Uploaded Python 3

File details

Details for the file ambient_toolbox-12.7.2.tar.gz.

File metadata

  • Download URL: ambient_toolbox-12.7.2.tar.gz
  • Upload date:
  • Size: 254.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for ambient_toolbox-12.7.2.tar.gz
Algorithm Hash digest
SHA256 ae9111e0a592fff069429195389b0afb32983a511acb2dcad858fec27146ae99
MD5 ca666fe58ada47ca3829830536b43c77
BLAKE2b-256 92b47c8024930f63107a2e627d1bf16a5c280f928f6b32949ec29676cbd76c26

See more details on using hashes here.

File details

Details for the file ambient_toolbox-12.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ambient_toolbox-12.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 707708c569e7b992f807d46087adf71e1dfd7dbbf687ebb1ce7a3dd404c2b8ed
MD5 e7a53aea684bcfd3ce459017a7ac25b2
BLAKE2b-256 a7b34b35e78cccada17723feaba3d2caf77bbafb4d10141552644c34cefce71e

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