Sarpoka is a rapidly development Python micro framework designed for serverless applications
Project description
Sarpoka
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 details)
File details
Details for the file sarpoka-1.0.1.tar.gz
.
File metadata
- Download URL: sarpoka-1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2aa2fe8b4fd20c0dbb7197b3c0bfee6440fb81c67b431eb0528eae8728c989 |
|
MD5 | 418b6051ee23ba85dd170057774ac073 |
|
BLAKE2b-256 | da6360c85aa3f78693ea28face3b18a5f90796ed43a3443bdb02f2b4dad30af9 |