🚀 Simpel Numerators
Simpel Numerators track autonumber style inner_id for model record This repository contains a Numerator model utils to create nice formatted Inner ID.
Installation
pip install simpel-numerators
Usage
from django.db import models
from simpel_numerators.models import NumeratorMixin
class Product(NumeratorMixin):
doc_prefix = 'PD'
name = models.CharField(max_length=100)
Usage with Polymorphic
install django-polymorphic
pip install django-polymorphic
Using Parent Model doc_prefix
from django.db import models
from polymorphic.models import PolymorphicModel
from simpel_numerators.models import NumeratorMixin, NumeratorReset
class Product(NumeratorMixin):
doc_prefix = 'PD'
parent_prefix = True
parent_model = 'Parent2'
name = models.CharField(max_length=100)
class Inventory(Product):
pass
class Asset(Product)
pass
Using Child Model doc prefix
class Product(NumeratorMixin):
name = models.CharField(max_length=100)
class Inventory(Product):
doc_prefix = 'INV'
class Asset(Product)
doc_prefix = 'AST'
Metadata
Release files for simpel-numerators 0.1
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 |
|---|---|---|---|---|
| simpel-numerators-0.1.tar.gz | 7.6 kB | Without provenance | Details for simpel-numerators-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simpel_numerators-0.1-py3-none-any.whl | Python 3 | none | any | Details for simpel_numerators-0.1-py3-none-any.whl |
Total release size: 16.3 kB
Release files / simpel-numerators-0.1.tar.gz
| Download URL | simpel-numerators-0.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2683a7223c1256b63a02bcd3b1150490f364eea4f215cc667ef8c97d79bc1984
|
|
BLAKE2b-256 checksum How to use checksums |
69dd0beb5567c52a9e6eb6057250eeaf476755f2cae8742c3af1db5ae092a39a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / simpel_numerators-0.1-py3-none-any.whl
| Download URL | simpel_numerators-0.1-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
518b8ca4d5f9d9a6df25dcca300f6a1e520f4f61fd40966bb2cf34b02a4cf214
|
|
BLAKE2b-256 checksum How to use checksums |
02cf8767742a1292db3cf70c15134a122cf195d346173a2aff5f4b31b3a5679d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for simpel-numerators 0.1
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.