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.0.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.0.tar.gz.
File metadata
- Download URL: phoenix_bot_api-1.0.0.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 |
1fd82075e31b470e8ffe984279e3e6b46c26935753d7ed270efca86945e22db3
|
|
| MD5 |
201f9c28f63fa00f4fd92e86bc358e6f
|
|
| BLAKE2b-256 |
8ad73ab506ae2774e2e5cadf270e29de2903043ce2ac20c3e3d80c3de3edef14
|
File details
Details for the file phoenix_bot_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: phoenix_bot_api-1.0.0-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 |
3529bd02a63420148b567a3e521f010aa223e9633d7eaa4f2d6567e4b40dd105
|
|
| MD5 |
f8a576af102eda6ebf51e088b06fdace
|
|
| BLAKE2b-256 |
9231d3275d215eeb9b23b2c5fde3d7aeb338dafc938001f099e76364a3387cf7
|