The Official Python Client of the Array of Things API
Project description
# Array of Things Client
This library serves as the official Python client to the [Array of Things API](https://api.arrayofthings.org/api).
## System Requirements
This library will only run on Python 3.6 or better.
We __will not__ support Python 2 or earlier versions of Python 3.
## Using the Library
The AoT Client is available on PyPI:
```bash
$ pip install aot-client
```
You can then use it pull down lists of metadata and observations
as well as detailed information about metadata.
```python
from aot_client import AotClient
client = AotClient()
projects = client.list_projects()
for page in projects:
for proj in page.data:
print(f'{proj["name"]} is available at /api/projects/{proj["slug"]}')
```
## Development and Contributing
To run the tests locally:
```bash
$ pipenv install --dev
$ pipenv run python -m pytest
```
To build a release and push it to PyPI:
```bash
$ pipenv run python setup.py sdist bdist_wheel
$ pipenv run twine upload dist/*
```
This library serves as the official Python client to the [Array of Things API](https://api.arrayofthings.org/api).
## System Requirements
This library will only run on Python 3.6 or better.
We __will not__ support Python 2 or earlier versions of Python 3.
## Using the Library
The AoT Client is available on PyPI:
```bash
$ pip install aot-client
```
You can then use it pull down lists of metadata and observations
as well as detailed information about metadata.
```python
from aot_client import AotClient
client = AotClient()
projects = client.list_projects()
for page in projects:
for proj in page.data:
print(f'{proj["name"]} is available at /api/projects/{proj["slug"]}')
```
## Development and Contributing
To run the tests locally:
```bash
$ pipenv install --dev
$ pipenv run python -m pytest
```
To build a release and push it to PyPI:
```bash
$ pipenv run python setup.py sdist bdist_wheel
$ pipenv run twine upload dist/*
```
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
aot-client-2.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for aot_client-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cb8dbc81d8161534086210b9b2d37ae5a997990fd41bab18be06a6d30e2fd54 |
|
MD5 | 5bac58eb0784e1167e83dc8e396938ec |
|
BLAKE2b-256 | 68b22517af96c23e7197e70975c74fcabb8ceb5e2494ea0b679cea98dcc04c69 |