Skip to content

mehdishirazi/restfulpy

 
 

Repository files navigation

restfulpy

A tool-chain for creating restful web applications.

PyPI Build Status Coverage Status Join the chat at https://gitter.im/Carrene/restfulpy

Goals:

  • Automatically transform the SqlAlchemy models and queries into JSON with standard naming(camelCase).
  • Http form validation based on SqlAlchemy models.
  • Scaffolding: restfulpy scaffold -h
  • Task Queue system

Install

PyPI

pip install restfulpy

Development

pip install -e .
pip install -r requirements-dev.txt

Run tests to ensure everything is ok:

pytest

Command line interface

restfulpy -h

Autocompletion

restfulpy completion install

Scaffolding

restfulpy scaffold \
    --template full 
    --directory path/to/target \
    project1 \
    author@example.com

Follow the path/to/target/README.md to know how to use the newly created project.

Single file template

If you have generated your application by --template singlefile option, you can run it by:

nanohttp path/to/application/project1.py

Or you can make your application executable by following command:

chmod +x path/to/application/project1.py

Now run your application by:

path/to/application/project1.py

About

A tool-chain for creating restful web applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.1%
  • Makefile 2.9%