{"id":13827665,"url":"https://github.com/AnimeKaizoku/TelegramDB","last_synced_at":"2025-07-09T04:33:06.918Z","repository":{"id":43602357,"uuid":"450021945","full_name":"AnimeKaizoku/TelegramDB","owner":"AnimeKaizoku","description":"A library that uses your telegram account as a database.","archived":false,"fork":false,"pushed_at":"2023-04-18T14:58:36.000Z","size":2948,"stargazers_count":100,"open_issues_count":2,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-04T14:48:29.339Z","etag":null,"topics":["database","hacktoberfest","telegram"],"latest_commit_sha":null,"homepage":"","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/AnimeKaizoku.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}},"created_at":"2022-01-20T08:54:19.000Z","updated_at":"2024-08-02T02:19:57.000Z","dependencies_parsed_at":"2024-01-15T16:52:09.908Z","dependency_job_id":null,"html_url":"https://github.com/AnimeKaizoku/TelegramDB","commit_stats":{"total_commits":17,"total_committers":5,"mean_commits":3.4,"dds":0.3529411764705882,"last_synced_commit":"c5ff586d731bf823976fe52457dec9468cbcbe09"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimeKaizoku%2FTelegramDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimeKaizoku%2FTelegramDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimeKaizoku%2FTelegramDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimeKaizoku%2FTelegramDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnimeKaizoku","download_url":"https://codeload.github.com/AnimeKaizoku/TelegramDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225486385,"owners_count":17481886,"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":["database","hacktoberfest","telegram"],"created_at":"2024-08-04T09:02:04.808Z","updated_at":"2024-11-20T07:30:53.557Z","avatar_url":"https://github.com/AnimeKaizoku.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# TelegramDB\nA library which uses your telegram account as a database for your projects.\n\n**Documentation**: [telegramdb.readthedocs.io](https://telegramdb.readthedocs.io/) \n\n[![pypi](https://img.shields.io/pypi/v/telegramdb.svg)](https://pypi.org/project/TelegramDB)\n[![pyversion](https://img.shields.io/pypi/pyversions/telegramdb.svg)](https://pypi.org/project/TelegramDB)\n[![downlaods](https://img.shields.io/pypi/dm/telegramdb)](https://pypistats.org/packages/telegramdb)\n[![docs](https://readthedocs.org/projects/telegramdb/badge/?version=stable)](https://telegramdb.readthedocs.io/en/latest/)\n\n## Basic Usage\n```python\nfrom os import getenv\nfrom pyrogram import Client\nfrom telegramdb import TelegramDB, DataPack, Member\n\nclient = Client(\"session_name\", getenv(\"API_ID\"), getenv(\"API_HASH\"))\nclient.start()\nSESSION = TelegramDB(client, getenv(\"DB_CHAT_ID\"))\n\nclass TestData(DataPack):\n    __datapack_name__ = \"test\"\n\n    id = Member(int, is_primary=True)\n    name = Member(str)\n\n    def __init__(self, id):\n        self.id = id\n\nSESSION.prepare_datapack(TestData)\n\ntest = TestData(777000)\ntest.name = \"Telegram\"\nSESSION.commit(test)\n```\n\n## Installation\nYou can install this library by using standard pip command.\n```bash\npip install TelegramDB\n```\n\n## Requirements\n- Python 3.6 or higher\n- A telegram client\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update examples as appropriate.\n\n## License\n[![GPLv3](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.en.html)\n\u003cbr\u003eLicensed Under \u003ca href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\"\u003eGNU General Public License v3\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnimeKaizoku%2FTelegramDB","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnimeKaizoku%2FTelegramDB","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnimeKaizoku%2FTelegramDB/lists"}