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.3.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for octo_api_client-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c4d58f188d34b70c1ae373aa3dd1fee3def2c2098ff4dff8df80200ec79a8b |
|
MD5 | 8e9df669b841f5fec6040849a640a04d |
|
BLAKE2b-256 | f3a2bc310e2b874007aebc5be722f6fd6067946d8585e6de56e27191f06eec93 |