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.5.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for octo_api_client-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169cc87ab087c41d326007b45590381fa1c20ed7d3032869ea770ab205c2bd87 |
|
MD5 | 820200dea7d1d95fc67104cb06c9f9a1 |
|
BLAKE2b-256 | a8b3f4005fdf7321dfb4176eb4862dfee774e60c37dccc434e3387aac16538a7 |