A farmer for your Destructive Farm
Project description
PyFarmer
Introduction
A farmer for your Destructive Farm
You can read the documentation at rikyiso01.github.io/pyfarmer
Code Samples
from httpx import post from pyfarmer import farm, print_exception def main(ip: str): for flag_id in ["a", "b", "c"]: try: r = post( f"http://{ip}:5000/api/products/{flag_id}/download?a=/api/register" ) flag = r.text yield flag except: print_exception() if __name__ == "__main__": farm(main)
Installation
Install locally with:
pip install pyfarmer
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
pyfarmer-2.0.1.tar.gz
(9.6 kB
view details)
Built Distribution
pyfarmer-2.0.1-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file pyfarmer-2.0.1.tar.gz
.
File metadata
- Download URL: pyfarmer-2.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1355c5ecf67a079b836c75638b696b0a04c46676dfaebe2e5233e92ae1357be |
|
MD5 | 2b0144194e3311dfb322367faaeb889a |
|
BLAKE2b-256 | 5d2f74333a6bc7bc71b260ca0f20fd252501d55812aeaf44c6c720fdb2b2c4cd |
File details
Details for the file pyfarmer-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyfarmer-2.0.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6934404492157029b33980d85d29904df3ddbfde99edd156947c81108841c45 |
|
MD5 | d13fe19320d516bc254aa84fb7517534 |
|
BLAKE2b-256 | e7eabbfc8c7a88d02414456596cd38c294e8e875bdaa5867c69ee8126624eb73 |