{"id":16652894,"url":"https://github.com/zerointensity/discobase","last_synced_at":"2025-04-09T17:51:02.368Z","repository":{"id":250522343,"uuid":"829108147","full_name":"ZeroIntensity/discobase","owner":"ZeroIntensity","description":"Database library using nothing but Discord. PyDis Codejam 2024. ","archived":false,"fork":false,"pushed_at":"2024-09-21T02:38:11.000Z","size":5547,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T03:51:52.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://discobase.zintensity.dev/","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/ZeroIntensity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-07-15T19:19:04.000Z","updated_at":"2024-09-21T02:37:15.000Z","dependencies_parsed_at":"2024-07-28T06:23:05.206Z","dependency_job_id":null,"html_url":"https://github.com/ZeroIntensity/discobase","commit_stats":null,"previous_names":["zerointensity/discobase"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroIntensity%2Fdiscobase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroIntensity%2Fdiscobase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroIntensity%2Fdiscobase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroIntensity%2Fdiscobase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeroIntensity","download_url":"https://codeload.github.com/ZeroIntensity/discobase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083016,"owners_count":21045020,"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-10-12T09:30:22.211Z","updated_at":"2025-04-09T17:51:02.348Z","avatar_url":"https://github.com/ZeroIntensity.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg alt=\"discobase logo\" src=\"https://raw.githubusercontent.com/ZeroIntensity/discobase/main/docs/assets/discobase_blurple.png\" width=500\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003cdiv align=\"center\"\u003e\u003cstrong\u003ePython Discord Codejam 2024 Submission: Spunky Sputniks\u003c/strong\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n## Installation\n\n### Library\n\n```bash\n$ pip install discobase\n```\n\n### Demo Bot\n\nYou can add the demo bot to a server with [this integration](https://discord.com/oauth2/authorize?client_id=1268247436699238542\u0026permissions=8\u0026integration_type=0\u0026scope=bot), or self-host it using the following commands:\n\n```bash\n$ git clone https://github.com/zerointensity/discobase\n$ cd discobase/src/demo\n$ export DB_BOT_TOKEN=\"first bot token\"\n$ export BOOKMARK_BOT_TOKEN=\"second bot token\"\n$ python3 main.py\n```\n\n## Quickstart\n\n```py\nimport asyncio\nimport discobase\n\ndb = discobase.Database(\"My database\")\n\n@db.table\nclass User(discobase.Table):\n    name: str\n    password: str\n\nasync def main():\n    async with db.conn(\"My bot token\"):\n        admin = await User.find(name=\"admin\")\n        if not admin:\n            User.save(name=\"admin\", password=\"admin\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Documentation\n\nDocumentation is available [here](https://discobase.zintensity.dev).\n\n## License\n\n`discobase` is distributed under the `MIT` license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerointensity%2Fdiscobase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerointensity%2Fdiscobase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerointensity%2Fdiscobase/lists"}