python-flask-mysql-template

所属分类:工具库
开发工具:SQLPL
文件大小:0KB
下载次数:0
上传日期:2017-12-21 04:31:51
上 传 者sh-1993
说明:  此示例演示如何将Anychart库与Python编程语言、Flask微框架和MySQL数据库一起使用。,
(This example shows how to use Anychart library with the Python programming language, Flask microframework and MySQL database.,)

文件列表:
LICENSE (11357, 2017-12-20)
app.py (701, 2017-12-20)
database_backup.sql (1002, 2017-12-20)
static/ (0, 2017-12-20)
static/css/ (0, 2017-12-20)
static/css/style.css (95, 2017-12-20)
templates/ (0, 2017-12-20)
templates/index.html (828, 2017-12-20)

[AnyChart - Robust JavaScript/HTML5 Chart library for any project](https://www.anychart.com) # Python Flask basic template This example shows how to use Anychart library with the Python programming language, Flask microframework and MySQL database. ## Running To use this sample you must have Python 2.* installed (if not please visit [python download page](https://www.python.org/downloads/release/python-2712/)), PIP - Python package manager (if not please check [isntallation guide](https://pip.pypa.io/en/stable/installing/)) and MySQL installed and running (if not please check out [MySQL download page](https://dev.mysql.com/downloads/installer/) and follow [instructions](http://dev.mysql.com/doc/refman/5.7/en/installing.html)) To check your installations, run the following command in the command line: ``` $ python --version Python 2.7.6 # sample output $ pip -V pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7) # sample output $ mysql --version mysql Ver 14.14 Distrib 5.5.52, for debian-linux-gnu (x86_64) using readline 6. # sample output ``` To start this example run commands listed below. Clone the repository from github.com: ``` $ git clone git@github.com:anychart-integrations/python-flask-mysql-template.git ``` Navigate to the repository folder: ``` $ cd python-flask-mysql-template ``` Install dependencies: ``` $ pip install --user Flask $ pip install --user MySQL-python # if you have some problems installing MySQL-python, probably you should install libmysqlclient-dev or/and python-dev: # sudo apt-get install libmysqlclient-dev # sudo apt-get install python-dev # Or you can just run: # sudo apt-get install python-mysqldb ``` Set up MySQL database, use -u -p flags to provide username and password: ``` $ mysql < database_backup.sql ``` Run example: ``` $ python app.py ``` Open browser at http://127.0.0.1:5000/ ## Workspace Your workspace should look like: ``` python-flask-mysql-template/ static/ css/ style.css # css style templates/ index.html # html template app.py # main Python app code database_backup.sql # MySQL database dump README.md LICENSE ``` ## Technologies Language - [Python](https://www.python.org/)
Web framework - [Flask](http://flask.pocoo.org/)
Html tepmlate - [Jinja 2](http://jinja.pocoo.org/docs/dev/)
Database - [MySQL](https://www.mysql.com/)
## Further Learning * [Documentation](https://docs.anychart.com) * [JavaScript API Reference](https://api.anychart.com) * [Code Playground](https://playground.anychart.com) * [Technical Support](https://www.anychart.com/support) ## License AnyChart Python/Flask/MySQL integration sample includes two parts: - Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with Python language, Flask framework and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under [Apache 2.0 License](https://github.com/anychart-integrations/python-flask-mysql-template/blob/master/LICENSE). - AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details [here](https://www.anychart.com/buy/). If you have any questions regarding licensing - please contact us. [![Analytics](https://ga-beacon.appspot.com/UA-228820-4/Integrations/python-flask-mysql-template?pixel&useReferer)](https://github.com/igrigorik/ga-beacon)

近期下载者

相关文件


收藏者