A wrapper for lifter_api
Project description
Lifter API Wrapper
This is a wrapper written in python in order to access Lifter API.
Installing and Setting Up
You can install this package using pip
or your favourite package manager, e.g. pipenv
, poetry
, conda
.
pip install lifter-api-wrapper
# example using pipenv
pipenv install lifter-api-wrapper
You will also need an API key to have complete functionality. I suggest storing this as a .env
file, and remember to add this to your .gitignore
so you don't share this to a public repository by accident.
# .env
API_TOKEN=KeyGoesHere
If you use pipenv
, then the key is loaded as a environment variable API_TOKEN
automatically. Otherwise you might have to use a library like dotenv
.
Documentation
Comprehensive documentation can be found here.
You can simple create an object like so:
from lifter_api import LifterAPI
import os
lifter_api = LifterAPI(auth_token=os.getenv("API_TOKEN"))
# this will use default version, v1
# you can specify the version
lifter_api_version1 = LifterAPI(version="v1", auth_token=os.getenv("API_TOKEN"))
For Local Development
For local development, you will need to clone the API from here.
You will need to set a environment variable, LOCAL_DEVELOPMENT=1
and it's a good idea to put this in the .env
file. This will means the localhost API will be hit and not the live API.
git clone https://github.com/WeightliftingNZ/lifter-api
cd lifter-api
make run
This will run a server and allow you to run tests for this wrapper.
Contribution
I'm a one man show at the moment. This is still in development. So, I will be very conservative for now.
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
Built Distribution
Hashes for lifter_api_wrapper-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5293d27f50d2a6038cc79c96292bec38b83e4e5239c048359f6cf84a9d883f6e |
|
MD5 | 604038b681ead23f31351a2d632c2d2e |
|
BLAKE2b-256 | e7f3ba479fd48dae9df3004a81d5df8141ff39d1e7073f11a67650f325a43df5 |