{"id":22970799,"url":"https://github.com/labteral/easyrocks","last_synced_at":"2025-04-02T06:15:29.206Z","repository":{"id":52943031,"uuid":"195030992","full_name":"labteral/easyrocks","owner":"labteral","description":"A python-rocksdb wrapper for a more comfortable interaction with RocksDB","archived":false,"fork":false,"pushed_at":"2021-12-28T21:08:52.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T20:42:38.238Z","etag":null,"topics":["library","python","rocksdb"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/easyrocks/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labteral.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":"2019-07-03T10:21:13.000Z","updated_at":"2023-03-22T23:53:55.000Z","dependencies_parsed_at":"2022-08-29T22:50:39.954Z","dependency_job_id":null,"html_url":"https://github.com/labteral/easyrocks","commit_stats":null,"previous_names":["brunneis/easyrocks"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Feasyrocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Feasyrocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Feasyrocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Feasyrocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labteral","download_url":"https://codeload.github.com/labteral/easyrocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763952,"owners_count":20829800,"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","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":["library","python","rocksdb"],"created_at":"2024-12-14T22:14:40.132Z","updated_at":"2025-04-02T06:15:29.165Z","avatar_url":"https://github.com/labteral.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyrocks\nA [`python-rocksdb`](https://github.com/twmht/python-rocksdb) wrapper for a more comfortable interaction with RocksDB.\n\n\u003e Keys must be of type `bytes`. Values can be nested structures or complex objects. Value serialization is automatically performed with MessagePack if possible, otherwise with Pickle.\n\n## Usage\n```python\nfrom easyrocks import RocksDB\n\ndb = RocksDB(path='./rocksdb', read_only=False)\n\nkey = b'key1'\ndb.put(key, 'one')\ndb.get(key)\ndb.exists(key)\n\nfor key, value in db.scan(prefix=None, start_key=None, stop_key=None, reversed_scan=False):\n  print(key, value)\n```\n\n## Utils\nThere are some useful functions to transform a key to and from `bytes`:\n```python\nfrom easyrocks.utils import (\n  str_to_bytes\n  bytes_to_str\n  int_to_bytes\n  bytes_to_int\n  str_to_padded_bytes\n  int_to_padded_bytes\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabteral%2Feasyrocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabteral%2Feasyrocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabteral%2Feasyrocks/lists"}