{"id":34113662,"url":"https://github.com/shiroyuki/sandpiper","last_synced_at":"2026-04-08T19:35:15.068Z","repository":{"id":57463804,"uuid":"51560916","full_name":"shiroyuki/sandpiper","owner":"shiroyuki","description":"A simple generic key-value store interface library","archived":false,"fork":false,"pushed_at":"2017-06-27T20:27:35.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T13:32:09.106Z","etag":null,"topics":["aws-dynamodb","dynamodb","hiredis","library","memcached","python","python-library","python3","redis","sandpiper"],"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/shiroyuki.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-12T01:38:27.000Z","updated_at":"2017-06-12T17:45:20.000Z","dependencies_parsed_at":"2022-09-05T06:01:27.929Z","dependency_job_id":null,"html_url":"https://github.com/shiroyuki/sandpiper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shiroyuki/sandpiper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiroyuki%2Fsandpiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiroyuki%2Fsandpiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiroyuki%2Fsandpiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiroyuki%2Fsandpiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiroyuki","download_url":"https://codeload.github.com/shiroyuki/sandpiper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiroyuki%2Fsandpiper/sbom","scorecard":{"id":819570,"data":{"date":"2025-08-11","repo":{"name":"github.com/shiroyuki/sandpiper","commit":"b2f429d5d32b619c2b34afc21b5a7784d88ed132"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: lxc/dynamodb/Dockerfile:1: pin your Docker image by updating python:latest to python:latest@sha256:3b2f1b9c9948e9dc96e1a2f4668ba9870ff43ab834f91155697476142b3bc299","Info:   0 out of   1 containerImage 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":"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":"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":"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-23T15:05:47.383Z","repository_id":57463804,"created_at":"2025-08-23T15:05:47.383Z","updated_at":"2025-08-23T15:05:47.383Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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-dynamodb","dynamodb","hiredis","library","memcached","python","python-library","python3","redis","sandpiper"],"created_at":"2025-12-14T19:17:01.632Z","updated_at":"2026-04-08T19:35:15.056Z","avatar_url":"https://github.com/shiroyuki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sandpiper\n\nA simple generic key-value store interface library.\n\n## Requirements\n\n* Python 3.4 or newer\n* **boto3** for AWS DynamoDB (optional)\n* **pymemcache** for Memcached (optional)\n* **redis** for Redis (optional, recommended to also install **hiredis**)\n* **pymongo** for MongoDB (optional, future)\n\n*Note: this may work with Python 2.7 but it will not be tested.*\n\n## How to Install\n\nRun `pip3 install sandpiper`.\n\n## Example\n\n### Set up the driver\n\nFirst of all, let's set up the adapter.\n\n#### For DynamoDB\n\n```python\nimport boto3\n\nfrom sandpiper.adapter import DynamoDB\n\nddb = boto3.resource(\n    'dynamodb',\n    endpoint_url='http://127.0.0.1:8000',\n    region_name='us-east-1',\n    aws_access_key_id='anything',\n    aws_secret_access_key='anything',\n    use_ssl=False,\n    verify=False\n)\n\ndriver = DynamoDB(ddb)\n```\n\n#### For Memcached\n\n```python\nfrom sandpiper.adapter import Memcached, create_memcached_client\n\nconnection_list = [\n    ('c1.shiroyuki.com', 11211),\n    ('c2.shiroyuki.com', 11211),\n    # ...\n]\n\nclient = create_memcached_client(connection_list)\ndriver = Memcached(client, namespace = 'default', delimiter = ':')\n```\n\n#### For Redis\n\n```python\nfrom sandpiper.adapter import Redis, create_redis_client\n\nclient = create_redis_client(host = 'localhost') # same arguments as redis.ConnectionPool\ndriver = Redis(client, namespace = 'default', delimiter = ':')\n```\n\n### How to use it\n\n```python\nfrom sandpiper import Storage\n\nstorage = Storage(driver)\n\n# Set the data.\nstorage['user.1'] = {'name': 'foo'}\n# Alternative: storage.set('user.1', {'name': 'foo'})\n\n# Get the data.\nprint(storage['user.1']['name']) # -\u003e foo\n# Alternative: storage.get('user.1')\n\n# Delete the data\ndel storage['user.1']\n# Alternative: storage.remove('user.1')\n```\n\n## Currently Supported Storage Types\n\n* In-memory/Python's built-in dictionary type (default)\n* AWS DynamoDB\n* Memcached\n* Redis with **hiredis**\n\n## Soon-to-be Supported Storage Types\n\n* MongoDB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiroyuki%2Fsandpiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiroyuki%2Fsandpiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiroyuki%2Fsandpiper/lists"}