Code Monkey home page Code Monkey logo

dont-tread-on-memes's Introduction

Don't tread on memes

Don't tread on me(mes)

Dependencies

Python interface

This program provides a simple python interface for generating "don't tread on memes."

A single method is exposed, tread_on which generates a PIL image of the "Don't Tread on Me" flag with a custom caption. A single parameter, phrase, represents the string with which to replace "tread on."

import dont_tread_on_memes
dont_tread_on_memes.tread_on("test text").show()  # Shows a PIL image of the flag captioned with "DON'T TEST TEXT ME"

CLI

After cloning the repository, you can run python3 -m dont_tread_on_memes from inside the repository root to use the CLI.

Usage: __main__.py [OPTIONS]

  Create a Don't Tread on Meme โ€” an image of the Gadsden flag with the words
  "DONT TREAD ON ME" replaced by something else.

Options:
  --message <caption>     A message to use as a caption for the flag
  --format / --no-format  Whether to format the provided message as 'Don't
                          <caption> me' (default) or to use the provided
                          message as the entire caption.
  --save TEXT             Where to save the image
  --help                  Show this message and exit.

If --message is omitted, the user will be prompted to provide a message. If --save is omitted, the image will be displayed using PIL's PIL.ImageShow module.

Examples

An image generated via the CLI:

dont-tread-on-memes's People

Contributors

controversial avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.