No project description provided
Project description
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
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 oamp_ipaddress-0.1.0.tar.gz.
File metadata
- Download URL: oamp_ipaddress-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848fc24956c5a85b62b1fda349ed340205ced41d53f69661ceed0dc2a1d0faa5
|
|
| MD5 |
b4da33a4c8203f448b7b223f3f6d15b7
|
|
| BLAKE2b-256 |
f2c0af03905d463cabed0095b092c7dc770b0f611949e9f0d7918fdd5048339e
|
File details
Details for the file oamp_ipaddress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oamp_ipaddress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.13.2 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b6184154e0ac55ce5924dcd8740f8cea9d5a91f4b7e813ab0a0dc2583d4afe
|
|
| MD5 |
16f2e03db71b4951925ec4c721759731
|
|
| BLAKE2b-256 |
e19e400015dc9c9f416f8fbc8faf5c7974d2188e283382b082789057d051d794
|