{"id":18763790,"url":"https://github.com/roverdotcom/snagsby-py","last_synced_at":"2025-09-02T15:44:13.750Z","repository":{"id":48824313,"uuid":"71311336","full_name":"roverdotcom/snagsby-py","owner":"roverdotcom","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-09T18:56:02.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-20T19:29:35.064Z","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/roverdotcom.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-10-19T02:34:44.000Z","updated_at":"2021-07-09T18:56:06.000Z","dependencies_parsed_at":"2022-09-23T22:24:14.954Z","dependency_job_id":null,"html_url":"https://github.com/roverdotcom/snagsby-py","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/roverdotcom/snagsby-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roverdotcom%2Fsnagsby-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roverdotcom%2Fsnagsby-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roverdotcom%2Fsnagsby-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roverdotcom%2Fsnagsby-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roverdotcom","download_url":"https://codeload.github.com/roverdotcom/snagsby-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roverdotcom%2Fsnagsby-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270871360,"owners_count":24660191,"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-08-17T02:00:09.016Z","response_time":129,"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-11-07T18:27:28.109Z","updated_at":"2025-08-17T16:15:33.212Z","avatar_url":"https://github.com/roverdotcom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snagsby(py) [![Build Status](https://travis-ci.org/roverdotcom/snagsby-py.svg?branch=master)](https://travis-ci.org/roverdotcom/snagsby-py)\n\nPython module implementing snagsby - https://github.com/roverdotcom/snagsby\n\nSnagsby reads configuration from a json object in s3, formats it in a way\nthat can easily be injected into `os.environ`, and injects the keys and values\ninto the destination of your choice, `os.environ` being the default.\n\n## Usage\n\n```javascript\n// An example configuration file uploaded to S3\n// s3://test-bucket/config.json\n{\n    \"will_upcase\": \"Keys will be upper cased\",\n    \"wil ignore with spaces\": \"Keys with spaces will be ignored\",\n    \"NUM\": 7.777,\n    \"YES\": true,\n    \"NO\": false,\n    \"NESTED\": {\n        \"OBJECT\": \"nested\"\n    }\n}\n```\n\nLoad s3://test-bucket/config.json with snagsby\n\n```python\nimport os\nimport pprint\n\nimport snagsby\n\nout = {}\n\nos.environ['SNAGSBY_SOURCE'] = \"s3://test-bucket/config.json\"\n# The default dest is os.environ\nsnagsby.load(dest=out)\n\npprint.pprint(out)\n```\n\nThe following is what would be injected into `out`:\n\n```python\n{'NO': '0',\n 'NUM': '7.777',\n 'WILL_UPCASE': 'Keys will be upper cased',\n 'YES': '1'}\n```\n\nSource is a whitespace separated list of s3 locations\n\n```python\nimport snagsby\nsnagsby.load(\n  source=\"s3://bucket/one.json, s3://bucket/two.json\",\n)\n```\n\nBy default snagsby loads the source specified in the `SNAGSBY_SOURCE` environment variable into `os.environ`\n\n```python\nimport os\n\nimport snagsby\n\nsnagsby.load()\n\nprint(os.environ['NUM']) =\u003e u'7.777'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froverdotcom%2Fsnagsby-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froverdotcom%2Fsnagsby-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froverdotcom%2Fsnagsby-py/lists"}