{"id":42453737,"url":"https://github.com/laminko/lycan","last_synced_at":"2026-01-28T08:52:48.151Z","repository":{"id":47179177,"uuid":"263867528","full_name":"laminko/lycan","owner":"laminko","description":"A simple load testing script which uses YAML as taskset.","archived":false,"fork":false,"pushed_at":"2024-07-03T09:41:09.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-13T15:33:21.525Z","etag":null,"topics":["load-testing","locust","python","python3","pyyaml","yaml"],"latest_commit_sha":null,"homepage":"https://github.com/laminko/lycan","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laminko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-14T09:10:45.000Z","updated_at":"2024-07-03T09:41:09.000Z","dependencies_parsed_at":"2022-09-21T15:00:27.124Z","dependency_job_id":null,"html_url":"https://github.com/laminko/lycan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laminko/lycan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminko%2Flycan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminko%2Flycan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminko%2Flycan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminko%2Flycan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laminko","download_url":"https://codeload.github.com/laminko/lycan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laminko%2Flycan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28842940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["load-testing","locust","python","python3","pyyaml","yaml"],"created_at":"2026-01-28T08:52:47.575Z","updated_at":"2026-01-28T08:52:48.145Z","avatar_url":"https://github.com/laminko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [lycan](https://en.wikipedia.org/wiki/Lycan): loadtester script\n\nA simple load testing script using [locust](https://locust.io/) and [pyyaml](https://pyyaml.org/). The story behind this is Ko [Setkyar](https://github.com/setkyar) wants to test some APIs and not-so-complex and light weight solution. I found locust but tasks are defined in python. To overcome this, I create this python wrapper which generates `HttpLocust` and `TaskSet` classes from `yaml` file at runtime.\n\n## Installation\n\nFirst, a python environment or python 3.6+  is required. To resolve this, I would like to recommend **miniconda**.\nTo install **miniconda**, please refer to https://docs.conda.io/en/latest/miniconda.html.\n\n### Requirements\n\n - python 3.6+\n\n### Dependencies\n\nInstall required python libraries.\n\n```bash\ncd /path/to/lycan\n# NOTE:\n# To create python 3.6 environment,\n# $ conda create -n \u003cenv-name\u003e python=3.6\n#\n# To activate environment, if not yet.\n# $ conda activate \u003cenv-name\u003e\n\n# Then, install required dependencies\n$ pip install -r requirements.txt\n```\n\n## Usage\n\nFirst, create a `yaml` file inside `rules` directory.\n\nRule format is as follows:\n\n```yaml\nname: TestThisHost\nproto: http\nhost: localhost\nport: 8000\ntasks:\n  - endpoint: /api/v1/users/\n    method: POST\n    # To define Headers\n    headers:\n      Content-Type: application/json\n      ...\n    data:\n      name: kyawkyaw\n      address: Yangon\n  - endpoint: /api/v1/users/1\n    method: GET\n    headers:\n      Content-Type: application/json\n  - ...\n```\n\nThen, run following command:\n\n```bash\n$ locust -f loadtester.py\n```\n\nTo start load testing, please open `http://localhost:8089` in browser.\n\nRef: https://docs.locust.io/en/stable/quickstart.html#open-up-locust-s-web-interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaminko%2Flycan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaminko%2Flycan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaminko%2Flycan/lists"}