pymino


Namepymino JSON
Version 1.2.6.6 PyPI version JSON
download
home_pagehttps://github.com/forevercynical/pymino
SummaryEasily create a bot for Amino Apps using a modern easy to use synchronous library.
upload_time2024-04-01 03:57:14
maintainerNone
docs_urlNone
authorforevercynical
requires_python>=3.8
licenseMIT
keywords amino pymino narvii amino-api narvii-bots aminoapps amino-bot amino-bots
VCS
bugtrack_url
requirements requests ujson colorama websocket-client diskcache aiohttp wsaccel
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <img src="https://cdn.discordapp.com/attachments/965717722166100018/1191698817452605500/pymino.png" alt="Pymino Logo" width="200">
  <h1 style="color: #0d47a1; font-size: 3em;">pymino</h1>
  
  <p>
    <a href="https://discord.gg/JMJpzpsMNJ"><img src="https://img.shields.io/discord/926853226152755280?color=blueviolet&label=discord%20server" alt="Discord"></a>
    <a href="https://libraries.io/github/forevercynical/pymino"><img src="https://img.shields.io/librariesio/github/forevercynical/pymino?color=blueviolet" alt="Libraries.io dependency status for GitHub repo"></a>
    <a href="https://github.com/forevercynical/pymino/commits/main"><img src="https://img.shields.io/github/last-commit/forevercynical/pymino?label=last%20updated&color=blueviolet" alt="GitHub last commit"></a>
    <a href="https://pypi.org/project/pymino/"><img src="https://img.shields.io/pypi/dw/pymino?color=blueviolet" alt="PyPI - Downloads"></a>
  </p>

  <p style="font-size: 1.2em; color: #424242;">A Python wrapper to communicate with the Amino Apps API.</p>
  <p style="font-size: 1.2em; color: #424242;">Easily create a bot for Amino Apps using a modern, easy-to-use library.</p>

  <div style="border: 3px solid red; padding: 10px; margin: 15px 0;">
    <h3 style="color: red;"><strong>⚠️ WARNING ⚠️</strong></h3>
    <h3 style="color: red;"><strong>This software is provided for educational purposes only.</strong></h3>
    <p><strong>Pymino is a fully reverse-engineered client. By using this client, you may be violating the Amino Apps' Terms of Service. This could lead to your account being suspended or permanently banned. Please use Pymino responsibly and at your own risk.</strong></p>
    <p><strong>Understand that the developers and maintainers of Pymino are not responsible for any actions taken against your account as a result of using this client. Proceed with caution.</strong></p>
  </div>

  <p style="font-size: 1.2em; color: #424242;">If you have any questions or need help, feel free to join the Discord server.</p>
  
  <a href="https://discord.gg/JMJpzpsMNJ">
    <img src="https://cdn.discordapp.com/attachments/965797874791223317/1081754594977267833/discord-button.png" alt="Join Our Discord Server" width="150" height="50">
  </a>
  
  <h2 style="color: #0d47a1; font-size: 2em;">Installation</h2>
  
  <p style="font-size: 1.2em; color: #424242;">Recommended installation method is through pip:</p>
  
  <pre style="background-color: #f5f5f5; padding: 10px;"><code style="color: #f44336;">pip install pymino</code></pre>
  
  <p style="font-size: 1.2em; color: #424242;">Alternatively, you can clone the repository and install it manually:</p>
  
  <pre style="background-color: #f5f5f5; padding: 10px;"><code style="color: #f44336;">git clone https://github.com/forevercynical/pymino.git
  cd pymino
  python setup.py install</code></pre>
  
  <p style="font-size: 1.2em; color: #424242;">For more detailed documentation and usage examples, check out the project's <a href="https://pymino.info/index.html">official documentation</a>.</p>
</div>

<div>
  <h2 align="center">Client Class Usage</h2>

  <pre><code class="language-python">
>>> from pymino import Client

>>> # Initialize the client
>>> client = Client() # You can set proxies and device_id here

>>> # You need to login to utilize most functions.
>>> client.login("email", "password") or client.login("sid")
>>> print(f"Logged in as {client.profile.username}")

>>> # We can either set community_id by link or by comId.
>>> client.fetch_community_id(community_link="https://aminoapps.com/c/OnePiece")
>>> # Or
>>> client.set_community_id(community_id=123)

>>> # To access community functions we utilize the community property.
>>> client.community.send_message(
...     chatId=000000-0000-0000-000000,
...     content="Hello world!"
... )
>>> # This will utilize the community id we set earlier.
>>> # We can also set the community id in the function call itself.
>>> client.community.send_message(
...     chatId=000000-0000-0000-000000,
...     content="Hello world!",
...     comId=123
... )
  </code></pre>
</div>



<div>
  <h2 align="center">Bot Class Usage</h2>

  <pre><code class="language-python">
>>> from pymino import Bot
>>> from pymino.ext import *

>>> # Initialize the bot
>>> bot = Bot(
...     command_prefix="!",
...     community_id=00000000,
...     console_enabled=True,
...     device_id=None,
...     intents=True,
...     online_status=True,
...     proxy="http://127.0.0.1:8080" # Must be a string.
... ) 

>>> # The on_ready event is called when the bot has logged in.
>>> @bot.on_ready()
... def ready():
...     print(f"{bot.profile.username} has logged in!")

>>> # The on_text_message event is called when a message is received.
>>> @bot.on_text_message()
... def message(ctx: Context, member: Member, message: str):
...     print(f"{member.username}: {message}")
...     if message.startswith("hi"):
...         ctx.reply("Hello!")

>>> # The on_member_join event is called when a member joins a chat.
>>> @bot.on_member_join()
... def join(ctx: Context, member: Member):
...     ctx.reply(f"Welcome to the chat, {member.username}!")

>>> # The on_member_leave event is called when a member leaves a chat.
>>> @bot.on_member_leave()
... def leave(ctx: Context):
...     ctx.reply(f"Goodbye!")

>>> # This is how you create a command.
>>> @bot.command(
...     name="ping", # Set the name of the command.
...     description="This will reply with Pong!", # Set the description of the command.
...     aliases=["p"], # Set the aliases of the command. This will allow !p to be used as !ping.
...     cooldown=0 # Set the cooldown of the command. This will prevent the command from being used for <cooldown> seconds.
... )
... def ping(ctx: Context): # The context is passed to the function.
...     ctx.reply("Pong!") # This will reply to the message with "Pong!"

>>> @bot.command("say")
... def say(ctx: Context, message: str): # message will be the content message after the command.
...     ctx.reply(message) # This will reply to the message with the message argument.

>>> @bot.task(interval=10) # This will run any task every 10 seconds.
... def task(): # This will not use community functions.
...     print("This is a task! It will run every 10 seconds!")

>>> @bot.task(interval=30)
... def task(community: Community):
...     [...] # Do something in the community
...     community.send_message(chatId, "Hello world!")
...     print("This is a community task! It will run every 30 seconds.")

>>> @bot.on_error()
... def error(error: Exception): # This will be called when an error occurs.
...     print(f"An error has occurred: {error}")

>>> bot.run("email", "password") or bot.run("sid") # You can login with email and password or sid.
  </code></pre>
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/forevercynical/pymino",
    "name": "pymino",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "amino, pymino, narvii, amino-api, narvii-bots, aminoapps, amino-bot, amino-bots",
    "author": "forevercynical",
    "author_email": "me@cynical.gg",
    "download_url": "https://files.pythonhosted.org/packages/97/16/1f85ec79c8858747dbba961f725813eab2c48bebbb37c328dac5f8689bf4/pymino-1.2.6.6.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <img src=\"https://cdn.discordapp.com/attachments/965717722166100018/1191698817452605500/pymino.png\" alt=\"Pymino Logo\" width=\"200\">\n  <h1 style=\"color: #0d47a1; font-size: 3em;\">pymino</h1>\n  \n  <p>\n    <a href=\"https://discord.gg/JMJpzpsMNJ\"><img src=\"https://img.shields.io/discord/926853226152755280?color=blueviolet&label=discord%20server\" alt=\"Discord\"></a>\n    <a href=\"https://libraries.io/github/forevercynical/pymino\"><img src=\"https://img.shields.io/librariesio/github/forevercynical/pymino?color=blueviolet\" alt=\"Libraries.io dependency status for GitHub repo\"></a>\n    <a href=\"https://github.com/forevercynical/pymino/commits/main\"><img src=\"https://img.shields.io/github/last-commit/forevercynical/pymino?label=last%20updated&color=blueviolet\" alt=\"GitHub last commit\"></a>\n    <a href=\"https://pypi.org/project/pymino/\"><img src=\"https://img.shields.io/pypi/dw/pymino?color=blueviolet\" alt=\"PyPI - Downloads\"></a>\n  </p>\n\n  <p style=\"font-size: 1.2em; color: #424242;\">A Python wrapper to communicate with the Amino Apps API.</p>\n  <p style=\"font-size: 1.2em; color: #424242;\">Easily create a bot for Amino Apps using a modern, easy-to-use library.</p>\n\n  <div style=\"border: 3px solid red; padding: 10px; margin: 15px 0;\">\n    <h3 style=\"color: red;\"><strong>\u26a0\ufe0f WARNING \u26a0\ufe0f</strong></h3>\n    <h3 style=\"color: red;\"><strong>This software is provided for educational purposes only.</strong></h3>\n    <p><strong>Pymino is a fully reverse-engineered client. By using this client, you may be violating the Amino Apps' Terms of Service. This could lead to your account being suspended or permanently banned. Please use Pymino responsibly and at your own risk.</strong></p>\n    <p><strong>Understand that the developers and maintainers of Pymino are not responsible for any actions taken against your account as a result of using this client. Proceed with caution.</strong></p>\n  </div>\n\n  <p style=\"font-size: 1.2em; color: #424242;\">If you have any questions or need help, feel free to join the Discord server.</p>\n  \n  <a href=\"https://discord.gg/JMJpzpsMNJ\">\n    <img src=\"https://cdn.discordapp.com/attachments/965797874791223317/1081754594977267833/discord-button.png\" alt=\"Join Our Discord Server\" width=\"150\" height=\"50\">\n  </a>\n  \n  <h2 style=\"color: #0d47a1; font-size: 2em;\">Installation</h2>\n  \n  <p style=\"font-size: 1.2em; color: #424242;\">Recommended installation method is through pip:</p>\n  \n  <pre style=\"background-color: #f5f5f5; padding: 10px;\"><code style=\"color: #f44336;\">pip install pymino</code></pre>\n  \n  <p style=\"font-size: 1.2em; color: #424242;\">Alternatively, you can clone the repository and install it manually:</p>\n  \n  <pre style=\"background-color: #f5f5f5; padding: 10px;\"><code style=\"color: #f44336;\">git clone https://github.com/forevercynical/pymino.git\n  cd pymino\n  python setup.py install</code></pre>\n  \n  <p style=\"font-size: 1.2em; color: #424242;\">For more detailed documentation and usage examples, check out the project's <a href=\"https://pymino.info/index.html\">official documentation</a>.</p>\n</div>\n\n<div>\n  <h2 align=\"center\">Client Class Usage</h2>\n\n  <pre><code class=\"language-python\">\n>>> from pymino import Client\n\n>>> # Initialize the client\n>>> client = Client() # You can set proxies and device_id here\n\n>>> # You need to login to utilize most functions.\n>>> client.login(\"email\", \"password\") or client.login(\"sid\")\n>>> print(f\"Logged in as {client.profile.username}\")\n\n>>> # We can either set community_id by link or by comId.\n>>> client.fetch_community_id(community_link=\"https://aminoapps.com/c/OnePiece\")\n>>> # Or\n>>> client.set_community_id(community_id=123)\n\n>>> # To access community functions we utilize the community property.\n>>> client.community.send_message(\n...     chatId=000000-0000-0000-000000,\n...     content=\"Hello world!\"\n... )\n>>> # This will utilize the community id we set earlier.\n>>> # We can also set the community id in the function call itself.\n>>> client.community.send_message(\n...     chatId=000000-0000-0000-000000,\n...     content=\"Hello world!\",\n...     comId=123\n... )\n  </code></pre>\n</div>\n\n\n\n<div>\n  <h2 align=\"center\">Bot Class Usage</h2>\n\n  <pre><code class=\"language-python\">\n>>> from pymino import Bot\n>>> from pymino.ext import *\n\n>>> # Initialize the bot\n>>> bot = Bot(\n...     command_prefix=\"!\",\n...     community_id=00000000,\n...     console_enabled=True,\n...     device_id=None,\n...     intents=True,\n...     online_status=True,\n...     proxy=\"http://127.0.0.1:8080\" # Must be a string.\n... ) \n\n>>> # The on_ready event is called when the bot has logged in.\n>>> @bot.on_ready()\n... def ready():\n...     print(f\"{bot.profile.username} has logged in!\")\n\n>>> # The on_text_message event is called when a message is received.\n>>> @bot.on_text_message()\n... def message(ctx: Context, member: Member, message: str):\n...     print(f\"{member.username}: {message}\")\n...     if message.startswith(\"hi\"):\n...         ctx.reply(\"Hello!\")\n\n>>> # The on_member_join event is called when a member joins a chat.\n>>> @bot.on_member_join()\n... def join(ctx: Context, member: Member):\n...     ctx.reply(f\"Welcome to the chat, {member.username}!\")\n\n>>> # The on_member_leave event is called when a member leaves a chat.\n>>> @bot.on_member_leave()\n... def leave(ctx: Context):\n...     ctx.reply(f\"Goodbye!\")\n\n>>> # This is how you create a command.\n>>> @bot.command(\n...     name=\"ping\", # Set the name of the command.\n...     description=\"This will reply with Pong!\", # Set the description of the command.\n...     aliases=[\"p\"], # Set the aliases of the command. This will allow !p to be used as !ping.\n...     cooldown=0 # Set the cooldown of the command. This will prevent the command from being used for <cooldown> seconds.\n... )\n... def ping(ctx: Context): # The context is passed to the function.\n...     ctx.reply(\"Pong!\") # This will reply to the message with \"Pong!\"\n\n>>> @bot.command(\"say\")\n... def say(ctx: Context, message: str): # message will be the content message after the command.\n...     ctx.reply(message) # This will reply to the message with the message argument.\n\n>>> @bot.task(interval=10) # This will run any task every 10 seconds.\n... def task(): # This will not use community functions.\n...     print(\"This is a task! It will run every 10 seconds!\")\n\n>>> @bot.task(interval=30)\n... def task(community: Community):\n...     [...] # Do something in the community\n...     community.send_message(chatId, \"Hello world!\")\n...     print(\"This is a community task! It will run every 30 seconds.\")\n\n>>> @bot.on_error()\n... def error(error: Exception): # This will be called when an error occurs.\n...     print(f\"An error has occurred: {error}\")\n\n>>> bot.run(\"email\", \"password\") or bot.run(\"sid\") # You can login with email and password or sid.\n  </code></pre>\n</div>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Easily create a bot for Amino Apps using a modern easy to use synchronous library.",
    "version": "1.2.6.6",
    "project_urls": {
        "Homepage": "https://github.com/forevercynical/pymino"
    },
    "split_keywords": [
        "amino",
        " pymino",
        " narvii",
        " amino-api",
        " narvii-bots",
        " aminoapps",
        " amino-bot",
        " amino-bots"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "beff979dc93519905a9eb22edfb158a7b4a60dcccd8a006539f22a06d7f49d3b",
                "md5": "3e51365f94083d94ab8c2ab41f4f0f77",
                "sha256": "446a291cd4c8a37e1d78c68442b01bfbbcf55840e315271945d7e3b840dc2d5c"
            },
            "downloads": -1,
            "filename": "pymino-1.2.6.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3e51365f94083d94ab8c2ab41f4f0f77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 136920,
            "upload_time": "2024-04-01T03:57:09",
            "upload_time_iso_8601": "2024-04-01T03:57:09.887417Z",
            "url": "https://files.pythonhosted.org/packages/be/ff/979dc93519905a9eb22edfb158a7b4a60dcccd8a006539f22a06d7f49d3b/pymino-1.2.6.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97161f85ec79c8858747dbba961f725813eab2c48bebbb37c328dac5f8689bf4",
                "md5": "63acd28e4b883d8ec575dc12c437bcae",
                "sha256": "ccfb4bd0d4ee23fa1a3ad1fa8e58f21560da52ad737750deef86e858cf2aa4a8"
            },
            "downloads": -1,
            "filename": "pymino-1.2.6.6.tar.gz",
            "has_sig": false,
            "md5_digest": "63acd28e4b883d8ec575dc12c437bcae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 127401,
            "upload_time": "2024-04-01T03:57:14",
            "upload_time_iso_8601": "2024-04-01T03:57:14.556073Z",
            "url": "https://files.pythonhosted.org/packages/97/16/1f85ec79c8858747dbba961f725813eab2c48bebbb37c328dac5f8689bf4/pymino-1.2.6.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-01 03:57:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "forevercynical",
    "github_project": "pymino",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "ujson",
            "specs": [
                [
                    "==",
                    "5.8.0"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "websocket-client",
            "specs": [
                [
                    "==",
                    "1.6.1"
                ]
            ]
        },
        {
            "name": "diskcache",
            "specs": [
                [
                    "==",
                    "5.6.1"
                ]
            ]
        },
        {
            "name": "aiohttp",
            "specs": [
                [
                    "==",
                    "3.8.4"
                ]
            ]
        },
        {
            "name": "wsaccel",
            "specs": [
                [
                    "==",
                    "0.6.4"
                ]
            ]
        }
    ],
    "lcname": "pymino"
}
        
Elapsed time: 0.21284s