HTTP client for OCTo (Open Connection for Tourism) APIs.
Project description
OCTO API client
Python HTTP client for OCTO (Open Connection for Tourism) APIs.
More info at octospec.com
API Specification: https://docs.octo.travel/docs/octo/r6gduoa5ah5ne-octo-api
Installation
pip install octo-api-client
Requirements
- Python v3.7+
Development
Getting started
$ pip install poetry
$ poetry install
Running tests and linters
To run linters:
$ poetry run ruff octo_client
$ poetry run mypy octo_client
To run tests:
$ poetry run pytest
Usage
from octo_client import OctoClient
client = OctoClient('https://octo-api.mysupplier.com', 'MY-SECRET_TOKEN')
client.get_suppliers()
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
octo_api_client-1.1.7.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file octo_api_client-1.1.7.tar.gz
.
File metadata
- Download URL: octo_api_client-1.1.7.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.7.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56681a03a6c66715d0576e2c135adffdbd3944789ea599160c75437c19044fd2 |
|
MD5 | 1608237ed0ca295dcf5fdba06f6295cf |
|
BLAKE2b-256 | 1bb199364cbd3343250582f4f292c24247a317b65d2f4211cbfed0d0b7e380fb |
File details
Details for the file octo_api_client-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: octo_api_client-1.1.7-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.7.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d28688a4714e1075e775c20df3a437bec7ed798ac0f13c07fd5b9ce123d8a28 |
|
MD5 | 383d22d1866a3824fc80271681625ea2 |
|
BLAKE2b-256 | 8a461a0d1f599fc06ca0228db0273a74db9f0c54b10bb849567b6c9b95632375 |