Python wrapper for Revolt API

Overview

Defectio

revolt-api Documentation Status All Contributors

defectio is a direct implementation of the entire Revolt API and provides a way to authenticate and start communicating with Revolt servers. Similar interface to discord.py

Example Usage

import defectio

client = defectio.Client()


@client.event
async def on_ready():
    print("We have logged in.")


@client.event
async def on_message(message: defectio.Message):
    if message.author == client.user:
        return
    if message.content.startswith("$hello"):
        await message.channel.send("Hello!")


client.run("")

Contribute

Join our server here

License

Licensed under an MIT license

Based on discord.py by Rapptz here

Contributors

Thanks goes to these wonderful people (emoji key):


Joshua Nixon

💻

Adam

💻

jotte

💻

Paul Makles

🐛

Cearaj

💻

jafreli

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Comments
  • Revolt API 0.5.3 support.

    Revolt API 0.5.3 support.

    Since your library uses user authentication, you need to update certain routes. (https://github.com/revoltchat/delta/issues/63)

    Revolt's user authentication flow has been overhauled, changes include:

    • Completely re-done REST API.
    • Deprecation of x-user-id header.

    Documentation is available here: https://developers.revolt.chat/api/#tag/Account

    bug python refactoring 
    opened by insertish 4
  • SendFiles

    SendFiles

    I think that's all the changes. The second request function under http is bit loosey goosey, I might rewrite the request function at some point but a few things to have done first would be nice so I thought I'd leave it at 2 request functions for the moment.

    Attachment class isn't quite finished, there's no way to download the file, the defectio.file type had to be replaced. I liked the generator from URL function, I have it commented out right now.

    Feel free to take what you want from it.

    opened by LimeProgramming 3
  • Fix ID regex and a few converters

    Fix ID regex and a few converters

    Fixes the following converters:

    • User
    • TextChannel
    • VoiceChannel
    • Server

    Note: I'm not sure why but I had to await the DefectioHTTP.get_user() function in Client.fetch_user() for it to work, while it was not necessary in fetch_channel() and fetch_server().

    opened by Cearaj 2
  • Fixed self-bots and some other stuff

    Fixed self-bots and some other stuff

    • Fixed self-bots
    • Added ext.commands.Context.reply
    • Renamed http.bot_login to http.start
    • Renamed client.bot_login to client.login
    • Removed session_login
    • Fixed message object not returning in message.reply
    • Fixed LoginFailure raising when a websocket event that isn't an error is raised
    • Add server.voice_channels and server.text_channels
    opened by jottew 2
  • Bump pytest-asyncio from 0.17.2 to 0.18.0

    Bump pytest-asyncio from 0.17.2 to 0.18.0

    Bumps pytest-asyncio from 0.17.2 to 0.18.0.

    Release notes

    Sourced from pytest-asyncio's releases.

    pytest-asyncio 0.18.0


    title: 'pytest-asyncio: pytest support for asyncio'

    image

    image

    image

    Supported Python versions

    image

    pytest-asyncio is an Apache2 licensed library, written in Python, for testing asyncio code with pytest.

    asyncio code is usually written in the form of coroutines, which makes it slightly more difficult to test using normal testing tools. pytest-asyncio provides useful fixtures and markers to make testing easier.

    @pytest.mark.asyncio
    async def test_some_asyncio_code():
        res = await library.do_something()
        assert b"expected result" == res
    

    pytest-asyncio has been strongly influenced by pytest-tornado.

    Features

    • fixtures for creating and injecting versions of the asyncio event loop
    • fixtures for injecting unused tcp/udp ports
    • pytest markers for treating tests as asyncio coroutines
    • easy testing with non-default event loops
    • support for [async def]{.title-ref} fixtures and async generator fixtures
    • support auto mode to handle all async fixtures and tests automatically by asyncio; provide strict mode if a test suite should work with different async frameworks simultaneously, e.g. asyncio and trio.

    Installation

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 1
  • Bump pytest from 6.2.5 to 7.0.0

    Bump pytest from 6.2.5 to 7.0.0

    Bumps pytest from 6.2.5 to 7.0.0.

    Release notes

    Sourced from pytest's releases.

    7.0.0

    pytest 7.0.0 (2022-02-03)

    (Please see the full set of changes for this release also in the 7.0.0rc1 notes below)

    Deprecations

    • #9488: If custom subclasses of nodes like pytest.Item{.interpreted-text role="class"} override the __init__ method, they should take **kwargs. See uncooperative-constructors-deprecated{.interpreted-text role="ref"} for details.

      Note that a deprection warning is only emitted when there is a conflict in the arguments pytest expected to pass. This deprecation was already part of pytest 7.0.0rc1 but wasn't documented.

    Bug Fixes

    • #9355: Fixed error message prints function decorators when using assert in Python 3.8 and above.
    • #9396: Ensure pytest.Config.inifile{.interpreted-text role="attr"} is available during the pytest_cmdline_main <_pytest.hookspec.pytest_cmdline_main>{.interpreted-text role="func"} hook (regression during 7.0.0rc1).

    Improved Documentation

    • #9404: Added extra documentation on alternatives to common misuses of [pytest.warns(None)]{.title-ref} ahead of its deprecation.
    • #9505: Clarify where the configuration files are located. To avoid confusions documentation mentions that configuration file is located in the root of the repository.

    Trivial/Internal Changes

    • #9521: Add test coverage to assertion rewrite path.

    pytest 7.0.0rc1 (2021-12-06)

    Breaking Changes

    • #7259: The Node.reportinfo() <non-python tests>{.interpreted-text role="ref"} function first return value type has been expanded from [py.path.local | str]{.title-ref} to [os.PathLike[str] | str]{.title-ref}.

      Most plugins which refer to [reportinfo()]{.title-ref} only define it as part of a custom pytest.Item{.interpreted-text role="class"} implementation. Since [py.path.local]{.title-ref} is a [os.PathLike[str]]{.title-ref}, these plugins are unaffacted.

      Plugins and users which call [reportinfo()]{.title-ref}, use the first return value and interact with it as a [py.path.local]{.title-ref}, would need to adjust by calling [py.path.local(fspath)]{.title-ref}. Although preferably, avoid the legacy [py.path.local]{.title-ref} and use [pathlib.Path]{.title-ref}, or use [item.location]{.title-ref} or [item.path]{.title-ref}, instead.

      Note: pytest was not able to provide a deprecation period for this change.

    ... (truncated)

    Commits
    • 3554b83 Add note to changelog
    • 6ea7f99 Prepare release version 7.0.0
    • 737b220 [7.0.x] releasing: Add template for major releases (#9597)
    • 7fa3972 [7.0.x] releasing: Always set doc_version (#9590)
    • b304499 [7.0.x] Make 'warnings' and 'deselected' in assert_outcomes optional (#9566)
    • f17525d [7.0.x] doc: Add ellipsis to warning usecase list (#9562)
    • 0a7be97 ci: Bump up timeout (#9565)
    • c17908c [7.0.x] doc: Recategorize 7.0.0 changelog items (#9564)
    • ab549bb [7.0.x] Add missing cooperative constructor changelog (#9563)
    • 4b1707f [7.0.x] Autouse linearization graph (#9557)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 1
  • Bump release-drafter/release-drafter from 5.17.6 to 5.18.0

    Bump release-drafter/release-drafter from 5.17.6 to 5.18.0

    Bumps release-drafter/release-drafter from 5.17.6 to 5.18.0.

    Release notes

    Sourced from release-drafter/release-drafter's releases.

    v5.18.0

    What's Changed

    New

    Bug Fixes

    Dependency Updates

    Full Changelog: https://github.com/release-drafter/release-drafter/compare/v5.17.6...v5.18.0

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 1
  • Bump pip from 21.3.1 to 22.0.2 in /.github/workflows

    Bump pip from 21.3.1 to 22.0.2 in /.github/workflows

    Bumps pip from 21.3.1 to 22.0.2.

    Changelog

    Sourced from pip's changelog.

    22.0.2 (2022-01-30)

    Deprecations and Removals

    • Instead of failing on index pages that use non-compliant HTML 5, print a deprecation warning and fall back to html5lib-based parsing for now. This simplifies the migration for non-compliant index pages, by letting such indexes function with a warning. ([#10847](https://github.com/pypa/pip/issues/10847) <https://github.com/pypa/pip/issues/10847>_)

    22.0.1 (2022-01-30)

    Bug Fixes

    • Accept lowercase <!doctype html> on index pages. ([#10844](https://github.com/pypa/pip/issues/10844) <https://github.com/pypa/pip/issues/10844>_)
    • Properly handle links parsed by html5lib, when using --use-deprecated=html5lib. ([#10846](https://github.com/pypa/pip/issues/10846) <https://github.com/pypa/pip/issues/10846>_)

    22.0 (2022-01-29)

    Process

    • Completely replace :pypi:tox in our development workflow, with :pypi:nox.

    Deprecations and Removals

    • Deprecate alternative progress bar styles, leaving only on and off as available choices. ([#10462](https://github.com/pypa/pip/issues/10462) <https://github.com/pypa/pip/issues/10462>_)

    • Drop support for Python 3.6. ([#10641](https://github.com/pypa/pip/issues/10641) <https://github.com/pypa/pip/issues/10641>_)

    • Disable location mismatch warnings on Python versions prior to 3.10.

      These warnings were helping identify potential issues as part of the sysconfig -> distutils transition, and we no longer need to rely on reports from older Python versions for information on the transition. ([#10840](https://github.com/pypa/pip/issues/10840) <https://github.com/pypa/pip/issues/10840>_)

    Features

    • Changed PackageFinder to parse HTML documents using the stdlib :class:html.parser.HTMLParser class instead of the html5lib package.

      For now, the deprecated html5lib code remains and can be used with the --use-deprecated=html5lib command line option. However, it will be removed in a future pip release. ([#10291](https://github.com/pypa/pip/issues/10291) <https://github.com/pypa/pip/issues/10291>_)

    • Utilise rich for presenting pip's default download progress bar. ([#10462](https://github.com/pypa/pip/issues/10462) <https://github.com/pypa/pip/issues/10462>_)

    • Present a better error message when an invalid wheel file is encountered, providing more context where the invalid wheel file is. ([#10535](https://github.com/pypa/pip/issues/10535) <https://github.com/pypa/pip/issues/10535>_)

    • Documents the --require-virtualenv flag for pip install. ([#10588](https://github.com/pypa/pip/issues/10588) <https://github.com/pypa/pip/issues/10588>_)

    • pip install <tab> autocompletes paths. ([#10646](https://github.com/pypa/pip/issues/10646) <https://github.com/pypa/pip/issues/10646>_)

    • Allow Python distributors to opt-out from or opt-in to the sysconfig installation scheme backend by setting sysconfig._PIP_USE_SYSCONFIG to True or False. ([#10647](https://github.com/pypa/pip/issues/10647) <https://github.com/pypa/pip/issues/10647>_)

    • Make it possible to deselect tests requiring cryptography package on systems where it cannot be installed. ([#10686](https://github.com/pypa/pip/issues/10686) <https://github.com/pypa/pip/issues/10686>_)

    • Start using Rich for presenting error messages in a consistent format. ([#10703](https://github.com/pypa/pip/issues/10703) <https://github.com/pypa/pip/issues/10703>_)

    • Improve presentation of errors from subprocesses. ([#10705](https://github.com/pypa/pip/issues/10705) <https://github.com/pypa/pip/issues/10705>_)

    ... (truncated)

    Commits
    • c721f03 Bump for release
    • 844b799 Merge pull request #10847 from pradyunsg/better-html5lib-fallback
    • a78845a Pacify functional tests that don't start with \<!doctype html>
    • c3a42f0 :newspaper:
    • c01b0b2 Gracefully fallback to html5lib for parsing non-compliant index pages
    • cc35c93 Merge pull request #10850 from pradyunsg/release/22.0.1
    • 1b6ef5d Bump for development
    • c73ac8d Bump for release
    • 9a9c1de Merge pull request #10846 from pradyunsg/fix-html5lib-fallback
    • 80609e8 Properly yield results from html5lib parsing
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 1
  • Bump reorder-python-imports from 2.6.0 to 2.7.0

    Bump reorder-python-imports from 2.6.0 to 2.7.0

    Bumps reorder-python-imports from 2.6.0 to 2.7.0.

    Commits
    • 9f01d63 v2.7.0
    • d9bc48b Merge pull request #217 from asottile/all-repos_autofix_flake8-typing-imports
    • e651e6a regenerate typing replaces
    • 543cf8a upgrade flake8-typing-imports
    • 0664824 Merge pull request #215 from asottile/all-repos_autofix_drop-py36
    • a43acac drop python3.6 support
    • 37cdb6e Merge pull request #213 from asottile/pre-commit-ci-update-config
    • 38abe3e [pre-commit.ci] pre-commit autoupdate
    • 73425da Merge pull request #212 from asottile/all-repos_autofix_covdefaults-fail-under
    • 4ee9929 remove --fail-under from tox (covdefaults handles this)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 1
  • Bump release-drafter/release-drafter from 5.16.1 to 5.17.5

    Bump release-drafter/release-drafter from 5.16.1 to 5.17.5

    Bumps release-drafter/release-drafter from 5.16.1 to 5.17.5.

    Release notes

    Sourced from release-drafter/release-drafter's releases.

    v5.17.5

    What's Changed

    New

    Bug Fixes

    Maintenance

    Full Changelog: https://github.com/release-drafter/release-drafter/compare/v5.16.2...v5.17.5

    v5.16.2

    What's Changed

    Bug Fixes

    Dependency Updates

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 1
  • Bump mypy from 0.910 to 0.920

    Bump mypy from 0.910 to 0.920

    Bumps mypy from 0.910 to 0.920.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 1
  • Bump pytest-asyncio from 0.18.1 to 0.18.2

    Bump pytest-asyncio from 0.18.1 to 0.18.2

    Bumps pytest-asyncio from 0.18.1 to 0.18.2.

    Release notes

    Sourced from pytest-asyncio's releases.

    pytest-asyncio 0.18.2


    title: 'pytest-asyncio: pytest support for asyncio'

    image

    image

    image

    Supported Python versions

    image

    pytest-asyncio is an Apache2 licensed library, written in Python, for testing asyncio code with pytest.

    asyncio code is usually written in the form of coroutines, which makes it slightly more difficult to test using normal testing tools. pytest-asyncio provides useful fixtures and markers to make testing easier.

    @pytest.mark.asyncio
    async def test_some_asyncio_code():
        res = await library.do_something()
        assert b"expected result" == res
    

    pytest-asyncio has been strongly influenced by pytest-tornado.

    Features

    • fixtures for creating and injecting versions of the asyncio event loop
    • fixtures for injecting unused tcp/udp ports
    • pytest markers for treating tests as asyncio coroutines
    • easy testing with non-default event loops
    • support for [async def]{.title-ref} fixtures and async generator fixtures
    • support auto mode to handle all async fixtures and tests automatically by asyncio; provide strict mode if a test suite should work with different async frameworks simultaneously, e.g. asyncio and trio.

    Installation

    ... (truncated)

    Commits
    • 929608e docs: Prepare release 0.18.2. (#304)
    • 2359807 Bump actions/checkout from 2 to 3 (#301)
    • cad1b94 fix: Add positional arguments to the synchronous test function wrapper. (#303)
    • 357cddb Bump actions/setup-python from 2 to 3 (#300)
    • beee1f6 Update changelog
    • 9246f58 Fix asyncio auto mode not marking static methods (closes pytest-dev/pytest-as...
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    python dependencies 
    opened by dependabot[bot] 0
  • Bump actions/download-artifact from 2.1.0 to 3

    Bump actions/download-artifact from 2.1.0 to 3

    Bumps actions/download-artifact from 2.1.0 to 3.

    Release notes

    Sourced from actions/download-artifact's releases.

    v3.0.0

    What's Changed

    Breaking Changes

    With the update to Node 16, all scripts will now be run with Node 16 rather than Node 12.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 0
  • Bump actions/upload-artifact from 2.3.1 to 3

    Bump actions/upload-artifact from 2.3.1 to 3

    Bumps actions/upload-artifact from 2.3.1 to 3.

    Release notes

    Sourced from actions/upload-artifact's releases.

    v3.0.0

    What's Changed

    • Update default runtime to node16 (#293)
    • Update package-lock.json file version to 2 (#302)

    Breaking Changes

    With the update to Node 16, all scripts will now be run with Node 16 rather than Node 12.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 0
  • close() not working

    close() not working

    Describe the bug Trying to use client.close()/bot.close() leads to no result.

    To reproduce Steps to reproduce the behavior:

    1. client.run("...")
    2. Through an event/command/etc, call client.close()

    Expected behavior The method should be working as expected, closing the connection with the Revolt API.

    Device: Manjaro Linux 21.1.6-1 64-bit (Linux 5.13.19-2) with Python 3.9.7

    Additional context Here's the code for the command I was trying to use:

    @commands.command(name="kill", usage="", description="Kills the bot.", aliases=("ded","die"))
    async def kill(ctx):
        await ctx.send("oh no am ded")
        await ctx.bot.close()
    

    close() didn't work on standard Clients either. Quitting through a KeyboardInterrupt still shows this message (which it also shows normally)

    Unclosed client session
    client_session: <aiohttp.client.ClientSession object at 0x7fecb8ffd220>
    
    bug 
    opened by patataofcourse 1
  • Make code modular

    Make code modular

    New Features:

    • [x] Msgpack support (#11)
    • [x] all rest endpoints
    • [ ] rest based client
    • [ ] Event Manager

    Changes:

    • [x] State now split into cache, gateway and event_manager
    • [x] Base abc classes for all logic classes to allow different implementations
    • [x] Use Unique instead of Hashable as it allows easier comparisons and can be used as a str

    To test:

    • [ ] Msgpack
    • [ ] rest endpoints
    • [ ] documentation review
    • [ ] event manager
    • [ ] all models contain all info
    • [ ] cache
    • [x] gateway
    enhancement help wanted python refactoring 
    opened by Darkflame72 1
Releases(v0.2.3a)
  • v0.2.3a(Feb 15, 2022)

    Changes

    • Fixed events crashing, Basic Embeds, (#157) @nixonjoshua98

    :package: Dependencies

    • Bump sphinx-copybutton from 0.4.0 to 0.5.0 (#167) @dependabot
    • Bump orjson from 3.6.6 to 3.6.7 (#166) @dependabot
    • Bump orjson from 3.6.6 to 3.6.7 in /docs (#165) @dependabot
    • Bump black from 21.12b0 to 22.1.0 (#151) @dependabot
    • Bump pytest from 6.2.5 to 7.0.1 (#164) @dependabot
    • Bump pytest-asyncio from 0.17.2 to 0.18.1 (#162) @dependabot
    • Bump pip from 21.3.1 to 22.0.3 in /.github/workflows (#153) @dependabot
    • Bump actions/setup-python from 2.3.1 to 2.3.2 (#154) @dependabot
    • Bump sphinx-copybutton from 0.4.0 to 0.5.0 in /docs (#158) @dependabot
    • Bump virtualenv from 20.13.0 to 20.13.1 in /.github/workflows (#159) @dependabot
    • Bump release-drafter/release-drafter from 5.17.6 to 5.18.1 (#160) @dependabot
    • Bump poetry from 1.1.12 to 1.1.13 in /.github/workflows (#163) @dependabot
    • Bump coverage from 6.3 to 6.3.1 (#152) @dependabot
    • Bump flake8-black from 0.2.3 to 0.2.4 (#150) @dependabot
    • Bump coverage from 6.2 to 6.3 (#146) @dependabot
    • Bump orjson from 3.6.5 to 3.6.6 (#145) @dependabot
    • Bump orjson from 3.6.5 to 3.6.6 in /docs (#144) @dependabot
    • Bump reorder-python-imports from 2.6.0 to 2.7.1 (#148) @dependabot
    • Bump sphinx from 4.3.2 to 4.4.0 (#141) @dependabot
    • Bump pytest-asyncio from 0.17.0 to 0.17.2 (#140) @dependabot
    • Bump sphinx from 4.3.2 to 4.4.0 in /docs (#139) @dependabot
    • Bump pre-commit from 2.16.0 to 2.17.0 (#142) @dependabot
    • Bump release-drafter/release-drafter from 5.16.1 to 5.17.6 (#143) @dependabot
    • Bump pytest-asyncio from 0.16.0 to 0.17.0 (#137) @dependabot
    • Bump release-drafter/release-drafter from 5.15.0 to 5.16.1 (#136) @dependabot
    • Bump flake8-bugbear from 21.11.29 to 22.1.11 (#135) @dependabot
    • Bump aioresponses from 0.7.2 to 0.7.3 (#134) @dependabot
    • Bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 (#131) @dependabot
    • Bump nox from 2021.10.1 to 2022.1.7 in /.github/workflows (#132) @dependabot
    • Bump nox from 2021.10.1 to 2022.1.7 (#133) @dependabot
    • Bump mypy from 0.930 to 0.931 (#130) @dependabot
    • Bump pygments from 2.11.1 to 2.11.2 (#129) @dependabot
    • Bump furo from 2021.11.23 to 2022.1.2 (#128) @dependabot
    • Bump virtualenv from 20.12.0 to 20.13.0 in /.github/workflows (#127) @dependabot
    • Bump furo from 2021.11.23 to 2022.1.2 in /docs (#126) @dependabot
    • Bump virtualenv from 20.11.2 to 20.12.0 in /.github/workflows (#124) @dependabot
    • Bump pygments from 2.11.0 to 2.11.1 (#125) @dependabot
    • Bump pygments from 2.10.0 to 2.11.0 (#123) @dependabot
    • Bump virtualenv from 20.11.0 to 20.11.2 in /.github/workflows (#122) @dependabot
    • Bump virtualenv from 20.10.0 to 20.11.0 in /.github/workflows (#121) @dependabot
    • Bump pre-commit-hooks from 4.0.1 to 4.1.0 (#120) @dependabot
    • Bump mypy from 0.921 to 0.930 (#119) @dependabot
    • Bump black from 21.11b1 to 21.12b0 (#108) @dependabot
    • Bump mypy from 0.910 to 0.921 (#118) @dependabot
    • Bump orjson from 3.6.4 to 3.6.5 in /docs (#107) @dependabot
    • Bump actions/download-artifact from 2.0.10 to 2.1.0 (#111) @dependabot
    • Bump sphinxext-opengraph from 0.5.0 to 0.5.1 (#113) @dependabot
    • Bump orjson from 3.6.4 to 3.6.5 (#109) @dependabot
    • Bump sphinxext-opengraph from 0.5.0 to 0.5.1 in /docs (#112) @dependabot
    • Bump actions/upload-artifact from 2.2.4 to 2.3.1 (#114) @dependabot
    • Bump sphinx from 4.3.1 to 4.3.2 in /docs (#116) @dependabot
    • Bump sphinx from 4.3.1 to 4.3.2 (#117) @dependabot
    • Bump pre-commit from 2.15.0 to 2.16.0 (#106) @dependabot
    • Bump aiofiles from 0.7.0 to 0.8.0 (#102) @dependabot
    • Bump sphinx from 4.3.0 to 4.3.1 (#104) @dependabot
    • Bump coverage from 6.1.2 to 6.2 (#103) @dependabot
    • Bump flake8-bugbear from 21.11.28 to 21.11.29 (#105) @dependabot
    • Bump flake8-bugbear from 21.9.2 to 21.11.28 (#101) @dependabot
    • Bump sphinx from 4.3.0 to 4.3.1 in /docs (#100) @dependabot
    • Bump actions/setup-python from 2.3.0 to 2.3.1 (#99) @dependabot
    • Bump poetry from 1.1.11 to 1.1.12 in /.github/workflows (#98) @dependabot
    • Bump actions/cache from 2.1.6 to 2.1.7 (#93) @dependabot
    • Bump furo from 2021.11.16 to 2021.11.23 (#95) @dependabot
    • Bump msgpack from 1.0.2 to 1.0.3 in /docs (#96) @dependabot
    • Bump msgpack from 1.0.2 to 1.0.3 (#97) @dependabot
    • Bump furo from 2021.11.16 to 2021.11.23 in /docs (#94) @dependabot
    • Bump sphinxext-opengraph from 0.4.2 to 0.5.0 (#92) @dependabot
    • Bump sphinxext-opengraph from 0.4.2 to 0.5.0 in /docs (#91) @dependabot
    • Bump coverage from 6.0.2 to 6.1.2 (#77) @dependabot
    • Bump furo from 2021.10.9 to 2021.11.16 (#85) @dependabot
    • Bump nox-poetry from 0.8.6 to 0.9.0 (#88) @dependabot
    • Bump sphinx from 4.2.0 to 4.3.0 (#76) @dependabot
    • Bump furo from 2021.11.15 to 2021.11.16 in /docs (#84) @dependabot
    • Bump actions/setup-python from 2.2.2 to 2.3.0 (#86) @dependabot
    • Bump nox-poetry from 0.8.6 to 0.9.0 in /.github/workflows (#87) @dependabot
    • Bump black from 21.10b0 to 21.11b1 (#90) @dependabot
    • Bump sphinx from 4.2.0 to 4.3.0 in /docs (#75) @dependabot
    • Bump virtualenv from 20.9.0 to 20.10.0 in /.github/workflows (#74) @dependabot
    • Bump actions/checkout from 2.3.5 to 2.4.0 (#73) @dependabot
    • Bump furo from 2021.10.9 to 2021.11.15 in /docs (#80) @dependabot
    • Bump aiohttp from 3.7.4.post0 to 3.8.1 (#83) @dependabot
    • Bump black from 21.9b0 to 21.10b0 (#72) @dependabot
    • Bump aiohttp from 3.7.4.post0 to 3.8.1 in /docs (#81) @dependabot
    • Bump darglint from 1.8.0 to 1.8.1 (#67) @dependabot
    • Bump pytest-asyncio from 0.15.1 to 0.16.0 (#66) @dependabot
    • Bump virtualenv from 20.8.1 to 20.9.0 in /.github/workflows (#65) @dependabot
    • Bump pip from 21.3 to 21.3.1 in /.github/workflows (#64) @dependabot
    • Bump pip from 21.2.4 to 21.3 in /.github/workflows (#60) @dependabot
    • Bump flake8 from 3.9.2 to 4.0.1 (#61) @dependabot
    • Bump coverage from 6.0.1 to 6.0.2 (#62) @dependabot
    • Bump actions/checkout from 2.3.4 to 2.3.5 (#63) @dependabot
    • Bump flake8-annotations from 2.6.2 to 2.7.0 (#59) @dependabot
    • Bump furo from 2021.9.22 to 2021.10.9 (#58) @dependabot
    • Bump furo from 2021.9.22 to 2021.10.9 in /docs (#57) @dependabot
    • Bump coverage from 6.0 to 6.0.1 (#56) @dependabot
    • Bump orjson from 3.6.3 to 3.6.4 (#54) @dependabot
    • Bump coverage from 5.5 to 6.0 (#55) @dependabot
    • Bump poetry from 1.1.10 to 1.1.11 in /.github/workflows (#53) @dependabot
    • Bump orjson from 3.6.3 to 3.6.4 in /docs (#52) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.2.2a(Oct 2, 2021)

    Changes

    :books: Documentation

    • docs: add Dark42ed as a contributor for doc (#49) @allcontributors
    • Grammar fixes (#46) @Dark42ed

    :package: Dependencies

    • Bump nox from 2021.6.12 to 2021.10.1 (#51) @dependabot
    • Bump nox from 2021.6.12 to 2021.10.1 in /.github/workflows (#50) @dependabot
    • Bump flake8-bugbear from 21.9.1 to 21.9.2 (#45) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.2.1a(Sep 29, 2021)

    Changes

    • Added missing await (#44) @nixonjoshua98
    • Fix ID regex and a few converters (#36) @Cearaj
    • docs: add Cearaj as a contributor for code (#37) @allcontributors

    :beetle: Fixes

    • Makes it easier to send files. (#38) @jafreli

    :books: Documentation

    • docs: add jafreli as a contributor for code (#39) @allcontributors

    :package: Dependencies

    • Bump virtualenv from 20.8.0 to 20.8.1 in /.github/workflows (#43) @dependabot
    • Bump furo from 2021.9.8 to 2021.9.22 (#42) @dependabot
    • Bump furo from 2021.9.8 to 2021.9.22 in /docs (#41) @dependabot
    • Bump poetry from 1.1.9 to 1.1.10 in /.github/workflows (#40) @dependabot
    • Bump virtualenv from 20.7.2 to 20.8.0 in /.github/workflows (#35) @dependabot
    • Bump poetry from 1.1.8 to 1.1.9 in /.github/workflows (#34) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.2.0a(Sep 19, 2021)

    Changes

    • Fix ValueError: list.remove(x): x not in list (#28) @jottew
    • Fixed self-bots and some other stuff (#23) @jottew
    • Fix tasks and add reply functionality (#21) @jottew
    • Cog.listener - pull event name from func name if not provided (#22) @nixonjoshua98
    • docs: add nixonjoshua98 as a contributor for code (#18) @allcontributors
    • docs: add LimeProgramming as a contributor for code (#19) @allcontributors
    • docs: add insertish as a contributor for bug (#20) @allcontributors
    • docs: add jottew as a contributor for code (#17) @allcontributors
    • Fix bot.add_check (#16) @jottew

    :package: Dependencies

    • Bump black from 21.8b0 to 21.9b0 (#29) @dependabot
    • Bump codecov/codecov-action from 2.0.3 to 2.1.0 (#24) @dependabot
    • Bump sphinx from 4.1.2 to 4.2.0 (#26) @dependabot
    • Bump sphinx from 4.1.2 to 4.2.0 in /docs (#25) @dependabot
    • Bump flake8-bugbear from 21.4.3 to 21.9.1 (#27) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.1.11a(Sep 11, 2021)

  • v0.1.10a(Sep 11, 2021)

  • v0.1.9a(Sep 11, 2021)

    Changes

    • Removed print debug statements + added .idea (pycharm) to .gitignore (#14) @nixonjoshua98

    :package: Dependencies

    • Bump furo from 2021.8.31 to 2021.9.8 in /docs (#12) @dependabot
    • Bump furo from 2021.8.31 to 2021.9.8 (#13) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.1.8a(Sep 7, 2021)

  • v0.1.7a(Sep 6, 2021)

    Changes

    :package: Dependencies

    • Bump aiohttp from 3.7.4 to 3.7.4.post0 in /docs (#4) @dependabot
    • Bump pre-commit from 2.14.1 to 2.15.0 (#5) @dependabot
    Source code(tar.gz)
    Source code(zip)
  • v0.1.6a(Sep 6, 2021)

  • v0.1.5a(Sep 4, 2021)

  • v0.1.4a(Sep 1, 2021)

  • v0.1.3a(Aug 31, 2021)

  • v0.1.2a(Aug 30, 2021)

  • v0.1.1a(Aug 30, 2021)

Owner
Leon Bowie
I am an NZ based student exploring the world of tech
Leon Bowie
Python wrapper for Revolt API

defectio is a direct implementation of the entire Revolt API and provides a way to authenticate and start communicating with Revolt servers. Similar interface to discord.py

Leon Bowie 26 Sep 18, 2022
Revolt account generator. Bypassing Hcaptcha using AI solver.

RevoltGenerator Revolt account generator. Bypassing Hcaptcha using AI solver. Config settings in config.json then put your usernames / proxies. If you

&! Ѵιchy.#0110 27 Nov 1, 2022
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
Aws-lambda-requests-wrapper - Request/Response wrapper for AWS Lambda with API Gateway

AWS Lambda Requests Wrapper Request/Response wrapper for AWS Lambda with API Gat

null 1 May 20, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
Python API wrapper around Trello's API

A wrapper around the Trello API written in Python. Each Trello object is represented by a corresponding Python object. The attributes of these objects

Richard Kolkovich 904 Jan 2, 2023
A Python API wrapper for the Twitter API!

PyTweet PyTweet is an api wrapper made for twitter using twitter's api version 2! Installation Windows py3 -m pip install PyTweet Linux python -m pip

TheFarGG 1 Nov 19, 2022
Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

Aaron DeVera 2 May 11, 2022
This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

Attila Tóth 159 Dec 26, 2022
YARSAW is an Async Python API Wrapper for the Random Stuff API.

Yet Another Random Stuff API Wrapper - YARSAW YARSAW is an Async Python API Wrapper for the Random Stuff API. This module makes it simpler for you to

Bruce 6 Mar 27, 2022
EpikCord.py - This is an API Wrapper for Discord's API for Python

EpikCord.py - This is an API Wrapper for Discord's API for Python! We've decided not to fork discord.py and start completely from scratch for a new, better structuring system!

EpikHost 28 Oct 10, 2022
A simple Python API wrapper for Cloudflare Stream's API.

python-cloudflare-stream A basic Python API wrapper for working with Cloudflare Stream. Arbington.com started off using Cloudflare Stream. We used the

Arbington 3 Sep 8, 2022
Discord-Wrapper - Discord Websocket Wrapper in python

This does not currently work and is in development Discord Websocket Wrapper in

null 3 Oct 25, 2022
An API wrapper around the pythonanywhere's API.

pyaww An API wrapper around the pythonanywhere's API. The name stands for pythonanywherewrapper. 100% api coverage most of the codebase is documented

null 7 Dec 11, 2022
An API Wrapper for Gofile API

Gofile2 from gofile2 import Gofile g_a = Gofile() print(g_a.upload(file="/home/itz-fork/photo.png")) An API Wrapper for Gofile API. About API Gofile

I'm Not A Bot #Left_TG 16 Dec 10, 2022
A simple API wrapper for the Tenor API

Gifpy A simple API wrapper for the Tenor API Installation Python 3.9 or higher is recommended python3 -m pip install gifpy Clone repository: $ git cl

Juan Ignacio Battiston 4 Dec 22, 2021
An API wrapper around Discord API.

NeoCord This project is work in progress not for production use. An asynchronous API wrapper around Discord API written in Python. Features Modern API

Izhar Ahmad 14 Jan 3, 2022
A wrapper for The Movie Database API v3 and v4 that only uses the read access token (not api key).

fulltmdb A wrapper for The Movie Database API v3 and v4 that only uses the read access token (not api key). Installation Use the package manager pip t

Jacob Hale 2 Sep 26, 2021