website code for tomorrow.comes.today and jolla.comes.today
Note it's developing and hasn't finished yet.
Require python >= 3.3 & MongoDB
It may or may not run on python2.7 (not test)
git clone https://github.com/TylerTemp/tomorrow.git
cd tomorrow
pip3 install -r requirement.txt
run in single process:
cd path/to/tomorrow
python3 main.py -p 8000
all default configurations are under source code of
lib/config/
, please read the source code of that part to change the
configuration by creating a .conf
file
To run multi-processes:
python3 lib/tool/reboot.py
Note you can shadow those settings by passing args to main.py
or lib/tool/reboot.py
in command line
reboot.py
accept the same command line args except -p
,
use python main.py --help
for more detail
python -c 'from lib.db.tomorrow import Auth; Auth.clean_codes_and_tokens()'
tomorrow
uses the following projects & services. Much thanks to these awesome work!
- python3 - A programming language that lets you work quickly and integrate systems more effectively
- python-tornado - A Python web framework and asynchronous networking library
- python-docpie - An easy and Pythonic way to create your POSIX command line
- MongoDB & python-pymongo - A powerful NoSQL database and its python interact implement
- python-passlib - A python encrypt/decrypt module
- python-bleach - an HTML sanitizing library that escapes or strips markup and attributes based on a white list
- python-html2text - A Python script that converts a page of HTML into clean, easy-to-read plain ASCII text(MarkDown format)
- python-markdown - A Python implementation of John Gruber’s Markdown
- python-markdown-nlcontinuous - Python Markdown extension which prevents white space after line break in Chinese
- python-markdown-amazedown - Python-Markdown plug-in to support Amaze-UI style HTML UI Framework
- python-markdown-video - video block(tag) extension for Python-Markdown
- python-markdown-underline - underline plugin for python markdown
- python-BeautifulSoup4 - A Python library designed for quick turnaround projects like screen-scraping
- weibo - Sina Weibo API for python
- amazeUI - A Chinese friendly lightweight mobile first web frame
- QiNiu - A fast, free and powerful CDN service
- iconfont - A web icon font maker
- github:dwieeb/jquery-textrange - a JS tool that can select text in
input
andtextarea
conveniently lib/tracemore.py
from Python Cockbooklib/bashlog.py
fromtornado.logging
static/js/html2md.js
from github: neocotic/html.md- github: showdown - A Javascript lib that can convert markdown (html allowed) to html
static/js/md2html.js
is under MIT license, by Dominic Baggott, Ash Berlin & Christoph Dorn christoph@christophdorn.com (http://www.christophdorn.com)lib/tool/filelock.py
is edited from source github: dmfrey/ FileLock- highlight.js - Syntax highlighting for the Web
- medialize-URI.js - JavaScript URL mutation library
Note for the file static/img/user.jpg
, I can not find the source, nor do I know the license. If you know the source/license, or it has infringed your right, please tell me at tylertempdev@gmail.com.