{"id":25946926,"url":"https://github.com/melisadev/melisa","last_synced_at":"2025-03-04T10:17:25.126Z","repository":{"id":37857631,"uuid":"468840229","full_name":"MelisaDev/melisa","owner":"MelisaDev","description":"MelisaPy is a cache-optimized Discord microframework for Python 3","archived":false,"fork":false,"pushed_at":"2023-08-17T13:41:18.000Z","size":333,"stargazers_count":11,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T05:04:27.113Z","etag":null,"topics":["aiohttp","alternative","async","asyncio","caching","clustering","discord","optimized","python","sharding","websocket"],"latest_commit_sha":null,"homepage":"https://melisa.shuoki.top/","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/MelisaDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://pay.cloudtips.ru/p/41f54886","https://sobe.ru/na/makaroni"]}},"created_at":"2022-03-11T17:21:35.000Z","updated_at":"2024-09-01T06:47:48.000Z","dependencies_parsed_at":"2024-01-07T16:09:56.292Z","dependency_job_id":null,"html_url":"https://github.com/MelisaDev/melisa","commit_stats":{"total_commits":236,"total_committers":8,"mean_commits":29.5,"dds":"0.34745762711864403","last_synced_commit":"c253aa28c6a1e62289ef8b51912451c116c6f5a7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelisaDev%2Fmelisa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelisaDev%2Fmelisa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelisaDev%2Fmelisa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelisaDev%2Fmelisa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MelisaDev","download_url":"https://codeload.github.com/MelisaDev/melisa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827168,"owners_count":20026601,"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":["aiohttp","alternative","async","asyncio","caching","clustering","discord","optimized","python","sharding","websocket"],"created_at":"2025-03-04T10:17:24.206Z","updated_at":"2025-03-04T10:17:25.086Z","avatar_url":"https://github.com/MelisaDev.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003cb\u003e\n    The easiest way to create your own \u003cstrong\u003eoptimized\u003c/strong\u003e Discord Bot. \n  \u003c/b\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n\u003ca class=\"github-badge\" href=\"https://melisa.readthedocs.io/en/latest/?badge=latest\" tabindex=\"-1\"\u003e\n\u003cimg src=\"https://readthedocs.org/projects/melisa/badge/?version=latest\" alt=\"Documentation Status\"/\u003e\n\u003c/a\u003e\n\u003ca class=\"github-badge\" href=\"https://github.com/MelisaDev/melisa\" tabindex=\"-1\"\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/MelisaDev/melisa\" alt=\"Repo Size\"/\u003e\n\u003c/a\u003e\n\u003ca class=\"github-badge\" href=\"https://github.com/MelisaDev/melisa\" tabindex=\"-1\"\u003e\n\u003cimg src=\"https://img.shields.io/github/last-commit/MelisaDev/melisa\" alt=\"GitHub last commit\"/\u003e\n\u003c/a\u003e\n\u003ca class=\"github-badge\" href=\"https://github.com/MelisaDev/melisa\" tabindex=\"-1\"\u003e\n\u003cimg src=\"https://img.shields.io/github/commit-activity/m/MelisaDev/melisa?label=commits\" alt=\"GitHub commit activity\"/\u003e\n\u003c/a\u003e\n\u003ca class=\"github-badge\" href=\"https://discord.gg/QX4EG8f7aD\" tabindex=\"-1\"\u003e\n\u003cimg src=\"https://img.shields.io/discord/951867868188934216\" alt=\"Discord\"/\u003e\n\u003c/a\u003e\n\n\u003chr\u003e\n\n\u003ch2 align=\"center\"\u003e\nTHIS LIBRARY IS CURRENTLY UNDER DEVELOPMENT!\n\u003c/h2\u003e\n\n\u003ch3 align=\"center\"\u003eEvery provided example or a feature is not ready or may be changed in the future\u003c/h3\u003e\n\n## About\n\u003cstrong\u003eMelisaPy\u003c/strong\u003e is a Discord microframework for Python 3 \nfor the [Discord API](https://discord.com/developers/docs/intro). \n\nIt supports Discord V10 REST API and Gateway\n\nWe are trying to make our library optimized. \nWe are going to create really cool cache configuration, so don't worry about the RAM :)\n\n---\n## Install MelisaPy\n\n### Installing from PyPi:\n```commandline\npip install melisa\n```\n### Installing from Git:\n```commandline\npip install git+https://github.com/MelisaDev/melisa\n```\n\n---\n\n## Events Listening\n\n```python\nimport melisa\n\nclient = melisa.Client(\"your cool token...\")\n\n@client.listen\nasync def on_message_create(message):\n    if message.content.startswith('$greet'):\n        await message.channel.send(f'Hello man!')\n\nclient.run_autosharded()\n```\n\nAlso, we should tell you, that logging is enabled automatically (evil laugh).\nBut do not worry, only some important things will be logged, but it can be disabled or changed.\n\nIf you wish to specify some intents, you should do it something like that:\n\n```python\nimport melisa\n\nclient = melisa.Client(\"your cool token...\",\n                       intents=[\n                           melisa.Intents.GUILD_MEMBERS,\n                           melisa.Intents.GUILD_BANS\n                       ])\n```\n\nOr you can do something like this:\n\n```python\nimport melisa\n\nintents = melisa.Intents.all() - melisa.Intents.GUILD_PRESENCES\n\nclient = melisa.Client(\"your cool token...\",\n                       intents=intents)\n```\n\nAlso sharding is fully supported in Melisa, but it is too long to write about it here,\nso feel free to read our docs!\n\n---\n\n## Making your bot more efficient\n\n### Python optimization flags\nYou can specify some optimization flags in CPython interpreter\n\n1. `python bot.py` - no optimization\n2. `python -O bot.py` - features such as internal assertions will be disabled.\n3. `python -OO bot.py` - more features (including all docstrings) will be removed from the loaded code at runtime.\n\n### `melisa[speed]`\nAlso you can speed up some features in Melisa, like json parsing. \nIt will install `orjson`.\n\n---\n\n## Want to help us?\n\nContributing manual is not ready yet, but will be done in some days.\nFeel free to us in [our Discord Server](https://discord.gg/QX4EG8f7aD) about contributing to the Melisa.\n\n","funding_links":["https://pay.cloudtips.ru/p/41f54886","https://sobe.ru/na/makaroni"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelisadev%2Fmelisa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelisadev%2Fmelisa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelisadev%2Fmelisa/lists"}