The simple, quick and easy generative web framework for python
Project description
This is the new pow 2017. And it’s really good.
(ok I might be biased ;)
But it’s by far the best PoW (concept and implementation) ever! (Ever,ever, ever!!)
I call it SQUEEZY => for Simple, Quick and Easy.
Principle
Designed for simplicity, happiness and Quick results!
As simple to use as possible. Everything you always need on board. Batteries included! (tornado Webserver, SQLite DB, NoSQL DBs: tinyDB, ElasticSearch, MongoDB following next) Non intrusive! You can always escape and go RAW.
Strong Foundation:
python 3.x
tornado webserver
sqlalchemy ORM onboard (sqlite, mysql, postgres, oralce, ms-sql …)
DB migrations generated for you (based on alembic)
cerberus schemas and validation on board
template engine (tornado templates)
tinyDB and ElasticSearch on board… more to come (next: mongoDB)
authentication with Twitter, Google on board
Super easy, quick to start and all the basics on board:
super easy relations with decorators @relations.has_many(“comments”)
super easy REST routing with decorators @app.add_restful_routes(),
routing decorator @app.add_route(route)
db migrations autogenerated using alembic in the back
validation on board with cerberus schemas
use the same schema descrition for all model types (sql, nosql, elastic..)
generate_models script
generate_migrations script
update_db script
generate_handlers
generate_app
automatic scaffolding views (work in progress)
Code examples
Routes:
# this will call the myget method on HTTP GET calls and will hand over the re-group as the 1st parameter. @app.add_route("/index/([0-9]+)*", dispatch={"get" : "myget"}) class IndexdHandler(BaseHandler): def myget(self, index=None): print(" index:" + str(index)) self.render("index.tmpl")
Relations: (SQL Models)
@relation.has_many("comments") class Post(Base): # a blog Post schema = { 'text': {'type': 'string'}, 'name': {'type': 'string', 'maxlength' : 35}, 'last': {'type': 'number'} }
Check: The PythonOnWheels Homepage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pythononwheels-0.811b0.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06b83ab8b3c18ed760cd8d26c378f50d14cc3d8daff36db973854254f78cbb58 |
|
MD5 | 30865493e5aad456f5efa207da4290b8 |
|
BLAKE2b-256 | 4d44ec8deae7cd312bc3f3947f1c8e0175ee94cdd79981189416619864cdb86b |
Hashes for pythononwheels-0.811b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6907e7cd4ab170cc655a14901c249773389dba69480d0f415c3d09291314143 |
|
MD5 | 369857bc8120ae8e011d0a5a8277d8b4 |
|
BLAKE2b-256 | ce715a65bf430e9fdb74288d62399aa6a9ffaa66d92fbddf0fe5da21a5990337 |