{"id":26745677,"url":"https://github.com/afaanbilal/hyperdb-py","last_synced_at":"2025-06-20T09:07:18.399Z","repository":{"id":65236049,"uuid":"588880092","full_name":"AfaanBilal/hyperdb-py","owner":"AfaanBilal","description":"HyperDB Python is a Python client package for the HyperDB server.","archived":false,"fork":false,"pushed_at":"2023-01-14T10:52:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T09:07:08.936Z","etag":null,"topics":["client","hyperdb","pypi","pypi-package","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/hyperdb-py","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/AfaanBilal.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":"2023-01-14T10:43:27.000Z","updated_at":"2023-07-25T06:25:15.000Z","dependencies_parsed_at":"2023-01-15T19:00:17.278Z","dependency_job_id":null,"html_url":"https://github.com/AfaanBilal/hyperdb-py","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AfaanBilal/hyperdb-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfaanBilal%2Fhyperdb-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfaanBilal%2Fhyperdb-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfaanBilal%2Fhyperdb-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfaanBilal%2Fhyperdb-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AfaanBilal","download_url":"https://codeload.github.com/AfaanBilal/hyperdb-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfaanBilal%2Fhyperdb-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260915901,"owners_count":23082040,"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":["client","hyperdb","pypi","pypi-package","python"],"created_at":"2025-03-28T08:18:15.513Z","updated_at":"2025-06-20T09:07:13.367Z","avatar_url":"https://github.com/AfaanBilal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"HyperDB Python Client\n=====================\n\nAuthor: **[Afaan Bilal](https://afaan.dev)**\n\n## Introduction\n**HyperDB Python** is a Python client package for the [HyperDB server](https://github.com/AfaanBilal/hyperdb).\n\n## Installation\n````\npip install hyperdb-py\n````\n\n## Example usage\n````py\nfrom hyperdb_py.HyperDB import HyperDB\n\n# Setup with address (default: http:#localhost:8765)\nhyperdb = HyperDB(\"http://localhost:8765\")\n\n# OR\n# Setup with address and authentication\n# hyperdb = new HyperDB(\"http://localhost:8765\", \"username\", \"password\")\n\n# Ping the server\nr = hyperdb.ping()\nprint(str(r)) # True\n\n# Get the version number\nr = hyperdb.version()\nprint(str(r)) # \"[HyperDB v0.1.0 (https:#afaan.dev)]\"\n\n# Set a value\nr = hyperdb.set(\"test\", \"value\")\nprint(str(r)) # value\n\n# Check if a key is present\nr = hyperdb.has(\"test\")\nprint(str(r)) # True\n\n# Get a value\nr = hyperdb.get(\"test\")\nprint(str(r)) # value\n\n# Get all stored data\nr = hyperdb.all()\nprint(str(r)) # {test: \"value\"}\n\n# Remove a key\nr = hyperdb.delete(\"test\")\nprint(str(r)) # True\n\n# Delete all stored data\nr = hyperdb.clear()\nprint(str(r)) # True\n\n# Check if the store is empty\nr = hyperdb.empty()\nprint(str(r)) # True\n\n# Persist the store to disk\nr = hyperdb.save()\nprint(str(r)) # True\n\n# Reload the store from disk\nr = hyperdb.reload()\nprint(str(r)) # True\n\n# Delete all store data from memory and disk\nr = hyperdb.reset()\nprint(str(r)) # True\n````\n\n## Contributing\nAll contributions are welcome. Please create an issue first for any feature request\nor bug. Then fork the repository, create a branch and make any changes to fix the bug\nor add the feature and create a pull request. That's it!\nThanks!\n\n## License\n**HyperDB Python** is released under the MIT License.\nCheck out the full license [here](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafaanbilal%2Fhyperdb-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafaanbilal%2Fhyperdb-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafaanbilal%2Fhyperdb-py/lists"}