Skip to main content

Lifter API Wrapper

Lint Docs Code style: black Latest Version Format Python Versions Implementation License

This is a wrapper for making calls to Lifter API.

Getting Started

You can install this package using pip or your favourite package manager, e.g. pipenv, poetry.

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_TOKENautomatically. Otherwise you might have to use a library like dotenv.

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"))

Documentation

Comprehensive documentation can be found here.

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 ensure the locally hosted API will be used and not the live API.

The default URL for the locally hosted API is http://localhost:8000. Alternatively, you can define the url to your liking: LifterAPI(url="http://localhost:8001").

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

Please checkout CONTRIBUTING.md if you interested in contributing.

Release files for lifter-api-wrapper 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lifter-api-wrapper 0.4.0
File Size Uploaded
lifter_api_wrapper-0.4.0.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lifter-api-wrapper 0.4.0
File Interpreter ABI Platform
lifter_api_wrapper-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.1 kB

Release files / lifter_api_wrapper-0.4.0.tar.gz

Download URL lifter_api_wrapper-0.4.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab726dce2eba7478bf769340eeced756e2b9bddbae0849689085bf2e512f2887
BLAKE2b-256 checksum
How to use checksums
e1499172163037a0c45486d2eeab0f4c52719d96ea9d71e5be912aa03bd1ed0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / lifter_api_wrapper-0.4.0-py3-none-any.whl

Download URL lifter_api_wrapper-0.4.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19a7330e387590b414a5027c69c6735dd52844f30d5675cce43161b286fd4c34
BLAKE2b-256 checksum
How to use checksums
93fdd48793a938edac61e6fc83e199a26ad55f50faa239a00cc8992cba71f56e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page