{"id":26787450,"url":"https://github.com/controversial/dont-tread-on-memes","last_synced_at":"2025-04-19T19:34:41.447Z","repository":{"id":89121679,"uuid":"78259241","full_name":"controversial/dont-tread-on-memes","owner":"controversial","description":"Don't tread on me(mes)","archived":false,"fork":false,"pushed_at":"2017-02-14T21:48:04.000Z","size":1193,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:13:15.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/controversial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-07T04:51:27.000Z","updated_at":"2020-01-21T20:45:20.000Z","dependencies_parsed_at":"2023-06-14T01:00:17.828Z","dependency_job_id":null,"html_url":"https://github.com/controversial/dont-tread-on-memes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/controversial%2Fdont-tread-on-memes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/controversial%2Fdont-tread-on-memes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/controversial%2Fdont-tread-on-memes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/controversial%2Fdont-tread-on-memes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/controversial","download_url":"https://codeload.github.com/controversial/dont-tread-on-memes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249780544,"owners_count":21324569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T12:20:02.848Z","updated_at":"2025-04-19T19:34:41.442Z","avatar_url":"https://github.com/controversial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Don't tread on memes\nDon't tread on me(mes)\n\n## Dependencies\n- [`click`](http://click.pocoo.org/)\n- [`Pillow`](https://python-pillow.org)\n\n## Python interface\nThis program provides a simple python interface for generating \"don't tread on memes.\"\n\nA 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.\"\n\n```python\nimport dont_tread_on_memes\ndont_tread_on_memes.tread_on(\"test text\").show()  # Shows a PIL image of the flag captioned with \"DON'T TEST TEXT ME\"\n```\n\n## CLI\nAfter cloning the repository, you can run `python3 -m dont_tread_on_memes` from inside the repository root to use the CLI.\n\n```\nUsage: __main__.py [OPTIONS]\n\n  Create a Don't Tread on Meme — an image of the Gadsden flag with the words\n  \"DONT TREAD ON ME\" replaced by something else.\n\nOptions:\n  --message \u003ccaption\u003e     A message to use as a caption for the flag\n  --format / --no-format  Whether to format the provided message as 'Don't\n                          \u003ccaption\u003e me' (default) or to use the provided\n                          message as the entire caption.\n  --save TEXT             Where to save the image\n  --help                  Show this message and exit.\n```\n\nIf `--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.\n\n## Examples\nAn image generated via the CLI:\n\n![](examples/flag1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontroversial%2Fdont-tread-on-memes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontroversial%2Fdont-tread-on-memes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontroversial%2Fdont-tread-on-memes/lists"}