Skip to main content

No project description provided

Project description

Electric Kiwi Python API

SemVer 0.5.4 PyPI Releases Supported Python Versions

What it does

Provide a simple API interface to the Electric Kiwi API and includes all endpoints available on the juice hacker site

What it does not

session management / token management, there are enough libraries and frameworks that already do this very well, no point reinventing the wheel

Authentication has been left to you.

How to use it

# set env for url
os.environ["ELECTRICKIWI_BASE_URL"] = "https://api-dev.electrickiwi.co.nz"
# your session with a authentication token
from electrickiwi_api import ElectricKiwiApi
from electrickiwi_api import HeaderAuthentication

api = ElectricKiwiApi(authentication_method=HeaderAuthentication(token="<secret_value>"))
# call it

renew the token with

api._authentication_method=HeaderAuthentication(token="<secret_value>")

TODO

renew session token by calling the token endpoint

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

electrickiwi-api-0.5.4.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

electrickiwi_api-0.5.4-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page