Skip to main content

An open source Python wrapper for the imgflip RESTful API (https://api.imgflip.com).

Project description

imgflippy

An open source Python interface for the imgflip RESTful API imgflippy has been developed to remain true to the original API while offering the conveniences that Python allows.

Quickstart

imgflippy has been written with the intention of allowing for meme generation from either a command line interface or an interpreted environment.

Command Line

get_memes

Print a table of the popular memes that may be captioned with this API:

From the imgflip API documentation:

The size of this array and the order of memes may change at any time. When this description was written, it returned 100 memes ordered by how many times they were captioned in the last 30 days. Additional properties other than those listed below may be added in the future without warning, so do not assume the JSON structure of each meme will never have new properties.

$ python -m imgflippy get_memes
Template ID |                      Name                      |               URL
------------+------------------------------------------------+---------------------------------
112126428   | Distracted Boyfriend                           | https://i.imgflip.com/1ur9b0.jpg
181913649   | Drake Hotline Bling                            | https://i.imgflip.com/30b1gx.jpg
87743020    | Two Buttons                                    | https://i.imgflip.com/1g8my4.jpg
...
add_caption

From the imgflip API documentation:

Add a caption to an Imgflip meme template. Images created with this API will be publicly accessible by anyone through the url in the response - there is no "private" option. This does not mean these memes will be posted publicly though, one still needs to know the exact URL to find the image. If the image hangs around on Imgflip servers for a while and gets very few views (direct image views and image page views both count), it will be auto-deleted to save space.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgflippy-0.0.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imgflippy-0.0.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file imgflippy-0.0.3.tar.gz.

File metadata

  • Download URL: imgflippy-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for imgflippy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ff80fc7ebede2facd97508e80034747e3ff39ee1a5fdbbb5618d6100666f55ab
MD5 43051eae681650258edb26c525022170
BLAKE2b-256 33f4f7e097aa228f70507bd20461df2c76ba1960ab901022c9b5fa00e96d5d81

See more details on using hashes here.

File details

Details for the file imgflippy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: imgflippy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for imgflippy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fad40929418320148c07e42c18c5c8a5234ce80fe631ec9b39fc23ce0891d0da
MD5 5598b3b8e15bae5fbbe31379ecf96d3d
BLAKE2b-256 1baf2d23d93b9b8b8472cc348aa44788bbd47deaa7526cdfd0032582033bf54c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page