{"id":20234197,"url":"https://github.com/bytestorage/flydb-sdk-python","last_synced_at":"2025-06-21T21:03:05.262Z","repository":{"id":182994780,"uuid":"669446302","full_name":"ByteStorage/FlyDB-SDK-Python","owner":"ByteStorage","description":"FlyDB python version of the sdk","archived":false,"fork":false,"pushed_at":"2023-09-13T11:37:16.000Z","size":80,"stargazers_count":62,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-14T05:38:46.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ByteStorage.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-22T09:58:11.000Z","updated_at":"2025-05-19T09:05:26.000Z","dependencies_parsed_at":"2025-04-10T18:42:32.366Z","dependency_job_id":"2b94b537-4582-4ab7-a369-923dab4bb825","html_url":"https://github.com/ByteStorage/FlyDB-SDK-Python","commit_stats":null,"previous_names":["bytestorage/flydb-sdk-python"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ByteStorage/FlyDB-SDK-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteStorage%2FFlyDB-SDK-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteStorage%2FFlyDB-SDK-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteStorage%2FFlyDB-SDK-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteStorage%2FFlyDB-SDK-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByteStorage","download_url":"https://codeload.github.com/ByteStorage/FlyDB-SDK-Python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteStorage%2FFlyDB-SDK-Python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261193089,"owners_count":23122904,"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":[],"created_at":"2024-11-14T08:09:06.292Z","updated_at":"2025-06-21T21:03:00.247Z","avatar_url":"https://github.com/ByteStorage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./assets/FlyDB-logo.png\" alt=\"FlyDB-logo\" style=\"display: block; margin: 0 auto; width: 45%;\" /\u003e\n\n\u003eFlyDB's github address: https://github.com/ByteStorage/FlyDB\n\u003e \n\nEnglish | [中文](https://github.com/ByteStorage/flydb/FlyDB-SDK-Python/master/README_CN.md)\n\n# FlyDB-SDK-Python\n\nFlyDB-SDK-Python is a software development toolkit (SDK) for interacting with the FlyDB key-value database in Python.\n\nFlyDB is a high-performance, lightweight key-value database, and with this SDK, you can easily use FlyDB to store and retrieve data in Python.\n\n## Installation\n\nTo use FlyDB-SDK-Python, you first need to install the FlyDB server and ensure it is running.\n\nYou can install FlyDB-SDK-Python using pip, by running the following command:\n\n```\npip install FlyDB==0.0.3\n```\n\n## Quick Start\n\nHere's a simple example showing how to use FlyDB-SDK-Python to connect to the FlyDB server and perform data storage and retrieval:\n\n```python\nfrom pathlib import Path\nfrom FlyDB import db\n\n# Create a FlyDB2 client\ndb_client = db.FlyDB()\n\n# Connect to the FlyDB2\npath = Path.cwd().joinpath(\"data\")\ndb_client.connect_option(str(path), 256 * 1024 * 1024, True)\n\n# Set a key-value pair\ndb_client.set(\"key\", \"value\", 0)\n\n# Get the value of a key\nvalue = db_client.get(\"key\")\nprint(value)\n\n# Delete a key-value pair\ndb_client.delete(\"key\")\n```\n\n## API ReferenceAPI\n\nFlyDB-SDK-Python currently supports the following APIs:\n\nset(key, value, expire): Stores a key-value pair in the database. The key should be a string, and the value can be a string, integer, float, boolean, or byte stream. The expire parameter represents the expiration time in milliseconds. When expire is set to 0, the data will never expire.\n\nget(key): Retrieves the value of a specified key from the database. The return value type depends on the actual stored data type. \n\ndelete(key): Deletes the specified key-value pair from the database. \n\n\u003e For more API reference and detailed usage, please refer to the official documentation or the SDK source code.\n\u003e\n\n## Contributions and Feedback\n\nIf you encounter any issues or have any suggestions, please feel free to raise them. We welcome contributions from the community. If you want to contribute to the FlyDB-SDK-Python project, please submit a Pull Request or contact our development team.\n\n## License\n\nFlyDB-SDK-Python is licensed under the MIT License. For details, please refer to the LICENSE file.\n\n## Disclaimer\n\nFlyDB-SDK-Python is the official Python SDK for the FlyDB project, maintained and supported by the FlyDB team. Thank you for using FlyDB-SDK-Python, and we hope it brings convenience to your data storage and retrieval tasks!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytestorage%2Fflydb-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytestorage%2Fflydb-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytestorage%2Fflydb-sdk-python/lists"}