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.6.4.tar.gz (249.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.6.4-py3-none-any.whl (83.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ambient_toolbox-12.6.4.tar.gz
Algorithm Hash digest
SHA256 d42acf49801844a81cefcb3aad2516e017ececcd1f115d3d4dd4ca1cc6706978
MD5 bd3459122421d0f637ee717f4c90f9e5
BLAKE2b-256 fa4a9e7d9ada796a37c875a103b000dc7ececc0ff65e0d2e5f9f743b5093a258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ambient_toolbox-12.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d1fa2487e781ec42d9e82322dcdbadc7547f966e922c98d32d25a4ae1df395b
MD5 8b447b58c933406439439208b19ac108
BLAKE2b-256 b51dcb22b4c66ea4eecf52f2179b314207b3422993edbec7780ecbdfe90e0ecd

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