Skip to main content

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 hashes)

Uploaded Source

Built Distribution

pyfarmer-2.0.1-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

Supported by

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