Skip to main content

Utilities for Sanic apps

Project description

A collection of utilities for Sanic (and/or Stellata and/or Webpack) apps.


Suppose you have a project called foo.

Run database migrations:

tails foo migrate

Build webpack assets:

tails foo build

Run a debug server that reloads on server + asset changes:

tails foo server --watch --build

Run a production server:

tails foo server --production --host= --port=9000

Run multiple projects at once:

tails ~/foo/foo ~/bar/bar server --port=9001 --port=9002

Reset to a fresh database with no data:

tails foo reset


Return JSON or HTML pages:

import foo
import tails.resource'/')
async def index():
    return tails.resource.html(
        title='What a great page',
async def api():
    data = ...
    return tails.resource.json({
        'data': data

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

tails-0.0.1.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

tails-0.0.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded py3

Supported by

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