{"id":13705509,"url":"https://github.com/yunstanford/sanic-devtools","last_synced_at":"2025-10-28T16:32:43.332Z","repository":{"id":57463835,"uuid":"198477637","full_name":"yunstanford/sanic-devtools","owner":"yunstanford","description":"dev tools for Sanic","archived":false,"fork":false,"pushed_at":"2019-09-06T03:18:33.000Z","size":62,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T01:48:25.786Z","etag":null,"topics":["asyncio","devtools","python3","sanic"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yunstanford.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-23T17:25:24.000Z","updated_at":"2023-04-15T13:02:03.000Z","dependencies_parsed_at":"2022-09-05T05:30:26.230Z","dependency_job_id":null,"html_url":"https://github.com/yunstanford/sanic-devtools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunstanford%2Fsanic-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunstanford%2Fsanic-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunstanford%2Fsanic-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yunstanford%2Fsanic-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yunstanford","download_url":"https://codeload.github.com/yunstanford/sanic-devtools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546037,"owners_count":21448255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","devtools","python3","sanic"],"created_at":"2024-08-02T22:00:42.742Z","updated_at":"2025-10-28T16:32:43.276Z","avatar_url":"https://github.com/yunstanford.png","language":"Python","funding_links":[],"categories":["Extensions"],"sub_categories":["Development"],"readme":"sanic-devtools\n==============\n\n.. start-badges\n\n.. list-table::\n    :stub-columns: 1\n\n    * - Build\n      - | |travis| |codecov|\n    * - Package\n      - | |version| |wheel| |supported-versions| |supported-implementations|\n\n.. |travis| image:: https://travis-ci.org/yunstanford/sanic-devtools.svg?branch=master\n    :alt: Travis-CI Build Status\n    :target: https://travis-ci.org/yunstanford/sanic-devtools\n\n.. |codecov| image:: https://codecov.io/gh/yunstanford/sanic-devtools/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/yunstanford/sanic-devtools\n\n.. |version| image:: https://img.shields.io/pypi/v/sanic-devtools.svg\n    :alt: PyPI Package latest release\n    :target: https://pypi.python.org/pypi/sanic-devtools\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/sanic-devtools.svg\n    :alt: PyPI Wheel\n    :target: https://pypi.python.org/pypi/sanic-devtools\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/sanic-devtools.svg\n    :alt: Supported versions\n    :target: https://pypi.python.org/pypi/sanic-devtools\n\n.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/sanic-devtools.svg\n    :alt: Supported implementations\n    :target: https://pypi.python.org/pypi/sanic-devtools\n\n.. end-badges\n\n\nDev tools for Sanic.\n\nThis tool is highly inspired by `aiohttp-devtools \u003chttps://github.com/aio-libs/aiohttp-devtools\u003e`_, `aio-libs \u003chttps://github.com/aio-libs\u003e`_.\n\n\nInstallation\n------------\n\n.. code:: shell\n\n    pip install sanic-devtools\n\n\nQuick Start\n-----------\n\n.. code:: shell\n    \n    ⋊\u003e ~ sdev --help\n\n    Usage: sdev [OPTIONS] COMMAND [ARGS]...\n\n    Options:\n      -V, --version  Show the version and exit.\n      --help         Show this message and exit.\n\n    Commands:\n      new        Creates a new sanic project with batteries included.\n      runserver  Run a development server for an Sanic app.\n\n\nUsage\n-----\n\n``sanic-devtools`` provides several commands to help you develop Sanic Application easily.\n\n\nrunserver\n~~~~~~~~~\n\nProvides a simple local server for running your application while you're developing, it helps you live reload your Sanic\napplication automatically while developing and having any code change.\n\n.. code:: shell\n\n    sdev runserver \u003capp-path\u003e\n\n\n``app-path`` can be a path to either a directory containing a recognized default file (app.py or main.py) or to a specific file.\nThe ``--app-factory`` option can be used to define which method is called from the app path file,\nif not supplied some default method names are tried (``app/app_factory/get_app/create_app``).\n\nAll runserver arguments can be set via environment variables.\n\n\nFor more details, try:\n\n.. code:: shell\n\n    sdev runserver --help\n\nnew\n~~~\n\nCreates a new sanic project with batteries included in seconds.\n\n.. code:: shell\n\n    sdev new --output-dir \u003cproject-output-path\u003e\n\n\nBy default, ``sdev`` uses `cookiecutter-sanic \u003chttps://github.com/harshanarayana/cookiecutter-sanic\u003e`_ as default template under the hood.\nYou may override it by passing ``--template-src`` option.\n\nFor more details, try:\n\n.. code:: shell\n\n    sdev new --help\n\n\nAlso feel free to add any tool/command that helps developing ``Sanic`` application smoothly, just create a PR/issue and let us know !\n\n\nContributing\n------------\n\n``sanic-devtools`` accepts contributions on GitHub, in the form of issues or pull requests.\n\nRun unit tests.\n\n.. code:: shell\n    \n    tox -e py36\n\nor \n\n.. code:: shell\n    \n    ./uranium test\n\nTest command locally.\n\n.. code:: shell\n\n    ./uranium\n    ./bin/sdev runserver ./example/app.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunstanford%2Fsanic-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyunstanford%2Fsanic-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyunstanford%2Fsanic-devtools/lists"}