-
Notifications
You must be signed in to change notification settings - Fork 56
feat: adapt to v1 #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 50 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
6db23f6
refactor: remove unused import
null8626 a9f6ee7
meta: update links
null8626 28c56e4
meta: make the min supported ver 3.8
null8626 957af68
fix: python 3.12 support
null8626 3300b50
fix: why does it say 3.1 :skull:
null8626 c2c7a69
fix: migrate from setup.py to pyproject.toml
null8626 ee2ec2e
meta: bump version
null8626 472f69d
ci: support pyproject.toml
null8626 5ee4fec
feat: add python-publish.yml again with PyPI token support
null8626 82187cb
meta: update .gitignore [skip ci]
null8626 f4e83c0
meta: change maintainers
null8626 533295a
doc: trauma
null8626 df9b489
meta: remove duplicated path in .gitignore
null8626 eda566e
meta: update LICENSE
null8626 e146048
*: use ruff, remove need for default_bot_id, deprecate get_bots, make…
null8626 a4ce9f2
fix: let's see if this fixes it
null8626 d4a9123
fix: this should fix it
null8626 d3b48dc
fix: AAAAAAAAAAHHHHHHH
null8626 e7bd0b8
fix: fix bot_id test
null8626 99d8ab7
refactor: collapse if-statement
null8626 b6be4c4
doc: update readme
null8626 d2ae045
doc: documentation overhaul
null8626 99b9bc3
doc: add examples
null8626 8ea8f7a
doc: more redirects and refactor js script
null8626 1ed5505
doc: tweaks
null8626 ad4386b
doc: show monthly downloads
null8626 dd1a277
doc: show up monthly pypi downloads
null8626 cd6380f
doc: use pip, not pip3
null8626 023d63e
meta: update project URLs
null8626 f80bd29
fix: shutdown web.Application on close()
null8626 dcfdaea
fix: initialize __app as None at initialization
null8626 549eb59
meta: bump aiohttp
null8626 47e96f5
refactor: remove unneeded non-base64 removal
null8626 1d3f36d
deps: manually bump aiohttp version to at least version 3.10.5
null8626 404d713
meta: remove unneeded scripts directory as we already have ruff
null8626 5952209
meta: add .ruff_cache to .gitignore
null8626 9f092a3
meta: update keywords
null8626 44cc56c
deps: bump aiohttp dependency version
null8626 06966d5
deps: bump aiohttp version again
null8626 0cecb50
meta: remove obselete comments and update __all__ to use tuples [skip…
null8626 5fa5aaa
refactor: add __slots__
null8626 e6d3f3b
meta: use triple quotes for MIT license comments [skip ci]
null8626 6a4ca42
deps: bump minimum aiohttp version to version 3.10.8
null8626 abe17ca
meta: add support for python 3.13
null8626 e535b62
meta: add python 3.13 classifier
null8626 286a46c
doc: add ~ prefix
null8626 d10e7af
doc: add raw API reference redirect page
null8626 3707ff5
doc: simplify documentation hyperlinks [skip ci]
null8626 af94e5e
refactor: use fromisoformat instead of strptime
null8626 0bf758f
doc: reorder documentation tabs
null8626 803a7a1
fix: remove self.__app's None assignment
null8626 6e0eb06
deps: bump aiohttp version to 3.11.7
null8626 1d6da7d
deps: bump aiohttp dependency to version 3.11.10
null8626 d0c9da0
meta: update secrets name from PYPI_PASSWORD to PYPI_TOKEN
null8626 9952b20
fix: fix iso timestamp for python versions prior to 3.11
null8626 1480955
ci: remove support python 3.8 as it's now EOL
null8626 8ad44a7
ci: rewrite ci [skip ci]
null8626 f93de30
meta: update copyright year
null8626 0a1bbe2
doc: add raw API documentation link and update .readthedocs.yml
null8626 be287fe
ci: install build as well
null8626 ef7aba9
refactor: use time() instead
null8626 bcd414a
refactor: use walrus operator
null8626 e13d619
feat: add deprecation warnings for posting shard-related data
null8626 48e9c97
feat: deprecated shard-related things
null8626 542f220
ci: change pytest exception match
null8626 e88d2a8
feat: deprecate even more legacy API properties
null8626 15d962a
fix: fix tests not working because of guilds list
null8626 48e6055
feat: notify lib of deprecation as well
null8626 4a292d8
doc: add deprecations in whats-new
null8626 053a438
doc: it's BotStatsData [skip ci]
null8626 3329d36
feat: add v0 branch
null8626 a078077
doc: update docs [skip ci]
null8626 113cfbe
doc: update docs [skip ci]
null8626 a0e4817
*: start rewrite
null8626 33876d1
doc: reword documentation
null8626 0a6f84e
fix: fix potential errors in errors
null8626 ce0031f
feat: add get_server_count and post_server_count
null8626 55a752c
refactor: show token length
null8626 c5f9030
feat: add __repr__ implementations
null8626 93e1eb5
doc: update example comments
null8626 9041479
fix: fix potential TypeError
null8626 d3bab1d
feat: add autoposting
null8626 2caee04
feat: add version.py and test_autoposter.py
null8626 df885d7
feat: add dependabot
null8626 a9a443a
Update models.py
null8626 9146924
doc: add warning [skip ci]
null8626 45308c8
fix: adapt more stuff for v0
null8626 7057732
doc: update documentation for submitted_at
null8626 de6ab6f
refactor: use timestamp_from_id function
null8626 346c4ff
feat: rename this back to skip
null8626 e1053e9
feat: add review_score and review_count
null8626 2a955fe
feat: add page to get_voters
null8626 efe44c8
feat: add webhooks back
null8626 6a9d21e
meta: ruff ignore E402
null8626 40a1dd8
fix: raise on missing password
null8626 c9132f0
doc: make it clear that it only returns at most 100
null8626 4e452fb
feat: make id readonly
null8626 dd7d65e
feat: add __repr__ implementations
null8626 265ab7b
doc: reword documentation
null8626 a447087
feat: remove treat 404 as None
null8626 4137b4e
refactor: remove or {} check
null8626 d9d61b3
doc: add or is empty
null8626 81bb72b
doc: shorten documentation
null8626 02bbc4f
doc: add $
null8626 52afa09
doc: reword documentation
null8626 9e4aaa0
feat: replace BotQuery to make this less breaking
null8626 d4497b8
refactor: remove bare excepts
null8626 322a58e
meta: remove ignored lint rules
null8626 c4ff91c
feat: rename RatelimiterManager to Ratelimiters
null8626 ac4b280
style: rename ratelimiter_manager to ratelimiters
null8626 ad14824
doc: add proper documentation for the ratelimiters
null8626 349c5f3
feat: remove banner url
null8626 6a54c1a
deps: bump aiohttp dependency
null8626 d4604c6
feat: remove url
null8626 77cc550
fix: fix missing vanity slot + GET /bots/votes not working
null8626 e12cd77
deps: bump aiohttp version
null8626 4465df8
feat: remove search parameter in anticipation of v1
null8626 9cabb37
style: prettier
null8626 563e48a
feat: add widgets
null8626 0cebb35
feat: add small widgets
null8626 446a654
docs: readme overhaul
null8626 fffb66f
feat: add 400 checks
null8626 39cc433
feat: move Vote class
null8626 6e5229a
doc: documentation overhaul
null8626 642164e
deps: bump aiohttp version
null8626 6251a1b
[feat,docs]: adapt methods and documentation to v1
null8626 4fce39a
*: merge v0-rewrite into patch-1
null8626 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| dblpy.egg-info/ | ||
| topggpy.egg-info/ | ||
| topgg/__pycache__/ | ||
| build/ | ||
| dist/ | ||
| /docs/_build | ||
| /docs/_templates | ||
| .vscode | ||
| /.idea/ | ||
| __pycache__ | ||
| docs/_build | ||
| docs/_templates | ||
| .vscode/ | ||
| .idea/ | ||
| **/__pycache__/ | ||
| .coverage | ||
| .ruff_cache/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,15 @@ | ||
| include LICENSE | ||
| include requirements.txt | ||
| include README.rst | ||
| prune .github | ||
| prune .ruff_cache | ||
| prune docs | ||
| prune examples | ||
| prune tests | ||
| exclude .gitattributes | ||
| exclude .gitignore | ||
| exclude .readthedocs.yml | ||
| exclude mypy.ini | ||
| exclude pytest.ini | ||
| exclude requirements-dev.txt | ||
| exclude requirements-docs.txt | ||
| exclude ruff.toml | ||
| exclude ISSUE_TEMPLATE.md | ||
| exclude PULL_REQUEST_TEMPLATE.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| document.addEventListener('load', () => { | ||
| try { | ||
| document.querySelector('.edit-this-page').remove() | ||
|
|
||
| // remove these useless crap that appears on official readthedocs builds | ||
| document.querySelector('#furo-readthedocs-versions').remove() | ||
| document.querySelector('.injected').remove() | ||
| } catch { | ||
| // we're building this locally, forget it | ||
| } | ||
| }) | ||
|
|
||
| for (const label of document.querySelectorAll('.sidebar-container label')) { | ||
| const link = [...label.parentElement.children].find(child => child.nodeName === 'A') | ||
|
|
||
| link.addEventListener('click', event => { | ||
| event.preventDefault() | ||
| label.click() | ||
| }) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| body { | ||
| --color-link-underline: rgba(0, 0, 0, 0); | ||
| --color-link-underline--hover: var(--color-link); | ||
| --color-inline-code-background: rgba(0, 0, 0, 0); | ||
| --color-api-background-hover: var(--color-background-primary); | ||
| --color-highlight-on-target: var(--color-background-primary) !important; | ||
|
|
||
| --font-stack: "Inter", sans-serif !important; | ||
| --font-stack--monospace: "Roboto Mono", monospace !important; | ||
| } | ||
|
|
||
| aside.toc-drawer { | ||
| visibility: hidden; | ||
| } | ||
|
|
||
| #furo-readthedocs-versions, .injected, .edit-this-page, .related-pages, .headerlink { | ||
| visibility: hidden; | ||
| user-select: none; | ||
| } | ||
|
|
||
| dd dt { | ||
| color: var(--color-foreground-secondary); | ||
| } | ||
|
|
||
| aside.toc-drawer .docutils:hover, .sidebar-brand-text:hover { | ||
| transition: 0.15s; | ||
| filter: opacity(75%); | ||
| } | ||
|
|
||
| .highlight .c1, em { | ||
| font-style: normal !important; | ||
| } | ||
|
|
||
| .highlight .nn { | ||
| text-decoration: none !important; | ||
| } | ||
|
|
||
| h1 { | ||
| font-weight: 900; | ||
| } | ||
|
|
||
| .sidebar-brand-text { | ||
| font-weight: bolder; | ||
| } | ||
|
|
||
| .sidebar-scroll .reference.internal { | ||
| color: var(--color-brand-primary); | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| #################### | ||
| Errors API Reference | ||
| #################### | ||
| ################ | ||
| Errors reference | ||
| ################ | ||
|
|
||
| .. automodule:: topgg.errors | ||
| :members: | ||
| :inherited-members: | ||
| :members: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ############# | ||
| API reference | ||
| ############# | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| autopost | ||
| client | ||
| data | ||
| errors | ||
| types | ||
| webhook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.