Setup your local environment

Before installing the library, create a virtual environment in your project directory through the steps below:
This guide uses virtualenv to create a virtual environment.
  1. Run the command below in your terminal to create a virtual environment
virtualenv env
  1. Activate the virtual environment

Windows - using command prompt

.\env\Scripts\activate\
Unix/macOS using bash
source ./env/bin/activate

Install the library

Run the command below to install abstract-python:
pip install abstract-python

How to use the library

If your app requires two or more of the supported APIs, it is recommended to import the entire library as seen below:
from abstract_python import *

vatAPI = VatAPI()
The example above uses the helper class for the VAT API.
For single API usage, the following format is recommended:
from abstract_python import VatAPI

vatAPI = VatAPI()