https://github.com/agateau/tmc2
Minimalist quote gathering tool
https://github.com/agateau/tmc2
flask microblog minimalist python quotes
Last synced: about 1 month ago
JSON representation
Minimalist quote gathering tool
- Host: GitHub
- URL: https://github.com/agateau/tmc2
- Owner: agateau
- License: apache-2.0
- Created: 2017-02-26T15:25:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-10-19T19:28:38.000Z (8 months ago)
- Last Synced: 2025-10-28T22:34:59.823Z (8 months ago)
- Topics: flask, microblog, minimalist, python, quotes
- Language: HTML
- Size: 329 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TMC2
TMC2 is a minimalist quote gathering tool. It has been written to replace an
hosted service, tropmignon.com, which has closed.
It lets you add and browse quotes (or any other short texts).
It explicitly does not support:
- markup
- images
- authentication
- multiple authors
- comments
It looks like this:


## Translations
TMC2 is currently available in French and English.
## Setup
TMC2 depends on Python, Sqlite, Peewee, Flask, Jinja, Arrow and Babel.
To give it a try:
1. Run `make` to create a virtualenv with the required dependencies and
compile translations
2. Run `make run` to start the app using Flask web server on
By default the database is in `/tmp/tmc2.db`. You should create a configuration
file to define another location. You can then run TMC2 with this other
configuration file by defining the `TMC2_CONFIG` environment variable.
For example:
$ echo "DATABASE = /var/lib/tmc2.db" > /etc/tmc2.py
$ echo "HOST = '0.0.0.0'" >> /etc/tmc2.py
$ make run TMC2_CONFIG=/etc/tmc2.py
Look at for other configuration options you can define.
There is also a Dockerfile for the project.
## quoteimport.py
The `quoteimport.py` tool in the `app` directory lets you import quotes from a
JSON file. The JSON file must have the following format:
{
"quotes": [
{
"date": "date-in-iso8601-format",
"text": "quote text"
},
//...
]
}
(This format matches the JSON export format of tropmignon.com)
## Bundled components
TMC2 bundles the following components:
- Bootstrap 3.3.7:
- jQuery 3.1.1:
## License
Apache 2.0