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.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for octo_api_client-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f0f7e03d9924758f036f19b43218e130ca33b02c6cd9a76e42a39f9045a1b9 |
|
MD5 | b24af7ae608cb1607e76d3b6f68c163d |
|
BLAKE2b-256 | 395cb1bd51b38368f6dbd25bdf2e2a9eed82c94daf079624e3e2b9240d1df30f |