TravelPerk OpenAPI & Python

In the same way I wrote a PHP wrapper for the TravelPerk API I've also written it for Python.

GitHub - namelivia/travelperk-http-python: Python SDK for accessing the TravelPerk API
Python SDK for accessing the TravelPerk API . Contribute to namelivia/travelperk-http-python development by creating an account on GitHub.

By using these libraries an application designers can skip most of the official documentation, forget about request headers or parsing json responses and instead directly ask for what they want in their code using an expressive syntax, for instance:

travelperk.expenses()
  .invoices()
  .query()
  .set_customer_country_name('Spain')
  .set_status('paid')
  .set_limit(10)
  .get()

Will return a filtered list of invoices, that would be instances of the Invoice class, so if you are using a smart IDE you'll also get auto completion while navigating these resources.

If you are planning to use the TravelPerk API on your Python project you can get it from:

travelperk-http-python
Python SDK for accessing the TravelPerk API