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.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for octo_api_client-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e060d9447e463b8409b545fca7dc683d8f5b608a8a1f3f8e90b7d123e4b54d21 |
|
MD5 | 57b3bc24456dfa6d1a4b82732a89e15a |
|
BLAKE2b-256 | bd7ecc03388061d6a0a2d52effc76efdb0bc0ef27f0867f9bfc7dc862f7efbfd |