FiveM-Api
Small API Wrapper for interacting with the FiveM API
How-to install :
pip install fivem
How-to use :
import fivem
server = fivem.getServer("88.214.59.183:30120")
print(server.players)
Display the number of players online on a server
fivem.getServer("ip-address:port") # default port is 30120
Returns a Server Class with those attributes:
players: [{
"endpoint"; string,
"id": int, // The server ID og the player
"identifiers": array, // Identifiers of the player
"name": string, // Username's player
"ping": int, // Le ping
}],
info: {
"enhancedHostSupport": boolean,
"icon": string, // Icon of the server (Base64)
"resources": array, // All started resources
"server": string, // FXServer's version (string format)
"vars": { // Some convars defined in server.cfg
"sv_enhancedHostSupport": boolean,
"sv_lan": boolean,
"sv_licenseKeyToken": string,
"sv_maxClients": int,
"sv_scriptHookAllowed": boolean,
"sv_hostname": string,
},
"version": int, // FXServer's version (numeric format)
},
name: string // Name of the server
This API is loosely based on the node.js Fivem API.
Metadata
Release files for fivem 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fivem-1.1-py3-none-any.whl | Python 3 | none | any | Details for fivem-1.1-py3-none-any.whl |
Release files / fivem-1.1-py3-none-any.whl
| Download URL | fivem-1.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bc7bcdf6536fa8c2b349174b83e0c9aa39f55d4a7c0dddeabaab9e137eda18b
|
|
BLAKE2b-256 checksum How to use checksums |
5721207a31e7ee84b8d826cf92e4c380092627094b1b2c50ed58154d75a4e929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for fivem 1.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.