Sarpoka is a rapidly development Python micro framework designed for serverless applications
Project description
Sarpoka ![Python Packaging](https://pypi-camo.freetls.fastly.net/f82125f359cc39621c2749523b60d611a8ebc50d/68747470733a2f2f6769746875622e636f6d2f69617368726166756c2f736172706f6b612f616374696f6e732f776f726b666c6f77732f707974686f6e2d7061636b6167696e672e796d6c2f62616467652e7376673f6272616e63683d6d6173746572)
Sarpoka is a rapidly development Python micro framework designed for serverless applications
Installation
pip install sarpoka
An example of usage
from sarpoka import Sarpoka
app = Sarpoka()
@app.route('/')
def home(request, response, **kwargs):
return 'Welcome Home!!'
@app.route('/api/me', methods=['GET', 'POST'])
def get_me(request, response, **kwargs):
response.content_type = 'application/json'
response.status_code = 200
return {
'name': 'Mohammad Ashraful Islam'
}
@app.route('/about')
def about(request, response, **kwargs):
return '''
<h1>Mohammad Ashraful Islam</h1>
<div>
Senior Software Engineer at Field Buzz<br/>
</div>
'''
Features
- Basic Routing
- HTTP Method defining during route
- Query string support
- View function support only
- Serving html as string (File not supported yet.)
Upcoming Features
- Database and ORM support
- Class based view support
- HTML/Markdown file rendering
- Template engine support
- ... will be added many more.
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
sarpoka-1.0.1.tar.gz
(3.8 kB
view hashes)