Catalog PyPI
PACKAGE EXPLORERView in registry

ABN

PyPI

Validate Australian Business Numbers.

Versions collected1
Direct dependencies0From release 1.0.0
Last observed20 Oct, 17:30 UTC

README

Version 1.0.0 documentation
===
ABN
===

This package validates Australian Business Numbers (ABNs) and converts Australian Company Numbers (ACNs) or Australian Registered Body Numbers (ARBNs) to ABNs.

The following example show checking of a valid and an invalid ABN:

.. code-block:: python

    >>> import abn
    >>> abn.validate('53004085616')
    '53 004 085 616'

    >>> abn.validate('99999999999')
    False


To calculate the ABN based on an existing ACN or ARBN:

.. code-block:: python

    >>> abn.acn_to_abn('004085616')
    '53 004 085 616'


To run the tests or your current Python:

.. code-block:: bash

    $ python setup.py test

To run the tests over all supported Python versions, install Tox and run:

.. code-block:: bash

    $ tox

Release History
---------------

1.0.0 (2021-09-29)
++++++++++++++++++

 - Switch to setup.cfg.
 - Require Python 3.6.


0.4.2 (2018-09-06)
++++++++++++++++++

**Bug fixes**

 - Update CI testing to run on Python 3.5 (3.4 no longer available in testing
   environment).
 - Fix `acn_to_abn` for a single-digit remainder (nikicc).


0.4.0 (2018-05-01)
++++++++++++++++++

**Improvements**

 - Add GitLab continuous integration script to run tox tests.

**Bug fixes**

 - Treat an ABN with leading zero as invalid (Charley Peng).


0.3.7 (2016-08-03)
++++++++++++++++++

**Improvements**

 - Add test suite to `setup.py`. You can run with `python setup.py test`.


0.3.6 (2015-08-03)
++++++++++++++++++

**Bug fixes**

 - Enable tests for Python 2.7, 3.3 and 3.4.


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.029 Sept 20210

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
Sturm/python-abn

Shared repository data · GitLab

License detected in repository
Apache License 2.0
License branch / ref
master
Contributor identities
3 · complete API traversal
License file
Contributors · showing 3 of 3 collected
ContributorContributions
Ben Sturmfels27
nikicc1
Charley Peng1

Default-branch author identities; GitLab commit counts exclude merge commits.

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

3identities
Gauge · observed snapshots22 Oct 2026
31.50
2026-10-20: 3 · observed 2026-10-20T17:36:49.3176657Z2026-10-21: 3 · observed 2026-10-21T17:37:08.2560968Z2026-10-22: 3 · observed 2026-10-22T17:37:43.0662947Z
20 Oct22 Oct

gitlab · 3 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2232026-10-22T17:37:43.0662947Z
2026-10-2132026-10-21T17:37:08.2560968Z
2026-10-2032026-10-20T17:36:49.3176657Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0dd2d56743b05401271ca27b491eae3069458a4481867f86be1ac148f2b9612b