This project is in no way associated with Amino or MediaLabs, this is completely reverse engineered
AminoAcid
Why AminoAcid?
Because other projects like BotAmino fail to allow a nicely done, pythonic, completely async hinted experience.
This project aims to open up the possibilities that other libraries don't fulfill by being completely async using aiohttp, allowing OOP, allowing events with a discord.py-esque experience.
While BotAmino tries to be easy to use it fails to provide an easy high-level API by forcing to use Amino.fix instead of allowing access via their own methods and objects.
How do you use it?
AminoAcid's documentation is available through GitHub pages and auto generated using pdoc, for examples take a look into the examples dir
from aminoacid import Bot
from aminoacid.abc import Message, Context
client = Bot(
prefix="b!",
key=bytes.fromhex("B0000000B50000000000000000000B000000000B"),
device = "42..."
)
@client.command(name="say")
async def hi(ctx: Context, *nya: str):
message = await ctx.send(" ".join(nya))
print(message)
@client.event("on_message")
async def on_message(message: Message):
if message.author.id == client.profile.id: return
print(message, "nya!")
client.run(
session="AnsiMSI6..."
)
# OR
#client.run(
# email="mail@gmail.com",
# password= r"Rc2Z=I5S0bN;ewjn2jasdn43",
#)
As you might see, you need to supply your own key to sign the requests with. You can find this in other libraries tho.
Please note, that this library is NOT finished and a lot of features I want to implement are still missing.
How to subscribe to topics to get notifications?
AminoAcid supports receiving notification events via the socket like the normal app would.
The notification future still needs a lot of work, because so far it's not receiving events like follow, comment, etc.
To receive notifications with a certain topic you can it's suggested to send a subscribe object in your on_ready callback
...
@client.event()
async def on_ready():
client.logger.info(client._http.session)
await client.socket.subscribe(ndcId, topic=topic)
...
so far known topics are documented in the Topics enum
Why no key?
The aim of this library is NOT to make malicious bots, which is why you need to put the key in yourself.
This library should only be used for making fun chat bots.
How to do X?
Check the docs, if it's in there then look at how to use it. If it's not there you probably can't.
If you want to request a feature, you can open a new Issue.
AminoAcid or AminoAcids?
This was originally called AminoAcids but then i noticed that the pypi project "aminoacids" was already taken, so i removed the s
To-Do
- Finish Object attributes
- Type checking and converting
- Add Embed features
- Improve existing features
- Better quality in code
- Complete Exceptions
- Complete SocketCode Enum
- Make the SocketClient subscribe to other events to allow on_follow and on_notification events
- Finish started but unfinished methods
- Cog-like Command categories
- on_typing_start, etc. events (socket code 400)
- Command error handlers
Metadata
Release files for aminoacid 0.1.5
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 | Actions |
|---|---|---|---|---|
| aminoacid-0.1.5.tar.gz | 21.0 kB | Without provenance | Details for aminoacid-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aminoacid-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for aminoacid-0.1.5-py3-none-any.whl |
Total release size: 43.5 kB
Release files / aminoacid-0.1.5.tar.gz
| Download URL | aminoacid-0.1.5.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f301a7a287bc7344276c65ba96d52258c98f0c0ea5ad5624b778dc4f0e5e2eb
|
|
BLAKE2b-256 checksum How to use checksums |
34a09693f4e537ddf05bae623b5a0a1335f754db086d91e6df671b986f5e2fa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / aminoacid-0.1.5-py3-none-any.whl
| Download URL | aminoacid-0.1.5-py3-none-any.whl |
|---|---|
| Size | 22.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51d429473a2308a421140a5ee41a3788179fb7808f31941655c94b05741a32d2
|
|
BLAKE2b-256 checksum How to use checksums |
5380ae8a939668a86e68a5b516ddebd92b1739aaceb772a29229dddca52151d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for aminoacid 0.1.5
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.