Skip to main content

dico

Codacy Badge Discord

Keep in mind that this project is still WIP, therefore it might be unstable.

Yet another Discord API wrapper for Python, aimed to follow Discord API format as much as possible but also simple and easy to use.

Discord Server

Features

  • Discord v10 API (including Threads, components, context menus, etc.)
  • Full interaction support
  • API-Only supported, with aiohttp-based or requests-based HTTP client.
  • More soon™

Installation

Development Version:

pip install -U git+https://github.com/dico-api/dico

PyPi(Not Recommended):

pip install -U dico-api

Quick Example

API Client

import dico

api = dico.APIClient("APPLICATION_TOKEN_HERE", base=dico.HTTPRequest)
# You may use AsyncHTTPClient for async support.

# All endpoints are implemented, and for the example request_user (= Get User) will be used.
user = api.request_user()  # You may pass any user ID or it will be the application itself.
# You may use either int, str, dico.Snowflake, or dico.User itself.
print(user.username)

Websocket Client

import dico


client = dico.Client("YOUR_BOT_TOKEN_HERE", intents=dico.Intents.full())


@client.on_message_create
async def on_message_create(message: dico.Message):
    if message.content.startswith("!hello"):
        await message.reply("Hello, World!")


client.run()

More examples are in here.

Requirements

  • Python 3.7+

Extra Libs

Metadata

Release files for dico-api 0.0.38

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

Source distribution (sdist)

Source distribution for dico-api 0.0.38
File Size Uploaded Provenance
dico-api-0.0.38.tar.gz 483.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dico-api 0.0.38
File Interpreter ABI Platform
dico_api-0.0.38-py3-none-any.whl Python 3 none any Details

Total release size: 986.5 kB

Release files / dico-api-0.0.38.tar.gz

Download URL dico-api-0.0.38.tar.gz
Size 483.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37574b7e9ac5f71260f79e29f694a707e2d6a46bfa56513b8d78f8e534185ef8
BLAKE2b-256 checksum
How to use checksums
320d845654f840de257469ab68f2542750a5fe12c8159da37025778fa533385a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / dico_api-0.0.38-py3-none-any.whl

Download URL dico_api-0.0.38-py3-none-any.whl
Size 503.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8f0c45dcb1bb9f1d2c70bb8a5c4103baefaebc7275809036c05ea84e4709c0a
BLAKE2b-256 checksum
How to use checksums
5af8fbb28bbd44fea66f3efd66e5472d50bed98a25f43fd3bbe074a63031317a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for dico-api 0.0.38

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

0.0.38 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