A Python wrapper for the Fluxpoint API
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
A python pakage to post the stats to some known botlists.
Key Features
Modern Pythonic API using async and await.
Proper rate limit handling.
Optimised in both speed and memory.
Installing
Python 3.8 or higher is required
To install the library, you can just run the following command:
# Linux/macOS
python3 -m pip install -U statspost.py
# Windows
py -3 -m pip install -U statspost.py
To speedup the api wrapper you should run the following command:
# Linux/macOS
python3 -m pip install -U "statspost.py[speed]"
# Windows
py -3 -m pip install -U statspost.py[speed]
To install the development version, do the following:
$ git clone https://github.com/Dhruvacube/statspost.py
$ cd statspost.py
$ python3 -m pip install -U .[speed]
Quick Example
from statspost import StatsPost
import asyncio
import sys
#defining run function
run = asyncio.get_event_loop().run_until_complete
# setting up the statpost client handler
a=StatsPost(bot_id=935242576343224352,servers=80)
a.add_botlist('topgg','topgg_token')
# setting up the windows loop policy according to the operating system
if sys.platform.startswith(('win32', 'cygwin')):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
# Post stats, and return the data
print(run(a.post_stats(return_post_data=True)))
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 statspost.py-1.0.1.tar.gz.
File metadata
- Download URL: statspost.py-1.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eec682e335aaa96f2362845ea86a186cc42c5bc83c07fab04490536f6dd3769a
|
|
| MD5 |
6fa775b50f2658715ce7e8c7935e1d57
|
|
| BLAKE2b-256 |
68213bcaad8f78e109aaac6db66933405248b44933aa012a453d6d1d3d3af4a5
|
File details
Details for the file statspost.py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: statspost.py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299c8870b171469d394a5ebbf9cc74964a0f7fe66b03f20875c4983a9f6ee96b
|
|
| MD5 |
1ba8fd32e3d7c7b360acac7de412efc3
|
|
| BLAKE2b-256 |
e0aaefa857f0caf672f515487e8e63e1caf776a7b4424d7d121eb79cd0c20370
|