Skip to main content

TSES project scaffold generator for Django and FastAPI services.

Project description

TSES

tses is the TSES scaffold generator CLI for bootstrapping curated Django and FastAPI service projects.

Install

For local development:

pip install -e .[dev]

For end users after publishing:

pip install tses

A pipx install tses workflow can also be used for isolated CLI installs.

Usage

Generate a Django scaffold into a new directory:

tses startproject my-django-service -f django

Generate a FastAPI scaffold into the current directory:

tses startproject . -f fastapi --force

Available options:

  • -f, --framework: required framework choice, django or fastapi
  • --force: overwrite scaffold-managed files in a non-empty target directory
  • --dry-run: print planned file actions without writing files
  • --verbose: print per-file actions during generation
  • --version: print the installed tses version

Development

Scaffold snapshots are vendored into src/tses/templates. Use the sync script to refresh them from the scaffold repos:

python tools/sync_scaffolds.py

Default source repos:

  • /home/mike/django-scaffold
  • /home/mike/fastapi-scaffold

Before the first public release, confirm that the package name tses is available on the intended package index.

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

tses-0.1.0.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tses-0.1.0-py3-none-any.whl (87.9 kB view details)

Uploaded Python 3

File details

Details for the file tses-0.1.0.tar.gz.

File metadata

  • Download URL: tses-0.1.0.tar.gz
  • Upload date:
  • Size: 51.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tses-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7ddde9a4ad42dd84c9f7def85bb2d9c6de56baa550a4bf9319903f4d37dd3cf
MD5 fd0c767cf98849d7439ce54ac84a240c
BLAKE2b-256 115f5b209599567c4c80380902e07de8731181ee21aa051216538e334cc20d41

See more details on using hashes here.

File details

Details for the file tses-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tses-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 87.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tses-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d69acc9f7efe5a2a1ac31ad20fec4626357a6135ed4198477260bb50afe311
MD5 e6e4301ec8df2c10d219f1f4461cd5f3
BLAKE2b-256 e053c83e8fdd040ed1bf8fd82a0f1c1a71638b9f8640b848f4a02022ddf3b6a6

See more details on using hashes here.

Supported by

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