Python client for Phoenix API
Project description
Phoenix API
This is the Python client for the Phoenix API.
Installation
You can install the package using pip:
pip install phoenix-bot-api
Usage
Here is a simple example of how to use the Phoenix API client:
from phoenixapi.finder import create_api_from_name
from phoenixapi.api import PhoenixApi
from phoenixapi.clients.player_manager import PlayerObjManager
def run():
CHAR_NAME = "Insert your character name here"
client: PhoenixApi = create_api_from_name(CHAR_NAME)
player_obj_manager: PlayerObjManager = client.player_obj_manager.get_player_obj_manager()
name = player_obj_manager["player"]["name"]
player_id = player_obj_manager["id"]
family = player_obj_manager["player"]["family"]
x = player_obj_manager['position']['x']
y = player_obj_manager['position']['y']
print(f"Name:\t\t{name}")
print(f"ID:\t\t{player_id}")
print(f"Family:\t\t{family}")
print(f"Position:\t({x}, {y})")
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
phoenix_bot_api-1.0.2.tar.gz
(11.0 MB
view details)
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 phoenix_bot_api-1.0.2.tar.gz.
File metadata
- Download URL: phoenix_bot_api-1.0.2.tar.gz
- Upload date:
- Size: 11.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
519273db6bcc85e8567edeabf551b46fbad883642ecd573a47cea81e6b7855d4
|
|
| MD5 |
732d77c0ac7fdccd9a60f469097587a5
|
|
| BLAKE2b-256 |
90298d30faeb83fc9568efa5cab15a1398fb1559fad1d31b7e6bab53221bd331
|
File details
Details for the file phoenix_bot_api-1.0.2-py3-none-any.whl.
File metadata
- Download URL: phoenix_bot_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa09fcb263586c95cc47b467878ae9f86bc09508c015bde59cea4277e7c81d7
|
|
| MD5 |
cf2285dde1395b578a2714ae174df8c9
|
|
| BLAKE2b-256 |
21c053043a0a051440e1c967d602f1338643683a268d9e34cfca0471b66d393e
|