Skip to main content

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


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.7.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

octo_api_client-1.1.7-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page