Skip to main content

Lots of helper functions and useful widgets.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Overview:

This package contains various useful helper functions.

Installation:

  • Add a requirement to your requirements.txt:

    ai-django-core

  • Add module to INSTALLED_APPS:

    ai

  • Run migrations

Contribute

  • Clone the project locally

  • Create a new branch for your feature

  • Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:

    -e /Users/felix/Documents/workspace/ai-django-core
    
  • Ensure the code passes the tests

  • Run:

    python setup.py develop

  • Create a pull request

Tests

  • Check coverage

    pytest --cov=ai-django-core

  • Run tests

    pytest

Publish to PyPi

  • Increment version in main __init__.py

  • Update Changelog in Readme.md

  • Create pull request / merge to master

  • Run:

    • Make sure you have all the required packages installed pip install twine wheel
    • Create a file in your home directory: ~/.pypirc
    [distutils]
    index-servers=
        pypi
        testpypi
    
    [pypi]
    repository: https://upload.pypi.org/legacy/
    username: ambient-innovation
    
    [testpypi]
    repository: https://test.pypi.org/legacy/
    username: ambient-innovation
    
    • Empty dist directory
    • Create distribution python setup.py sdist bdist_wheel
    • Upload to Test-PyPi twine upload --repository testpypi dist/*
    • Check at Test-PyPi if it looks nice
    • Upload to real PyPi twine upload dist/*

Changelog

  • 1.2.8 (2019-12-13)

    • Added custom scrubber class AbstractScrubbingService to provide a helper for adding custom scrubbing logic for data anonymisation
  • 1.2.7 (2019-07-11)

    • Added email testing class EmailTestService to provide a wrapper for better email unittests
  • 1.2.6 (2019-07-02)

    • Added helper class tz_today() to provide an easy getter for a timezone-aware today
  • 1.2.5 (2019-06-25)

    • Added helper class DateHelper to provide constants to use in djangos ORM lookup __week_day
  • 1.2.4 (2019-05-20)

    • More refactoring on CurrentUserMiddleware to make it more easy to override internal functions
  • 1.2.3 (2019-05-20)

    • Moved get_current_user function inside CurrentUserMiddleware as a static method to enable devs to override it
  • 1.2.2 (2019-04-05)

    • Updated deployment documentation
    • Added markdown support to Readme file
  • 1.2.1 (2019-03-25)

    • Fixed bug causing CommonInfo middleware to not set lastmodified_by on object creation
  • 1.2.0 (2019-03-19)

    • Added CommonInfo middleware

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

ai-django-core-1.2.8.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

ai_django_core-1.2.8-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file ai-django-core-1.2.8.tar.gz.

File metadata

  • Download URL: ai-django-core-1.2.8.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for ai-django-core-1.2.8.tar.gz
Algorithm Hash digest
SHA256 041f56cf038ecc6cb1bc6c63430bd45dad230a98f2bf1afad229169c08f386b8
MD5 d9c25e404c44693380a6f71d8d907f89
BLAKE2b-256 235b4feaf81fa2554c1681e47c0a5010e0e5633ffaa51ae45663ecc8a291f3a3

See more details on using hashes here.

File details

Details for the file ai_django_core-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: ai_django_core-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for ai_django_core-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 aa9ae4404f53ddfe0d61eb12e289992bffd2d4cbff95b123e5cee82d7d809a58
MD5 bf4e86dd49f2deafcb05259d751e92df
BLAKE2b-256 e521500ccf3eed0cac12f9a80976c17bfaf56e790f556d4c842c0ed87578c346

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