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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file octo_api_client-1.1.7.tar.gz.

File metadata

  • Download URL: octo_api_client-1.1.7.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.7.17 Linux/5.15.0-1041-azure

File hashes

Hashes for octo_api_client-1.1.7.tar.gz
Algorithm Hash digest
SHA256 56681a03a6c66715d0576e2c135adffdbd3944789ea599160c75437c19044fd2
MD5 1608237ed0ca295dcf5fdba06f6295cf
BLAKE2b-256 1bb199364cbd3343250582f4f292c24247a317b65d2f4211cbfed0d0b7e380fb

See more details on using hashes here.

File details

Details for the file octo_api_client-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: octo_api_client-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.7.17 Linux/5.15.0-1041-azure

File hashes

Hashes for octo_api_client-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8d28688a4714e1075e775c20df3a437bec7ed798ac0f13c07fd5b9ce123d8a28
MD5 383d22d1866a3824fc80271681625ea2
BLAKE2b-256 8a461a0d1f599fc06ca0228db0273a74db9f0c54b10bb849567b6c9b95632375

See more details on using hashes here.

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