MiPA
Overview
MiPA is a Misskey Bot Framework created to allow for Discord.py-like coding.
About MiPAC
The API wrapper functionality provided by MiPA is managed by a library called MiPAC. Since the amount of work is significantly higher than that of MiPA, we are looking for people to work with us.
Supported Misskey Versions
Examples
import asyncio
from aiohttp import ClientWebSocketResponse
from mipac.models.note import Note
from mipa.ext.commands.bot import Bot
class MyBot(Bot):
def __init__(self):
super().__init__()
async def _connect_channel(self):
await self.router.connect_channel(['main', 'home'])
async def on_ready(self, ws: ClientWebSocketResponse):
await self._connect_channel()
print('Logged in ', self.user.username)
async def on_reconnect(self, ws: ClientWebSocketResponse):
await self._connect_channel()
async def on_note(self, note: Note):
print(note.user.username, note.text)
if __name__ == '__main__':
bot = MyBot()
asyncio.run(bot.start('wss://example.com/streaming', 'your token here'))
For more examples, please see the examples folder. If you don't know how to do what you want in the examples, please feel free to create an issue.
LICENSE
This project is provided under the MIT LICENSE.
MiPA has been inspired by Discord.py in many ways. Therefore, in places where we use the source code of Discord.py, we specify the license of Discord.py at the beginning of the file. Please check the code for details.
Special Thanks
- Discord.py
- We have been inspired by many aspects of Discord.py, such as the mechanism of Cogs and the management of tasks and states.
Metadata
Release files for mipa 0.5.1
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 | |
|---|---|---|---|---|
| mipa-0.5.1.tar.gz | 37.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mipa-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.4 kB
Release files / mipa-0.5.1.tar.gz
| Download URL | mipa-0.5.1.tar.gz |
|---|---|
| Size | 37.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b48a715bb6c95264420aaa1b1014d45bee37e30235bb34b7a1aece853a4d1d33
|
|
BLAKE2b-256 checksum How to use checksums |
382f2c4cd2205cfd51e655ef382ca8175eba270ba9657af3df1db6f12cc2d0bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / mipa-0.5.1-py3-none-any.whl
| Download URL | mipa-0.5.1-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3203abc51cb831ae270420c293049996893f8b8f3452289f1cfb39ae16b5bbe8
|
|
BLAKE2b-256 checksum How to use checksums |
6e4bb5bb52c485ea74d6318a28f24826af03c5b4e1b70cefc129713fd2f12e1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for mipa 0.5.1
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.