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=. -
Run tests
pytest
Publish to PyPi
-
Increment version in main
__init__.py -
Update
ChangeloginReadme.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
distdirectory - 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/*
- Make sure you have all the required packages installed
Changelog
-
2.2.1 (2020-07-01)
- Removed misleading inheritance of mixin
ClassBasedViewTestMixinfromTestCase
- Removed misleading inheritance of mixin
-
2.2.0 (2020-07-01)
- Added response class
CustomPermissionMixin
- Added response class
-
2.1.2 (2020-04-30)
- Extended pypi documentation with classifiers
-
2.1.1 (2020-04-24)
- Refactors open calls to use context managers
- Refactors the test setup
- Configures coverage
- Adds a coverage report to the CI
-
2.1.0 (2020-04-20)
- Removed password generator method
generate_password - Renamed math method
round_up_to_decimaltoround_up_decimal - Added math method
round_to_decimal - Updated metadata in setup.cfg
- Removed password generator method
-
2.0.0 (2020-04-09)
- Dropped Python 2.x support
- Removed explicit dependency to package
mockand using implicit one via unittest - Improved linting
-
1.2.14 (2020-04-06)
- Fixed a bug with session setup in
ClassBasedViewTestMixin
- Fixed a bug with session setup in
-
1.2.13 (2020-04-02)
- Added
DELETEmethod for testing mixingClassBasedViewTestMixin
- Added
-
1.2.12 (2020-02-14)
- Added CBV testing mixing
ClassBasedViewTestMixin
- Added CBV testing mixing
-
1.2.11 (2020-01-28)
- Bugfix in documentation
-
1.2.10 (2020-01-28)
- Improved documentation
-
1.2.9 (2020-01-02)
- Extended and improved class
AbstractScrubbingService
- Extended and improved class
-
1.2.8 (2019-12-13)
- Added custom scrubber class
AbstractScrubbingServiceto provide a helper for adding custom scrubbing logic for data anonymisation
- Added custom scrubber class
-
1.2.7 (2019-07-11)
- Added email testing class
EmailTestServiceto provide a wrapper for better email unittests
- Added email testing class
-
1.2.6 (2019-07-02)
- Added helper class
tz_today()to provide an easy getter for a timezone-aware today
- Added helper class
-
1.2.5 (2019-06-25)
- Added helper class
DateHelperto provide constants to use in djangos ORM lookup__week_day
- Added helper class
-
1.2.4 (2019-05-20)
- More refactoring on
CurrentUserMiddlewareto make it more easy to override internal functions
- More refactoring on
-
1.2.3 (2019-05-20)
- Moved
get_current_userfunction insideCurrentUserMiddlewareas a static method to enable devs to override it
- Moved
-
1.2.2 (2019-04-05)
- Updated deployment documentation
- Added markdown support to Readme file
-
1.2.1 (2019-03-25)
- Fixed bug causing
CommonInfomiddleware to not setlastmodified_byon object creation
- Fixed bug causing
-
1.2.0 (2019-03-19)
- Added
CommonInfomiddleware
- Added
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai-django-core-2.2.1.tar.gz.
File metadata
- Download URL: ai-django-core-2.2.1.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92bfa59cf965ed2c68e513152870a403e44021bcee2c1ef333b0b5f28fd0fcbb
|
|
| MD5 |
be74ccc38b8b53ce03f974c8502f065c
|
|
| BLAKE2b-256 |
338c4e4d35bbf44cfd391d574117142bd5fa562be133bb22bed560665237457c
|
File details
Details for the file ai_django_core-2.2.1-py3-none-any.whl.
File metadata
- Download URL: ai_django_core-2.2.1-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
600be9ce8c6a5baf17c830bf5876065849c8da6fe88e90aa07ba3a9725d28aac
|
|
| MD5 |
195d97792dda5b8f0250f2d4d88f72db
|
|
| BLAKE2b-256 |
a3bf1bb167d52a9fd41817d541e988b4d40d813f4dde555cf64bf22ed217dd5b
|