{"id":34089612,"url":"https://github.com/05bit/python-signa","last_synced_at":"2026-05-31T02:31:07.599Z","repository":{"id":57467078,"uuid":"80913192","full_name":"05bit/python-signa","owner":"05bit","description":"One lib to sign them all","archived":false,"fork":false,"pushed_at":"2021-11-12T14:46:52.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-16T16:57:25.862Z","etag":null,"topics":["amazon-web-services","authorization","onesignal","python"],"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/05bit.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":"2017-02-04T10:50:26.000Z","updated_at":"2024-02-12T00:06:18.000Z","dependencies_parsed_at":"2022-09-10T03:43:13.909Z","dependency_job_id":null,"html_url":"https://github.com/05bit/python-signa","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/05bit/python-signa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05bit%2Fpython-signa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05bit%2Fpython-signa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05bit%2Fpython-signa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05bit%2Fpython-signa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/05bit","download_url":"https://codeload.github.com/05bit/python-signa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05bit%2Fpython-signa/sbom","scorecard":{"id":179,"data":{"date":"2025-08-11","repo":{"name":"github.com/05bit/python-signa","commit":"825767a6d6970d357b627de4c5b5e88a14dc0e75"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","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":"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":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/05bit/python-signa/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/05bit/python-signa/release.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:35","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-14T12:20:06.137Z","repository_id":57467078,"created_at":"2025-08-14T12:20:06.137Z","updated_at":"2025-08-14T12:20:06.137Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33717415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["amazon-web-services","authorization","onesignal","python"],"created_at":"2025-12-14T14:02:46.972Z","updated_at":"2026-05-31T02:31:07.579Z","avatar_url":"https://github.com/05bit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Signa\n=====\n\n[![PyPi Version](https://img.shields.io/pypi/v/signa.svg)](https://pypi.python.org/pypi/signa)\n\nUtility lib to create authorized requests for various services.\n\nSupported services:\n\n- AWS S3\n- Digital Ocean Spaces\n- Yandex Object storage\n- Alibaba Cloud OSS\n\n**Currently in alpha, use with caution!**\n\nInstall\n-------\n\n```bash\npip install signa\n```\n\nUsage example\n-------------\n\n```python\nimport os\nimport requests\nimport signa\n\nAWS_S3_REGION = '...'\nAWS_S3_BUCKET = '...'\nAWS_S3_UPLOAD_ACCESS_KEY = '...'\nAWS_S3_UPLOAD_SECRET_KEY = '...'\n\nS3_SIGNA = signa.Factory(\n    's3',\n    region=AWS_S3_REGION,\n    bucket=AWS_S3_BUCKET,\n    payload='UNSIGNED-PAYLOAD',\n    auth={\n        'access_key': AWS_S3_UPLOAD_ACCESS_KEY,\n        'secret_key': AWS_S3_UPLOAD_SECRET_KEY,\n    })\n\nCONTENT_TYPES = {\n    '.jpg': 'image/jpeg',\n    '.jpeg': 'image/jpeg',\n    '.png': 'image/png',\n    '.mp4': 'video/mp4',\n    '.json': 'application/json',\n}\n\n\ndef put_file(*, key=None, path_or_data=None, make_public=True,\n             s3_signa=S3_SIGNA):\n    \"\"\"Put file to S3 with signa example. Return uploaded URL.\n    \"\"\"\n    ext = os.path.splitext(key)[1]\n    headers = {\n        'content-type': CONTENT_TYPES.get(ext, 'application/octet-stream')\n    }\n    if make_public:\n        headers['x-amz-acl'] = 'public-read'\n\n    signed = s3_signa.new(method='PUT', key=key, headers=headers)\n\n    if isinstance(path_or_data, str):\n        path = path_or_data\n        with open(path, 'rb') as data_fp:\n            response = requests.put(signed['url'],\n                                    headers=signed['headers'],\n                                    data=data_fp)\n    else:\n        data = path_or_data\n        response = requests.put(signed['url'],\n                                headers=signed['headers'],\n                                data=data)\n\n    if response.status_code == 200:\n        print('put_file: OK')\n        return signed['url']\n\n    return None\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F05bit%2Fpython-signa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F05bit%2Fpython-signa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F05bit%2Fpython-signa/lists"}