Skip to main content

Micro framework built on top of sanic.py written in Python 3.

Project description

rsanic

Micro framework built on top of sanic.py written in Python 3.

Installing rsanic

pip3 install rsanic

Example app:

  • Local Redis service must be installed and running at port 6397

  • Shows how to use html or json responses

git clone https://github.com/reformo/rsanic.git
cd rsanic/example
python3 server.py

or if you have pm2 installed

git clone https://github.com/reformo/rsanic.git
cd rsanic/example
pm2 start process.yml

Then use any web browser to open address: http://127.0.0.1:8000/ or http://127.0.0.1:8000/api or http://127.0.0.1:8000/public/data.json for static file access.

Notes

Credits

Change Log

New in version 0.4.0

  • Workers added as an option

  • Markdown support added

New in version 0.3.1

  • Container removed

New in version 0.3.0

  • HTML theming support added

  • Access log option added

  • Static files support added

  • Starting to support to get loop outer codebase

  • Controller invoke methods, application_global and controller_global methods changed to async methods

New in version 0.2.2

  • Autoescape option set True for Jinja to prevent XSS attacks.

  • Example pm2 config added

New in version 0.2.1

  • Requirements updated

New in version 0.2.0

  • Dependency Injection Container introduced to be used in Rsanic and Applications

  • Request injected in to App

  • Working example added

New in version 0.1.0

  • Introduced “rsanic” #WIP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rsanic-0.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

rsanic-0.5.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file rsanic-0.5.0.tar.gz.

File metadata

  • Download URL: rsanic-0.5.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rsanic-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4704f2de79e106ef3c2bc5b537beafe35c6c27cbc063dd209f2d48d035f28da9
MD5 1682d13e0cfcc2e6ef54f876e5c1e896
BLAKE2b-256 f499927579a071cd231d2978333cef6c55c176ca791442e3561e719dbab3bbc5

See more details on using hashes here.

File details

Details for the file rsanic-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rsanic-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625ff1420456413d7435401598f4678ba7dc39dd0ccdbab0aeeb8d3d8eecfc1b
MD5 8c6fa914bb50d0942defee2bf33f1dc3
BLAKE2b-256 aecf2c754b695896b73f0eb45027efbb497595b9a032190a99d649dc127dc640

See more details on using hashes here.

Supported by

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