Skip to main content

discord.http

Python library that handles interactions from Discord POST requests.

Supported installs

Installing

You need Python >=3.11 to use this library.

Install by using pip install discord.http in the terminal. If pip does not work, there are other ways to install as well, most commonly:

  • python -m pip install discord.http
  • python3 -m pip install discord.http
  • pip3 install discord.http

Installing beta

Do you live on the edge and want to test before the next version is released? You can install it by using git+https://github.com/AlexFlipnote/discord.http@master instead of discord.http when running pip install.

Quick example

from discord_http import Context, Client

client = Client(
    token="Your bot token here",
    sync=True  # Optional, defaults to False
)

@client.command()
async def ping(ctx: Context):
    """ A simple ping command """
    return ctx.response.send_message("Pong!")

client.start()

Need further help on how to make Discord API able to send requests to your bot? Check out the documentation for more detailed information.

Resources

Acknowledgements

This library was inspired by discord.py, developed by Rapptz. We would like to express our gratitude for their amazing work, which has served as a foundation for this project.

The project is also a fork of joyn-gg/discord.http

Metadata

Release files for discord.http 3.0.2

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

Source distribution (sdist)

Source distribution for discord.http 3.0.2
File Size Uploaded Provenance Actions
discord_http-3.0.2.tar.gz 167.6 kB Without provenance Details for discord_http-3.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord.http 3.0.2
File Interpreter ABI Platform Actions
discord_http-3.0.2-py3-none-any.whl Python 3 none any Details for discord_http-3.0.2-py3-none-any.whl

Total release size: 356.2 kB

Release files / discord_http-3.0.2.tar.gz

Download URL discord_http-3.0.2.tar.gz
Size 167.6 kB
Tags Source
SHA-256 checksum
How to use checksums
54948e512c9cf398cd01b2ff458b53d5344471d721d4ab40f246c0219703011c
BLAKE2b-256 checksum
How to use checksums
fddb42ff3e2d327fa715e236463202b1da93b2d13b70eed1c98e763a2f0cfd4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / discord_http-3.0.2-py3-none-any.whl

Download URL discord_http-3.0.2-py3-none-any.whl
Size 188.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d740ddfc6a022c3e68c494fe42f6fba8fb37a131e6dd38aaaa7bc9d9af9aa3
BLAKE2b-256 checksum
How to use checksums
a492b9184407ad07bdac8e322656e370c3a89ece527b4849b131bd03c217ce05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for discord.http 3.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files No provenance

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