Total Complexity | 1 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | Pincer library |
||
3 | ==================== |
||
4 | An asynchronous python API wrapper meant to replace discord.py |
||
5 | |||
6 | Copyright Pincer 2021 |
||
7 | Full MIT License can be found in `LICENSE` at the project root. |
||
8 | """ |
||
9 | |||
10 | from typing import NamedTuple, Literal |
||
|
|||
11 | |||
12 | from pincer.client import Client, Bot |
||
13 | from pincer.commands import command |
||
14 | from pincer.objects import Intents |
||
15 | |||
16 | __package__ = "pincer" |
||
17 | __title__ = "Pincer library" |
||
18 | __description__ = "Discord API wrapper rebuild from scratch." |
||
19 | __author__ = "Sigmanificient, Arthurdw" |
||
20 | __email__ = "[email protected]" |
||
21 | __license__ = "MIT" |
||
22 | |||
23 | |||
24 | class VersionInfo(NamedTuple): |
||
25 | major: int |
||
26 | minor: int |
||
27 | micro: int |
||
28 | release_level: Literal["alpha", "beta", "candidate", "final", "dev"] |
||
29 | serial: int |
||
30 | |||
31 | def __repr__(self) -> str: |
||
32 | return ( |
||
33 | f'{self.major}.{self.minor}.{self.micro}' |
||
34 | f'-{self.release_level}{self.serial}' |
||
35 | ) |
||
36 | |||
37 | |||
38 | __version__ = VersionInfo(0, 6, 11, 'dev', 0) |
||
39 | __all__ = ( |
||
40 | "__version__", "__title__", "__package__", |
||
41 | "__author__", "__email__", |
||
42 | "Client", "Bot", "command", "Intents" |
||
43 | ) |
||
44 |