Skip to main content

A Python wrapper for the Fluxpoint API

Project description

Discord server invite PyPI version info PyPI supported Python versions

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.

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

fluxpoint_py-0.2.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxpoint_py-0.2.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

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

Hashes for fluxpoint_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ef40378983b69d98ea8c1e383a9e42423f6f4f1c8c4800afa69be226dc4c141d
MD5 5ce0774be25ae6593d5805df2a512b0f
BLAKE2b-256 69e5fb5daee79ee0c68451d738bc2d64c28c21da9c3c0e2328f340fdeba1d331

See more details on using hashes here.

Provenance

The following attestation bundles were made for fluxpoint_py-0.2.0.tar.gz:

Publisher: python-publish.yml on Creatrix-Net/fluxpoint.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fluxpoint_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20c5e0ed84fc099e999f0f956beb97c736e199a9b39c3afb1609d1122927a38c
MD5 6e93245856bdfb4a29f1169a04216548
BLAKE2b-256 ff154e2701281aa27cc441da592f2560621bd62bd140b04ab28e7f6456c5ccdd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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