All Projects → 38elements → sanic-admin

38elements / sanic-admin

Licence: MIT license
sanic-admin is a command line tool for automatically restarting sanic.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sanic-admin

Hproxy
hproxy - Asynchronous IP proxy pool, aims to make getting proxy as convenient as possible.(异步爬虫代理池)
Stars: ✭ 62 (+313.33%)
Mutual labels:  sanic
Sanic Jwt
Authentication, JWT, and permission scoping for Sanic
Stars: ✭ 189 (+1160%)
Mutual labels:  sanic
universal-hot-reload
Hot reload client and server webpack bundles for the ultimate development experience
Stars: ✭ 79 (+426.67%)
Mutual labels:  reload
Graphql Server
This is the core package for using GraphQL in a custom server easily
Stars: ✭ 65 (+333.33%)
Mutual labels:  sanic
Owllook
owllook-小说搜索引擎
Stars: ✭ 2,163 (+14320%)
Mutual labels:  sanic
pait
Python Modern API Tools, fast to code
Stars: ✭ 24 (+60%)
Mutual labels:  sanic
Immuni Backend App Configuration
Repository for the backend app configuration
Stars: ✭ 33 (+120%)
Mutual labels:  sanic
hotfix
Lua 5.2/5.3 hotfix. Hot update functions and keep old data.
Stars: ✭ 67 (+346.67%)
Mutual labels:  reload
Asyncorm
Fully Async ORM inspired in django's
Stars: ✭ 182 (+1113.33%)
Mutual labels:  sanic
Metis
测试题小程序 包含后端api接口 可能会改成gitbook应用了吧
Stars: ✭ 79 (+426.67%)
Mutual labels:  sanic
Sanic Nginx Docker Example
Sanic + Nginx + Docker basic example
Stars: ✭ 77 (+413.33%)
Mutual labels:  sanic
Sanic Cors
A Sanic extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible. Based on flask-cors by Cory Dolphin.
Stars: ✭ 143 (+853.33%)
Mutual labels:  sanic
pynaivechain
Python implementation of naivechain project
Stars: ✭ 18 (+20%)
Mutual labels:  sanic
Sanic Prometheus
Prometheus metrics for Sanic, an async python web server
Stars: ✭ 63 (+320%)
Mutual labels:  sanic
sanic-wtf
Sanic meets WTForms
Stars: ✭ 24 (+60%)
Mutual labels:  sanic
Sanic Transmute
Easily document your Sanic API with Swagger UI, Plus param validation and model serialization.
Stars: ✭ 42 (+180%)
Mutual labels:  sanic
Sanic
Async Python 3.7+ web server/framework | Build fast. Run fast.
Stars: ✭ 15,660 (+104300%)
Mutual labels:  sanic
sanic-ext
Extended Sanic functionality
Stars: ✭ 26 (+73.33%)
Mutual labels:  sanic
ethereumd-proxy
Proxy client-server for Ethereum node using bitcoin JSON-RPC interface.
Stars: ✭ 21 (+40%)
Mutual labels:  sanic
json-head
JSON microservice for performing HEAD requests
Stars: ✭ 31 (+106.67%)
Mutual labels:  sanic

sanic-admin

sanic-admin is a command line tool for automatically restarting sanic.
The code(*.py) under the current working directory is changed, sanic will automatically restart.

Installation

pip install sanic-admin

Usage

Auto reload

sanic-admin server.py

Display urls

sanic-admin -urls server.py

Setting

You can change the behavior of sanic-admin by putting a file named sanic-admin.json in current working directory like the contents below.

{
    // Patterns of filename to be watched
    // default ["*.py"]
    "patterns": ["*.html", "*.css", "*.py"],
    // Paths to be watched
    // default current working directory
    "paths": ["/foo1/bar1", "/foo2/bar2"],
    // File to be executed when sanic-admin starts
    // default None
    "before": "before.py",
    // File to be executed before sanic restarts
    // default None
    "before_each": "before_each.py",
    // File to be executed when sanic-admin exits
    // default None
    "after": "after.py",
    // File to be executed after sanic restarts
    // default None
    "after_each": "after_each.py",
    // Variable name of sanic instance 
    // default "app" 
    "app": "app"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].