Installation
pip install fl-api-requester
Usage
from fl_api_requester import *
connection_data = FLAPIConnectionData()
connection_data.api_uri = "http://localhost:8080"
connection_data.set_credentials("username", "password")
try:
api_requester = FLAPIRequester(connection_data)
# Login
api_requester.login()
# Get some data
player = api_requester.get_player("Galactifer")
alliance = api_requester.get_alliance("France Leader")
print(player)
print(alliance)
print(len(alliance.players))
# Get a War attack
attack = api_requester.get_player_attacks("Galactifer")
print(f"Galactifer attacked on {attack[0].timestamp_to_datetime():%d/%m/%Y at %H:%M:%S}")
except APIErrorException as e:
print(e.api_error)
Metadata
Release files for fl-api-requester 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fl-api-requester-1.0.11.tar.gz | 9.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fl_api_requester-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.4 kB
Release files / fl-api-requester-1.0.11.tar.gz
| Download URL | fl-api-requester-1.0.11.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2069961888c25716c8bbe569ee8f8dbcf18b8c92bebd22546654c58c092e1c2
|
|
BLAKE2b-256 checksum How to use checksums |
8658e717d614a96efa0a42311fbabebac6813b6b93bef4c28e295d2df05a8e75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / fl_api_requester-1.0.11-py3-none-any.whl
| Download URL | fl_api_requester-1.0.11-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cacbd76ae78af8afe15c02c9551c0e8b853e5cf233d0a63e42617887cd90fe55
|
|
BLAKE2b-256 checksum How to use checksums |
56c7194d0d6d9343c1dae9d4c6e5c12da1951ae9680978ff0eac539399f5041c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for fl-api-requester 1.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.