Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
dblpy.egg-info/
topggpy.egg-info/
topgg/__pycache__/
**/__pycache__/
.ruff_cache/
.vscode/
build/
docs/_build/
dist/
/docs/_build
/docs/_templates
.vscode
/.idea/
__pycache__
.coverage
.pytest_cache/
topggpy.egg-info/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 0 additions & 21 deletions mypy.ini

This file was deleted.

15 changes: 6 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,33 @@ requires = ["setuptools"]

[project]
name = "topggpy"
version = "3.0.0"
description = "A community-maintained Python API Client for the Top.gg API."
version = "1.5.0"
description = "A simple API wrapper for Top.gg written in Python."
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "null8626" }, { name = "Top.gg" }]
keywords = ["discord", "discord-bot", "topgg"]
dependencies = ["aiohttp>=3.12.15"]
dependencies = ["aiohttp>=3.13.1"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
]
requires-python = ">=3.9"

[project.optional-dependencies]
dev = ["mock>=5.2.0", "pytest>=8.4.2", "pytest-asyncio>=1.2.0", "pytest-mock>=3.15.0", "pytest-cov>=7.0.0", "ruff>=0.13.0"]
requires-python = ">=3.10"

[project.urls]
Documentation = "https://topggpy.readthedocs.io/en/latest/"
"Raw API Documentation" = "https://docs.top.gg/docs/"
Repository = "https://github.com/top-gg-community/python-sdk"
"Support server" = "https://discord.gg/dbl"
"Support server" = "https://discord.gg/EYHTgJX"
8 changes: 0 additions & 8 deletions pytest.ini

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/format.sh

This file was deleted.

87 changes: 75 additions & 12 deletions topgg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,83 @@
:license: MIT, see LICENSE for more details.
"""

from .autopost import AutoPoster
from .client import DBLClient
from .data import data, DataContainerMixin
from .errors import (
ClientException,
ClientStateException,
HTTPException,
TopGGException,
Ratelimited,
)
from .types import (
BotData,
BotsData,
BotStatsData,
BotVoteData,
BriefUserData,
GuildVoteData,
ServerVoteData,
SocialData,
SortBy,
StatsWrapper,
UserData,
VoteDataDict,
WidgetOptions,
WidgetProjectType,
WidgetType,
)
from .version import VERSION
from .webhook import (
BoundWebhookEndpoint,
endpoint,
WebhookEndpoint,
WebhookManager,
WebhookType,
)


__title__ = "topggpy"
__author__ = "Assanali Mukhanov"
__maintainer__ = "Norizon"
__author__ = "null8626 & Top.gg"
__credits__ = ("null8626", "Top.gg")
__maintainer__ = "null8626"
__status__ = "Production"
__license__ = "MIT"
__copyright__ = "Copyright (c) 2021 Assanali Mukhanov & Top.gg; Copyright (c) 2024-2025 null8626 & Top.gg"
__version__ = VERSION

from .autopost import *
from .client import *
from .data import *
from .errors import *

# can't be added to __all__ since they'd clash with automodule
from .types import *
from .types import BotVoteData, GuildVoteData
from .webhook import *
__all__ = (
"AutoPoster",
"BotData",
"BotsData",
"BotStatsData",
"BotVoteData",
"BoundWebhookEndpoint",
"BriefUserData",
"ClientException",
"ClientStateException",
"data",
"DataContainerMixin",
"DBLClient",
"endpoint",
"GuildVoteData",
"HTTPException",
"Ratelimited",
"RequestError",
"ServerVoteData",
"SocialData",
"SortBy",
"StatsWrapper",
"TopGGException",
"UserData",
"VERSION",
"VoteDataDict",
"VoteEvent",
"Voter",
"WebhookEndpoint",
"WebhookManager",
"WebhookType",
"WidgetOptions",
"WidgetProjectType",
"WidgetType",
)
Loading
Loading