Skip to main content

dev tools for Sanic

Project description

Travis-CI Build Status codecov
PyPI Package latest release PyPI Wheel Supported versions Supported implementations

Dev tools for Sanic.

This tool is highly inspired by aiohttp-devtools, aio-libs.


pip install sanic-devtools

Quick Start

⋊> ~ sdev --help

Usage: sdev [OPTIONS] COMMAND [ARGS]...

  -V, --version  Show the version and exit.
  --help         Show this message and exit.

  new        Creates a new sanic project with batteries included.
  runserver  Run a development server for an Sanic app.


sanic-devtools provides several commands to help you develop Sanic Application easily.


Provides a simple local server for running your application while you’re developing, it helps you live reload your Sanic application automatically while developing and having any code change.

sdev runserver <app-path>

app-path can be a path to either a directory containing a recognized default file ( or or to a specific file. The --app-factory option can be used to define which method is called from the app path file, if not supplied some default method names are tried (app/app_factory/get_app/create_app).

All runserver arguments can be set via environment variables.

For more details, try:

sdev runserver --help


Creates a new sanic project with batteries included in seconds.

sdev new --output-dir <project-output-path>

By default, sdev uses cookiecutter-sanic as default template under the hood. You may override it by passing --template-src option.

For more details, try:

sdev new --help

Also feel free to add any tool/command that helps developing Sanic application smoothly, just create a PR/issue and let us know !


sanic-devtools accepts contributions on GitHub, in the form of issues or pull requests.

Run unit tests.

tox -e py36


./uranium test

Test command locally.

./bin/sdev runserver ./example/

Project details

Release history Release notifications

This version


Download files

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

Files for sanic-devtools, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sanic_devtools-0.1.0-py2.py3-none-any.whl (20.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size sanic-devtools-0.1.0.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page