Skip to main content

MemeLib

A python lib to get dank memes

PyPI License PyPI - Python Version Issues

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:

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)

Source distribution for MemeLib 0.1.5
File Size Uploaded
MemeLib-0.1.5.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MemeLib 0.1.5
File Interpreter ABI Platform
MemeLib-0.1.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.14

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.1

2 release files

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