Metadata-Version: 2.1
Name: nzbn
Version: 0.0.21
Summary: New Zealand Business Number library
Home-page: https://github.com/procuret/nzbn-python
Author: Procuret
Author-email: hugh@procuret.com
License: UNKNOWN
Project-URL: Github Repository, https://github.com/procuret/nzbn-python
Project-URL: About, https://github.com/procuret/nzbn-python
Keywords: library http api web payments finance nzbn new-zealand nz business business-number
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# New Zealand Business Number

A Python library for interacting with New Zealand Business Number services.

## Installation

```
$ pip install nzbn
```

## Example Usage

### Get a list of abbreviated entities

```python
from nzbn import AbbreviatedEntity

entities: List[AbbreciatedEntity] = AbbreviatedEntity.retrieve_many(
    access_token="your nzbn API access token",
    search_text="some entity name",
    page=0,    # defaults to 0
    limit=20   # per page count, defaults to 20
)
```

### Get detailed data about an entity

```python
from nzbn import Entity

entity: Entity = Entity.retrieve(
    access_token="your nzbn API access token",
    nzbn="9429049541410",
    sandbox=False  # defaults to False
)
```


