ezcloud


Nameezcloud JSON
Version 0.7.1 PyPI version JSON
download
home_page
SummaryAn easy-to-use extension for Discord.py and ezcloud
upload_time2023-12-24 12:09:28
maintainer
docs_urlNone
authortimoodev
requires_python>=3.9
licenseMIT
keywords discord ezcloud py-cord discord.py
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![ezcloud]( https://raw.githubusercontent.com/Timoo12/ezcloud/main/docs/_static/ezcloud.png)](https://github.com/Timoo12/ezcloud)

[![](https://img.shields.io/pypi/v/ezcloud.svg?style=for-the-badge&logo=pypi&color=yellow&logoColor=white)](https://pypi.org/project/ezcloud/)
[![](https://img.shields.io/pypi/l/ezcloud?style=for-the-badge)](https://github.com/Timoo12/ezcloud/blob/main/LICENSE)

An easy-to-use extension for [Discord.py](https://github.com/Rapptz/discord.py)
and [ezcloud](https://github.com/ezcloud-Development/ezcloud) with some utility functions.

## Features
### ✏️ Reduce boilerplate code
- Easy cog management
- Embed templates
- Datetime and file utilities
- Wrapper for [aiosqlite](https://github.com/omnilib/aiosqlite)

### ✨ Error handling
- Automatic error handling for slash commands
- Error webhook reports
- Custom logging

### ⚙️ Extensions
- **Help command** - Automatically generate a help command for your bot
- **Status changer** - Change the bot's status in an interval
- **Blacklist** - Block users from using your bot

## Installing
Python 3.9 or higher is required.
```
pip install ezcloud
```
You can also install the latest version from GitHub. Note that this version may be unstable
and requires [git](https://git-scm.com/downloads) to be installed.
```
pip install git+https://github.com/Timoo12/ezcloud
```
If you need the latest version in your `requirements.txt` file, you can add this line:
```
ezcloud @ git+https://github.com/Timoo12/ezcloud
```

## Useful Links
- [Documentation](https://ezcloud.readthedocs.io/) | [Getting started](https://ezcloud.readthedocs.io/en/latest/pages/getting_started.html)
- [ezcloud](https://docs.ezcloud.dev/) | [Discord.py](https://discordpy.readthedocs.io/en/stable/)
- [PyPi](https://pypi.org/project/ezcloud/)

## Examples
- For more examples, see the [example repository](https://github.com/Timoo12/ezcloud-template)
or the [sample code](https://ezcloud.readthedocs.io/en/latest/examples/examples.html).
- **Note:** It's recommended to [load the token](https://guide.ezcloud.dev/getting-started/creating-your-first-bot#protecting-tokens) from a `.env` file instead of hardcoding it.
ezcloud can automatically load the token if a `TOKEN` variable is present in the `.env` file.

### ezcloud
```py
import ezcloud
import discord

bot = ezcloud.Bot(
    intents=discord.Intents.default()
)

if __name__ == "__main__":
    bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
    bot.run("TOKEN")
```

### Discord.py
```py
import asyncio
import discord
import ezcloud


class Bot(ezcloud.Bot):
    def __init__(self):
        super().__init__(intents=discord.Intents.default())

    async def setup_hook(self):
        await super().setup_hook()
        await self.tree.sync()


async def main():
    async with Bot() as bot:
        bot.add_help_command()
        bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
        await bot.start("TOKEN")


if __name__ == "__main__":
    asyncio.run(main())
```

## Contributing
I am always happy to receive contributions. Here is how to do it:
1. Fork this repository
2. Make changes
3. Create a pull request

You can also [create an issue](https://github.com/Timoo12/ezcloud/issues/new) if you find any bugs.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ezcloud",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "discord,ezcloud,py-cord,discord.py",
    "author": "timoodev",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/46/97/5925aad4bbd4cf0218a559fa14a2d50683f0f0cb9dc25511813821fb7eb5/ezcloud-0.7.1.tar.gz",
    "platform": null,
    "description": "[![ezcloud]( https://raw.githubusercontent.com/Timoo12/ezcloud/main/docs/_static/ezcloud.png)](https://github.com/Timoo12/ezcloud)\r\n\r\n[![](https://img.shields.io/pypi/v/ezcloud.svg?style=for-the-badge&logo=pypi&color=yellow&logoColor=white)](https://pypi.org/project/ezcloud/)\r\n[![](https://img.shields.io/pypi/l/ezcloud?style=for-the-badge)](https://github.com/Timoo12/ezcloud/blob/main/LICENSE)\r\n\r\nAn easy-to-use extension for [Discord.py](https://github.com/Rapptz/discord.py)\r\nand [ezcloud](https://github.com/ezcloud-Development/ezcloud) with some utility functions.\r\n\r\n## Features\r\n### \u270f\ufe0f Reduce boilerplate code\r\n- Easy cog management\r\n- Embed templates\r\n- Datetime and file utilities\r\n- Wrapper for [aiosqlite](https://github.com/omnilib/aiosqlite)\r\n\r\n### \u2728 Error handling\r\n- Automatic error handling for slash commands\r\n- Error webhook reports\r\n- Custom logging\r\n\r\n### \u2699\ufe0f Extensions\r\n- **Help command** - Automatically generate a help command for your bot\r\n- **Status changer** - Change the bot's status in an interval\r\n- **Blacklist** - Block users from using your bot\r\n\r\n## Installing\r\nPython 3.9 or higher is required.\r\n```\r\npip install ezcloud\r\n```\r\nYou can also install the latest version from GitHub. Note that this version may be unstable\r\nand requires [git](https://git-scm.com/downloads) to be installed.\r\n```\r\npip install git+https://github.com/Timoo12/ezcloud\r\n```\r\nIf you need the latest version in your `requirements.txt` file, you can add this line:\r\n```\r\nezcloud @ git+https://github.com/Timoo12/ezcloud\r\n```\r\n\r\n## Useful Links\r\n- [Documentation](https://ezcloud.readthedocs.io/) | [Getting started](https://ezcloud.readthedocs.io/en/latest/pages/getting_started.html)\r\n- [ezcloud](https://docs.ezcloud.dev/) | [Discord.py](https://discordpy.readthedocs.io/en/stable/)\r\n- [PyPi](https://pypi.org/project/ezcloud/)\r\n\r\n## Examples\r\n- For more examples, see the [example repository](https://github.com/Timoo12/ezcloud-template)\r\nor the [sample code](https://ezcloud.readthedocs.io/en/latest/examples/examples.html).\r\n- **Note:** It's recommended to [load the token](https://guide.ezcloud.dev/getting-started/creating-your-first-bot#protecting-tokens) from a `.env` file instead of hardcoding it.\r\nezcloud can automatically load the token if a `TOKEN` variable is present in the `.env` file.\r\n\r\n### ezcloud\r\n```py\r\nimport ezcloud\r\nimport discord\r\n\r\nbot = ezcloud.Bot(\r\n    intents=discord.Intents.default()\r\n)\r\n\r\nif __name__ == \"__main__\":\r\n    bot.load_cogs(\"cogs\")  # Load all cogs in the \"cogs\" folder\r\n    bot.run(\"TOKEN\")\r\n```\r\n\r\n### Discord.py\r\n```py\r\nimport asyncio\r\nimport discord\r\nimport ezcloud\r\n\r\n\r\nclass Bot(ezcloud.Bot):\r\n    def __init__(self):\r\n        super().__init__(intents=discord.Intents.default())\r\n\r\n    async def setup_hook(self):\r\n        await super().setup_hook()\r\n        await self.tree.sync()\r\n\r\n\r\nasync def main():\r\n    async with Bot() as bot:\r\n        bot.add_help_command()\r\n        bot.load_cogs(\"cogs\")  # Load all cogs in the \"cogs\" folder\r\n        await bot.start(\"TOKEN\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    asyncio.run(main())\r\n```\r\n\r\n## Contributing\r\nI am always happy to receive contributions. Here is how to do it:\r\n1. Fork this repository\r\n2. Make changes\r\n3. Create a pull request\r\n\r\nYou can also [create an issue](https://github.com/Timoo12/ezcloud/issues/new) if you find any bugs.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An easy-to-use extension for Discord.py and ezcloud",
    "version": "0.7.1",
    "project_urls": {
        "Documentation": "https://ezcloud.readthedocs.io",
        "GitHub": "https://github.com/Timoo12/ezcloud"
    },
    "split_keywords": [
        "discord",
        "ezcloud",
        "py-cord",
        "discord.py"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ef97c418a98d93d30d09f9bb6c044645e29dce40c6f264c4c5dac328cac8858",
                "md5": "b57aca17c5fb5ba533bb30e4a93bf4ca",
                "sha256": "fa3f26b73572badce5a7d739a58a2bcb7eae575c5a4a13156f145bd133e9fee6"
            },
            "downloads": -1,
            "filename": "ezcloud-0.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b57aca17c5fb5ba533bb30e4a93bf4ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 46778,
            "upload_time": "2023-12-24T12:09:26",
            "upload_time_iso_8601": "2023-12-24T12:09:26.587528Z",
            "url": "https://files.pythonhosted.org/packages/1e/f9/7c418a98d93d30d09f9bb6c044645e29dce40c6f264c4c5dac328cac8858/ezcloud-0.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46975925aad4bbd4cf0218a559fa14a2d50683f0f0cb9dc25511813821fb7eb5",
                "md5": "297d96dd03f7a6bf297302c1bdca472e",
                "sha256": "bc1e9682b5bce6e51ca2baef22d9c13560d96f1956b84e1a8805ac216102fc84"
            },
            "downloads": -1,
            "filename": "ezcloud-0.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "297d96dd03f7a6bf297302c1bdca472e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 41345,
            "upload_time": "2023-12-24T12:09:28",
            "upload_time_iso_8601": "2023-12-24T12:09:28.347034Z",
            "url": "https://files.pythonhosted.org/packages/46/97/5925aad4bbd4cf0218a559fa14a2d50683f0f0cb9dc25511813821fb7eb5/ezcloud-0.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-24 12:09:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Timoo12",
    "github_project": "ezcloud",
    "github_not_found": true,
    "lcname": "ezcloud"
}
        
Elapsed time: 0.15353s