DiscordEmojiPy - DiscordEmoji API Wrapper for Python
Documentation
English
Installation
pip install demojipy
Search:
from DEmojiPython import DEmoji
DEmoji.attr()
Available attributes:
| Attribute | Parameters | Return | Description |
|---|---|---|---|
| search_by_id() | emojiid: int | dict | Fetch DiscordEmoji's Emoji by id |
| search_by_name() | name: str | dict | Fetch DiscordEmoji's Emoji by name |
| search_by_author() | author: str | list[dict] | Fetch DiscordEmoji's Emojis submitted by an user |
| search_emojis() | search: str, startswith: bool | list[dict] | Fetch emojis you want to search, specifying whether search will be by the beginning of the word (default) or not (by specifying False in the startswith parameter) |
| stats() | None | dict | Fetch DiscordEmoji's stats |
| packs() | None | list[dict] | Fetch DiscordEmoji's emoji packs |
Examples:
from DEmojiPython import DEmoji
# Code
DEmoji.search_by_id(1)
# Response
{'id': 1, 'title': 'zombie', 'slug': 'zombie', 'image': 'https://discordemoji.com/assets/emoji/zombie.png', ...}
# Code
DEmoji.search_by_name('zombie') # must be case insensitive
# Response:
{'id': 1, 'title': 'zombie', 'slug': 'zombie', 'image': 'https://discordemoji.com/assets/emoji/zombie.png', ...}
# Code
DEmoji.search_by_author('Kohai') # must be case insensitive
# Response
[{'title': 'emoji', 'submitted_by': 'Kohai'},
{'title': 'emojiTwo', 'submitted_by': 'Kohai'}...]
# Code
DEmoji.search_emojis('PR_', startswith=True)
# Response
[{'id': 3830, 'title': 'PR_bug', ...}, ...]
# If not found, returns None
# Code
DEmoji.stats()
# Response:
{"emoji": int,"users": int,"faves": int,"pending_approvals": int}
# Code
DEmoji.packs()
#Response:
[{"id":2,"name":"Anime Pack #1", ...}, ...]
More attributes are coming soon...
If there is any grammar error call me at Discord: Alguem#1599
ChangeLog
v2.0.1
- Fix cache bug
v2.0.0
- Add site urls in dicts
- Change aiohttp to requests again(because very bugs)
- Added parameter "startswith" in "search_emojis"(specifies whether search will be by the beginning of the word or not)
- Added Packs attribute
- Added cache system, to avoid making too many requests for api.
v2.0.0a
- Change requests to aiohttp(testing)
- Added Packs attribute(Testing)
Future Updates
- Add categories
Metadata
Release files for demojipy 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| demojipy-3.0.0.tar.gz | 4.1 kB | Without provenance | Details for demojipy-3.0.0.tar.gz |
Release files / demojipy-3.0.0.tar.gz
| Download URL | demojipy-3.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71ba8e4043989ccc747c6da0a1af249999ccb35f93cfed9f95173ee71d9d5666
|
|
BLAKE2b-256 checksum How to use checksums |
45cd53cd2225253e3095f41abd9f027186ed26ca717d73c47980500bd07f46a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
|
Security for demojipy 3.0.0
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.