OAMP-IPADDRESS
This is a Django Field to hold IP Addresses. It serializes to a CharField, so it will work with all database backends.
The field will process the following IP Addressing formats:
-
Bare IP Address
A standard IPv4 Address, or IPv6 Address (ex. 192.168.1.1 or 2001:db8:202:303::1)
-
CIDR Notation
A standard CIDR Notation (ex.192.168.1.1/24 or 2001:db8:202:303::1/64)
-
Bare IP Address with (Optional routing instance (VRF)
A standard IPv4 Address, or IPv6 Address with an optional VRF (ex. 192.168.1,1@personal_vrf or 2001:db8:202:303::1@personal_vrf)
-
CIDR Notation with (Optional routing instance (VRF)
A standard CIDR Notation with an optional VRF (ex. 192.168.1.1/24@another_vrf or 2001:db8:202:303::1/64@another_vrf)
The vrf name is currently limited to 63 characters, which should cover the vast majority of network vendor VRF names.
Installation
pip install oamp-ipaddress
Usage
from django.db import models
from oamp_ipaddress.fields import SortableIPAddressField
class MyModel(models.Model):
ip = SortableIPAddressField()
Testing
python manage.py test
License
This project is licensed under the MIT License - see the LICENSE file for details
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Copyright
This project is Copyright (c) 2025 by Mike Simkins, All Rights Reserved
Metadata
Release files for oamp-ipaddress 0.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 |
|---|---|---|---|---|
| oamp_ipaddress-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for oamp_ipaddress-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oamp_ipaddress-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for oamp_ipaddress-0.1.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / oamp_ipaddress-0.1.0.tar.gz
| Download URL | oamp_ipaddress-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
848fc24956c5a85b62b1fda349ed340205ced41d53f69661ceed0dc2a1d0faa5
|
|
BLAKE2b-256 checksum How to use checksums |
f2c0af03905d463cabed0095b092c7dc770b0f611949e9f0d7918fdd5048339e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.0 CPython/3.13.2 Darwin/24.3.0
|
Release files / oamp_ipaddress-0.1.0-py3-none-any.whl
| Download URL | oamp_ipaddress-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99b6184154e0ac55ce5924dcd8740f8cea9d5a91f4b7e813ab0a0dc2583d4afe
|
|
BLAKE2b-256 checksum How to use checksums |
e19e400015dc9c9f416f8fbc8faf5c7974d2188e283382b082789057d051d794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.0 CPython/3.13.2 Darwin/24.3.0
|
Security for oamp-ipaddress 0.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.