Asynchronous Python client for Flitsmeister
Project description
Flitsmeister: python-fm
Asyncio package to communicate with Flitsmeister This package is aimed to get basic information about your Flitsmeister account.
❗This is an unofficial repo and is not created, maintained or in any sense linked to Flitsmeister. Use at your own risk!
Usage
Instantiate the FM class and access the data.
Installation
python3 -m pip install python-fm
Example
import asyncio
from flitsmeister import FM
from flitsmeister.models import Auth
async def main():
async with FM() as api:
auth = await api.login(USERNAME, PASSWORD)
# - Persist auth in a file or database
# - Create a new auth object from the persisted data
auth = Auth(session_token=SESSION_TOKEN, access_token=ACCESS_TOKEN)
async with FM(auth=auth) as api:
print(await api.user())
print(await api.statistics())
if __name__ == "__main__":
asyncio.run(main())
Development and contribution
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Feel free to take a look a the open issues if you like to contribute.
Requirements
- Python 3.9 or higher
- Poetry
Installation and setup
poetry install
poetry shell
pre-commit install
You can now start developing. The pre-commit hooks will run automatically when you commit your changes. Please note that a failed pre-commit hook will prevent you from committing your changes. This is to make sure that the code is formatted correctly and that the tests pass.
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 python_fm-1.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddfc064df2d7c7f9ce0ccbbff37ea76286c5741887fb6cba36257445fd90eb32 |
|
MD5 | f7c60a1780a8d8ec0246d55b6c7d0703 |
|
BLAKE2b-256 | 78e51cbbb3856f63d45d7f47865b912adb05a0f0ba892be82c8666bf0c55a32a |