Skip to main content

This project is now retired

I do not work on discord bots anymore, and consequently do not use top.gg anymore.

This package should continue to work with v0 of the top.gg API, however will not work with v1 or any newer versions, assuming they are breaking changes to the API.

You are welcome to fork and continue developing this code should you wish, however, for a project that is guaranteed to continue being developed well into the future, I recommend you use the official python SDK..

I am, however, now creating bots on matrix, and even have my own bot library!

This repository is indefinitely archived.


Top.py

issues: unresolved pull requests: unresolved version: unresolved supported python versions: unresolved downloads: unresolved code style: black discord.py version: 1.x, 2.0a

An alternative wrapper for the top.gg API

Please note, this is not an official package from top.gg. We are not affiliated with top.gg in any way. If you want to install their official package, please see their repo.

Introduction

Warning! top.py is not tested to be compatible with discord.py forks, or any other library than the official discord.py library. If you encounter issues when using another library, please open an issue with as much detail and support will be added.

top.py is a python wrapper for the top.gg discord bot list API. top.py aims to be object-oriented, whereas the official top.gg python SDK is more low-level raw data.

Installation

You can install the latest stable release here:

pip install top.py

But, if you're reading this, you're most likely a developer - you should know how to install packages by now.

Examples

You can see examples in the examples.md file.

Supported Features

Feature Name Supported?
Automatic posting of server count ✅
Searching/Bulk Querying Bots ✅
Fetching a bot ✅
Fetching a user ✅
Fetching last 1000 upvotes ✅
Fetching a bot's stats ✅
Checking individual user vote ✅
Manual posting server count ✅
Models for all individual endpoints ✅
In-house ratelimiting ✅
Vote Webhooks ✅
Making you a nice slice of toast ❌

NOTE: We do NOT currently provide official support for discord server list. That's coming soon.

top.py features

  • Object-Oriented (No-more shall you faff about with dictionaries)
  • Sensible function names & arguments

support (or mention @eek#7574 in top.gg) | docs | PyPi | examples | (META) Code Of Conduct | (META) Contributing Guidelines

Experiencing an issue?

Metadata

Release files for top.py 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for top.py 1.4.3
File Size Uploaded
top.py-1.4.3.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for top.py 1.4.3
File Interpreter ABI Platform
top.py-1.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 63.6 kB

Release files / top.py-1.4.3.tar.gz

Download URL top.py-1.4.3.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
653e59bd57810909b907a041df7880fe22763c3c2057e9a83a50e31284c49566
BLAKE2b-256 checksum
How to use checksums
0c3d1dd7e7b0aec8a958f51cd114970d5be56b597ea45fe5b3c4276417536b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / top.py-1.4.3-py3-none-any.whl

Download URL top.py-1.4.3-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c3e6d1552abde100391e905a117aca7fd6b2e6f61965f94e32fdc90f9c2b92d
BLAKE2b-256 checksum
How to use checksums
8bc2a29bde0bcfa28b67c175b589e2a8e866c8b69d95dcfff6e7b89d839bf253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.4.3 This release

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

1 release file

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page