MemeLib
A python lib to get dank memes
Installation
MemeLib is installed through PyPi
pip install MemeLib
Usage
from memelib.api import DankMemeClient
myclient = DankMemeClient()
await myclient.async_meme(subreddit="dankmemes")
That returns a dict. (note: there is also a synchronous function: DankMemeClient.meme())
{'title': 'Creeping in', 'author': 'u/charles2x2', 'subreddit': 'r/dankmemes', 'upvotes': 117, 'comments': 6, 'img_url': 'https://i.redd.it/c1onsrvplnu51.jpg', 'post_url': 'https://reddit.com/r/dankmemes/comments/jg0ax7/creeping_in/'}
Params for the DankMemeClient call:
reddit_user_agent: str | The reddit user agent. Preferrably, this would be the name of your application.
return_embed: bool | Whether to return a Discord.py embed.
embed_color | A color for the discord embed. Must be in 0xFFFFFF format.
If return_embed is true, this will automatically return a nicely formatted embed.
Example:
Metadata
Release files for MemeLib 0.1.5
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 |
|---|---|---|---|---|
| MemeLib-0.1.5.tar.gz | 16.1 kB | Without provenance | Details for MemeLib-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MemeLib-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for MemeLib-0.1.5-py3-none-any.whl |
Total release size: 32.6 kB
Release files / MemeLib-0.1.5.tar.gz
| Download URL | MemeLib-0.1.5.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25e873e71751c9dec66356c1687c5f87bcaf964e479819a1a1465926748777e6
|
|
BLAKE2b-256 checksum How to use checksums |
92acb32199fb619a5111b41af996ca7ead17927cedade4f5fb009c72b087e4e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / MemeLib-0.1.5-py3-none-any.whl
| Download URL | MemeLib-0.1.5-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b447f3d8fa77f78a2d37b9bf1293ea2a5b56479591bccb0b861be14fcca0c72a
|
|
BLAKE2b-256 checksum How to use checksums |
02901e67dfff5e31aa65096dfb29f88cbfcfe8de700f116bafa941b563dd185a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for MemeLib 0.1.5
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.