Skip to main content

The simple, quick and easy generative web framework for python

Project description

Pow logo

Pow logo

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

pythononwheels-0.7.12b0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythononwheels-0.7.12b0-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file pythononwheels-0.7.12b0.tar.gz.

File metadata

File hashes

Hashes for pythononwheels-0.7.12b0.tar.gz
Algorithm Hash digest
SHA256 577c628adfa49672a81564d04ae8f5c7e49d32358b61228d64620552e947fbeb
MD5 e70063693346863c327a6d4e440d7284
BLAKE2b-256 5b3a4bd9f7669b4a9f18a742a5b40247abdaafb123a5ad01646d0cfe388084a2

See more details on using hashes here.

File details

Details for the file pythononwheels-0.7.12b0-py3-none-any.whl.

File metadata

File hashes

Hashes for pythononwheels-0.7.12b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2603b2c7b835e6918cda6b7e6498053838f81088d4032b0806870595f52aec9
MD5 f38f39839aeaf418711a8d7321fc6471
BLAKE2b-256 68523e20b02af5a6682c40e3d7cb308aac3053b96031d7a48091389844982d0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page