{"id":37069920,"url":"https://github.com/silvermullet/aws-python-utils","last_synced_at":"2026-01-14T08:03:11.082Z","repository":{"id":57413341,"uuid":"136107499","full_name":"silvermullet/aws-python-utils","owner":"silvermullet","description":"Simplify use of AWS resources in your code with aws-python-utils","archived":false,"fork":false,"pushed_at":"2019-01-23T18:03:10.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-13T14:56:35.739Z","etag":null,"topics":["aws","python","python3"],"latest_commit_sha":null,"homepage":"","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/silvermullet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-06-05T02:20:24.000Z","updated_at":"2019-01-23T18:01:14.000Z","dependencies_parsed_at":"2022-09-15T03:40:58.142Z","dependency_job_id":null,"html_url":"https://github.com/silvermullet/aws-python-utils","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/silvermullet/aws-python-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvermullet%2Faws-python-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvermullet%2Faws-python-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvermullet%2Faws-python-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvermullet%2Faws-python-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silvermullet","download_url":"https://codeload.github.com/silvermullet/aws-python-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvermullet%2Faws-python-utils/sbom","scorecard":{"id":824054,"data":{"date":"2025-08-11","repo":{"name":"github.com/silvermullet/aws-python-utils","commit":"97f02b3a0253434bd99d23bc12961869c1df9472"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 5/27 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T16:15:32.358Z","repository_id":57413341,"created_at":"2025-08-23T16:15:32.358Z","updated_at":"2025-08-23T16:15:32.358Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"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":["aws","python","python3"],"created_at":"2026-01-14T08:03:10.464Z","updated_at":"2026-01-14T08:03:11.075Z","avatar_url":"https://github.com/silvermullet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-python-utils\n\nSimplify use of AWS resources in your code with aws-python-utils\n\n### Install\n\n```\npip install aws-python-util\n```\n\n### SecretManager Util\n* Easy secret retrieval\n\n##### get_secret()\n\nUse ENVIRONMENT variable \"AWS_SECRET_MANAGER_SECRET\" or pass in secret_key name.\n\n###### Example Usage\n\nVia ENVIRONMENT variable\n```python\nfrom aws_python_utils import secretmanager\nimport os\n\nos.environ[\"AWS_SECRET_MANAGER_SECRET\"] = \"mysecret\"\nsecretmanager = secretmanager.AwsSecretManager()\nmysecret = secretmanager.get_secret()\n```\n\nOr pass in secret_key name ..\n```python\nfrom aws_python_utils import secretmanager\nimport os\n\nsecretmanager = secretmanager.AwsSecretManager()\nmysecret = secretmanager.get_secret(secret_key=\"mysecret\")\n```\n\n### S3 Util\n* Streams an s3 object directly into a pandas DataFrame to avoid writing to disk and then loading from disk\n* Uploads a DataFrame directly to s3\n\n###### Example Usage\n```python\nfrom aws_python_utils.s3 import AwsS3\nfrom io import BytesIO\nimport pandas as pd\nimport numpy as np\n\n\ns3 = AwsS3()\n\nbucket,key = s3.get_bucket_and_key_from_s3_path(\"s3://my-bucket/mypath/to/object\")\n\nprint(\"bucket = \" + bucket)  # my-bucket\nprint(\"key = \" + key)        # mypath/to/object\n\n# download a tab separated file schema: id    val1  val2\ndf = s3.download_s3_file(s3_path, header=0, sep='\\t', index='id')\n\ndf2 = pd.DataFrame(np.random.randint(low=0, high=10, size=(5, 5)), columns=['a', 'b', 'c', 'd', 'e'])\nio_buffer = BytesIO()\ndf2.to_csv(io_buffer, columns=['a', 'c', 'e'], sep='\\t', index=False)\n\ns3.upload_to_s3(\"s3://your-bucket/path/to/object.tsv\", io_buffer)\n```\n\n### EC2 Util\n* Ami cleaner to mop up old ami's\n\n###### Example Usage\n```python\nfrom aws_python_utils.ec2 import AwsEC2\nfrom datetime import datetime\n\nec2 = AwsEC2()\n# keep latest 5 ami'\nec2.clean_images(\"my-service-ami-dev-*\", num_to_keep=5, cutoff_date=datetime(2018, 8, 1), images_to_keep=['ami-keepmeid'])\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvermullet%2Faws-python-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilvermullet%2Faws-python-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvermullet%2Faws-python-utils/lists"}