Amino.ed


NameAmino.ed JSON
Version 2.8.4.12 PyPI version JSON
download
home_pagehttps://github.com/Alert-Aigul/Amino.ed
SummaryA library to create Amino bots.
upload_time2023-01-30 18:38:38
maintainer
docs_urlNone
authorAlert Aigul
requires_python>=3.6
licenseMIT
keywords aminoapps amino-py amino amino-bot amino.py amino.ed amino-ed narvii api python python3 python3.x official alert fix ed
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Installing
```
pip install amino.ed
```

# Example
```py
import aminoed

@aminoed.run_with_client()
async def main(client: aminoed.Client):
    await client.login("email", "password")

```

# Chat-bot example
```py
from aminoed import *

bot = Client(prefix="!")

@bot.execute() # Runs in the background, after bot.start()
async def on_start():
    print(f"Bot {bot.auth.user.nickname} working.")
    
@bot.command() # Comand name - function name
async def help(event: Event):
    await event.send_message("[c]Comands\n" \
        "?chatmembers - members count.")

@bot.command("chatmembers", "?") # Custom command and prefix
async def chatmembers(event: Event):
    chat = await event.client.get_chat_thread(event.threadId)
    await event.send_message(f"Chat members count: {chat.membersCount}.")
    
bot.start("email", "password")


```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Alert-Aigul/Amino.ed",
    "name": "Amino.ed",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "aminoapps,amino-py,amino,amino-bot,amino.py,amino.ed,amino-ed,narvii,api,python,python3,python3.x,official,alert,fix,ed",
    "author": "Alert Aigul",
    "author_email": "alertaigul@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f9/4d/819dad397f5547d07a7c85160e6f0d38b1e74b5f3d9caacd0b9824d1a737/Amino.ed-2.8.4.12.tar.gz",
    "platform": null,
    "description": "# Installing\r\n```\r\npip install amino.ed\r\n```\r\n\r\n# Example\r\n```py\r\nimport aminoed\r\n\r\n@aminoed.run_with_client()\r\nasync def main(client: aminoed.Client):\r\n    await client.login(\"email\", \"password\")\r\n\r\n```\r\n\r\n# Chat-bot example\r\n```py\r\nfrom aminoed import *\r\n\r\nbot = Client(prefix=\"!\")\r\n\r\n@bot.execute() # Runs in the background, after bot.start()\r\nasync def on_start():\r\n    print(f\"Bot {bot.auth.user.nickname} working.\")\r\n    \r\n@bot.command() # Comand name - function name\r\nasync def help(event: Event):\r\n    await event.send_message(\"[c]Comands\\n\" \\\r\n        \"?chatmembers - members count.\")\r\n\r\n@bot.command(\"chatmembers\", \"?\") # Custom command and prefix\r\nasync def chatmembers(event: Event):\r\n    chat = await event.client.get_chat_thread(event.threadId)\r\n    await event.send_message(f\"Chat members count: {chat.membersCount}.\")\r\n    \r\nbot.start(\"email\", \"password\")\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library to create Amino bots.",
    "version": "2.8.4.12",
    "split_keywords": [
        "aminoapps",
        "amino-py",
        "amino",
        "amino-bot",
        "amino.py",
        "amino.ed",
        "amino-ed",
        "narvii",
        "api",
        "python",
        "python3",
        "python3.x",
        "official",
        "alert",
        "fix",
        "ed"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f94d819dad397f5547d07a7c85160e6f0d38b1e74b5f3d9caacd0b9824d1a737",
                "md5": "2d36b5980315361aad0d0a964e9e3c89",
                "sha256": "bf4fcd65b175fa5f89319118cead67efedfd9ea8a9e4f1e56348e9d79741c699"
            },
            "downloads": -1,
            "filename": "Amino.ed-2.8.4.12.tar.gz",
            "has_sig": false,
            "md5_digest": "2d36b5980315361aad0d0a964e9e3c89",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 36344,
            "upload_time": "2023-01-30T18:38:38",
            "upload_time_iso_8601": "2023-01-30T18:38:38.817678Z",
            "url": "https://files.pythonhosted.org/packages/f9/4d/819dad397f5547d07a7c85160e6f0d38b1e74b5f3d9caacd0b9824d1a737/Amino.ed-2.8.4.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-30 18:38:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Alert-Aigul",
    "github_project": "Amino.ed",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "amino.ed"
}
        
Elapsed time: 0.03760s