{"id":18358988,"url":"https://github.com/rasimandiran/dinamopy","last_synced_at":"2026-04-29T17:08:16.481Z","repository":{"id":57418215,"uuid":"458896375","full_name":"rasimandiran/dinamopy","owner":"rasimandiran","description":"Dinamopy is a python helper library for dynamodb. You can define your access patterns in a json file and can use dynamic method names to make operations.","archived":false,"fork":false,"pushed_at":"2022-02-15T18:09:47.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T22:51:34.587Z","etag":null,"topics":["aws","aws-dynamodb","nosql","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/dinamopy/","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/rasimandiran.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":"2022-02-13T18:31:19.000Z","updated_at":"2022-07-18T08:23:41.000Z","dependencies_parsed_at":"2022-09-03T09:51:17.613Z","dependency_job_id":null,"html_url":"https://github.com/rasimandiran/dinamopy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rasimandiran/dinamopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasimandiran%2Fdinamopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasimandiran%2Fdinamopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasimandiran%2Fdinamopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasimandiran%2Fdinamopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasimandiran","download_url":"https://codeload.github.com/rasimandiran/dinamopy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasimandiran%2Fdinamopy/sbom","scorecard":{"id":762371,"data":{"date":"2025-08-11","repo":{"name":"github.com/rasimandiran/dinamopy","commit":"04a73bc845f777e12f50f900b6a08210c7d43667"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/6 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/prod_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/prod_release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/rasimandiran/dinamopy/prod_release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/prod_release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/rasimandiran/dinamopy/prod_release.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/prod_release.yml:17","Warn: pipCommand not pinned by hash: .github/workflows/prod_release.yml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact latest not signed: https://api.github.com/repos/rasimandiran/dinamopy/releases/59443763","Warn: release artifact latest does not have provenance: https://api.github.com/repos/rasimandiran/dinamopy/releases/59443763"],"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 'main'"],"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-22T23:47:33.755Z","repository_id":57418215,"created_at":"2025-08-22T23:47:33.757Z","updated_at":"2025-08-22T23:47:33.757Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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","aws-dynamodb","nosql","python3"],"created_at":"2024-11-05T22:20:17.682Z","updated_at":"2026-04-29T17:08:16.452Z","avatar_url":"https://github.com/rasimandiran.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dinamopy\n\nDinamopy is a python helper library for [dynamodb](https://aws.amazon.com/dynamodb/). You can define your [access patterns](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-modeling-nosql-B.html) in a json file and can use dynamic method names to make operations.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install dinamopy.\n\n```bash\npip install dinamopy\n```\n\n## Usage\n\n### app.py\n```python\nfrom decimal import Decimal\nimport dinamopy\n\n\nclass MyHooks(dinamopy.DinamoHooks):\n    def after_get(self, response):\n        for k, v in response.items():\n            if isinstance(v, Decimal):\n                response[k] = int(v)\n        return response\n\ndb = dinamopy.DinamoPy('dinamopy.json', MyHooks())\n\ndb.put(item={\n    'customerId': 'xyz',\n    'sk': 'CUST#xyz',\n    'email': 'rasimandiran@outlook.com',\n    'fullName': 'Rasim Andiran',\n    'userPreferences': {'language': 'en', 'sort': 'date', 'sortDirection': 'ascending'}\n})\n\ndb.overwrite(item={\n    'customerId': 'xyz',\n    'sk': 'CUST#xyz',\n    'email': 'rasimandiran@outlook.com',\n    'fullName': 'Rasim Andiran',\n    'userPreferences': {'language': 'en', 'sort': 'date', 'sortDirection': 'ascending'}\n})\n\ndb.get_customer_profile_by_customer_id(customerId='xyz')\ndb.get_bookmarks_by_customer_id(customerId='123')\ndb.get_customer_profile_by_email(email='shirley@example.net')\ndb.get_bookmarks_by_url(url='https://aws.amazon.com', customerId='123')\ndb.get_customer_folder(customerId='123', folder='Cloud')\n\ndb.update_customer_profile_by_customer_id(customerId='321', sk='CUST#321', new_fields={'email': 'rasimandiran@gmail.com'})\ndb.update_bookmarks_by_customer_id(customerId='123', sk='https://aws.amazon.com', new_fields={'folder': 'Tools'})\ndb.update_customer_profile_by_email(email='rasimandiran@gmail.com', new_fields={'fullName': 'Rasim Andiran'})\ndb.update_bookmarks_by_url(url='https://aws.amazon.com', customerId='123', new_fields={'description': 'Deneme'})\ndb.update_customer_folder(customerId='123', folder='Cloud', new_fields={'folder': 'CloudFolder'})\n\ndb.delete_customer_profile_by_customer_id(customerId='123')\ndb.delete_bookmarks_by_customer_id(customerId='123', sk='https://aws.amazon.com', new_fields={'folder': 'Tools'})\ndb.delete_customer_profile_by_email(email='rasimandiran@gmail.com', new_fields={'fullName': 'Rasim Andiran'})\ndb.delete_bookmarks_by_url(url='https://aws.amazon.com', customerId='123', new_fields={'description': 'Deneme'})\ndb.delete_customer_folder(customerId='123', folder='Cloud', new_fields={'folder': 'CloudFolder'})\n```\n\n### dinamopy.json\n```json\n{\n    \"region\": \"localhost\",\n    \"port\": 8000,\n    \"tableName\": \"CustomerBookmark\",\n    \"partitionKey\": \"customerId\", \n    \"sortKey\": \"sk\",\n    \"timestamps\": true,\n    \"paranoid\": true,\n    \"returnRawResponse\": false,\n    \"logLevel\": \"debug\",\n    \"accessPatterns\": {\n        \"customerProfileByCustomerId\": {\n            \"table\": \"table\",\n            \"partitionKey\": \"customerId\",\n            \"sortKey\": \"sk\",\n            \"sortKeyOperator\": \"begins_with\",\n            \"sortKeyValue\": \"CUST#\"\n        },\n        \"bookmarksByCustomerId\": {\n            \"table\": \"table\",\n            \"partitionKey\": \"customerId\",\n            \"sortKey\": \"sk\",\n            \"sortKeyOperator\": \"begins_with\",\n            \"sortKeyValue\": \"http\"\n        },\n        \"customerProfileByEmail\": {\n            \"table\": \"ByEmail\",\n            \"partitionKey\": \"email\"\n        },\n        \"bookmarksByUrl\": {\n            \"table\": \"ByUrl\",\n            \"partitionKey\": \"url\",\n            \"sortKey\": \"customerId\"\n        },\n        \"customerFolder\": {\n            \"table\": \"ByCustomerFolder\",\n            \"partitionKey\": \"customerId\",\n            \"sortKey\": \"folder\"\n        }\n    }\n}\n```\n\n\n## To-Do\n- More generic hooks\n- Logging\n- Tests\n- Documentation\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasimandiran%2Fdinamopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasimandiran%2Fdinamopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasimandiran%2Fdinamopy/lists"}