{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Provides Django model fields for PostgreSQL network types (INET, CIDR, MACADDR, MACADDR8) with native IP and MAC address handling and advanced network-based ORM lookups.","skillfed_tags":["postgresql","network-data","orm-extension"],"use_cases":["Store and query IP addresses and subnets efficiently in Django models backed by PostgreSQL","Perform network containment and overlap queries without application-level filtering","Track MAC addresses in network device or inventory models","Build IP-based access control or firewall rule systems with native database queries","Annotate models with extracted network metadata (family, netmask length, broadcast address)"],"what_it_does":"django-netfields extends Django's ORM with proper PostgreSQL network data types, replacing the inefficient built-in IP fields with native INET, CIDR, MACADDR, and MACADDR8 field types. The package maps these PostgreSQL types to Python's ipaddress module (for IP fields) and netaddr.EUI (for MAC fields), eliminating costly HOST() casts in queries and enabling IPv6 support.\n\nThe package includes NetManager, which unlocks advanced network-based lookups directly in the ORM\u2014containment checks, overlap detection, family matching, prefix length filtering, and more\u2014corresponding to PostgreSQL's native network functions. It also exposes Postgres network functions (Family, Masklen, Broadcast, etc.) as Django database functions for complex queries and annotations.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, and solves a real problem\u2014efficient network data handling in Django+PostgreSQL. Install if you need to store or query IP/CIDR/MAC data; skip if you're not using PostgreSQL or don't need network-specific lookups."},"id":"django-netfields","links":{"html":"https://skillfed.io/packages/django-netfields","md":"https://skillfed.io/packages/django-netfields.md","pypi":"https://pypi.org/project/django-netfields/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-05","license_spdx":null,"license_treatment":"permissive","name":"django-netfields","python_support":"supports_current","summary":"Django PostgreSQL netfields implementation"},"popularity":{"monthly_downloads":179571,"position":10168,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.1"}
