{"id":37075581,"url":"https://github.com/emergingtravel/papi-sdk-python","last_synced_at":"2026-01-14T08:53:45.836Z","repository":{"id":54731486,"uuid":"325250858","full_name":"EmergingTravel/papi-sdk-python","owner":"EmergingTravel","description":"Official Python SDK for ETG APIv3 (RateHawk.com, ZenHotels.com, B2B.Ostrovok.ru, Ostrovok.ru)","archived":false,"fork":false,"pushed_at":"2021-10-25T07:40:13.000Z","size":102,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T09:49:27.123Z","etag":null,"topics":["etg","pydantic","pypi","python","python-sdk","requests","sdk"],"latest_commit_sha":null,"homepage":"https://docs.emergingtravel.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmergingTravel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-29T10:02:44.000Z","updated_at":"2024-10-30T16:49:11.000Z","dependencies_parsed_at":"2022-08-14T01:10:12.776Z","dependency_job_id":null,"html_url":"https://github.com/EmergingTravel/papi-sdk-python","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/EmergingTravel/papi-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergingTravel%2Fpapi-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergingTravel%2Fpapi-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergingTravel%2Fpapi-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergingTravel%2Fpapi-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmergingTravel","download_url":"https://codeload.github.com/EmergingTravel/papi-sdk-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmergingTravel%2Fpapi-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etg","pydantic","pypi","python","python-sdk","requests","sdk"],"created_at":"2026-01-14T08:53:45.309Z","updated_at":"2026-01-14T08:53:45.822Z","avatar_url":"https://github.com/EmergingTravel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pAPI SDK\n\n![main workflow](https://github.com/emergingtravel/papi-sdk-python/workflows/Main/badge.svg)\n![pypi version](https://img.shields.io/pypi/v/papi-sdk.svg)\n![pypi downloads](https://img.shields.io/pypi/dm/papi-sdk.svg)\n![python versions](https://img.shields.io/pypi/pyversions/papi-sdk.svg)\n![license](https://img.shields.io/github/license/emergingtravel/papi-sdk-python.svg)\n\npAPI SDK is a python SDK for [ETG APIv3](https://docs.emergingtravel.com/).\nThe abbreviation \"pAPI\" stands for \"Partner API\". \nTo know more about the benefits of our API integration or to sign up please check our [website](https://www.ratehawk.com/lp/en/API).\n\n## Requirements\n\n- Python 3.6+\n- requests\n- pydantic\n\n## Installation\n\n```\npip install papi-sdk\n```\n\n## Quickstart\n\nTo start using ETG APIv3 you need a key, which you received after registration. \nA key is a combination of an `id` and `uuid`. These are passed into each request as a Basic Auth header after initialization.\n`APIv3` supports all arguments provided by [requests](https://github.com/psf/requests), ex. `timeout`.\n\n```python\nfrom papi_sdk import APIv3\n\n\npapi = APIv3(key='1000:022a2cf1-d279-02f3-9c3c-596aa09b827b', timeout=15)\n```\n\nThen you can use all available methods. Say you want to check an overview of the available methods (which is `api/b2b/v3/overview` endpoint), you do:\n\n```python\noverview = papi.overview(timeout=1)\n```\n\nAnother example is downloading hotels dump with `api/b2b/v3/hotel/info/dump` endpoint:\n\n```python\ndata = HotelInfoDumpRequest(language='ru')\ndump = papi.get_hotel_info_dump(data=data)\nprint(dump.data.url)\n```\n\nNote: if you don't provide your headers and specifically your `User-Agent` in requests options then it will be automatically added, ex. `papi-sdk/v1.0.2 requests/2.25.1 (python/3.8)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergingtravel%2Fpapi-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femergingtravel%2Fpapi-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femergingtravel%2Fpapi-sdk-python/lists"}