pyyapper 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyyapper/__init__.py ADDED
@@ -0,0 +1,48 @@
1
+ """PyYapper - an intuitive, async Python library for the Yapper bot API.
2
+
3
+ Example::
4
+
5
+ import asyncio
6
+ from pyyapper import Bot
7
+
8
+ bot = Bot("yb_...")
9
+
10
+ @bot.command("ping", description="Is the bot alive?")
11
+ async def ping(ctx):
12
+ await ctx.reply("pong")
13
+
14
+ @bot.event
15
+ async def on_ready(me):
16
+ print("online as", me.username)
17
+
18
+ bot.run()
19
+ """
20
+
21
+ from . import _version
22
+ from .bot import Bot, Context, InteractionContext
23
+ from .embeds import Embed
24
+ from .buttons import Button, Row
25
+ from .errors import (
26
+ YapperError,
27
+ ConfigurationError,
28
+ HTTPException,
29
+ BadRequest,
30
+ Unauthorized,
31
+ Forbidden,
32
+ NotFound,
33
+ RateLimited,
34
+ ServerError,
35
+ )
36
+ from .models import (
37
+ User, Server, Channel, Category, Member, Message, Role,
38
+ )
39
+
40
+ __version__ = _version.__version__
41
+ __all__ = [
42
+ "Bot", "Context", "InteractionContext",
43
+ "Embed", "Button", "Row",
44
+ "YapperError", "ConfigurationError", "HTTPException",
45
+ "BadRequest", "Unauthorized", "Forbidden", "NotFound", "RateLimited", "ServerError",
46
+ "User", "Server", "Channel", "Category", "Member", "Message", "Role",
47
+ "__version__",
48
+ ]
pyyapper/_version.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "1.0.0"