pik-django-utils
This project aim is to provide common django project utils and tools for all PIK django projects.
It should provide guidance and tool recommendations for documentation, testing, etc.
This project is a part of django-service-boilerplate.
Versioning
We use semantic versioning MAJOR.MINOR.MAINTENANCE scheme, where the project author increments:
- MAJOR version when they make incompatible API changes,
- MINOR version when they add functionality in a backwards-compatible manner, and
- MAINTENANCE version when they make backwards-compatible bug fixes.
PACKAGES
pik.core- Django specific staffpik.libs- Django specific modules and librariespik.utils- not Django specific small utils and goodness
pik.core
pik.core.models- Abstract Django models for common use casespik.core.models.fields- common model fieldspik.core.tests- Testing helperspik.core.shortcuts- Django code shortcuts and missed helperspik.core.cache- Cache helperspik.core.clear_history- Module for deleting old history rows
pik.core.models
BasePHistorical/BaseHistorical- Base Historical Entity modelsNullOwned/Owned- Models for user relationSoftDeleted- Soft deletable model
pik.core.models.fields
InheritPrimaryUidField- Allows you to save the same UID Identifier for child table in inherited tables as in parent table
pik.core.tests
create_user/get_user- user fixtures
pik.core.shortcuts
get_object_or_none(model: Type[models.Model], **search_keys) -> Optional[models.Model]validate_and_create_object(model: Type[models.Model], **kwargs) -> models.Modelvalidate_and_update_object(obj: models.Model, **kwargs) -> Tuple[models.Model, bool]update_or_create_object(model: Type[models.Model], search_keys: Optional[dict] = None, **kwargs) -> Tuple[models.Model, bool, bool]get_current_request() -> Optional[HttpRequest]
pik.libs
...
pik.utils
pik.utils.normalization- text normalization helpers
pik.utils.normalization
normalize(text: str) -> strcompany_name_normalization(name: str) -> str
- Follow https://packaging.python.org/
- Create
release.shfile - Generate Django common settings
Metadata
Release files for pik-django-utils 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pik-django-utils-2.1.0.tar.gz | 31.5 kB | Without provenance | Details for pik-django-utils-2.1.0.tar.gz |
Release files / pik-django-utils-2.1.0.tar.gz
| Download URL | pik-django-utils-2.1.0.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bad0c8c3f4e2d043c9d11d14f57d84a5652c79aec0d66e632736faa0a9774bfd
|
|
BLAKE2b-256 checksum How to use checksums |
660f0cb27bdb14ca2ccf342244248f031897f54c213484b249767ef85c8f87f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
|
Security for pik-django-utils 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.