Skip to content

Creatrix-Net/fluxpoint.py

fluxpoint.py

Discord server invitePyPI version infoPyPI 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

fromfluxpointimportFluxpointClientimportasyncioimportsys# setting up the fluxpoint client handlera=FluxpointClient(api_token="get api token from fluxpoint.dev/api/access") # setting up the windows loop policy according to the operating systemifsys.platform.startswith('win32') orsys.platform.startswith('cygwin'): asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # getting the random dadjokeprint(asyncio.run(a.dadjoke()))

You can find more examples in the examples directory.

Links

About

Async python wrapper for the fluxpoint api

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages