Skip to main content

MAC address model and form fields for Django apps.

Project description

django-macaddress
================

.. image:: https://api.travis-ci.org/tubaman/django-macaddress.png?branch=master
:alt: Build Status
:target: https://travis-ci.org/tubaman/django-macaddress
.. image:: https://pypip.in/v/django-macaddress/badge.png
:target: https://crate.io/packages/django-macaddress
.. image:: https://pypip.in/d/django-macaddress/badge.png
:target: https://crate.io/packages/django-macaddress

MAC Address model and form fields for Django

We use netaddr to parse and validate the MAC address. The tests aren't
complete yet.

Patches welcome: http://github.com/tubaman/django-macaddress


Changing dialect for MAC Address representation
-----------------------------------------------

By default, our mac_linux representation for MAC Address is used.
You can use some other available in python (or even create a new one) by setting
it: ``MACAddressField.set_dialect(your_dialect_clazz)``.

For more on python's representation of MAC Addresses, check:
http://pythonhosted.org/netaddr/tutorial_02.html#formatting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-macaddress-1.2.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page