Pony UnitField
This project aims to add helpers for FloatField with:
Specify unit (meters, feet, bytes) as field’s metadata
Specify a number of decimal (without DecimalField)
Add get_FIELD_display method on model
Example
from django.db import models
from pony_unitfield.fields import UnitField
class MyModel(models.Model):
default = UnitField(unit='foo', null=True)
no_decimal = UnitField(unit='bar', decimal=0, null=True)
one_decimal = UnitField(unit='ham', decimal=1, null=True)
non_spaced = UnitField(unit='bone', spaced_display=False, null=True)
Metadata
Release files for pony-unitfield 0.2
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 |
|---|---|---|---|---|
| pony-unitfield-0.2.tar.gz | 5.1 kB | Without provenance | Details for pony-unitfield-0.2.tar.gz |
Release files / pony-unitfield-0.2.tar.gz
| Download URL | pony-unitfield-0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d0aab5aa01746f1481881f199f73047c210456f6cfcf4aabdc151a035bf9100
|
|
BLAKE2b-256 checksum How to use checksums |
470747747ae81e80de6fa31a3151c248da7244977de37ea03678cacd2fecf3a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pony-unitfield 0.2
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.