Australian IPND Client
Project description
Australian IPND (Integrated Public Number Database) Client
This is a python 3 port of xrobau/ipnd
Many thanks to this author!~
Licenced under the AGPLv3.
You can install this module via pip:
pip install au-ipnd
Example Code
from ipnd import record, IPND
person = record.Person()
person.set_name("Herp L. Derpinson", "Mr")
person.set_contactnum("0402000000")
business = record.Business()
business.set_name("Extremely Long Name Pty Ltd, Trading as Stupidly Long Name Incorporated")
business.set_contactnum("0402000000")
address = record.HouseAddress()
address.set_street_number("1")
address.set_street_name("FAKE", "ST")
address.set_locality("0200", "ANU", "ACT")
# This is the File Sequence Number
i = IPND(source="XXXXX", seq=2)
nums = (("0749700000", person), ("0749700001", business))
for num, entity in nums:
t = record.Transaction()
t.add_entry(record.CSPCode("999"))
t.add_entry(record.DPCode("YYYYYY"))
t.add_entry(record.PublicNumber(num))
t.add_entry(record.UsageCode(entity))
t.add_entry(record.ServiceStatusCode("C"))
t.add_entry(record.PendingFlag("N"))
t.add_entry(record.CancelPendingFlag("N"))
t.add_entry(record.CustomerName(entity))
t.add_entry(record.FindingName(entity))
t.add_entry(record.ServiceAddress(address))
t.add_entry(record.DirectoryAddress(address))
t.add_entry(record.ListCode("UL"))
t.add_entry(record.CustomerContact(entity))
i.add_transaction(t)
output = i.generate_to_string()
print(output)
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
au-ipnd-0.0.2.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file au-ipnd-0.0.2.tar.gz
.
File metadata
- Download URL: au-ipnd-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1fa12407447d253299c1f3c177c5ddca3152f118dbc46110e537cc5686e100 |
|
MD5 | aaafc54e43d777167c46ab228e3a60c6 |
|
BLAKE2b-256 | f721de7e944dc68b135d191027f60d4c2570b25318245af93ce8c01bbe6ba9e3 |
File details
Details for the file au_ipnd-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: au_ipnd-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa8f76faf260850edc526a96d456e93f71a434655205b08a3f98e6882277de3e |
|
MD5 | a54b6b7a48a66dabfd1deda8f1d88254 |
|
BLAKE2b-256 | 6c62d91ec5b9e53a529548f4f08a6b3419a5c5ea4b37bb85f8fb0ddbe81155a7 |