A Python wrapper for the Fluxpoint API
Project description
A modern, easy to use, feature-rich, and async ready API wrapper for Fluxpoint written in Python.
Key Features
Modern Pythonic API using async and await.
Proper rate limit handling.
Optimised in both speed and memory.
Installing
Python 3.9 or higher is required
To install the library, you can just run the following command:
# Linux/macOS
python3 -m pip install -U fluxpoint.py
# Windows
py -3 -m pip install -U fluxpoint.py
To speedup the api wrapper you should run the following command:
# Linux/macOS
python3 -m pip install -U "fluxpoint.py[speed]"
# Windows
py -3 -m pip install -U fluxpoint.py[speed]
To install the development version, do the following:
$ git clone https://github.com/Creatrix-Net/fluxpoint.py
$ cd fluxpoint.py
$ python3 -m pip install -U .[speed]
Quick Example
from fluxpoint import FluxpointClient
import asyncio
import sys
# setting up the fluxpoint client handler
a = FluxpointClient(api_token="get api token from fluxpoint.dev/api/access")
# setting up the windows loop policy according to the operating system
if sys.platform.startswith('win32') or sys.platform.startswith('cygwin'):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
# getting the random dadjoke
print(asyncio.run(a.dadjoke()))
You can find more examples in the examples directory.
Links
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fluxpoint_py-0.2.0.tar.gz.
File metadata
- Download URL: fluxpoint_py-0.2.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef40378983b69d98ea8c1e383a9e42423f6f4f1c8c4800afa69be226dc4c141d
|
|
| MD5 |
5ce0774be25ae6593d5805df2a512b0f
|
|
| BLAKE2b-256 |
69e5fb5daee79ee0c68451d738bc2d64c28c21da9c3c0e2328f340fdeba1d331
|
Provenance
The following attestation bundles were made for fluxpoint_py-0.2.0.tar.gz:
Publisher:
python-publish.yml on Creatrix-Net/fluxpoint.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluxpoint_py-0.2.0.tar.gz -
Subject digest:
ef40378983b69d98ea8c1e383a9e42423f6f4f1c8c4800afa69be226dc4c141d - Sigstore transparency entry: 264270270
- Sigstore integration time:
-
Permalink:
Creatrix-Net/fluxpoint.py@4a66aa059ab16d4f0a2fd43173e312615bf55a59 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Creatrix-Net
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4a66aa059ab16d4f0a2fd43173e312615bf55a59 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fluxpoint_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fluxpoint_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c5e0ed84fc099e999f0f956beb97c736e199a9b39c3afb1609d1122927a38c
|
|
| MD5 |
6e93245856bdfb4a29f1169a04216548
|
|
| BLAKE2b-256 |
ff154e2701281aa27cc441da592f2560621bd62bd140b04ab28e7f6456c5ccdd
|
Provenance
The following attestation bundles were made for fluxpoint_py-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on Creatrix-Net/fluxpoint.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluxpoint_py-0.2.0-py3-none-any.whl -
Subject digest:
20c5e0ed84fc099e999f0f956beb97c736e199a9b39c3afb1609d1122927a38c - Sigstore transparency entry: 264270271
- Sigstore integration time:
-
Permalink:
Creatrix-Net/fluxpoint.py@4a66aa059ab16d4f0a2fd43173e312615bf55a59 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Creatrix-Net
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4a66aa059ab16d4f0a2fd43173e312615bf55a59 -
Trigger Event:
release
-
Statement type: