{"id":19042468,"url":"https://github.com/serverless/serverless-helpers-py","last_synced_at":"2025-04-23T22:28:27.493Z","repository":{"id":57465914,"uuid":"51940479","full_name":"serverless/serverless-helpers-py","owner":"serverless","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-29T17:12:50.000Z","size":26,"stargazers_count":11,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T07:51:30.691Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless.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":"2016-02-17T17:17:10.000Z","updated_at":"2024-09-26T13:34:04.000Z","dependencies_parsed_at":"2022-08-31T03:20:44.309Z","dependency_job_id":null,"html_url":"https://github.com/serverless/serverless-helpers-py","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-helpers-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-helpers-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-helpers-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-helpers-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless","download_url":"https://codeload.github.com/serverless/serverless-helpers-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250525729,"owners_count":21445071,"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","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-11-08T22:37:55.317Z","updated_at":"2025-04-23T22:28:27.477Z","avatar_url":"https://github.com/serverless.png","language":"Python","readme":"## serverless_helpers\n\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![test status](https://api.travis-ci.org/serverless/serverless-helpers-py.svg)](https://travis-ci.org/serverless/serverless-helpers-py)\n[![version](https://img.shields.io/pypi/v/serverless_helpers.svg)](https://pypi.python.org/pypi/serverless_helpers/)\n[![downloads](https://img.shields.io/pypi/dm/serverless_helpers.svg)](https://pypi.python.org/pypi/serverless_helpers/)\n[![license](https://img.shields.io/pypi/l/serverless_helpers.svg)](https://github.com/serverless/serverless-helpers-py/blob/master/LICENSE)\n[![gitter](https://img.shields.io/gitter/room/serverless/serverless.svg)](https://gitter.im/serverless/serverless)\n\nThis library isn't *required* for writing Python in the [serverless][sls], but\nit does make your life easier by handling things like environment variables for\nyou.\n\n## Usage\n\n```\nimport serverless_helpers\n\n# all .env files are loaded into the environment\n# This is optional if you are using serverless v0.5 or later, because it\n# automatically loads variables without help\nserverless_helpers.load_envs(__file__)\n\n# Loads stack outputs into environment variables as `SERVERLESS_CF_[output name]`\nserverless_helpers.load_cfn_outputs()\n\nimport os\nos.getenv('SERVERLESS_STAGE') # dev\n\n# get role ARN from default serverless CloudFormation stack\nos.getenv('SERVERLESS_CF_IamRoleArnLambda') # arn:aws:iam::123456789012:....\n\n# alternate way to read roles\noutputs = serverless_helpers.load_cfn_outputs()\noutputs['IamRoleArnLambda'] # arn:aws:iam::123456789012:....\n```\n\n## License\n\nThis code is released under the MIT software license, see LICENSE file for\ndetails. No warranty of any kind is included, and the copyright notice must be\nincluded in redistributions.\n\n*Notable exception*: `dotenv.py` is from\n[python-dotenv](https://github.com/theskumar/python-dotenv) to remove\ndependencies on click and ordereddict for performance/deployment size reasons.\nRead the license contained in `dotenv.py` for details on its creators and\nlicense conditions.\n\n[sls]: http://serverless.com/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fserverless-helpers-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless%2Fserverless-helpers-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fserverless-helpers-py/lists"}