# PyFarmer
## Introduction
> A farmer for your [Destructive Farm](https://github.com/DestructiveVoice/DestructiveFarm)
>
> <img src="https://i.kym-cdn.com/entries/icons/original/000/028/021/work.jpg" style="zoom: 50%;" />
>
> You can read the documentation at [rikyiso01.github.io/pyfarmer](https://rikyiso01.github.io/pyfarmer)
## Code Samples
> ```python
> 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:
>
> ```bash
> pip install pyfarmer
> ```
Raw data
{
"_id": null,
"home_page": "https://github.com/rikyiso01/pyfarmer",
"name": "pyfarmer",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "destructivefarm,attack-defense-ctf",
"author": "rikyiso01",
"author_email": "riky.isola@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/5d/2f/74333a6bc7bc71b260ca0f20fd252501d55812aeaf44c6c720fdb2b2c4cd/pyfarmer-2.0.1.tar.gz",
"platform": null,
"description": "# PyFarmer\n\n## Introduction\n\n> A farmer for your [Destructive Farm](https://github.com/DestructiveVoice/DestructiveFarm)\n>\n> <img src=\"https://i.kym-cdn.com/entries/icons/original/000/028/021/work.jpg\" style=\"zoom: 50%;\" />\n>\n> You can read the documentation at [rikyiso01.github.io/pyfarmer](https://rikyiso01.github.io/pyfarmer)\n\n## Code Samples\n\n> ```python\n> from httpx import post\n> from pyfarmer import farm, print_exception\n>\n>\n> def main(ip: str):\n> for flag_id in [\"a\", \"b\", \"c\"]:\n> try:\n> r = post(\n> f\"http://{ip}:5000/api/products/{flag_id}/download?a=/api/register\"\n> )\n> flag = r.text\n> yield flag\n> except:\n> print_exception()\n>\n>\n> if __name__ == \"__main__\":\n> farm(main)\n> ```\n\n## Installation\n\n> Install locally with:\n>\n> ```bash\n> pip install pyfarmer\n> ```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A farmer for your Destructive Farm",
"version": "2.0.1",
"project_urls": {
"Documentation": "https://rikyiso01.github.io/pyfarmer",
"Homepage": "https://github.com/rikyiso01/pyfarmer",
"Repository": "https://github.com/rikyiso01/pyfarmer"
},
"split_keywords": [
"destructivefarm",
"attack-defense-ctf"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e7eabbfc8c7a88d02414456596cd38c294e8e875bdaa5867c69ee8126624eb73",
"md5": "d13fe19320d516bc254aa84fb7517534",
"sha256": "d6934404492157029b33980d85d29904df3ddbfde99edd156947c81108841c45"
},
"downloads": -1,
"filename": "pyfarmer-2.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d13fe19320d516bc254aa84fb7517534",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 11037,
"upload_time": "2023-07-22T07:40:10",
"upload_time_iso_8601": "2023-07-22T07:40:10.619712Z",
"url": "https://files.pythonhosted.org/packages/e7/ea/bbfc8c7a88d02414456596cd38c294e8e875bdaa5867c69ee8126624eb73/pyfarmer-2.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5d2f74333a6bc7bc71b260ca0f20fd252501d55812aeaf44c6c720fdb2b2c4cd",
"md5": "2b0144194e3311dfb322367faaeb889a",
"sha256": "e1355c5ecf67a079b836c75638b696b0a04c46676dfaebe2e5233e92ae1357be"
},
"downloads": -1,
"filename": "pyfarmer-2.0.1.tar.gz",
"has_sig": false,
"md5_digest": "2b0144194e3311dfb322367faaeb889a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 9599,
"upload_time": "2023-07-22T07:40:11",
"upload_time_iso_8601": "2023-07-22T07:40:11.546523Z",
"url": "https://files.pythonhosted.org/packages/5d/2f/74333a6bc7bc71b260ca0f20fd252501d55812aeaf44c6c720fdb2b2c4cd/pyfarmer-2.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-22 07:40:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rikyiso01",
"github_project": "pyfarmer",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyfarmer"
}