Skip to main content

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


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.4.tar.gz (11.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phoenix_bot_api-1.0.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file phoenix_bot_api-1.0.4.tar.gz.

File metadata

  • Download URL: phoenix_bot_api-1.0.4.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

Hashes for phoenix_bot_api-1.0.4.tar.gz
Algorithm Hash digest
SHA256 37681d7822dcbddcf615b66e73f285f48b4bf79b8f2c554f0e09a62f78fea96b
MD5 4b92e26b66c0bbc7a35506525adcddbc
BLAKE2b-256 177a164e5baf96e623f53846d8d846ee9a6e810b784c02d1806468466b4cb7b4

See more details on using hashes here.

File details

Details for the file phoenix_bot_api-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for phoenix_bot_api-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fa9ea0bc0fc90be0b3c0bac66ac0a6f70ccba86233310244711e8a79bbd427
MD5 d7ed430e40ee47b70bf9a8e8a902e406
BLAKE2b-256 f305e5b4d85d2d757704c10658a9bee2d0b56abfc0708a0011b081f147cc1a5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page