Python wrapper for the YourSuper API
Project description
PythonYourSuperAPI
Python wrapper for the Australian Taxation Office YourSuper API
Installation
pip install YourSuperAPI
Available Options
amountRange (default=9999)
Indicate how many results to return accepts integer between 1 and 9999 or array of two values to indicate range to return.
age (default=0)
Positive integer less than 100 to set account holder age.
balance (default=50000)
Positive Integer or Float value to set account balance, used to determine fees for each product.
private (default=False)
Boolean value to determine if private super funds will be returned.
Examples
Fetch all products
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data()
print(data)
Fetch first 5 products
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(amountRange=5)
print(data)
Fetch 10th - 20th products
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(amountRange=[10,20])
print(data)
Fetch with custom account balance ($1000.56)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(balance=1000.56)
print(data)
Fetch with custom account holder age (42 years)
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(age=42)
print(data)
Fetch without private funds
from YourSuperAPI import YourSuperAPI
data = YourSuperAPI.get_data(private=True)
print(data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
YourSuperAPI-0.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for YourSuperAPI-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d8d047d6aeffbaa235d0e7372c57e32a8f90a9324be163c79f6f6ade627f42 |
|
MD5 | 1e12aad7ed02275e5b7ced30515617cf |
|
BLAKE2b-256 | 0dc33cdbed17f6c83c29ff26831eff9d2462527a1d1d5f8b98ce67094abd0992 |