| 
									
										
										
										
											2010-04-16 20:24:12 +08:00
										 |  |  | """
 | 
					
						
							|  |  |  | Flask | 
					
						
							|  |  |  | ----- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Flask is a microframework for Python based on Werkzeug, Jinja 2 and good | 
					
						
							|  |  |  | intentions. And before you ask: It's BSD licensed! | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Flask is Fun | 
					
						
							|  |  |  | ```````````` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | :: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     from flask import Flask | 
					
						
							|  |  |  |     app = Flask(__name__) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @app.route("/") | 
					
						
							|  |  |  |     def hello(): | 
					
						
							|  |  |  |         return "Hello World!" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     if __name__ == "__main__": | 
					
						
							|  |  |  |         app.run() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | And Easy to Setup | 
					
						
							|  |  |  | ````````````````` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | :: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     $ easy_install Flask | 
					
						
							|  |  |  |     $ python hello.py | 
					
						
							|  |  |  |      * Running on http://localhost:5000/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Links | 
					
						
							|  |  |  | ````` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * `website <http://flask.pocoo.org/>`_ | 
					
						
							|  |  |  | * `documentation <http://flask.pocoo.org/docs/>`_ | 
					
						
							| 
									
										
										
										
											2010-04-21 00:40:58 +08:00
										 |  |  | * `development version | 
					
						
							|  |  |  |   <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_ | 
					
						
							| 
									
										
										
										
											2010-04-16 20:24:12 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | """
 | 
					
						
							| 
									
										
										
										
											2010-04-06 19:23:18 +08:00
										 |  |  | from setuptools import setup | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-31 23:53:10 +08:00
										 |  |  | def run_tests(): | 
					
						
							|  |  |  |     import os, sys | 
					
						
							|  |  |  |     sys.path.append(os.path.join(os.path.dirname(__file__), 'tests')) | 
					
						
							|  |  |  |     from flask_tests import suite | 
					
						
							|  |  |  |     return suite() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-06 19:23:18 +08:00
										 |  |  | setup( | 
					
						
							|  |  |  |     name='Flask', | 
					
						
							| 
									
										
										
										
											2010-05-28 07:25:35 +08:00
										 |  |  |     version='0.4', | 
					
						
							| 
									
										
										
										
											2010-04-06 19:23:18 +08:00
										 |  |  |     url='http://github.com/mitsuhiko/flask/', | 
					
						
							|  |  |  |     license='BSD', | 
					
						
							|  |  |  |     author='Armin Ronacher', | 
					
						
							|  |  |  |     author_email='armin.ronacher@active-4.com', | 
					
						
							| 
									
										
										
										
											2010-04-21 00:40:58 +08:00
										 |  |  |     description='A microframework based on Werkzeug, Jinja2 ' | 
					
						
							|  |  |  |                 'and good intentions', | 
					
						
							| 
									
										
										
										
											2010-04-16 20:24:12 +08:00
										 |  |  |     long_description=__doc__, | 
					
						
							| 
									
										
										
										
											2010-04-11 08:46:44 +08:00
										 |  |  |     py_modules=['flask'], | 
					
						
							| 
									
										
										
										
											2010-04-06 19:23:18 +08:00
										 |  |  |     zip_safe=False, | 
					
						
							|  |  |  |     platforms='any', | 
					
						
							| 
									
										
										
										
											2010-04-11 08:42:13 +08:00
										 |  |  |     install_requires=[ | 
					
						
							| 
									
										
										
										
											2010-04-13 07:08:52 +08:00
										 |  |  |         'Werkzeug>=0.6.1', | 
					
						
							|  |  |  |         'Jinja2>=2.4' | 
					
						
							| 
									
										
										
										
											2010-04-16 20:24:12 +08:00
										 |  |  |     ], | 
					
						
							|  |  |  |     classifiers=[ | 
					
						
							| 
									
										
										
										
											2010-05-12 07:29:25 +08:00
										 |  |  |         'Development Status :: 4 - Beta', | 
					
						
							| 
									
										
										
										
											2010-04-16 20:24:12 +08:00
										 |  |  |         'Environment :: Web Environment', | 
					
						
							|  |  |  |         'Intended Audience :: Developers', | 
					
						
							|  |  |  |         'License :: OSI Approved :: BSD License', | 
					
						
							|  |  |  |         'Operating System :: OS Independent', | 
					
						
							|  |  |  |         'Programming Language :: Python', | 
					
						
							|  |  |  |         'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | 
					
						
							|  |  |  |         'Topic :: Software Development :: Libraries :: Python Modules' | 
					
						
							| 
									
										
										
										
											2010-05-31 23:53:10 +08:00
										 |  |  |     ], | 
					
						
							|  |  |  |     test_suite='__main__.run_tests' | 
					
						
							| 
									
										
										
										
											2010-04-06 19:23:18 +08:00
										 |  |  | ) |