{"id":16445031,"url":"https://github.com/jaymon/herd","last_synced_at":"2025-09-01T19:39:01.884Z","repository":{"id":57437193,"uuid":"221353062","full_name":"Jaymon/herd","owner":"Jaymon","description":"Quickly and easily create AWS lambda python functions and make them available from a url","archived":false,"fork":false,"pushed_at":"2020-05-01T01:41:43.000Z","size":61,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T19:51:03.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaymon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-13T02:13:46.000Z","updated_at":"2020-05-01T01:41:45.000Z","dependencies_parsed_at":"2022-09-11T02:50:28.978Z","dependency_job_id":null,"html_url":"https://github.com/Jaymon/herd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jaymon/herd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Fherd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Fherd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Fherd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Fherd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaymon","download_url":"https://codeload.github.com/Jaymon/herd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Fherd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273182205,"owners_count":25059809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T09:42:57.303Z","updated_at":"2025-09-01T19:39:01.837Z","avatar_url":"https://github.com/Jaymon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Herd\n\nQuickly and easily create [AWS lambda](https://aws.amazon.com/lambda/) python functions and make them available from a url.\n\n## 1 Minute getting started\n\n### Install herd\n\n    $ pip install herd\n    \n\n### Create a lambda file\n\nCreate a python file:\n\n    $ touch foo.py\n    \nand then edit `foo.py` to add a lambda function:\n\n```python\n# foo.py\n\nimport json\n\ndef handler(event, context):\n    \"\"\"This is the description of the lambda function that will show up in AWS console\"\"\"\n    return {\n        'statusCode': 200,\n        'body': json.dumps({'query_string': event[\"queryStringParameters\"]}),\n    }\n```\n\n### Set your amazon environment\n\nYou should set a few environment variables:\n\n```\nexport AWS_ACCESS_KEY_ID=...\nexport AWS_SECRET_ACCESS_KEY=...\nexport AWS_DEFAULT_REGION=\"us-west-1\"\n```\n\n### Upload your function using herd\n\n    $ herd function-add foo.py\n    Function foo available at url: https://XXXXXXXXXXX.execute-api.us-west-1.amazonaws.com/herd-lambda-api/foo\n    \n\n### Verify your function is available\n\n    $ curl \"https://XXXXXXXXXXX.execute-api.us-west-1.amazonaws.com/herd-lambda-api/foo?foo=1\u0026bar=2\"\n    {\"query_string\": {\"foo\": \"1\", \"bar\": \"2\"}}\n    \nThat's it!\n\n### Environment variables\n\nYou can pass in environment variables that your lambda function would have access to by defining them on the command line:\n\n\t$ herd function-add foo.py --ENV_NAME_1=value1 --ENV_NAME_2=value2\n\n\n----------------------------------------------\n\nHerd is still in an alpha state and as we start using it for some of our infrastructure I'm sure it will change here and there. We also have more functionality planned for it in the future.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Fherd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymon%2Fherd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Fherd/lists"}