##### Lightweight client library for writing agario bots in Python
##### socketio server: https://gitlab.com/unidev/agario
##### installation: pip install agario-bot
#### Examples
###### Simplest cycle bot
```python
from agario_bot.bot import BotClient
b = BotClient('prettygoo', wait_rate=0.1)
surroundings = b.get_visible_surroundings()
while True:
b.move_left()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_up()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_right()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_down()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
```
###### Scary bot, just runs away from everyone one the gameboard
```python
from agario_bot.examples.scary_bot import run_scary_bot
run_scary_bot()
```
##### BotClient arguments
- float:speed_rate - time to execute movement, 1 - one second
- float:wait_rate - time to wait before server response on client emitted socket
- list:cells - players
- mass - will be removed
- string:host - default localhost (0.0.0.0 will not work on Windows, 127.0.0.1 is highly likely not to work as well)
- int:port - must be None for real server deployment
Metadata
Release files for agario-bot 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agario-bot-0.7.tar.gz | 2.7 kB | Without provenance | Details |
Release files / agario-bot-0.7.tar.gz
| Download URL | agario-bot-0.7.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c55d26db2658757f314935d0d009791350dbdaf8c296680b76d89e15937c6341
|
|
BLAKE2b-256 checksum How to use checksums |
abdf6759c2cd429dafcdf49fa40e4a17a201418f4ad63e76b546b38c47e79fa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for agario-bot 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.