Welcome to the documentation for abstract-python
library
The abstract-python
library is a Python SDK for APIs by AbstractAPI. It contains helper classes
that allow Python developers use these APIs without having to know the endpoints off-hand.
It also does type validation on each request data before they are sent to the API server. This helps to manage credits, as each request costs a credit - whether successful or otherwise.
This SDK currrently supports the Exchange Rates API, IP Geolocation API, and the VAT API.
This is not an official SDK by AbstractAPI but safe to use by anyone.
This page helps you to install the abstract-python
library
This page helps you to get api-keys to authenticate with the library
This API helps you to get real-time exchnage rates and much more between currencies
This API helps you to retrive user’s location data with their IP address.
This API helps you to calculate VAT fees for products in a country
This page helps you to gracefully handle errors without crashing your app.
All responses are returned as a JSON
object. Each response object has a status
field that contains the response status code. Below is a sample response object for a successful request:
The status
field is used to verify the request’s success.
Errors in abstract-python
are in two(2) variants.
A common exception you will encounter is the TypeError
, usually from wrong data types used in arguments.
These are JSON objects with detailed description of the error. They are often self-explanatory. Below is a sample error message: