This release is a pre-release and may not be stable for production use.
The easiest way to create your own optimized Discord Bot.
THIS LIBRARY IS CURRENTLY UNDER DEVELOPMENT!
Every provided example or a feature is not ready or may be changed in the future
About
MelisaPy is a Discord microframework for Python 3 for the Discord API.
It supports Discord V10 REST API and Gateway
We are trying to make our library optimized. We are going to create really cool cache configuration, so don't worry about the RAM :)
Install MelisaPy
NOTE: Currently, installation is only possible using GitHub
pip install git+https://github.com/MelisaDev/melisa
Events Listening
import melisa
client = melisa.Client("your cool token...")
@client.listen
async def on_message_create(message):
if message.content.startswith('$greet'):
await message.channel.send(f'Hello man!')
client.run_autosharded()
Also, we should tell you, that logging is enabled automatically (evil laugh). But do not worry, only some important things will be logged, but it can be disabled or changed.
If you wish to specify some intents, you should do it something like that:
import melisa
client = melisa.Client("your cool token...",
intents=[
melisa.Intents.GUILD_MEMBERS,
melisa.Intents.GUILD_BANS
])
Or you can do something like this:
import melisa
intents = melisa.Intents.all() - melisa.Intents.GUILD_PRESENCES
client = melisa.Client("your cool token...",
intents=intents)
Also sharding is fully supported in Melisa, but it is too long to write about it here, so feel free to read our docs!
Making your bot more efficient
Python optimization flags
You can specify some optimization flags in CPython interpreter
python bot.py- no optimizationpython -O bot.py- features such as internal assertions will be disabled.python -OO bot.py- more features (including all docstrings) will be removed from the loaded code at runtime.
melisa[speed]
Also you can speed up some features in Melisa, like json parsing.
It will install orjson.
Want to help us?
Contributing manual is not ready yet, but will be done in some days. Feel free to us in our Discord Server about contributing to the Melisa.
Metadata
Release files for melisa 0.0.1.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| melisa-0.0.1.dev2.tar.gz | 57.5 kB | Without provenance | Details |
Release files / melisa-0.0.1.dev2.tar.gz
| Download URL | melisa-0.0.1.dev2.tar.gz |
|---|---|
| Size | 57.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54fd0dd36cf3c33e832936cf99a6c3e8056ad5a269eadcfef3d1c1841396c720
|
|
BLAKE2b-256 checksum How to use checksums |
3003fc9ee306259ebf622d77795de77b4ce87f91ca2e9c6d9473676c70aff792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.1
|
Security for melisa 0.0.1.dev2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.