Name | urt30arcon JSON |
Version |
1.2.3
JSON |
| download |
home_page | None |
Summary | Quake3 Async RCON Client |
upload_time | 2024-12-27 16:00:43 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.12 |
license | None |
keywords |
quake3
rcon
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Quake3 Async RCON Client
## Requirements
- Game: [Urban Terror 4.3.4](https://www.urbanterror.info/)
- Python: 3.12+
## Usage
```python
import asyncio
import os
from urt30arcon import AsyncRconClient
async def async_main() -> None:
rcon_host = os.getenv("RCON_HOST", "127.0.0.1")
rcon_port = int(os.getenv("RCON_PORT", "27960"))
rcon_pass = os.environ["RCON_PASS"]
client = await AsyncRconClient.create_client(
host=rcon_host,
port=rcon_port,
password=rcon_pass,
)
await client.bigtext("hello world")
game = await client.game_info()
if game.players:
first_player = game.players[0]
await client.slap(slot=first_player.slot)
if __name__ == '__main__':
asyncio.run(async_main())
```
Raw data
{
"_id": null,
"home_page": null,
"name": "urt30arcon",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "Quake3, RCON",
"author": null,
"author_email": "Urt Thirtyplus <urt30plus@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/be/e8/a98dd249e54176f9ac2e3045fa78c423e394d1960318756c2ba4cd6caf1f/urt30arcon-1.2.3.tar.gz",
"platform": null,
"description": "# Quake3 Async RCON Client\n\n\n## Requirements\n\n- Game: [Urban Terror 4.3.4](https://www.urbanterror.info/)\n- Python: 3.12+\n\n## Usage\n\n```python\nimport asyncio\nimport os\n\nfrom urt30arcon import AsyncRconClient\n\n\nasync def async_main() -> None:\n rcon_host = os.getenv(\"RCON_HOST\", \"127.0.0.1\")\n rcon_port = int(os.getenv(\"RCON_PORT\", \"27960\"))\n rcon_pass = os.environ[\"RCON_PASS\"]\n\n client = await AsyncRconClient.create_client(\n host=rcon_host,\n port=rcon_port,\n password=rcon_pass,\n )\n\n await client.bigtext(\"hello world\")\n game = await client.game_info()\n if game.players:\n first_player = game.players[0]\n await client.slap(slot=first_player.slot)\n\n\nif __name__ == '__main__':\n asyncio.run(async_main())\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Quake3 Async RCON Client",
"version": "1.2.3",
"project_urls": {
"Home": "https://github.com/urt30plus/urt30arcon",
"Source": "https://github.com/urt30plus/urt30arcon"
},
"split_keywords": [
"quake3",
" rcon"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "76faec6ffa801699b92b04cd2fc4f2007247d08b8bceeff3a8fbbe609be0d735",
"md5": "29648202b5b5821ed8cfe7cb0d5e404e",
"sha256": "e3ec592e7dead5f7f7e18d293fed13e575446ef12d30060a752ffe6b68e82c81"
},
"downloads": -1,
"filename": "urt30arcon-1.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "29648202b5b5821ed8cfe7cb0d5e404e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 12629,
"upload_time": "2024-12-27T16:00:40",
"upload_time_iso_8601": "2024-12-27T16:00:40.362409Z",
"url": "https://files.pythonhosted.org/packages/76/fa/ec6ffa801699b92b04cd2fc4f2007247d08b8bceeff3a8fbbe609be0d735/urt30arcon-1.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "bee8a98dd249e54176f9ac2e3045fa78c423e394d1960318756c2ba4cd6caf1f",
"md5": "0e69ad1b52d2a4edb428b852af25a60b",
"sha256": "5117a128a46e578676a657333f551ffd9184ec597e1603b3a6eda6ad0e421130"
},
"downloads": -1,
"filename": "urt30arcon-1.2.3.tar.gz",
"has_sig": false,
"md5_digest": "0e69ad1b52d2a4edb428b852af25a60b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 17384,
"upload_time": "2024-12-27T16:00:43",
"upload_time_iso_8601": "2024-12-27T16:00:43.014377Z",
"url": "https://files.pythonhosted.org/packages/be/e8/a98dd249e54176f9ac2e3045fa78c423e394d1960318756c2ba4cd6caf1f/urt30arcon-1.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-27 16:00:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "urt30plus",
"github_project": "urt30arcon",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "urt30arcon"
}