A Python wrapper for the FIVEM API.
Project description
FiveM-Api
Small package in order to interact with FiveM API
How-to install :
pip install fivem
How-to use : Here is an example to display the number of players online on a server.
import fivem;
server = fivem.getServer("88.214.59.183:30120")
print(server.players)
fivem.getServer(ipServer:port)
(default port is 30120)
It 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.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
fivem-0.1-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file fivem-0.1-py3-none-any.whl
.
File metadata
- Download URL: fivem-0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0440b5788b262c26ddb73c8e1afce4e1c8e3c37c8321009b3eb0f1687e758326 |
|
MD5 | 4655a6d6c319a7d6c3c0011cc8f414b2 |
|
BLAKE2b-256 | ad79c64894450114c2b394de165263de82f387d7300de49b520fc3c79e5cfe9d |