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.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for octo_api_client-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfda3d0d153b76494499aa30229b0c6a4df6e7f875d38bff3fc928a527d356f |
|
MD5 | 7e9b61c0288894ef7b63a0281de293c8 |
|
BLAKE2b-256 | 1af43fb1d7936dc1db7be09e029eb38134a5f299994d46dd5a9af86ad2c10bfc |