Skip to main content

CLI for services template for Python (FastAPI, SQLAlchemy, Alembic)

Project description

Skeletone

A minimal, well-structured Python project skeleton for rapid development.
Built on top of FastAPI, SQLAlchemy, and Alembic with automated template management.

Features

  • ๐Ÿš€ FastAPI foundation with modern Python practices
  • ๐Ÿ—„๏ธ SQLAlchemy ORM with Alembic migrations
  • ๐Ÿ“ฆ Template Management with automated upgrades/downgrades
  • ๐Ÿ”„ Incremental Updates using patch-based system
  • โšก Quick Setup - get started in seconds

Installation

pip install skeletone

Quick Start

1. Initialize New Project

mkdir my-awesome-api && cd my-awesome-api
skeletone init

2. Check Available Versions

skeletone versions

3. Keep Your Project Updated

skeletone upgrade

4. Rollback if Needed

# Interactive version selection
skeletone downgrade

# Or specify version directly  
skeletone downgrade -v v1.2.0

Commands

Command Description
skeletone init Initialize new project from latest template
skeletone upgrade Upgrade to latest template version
skeletone downgrade Downgrade to previous template version
skeletone versions List all available template versions
skeletone help Show detailed help and examples

How It Works

Skeletone uses a patch-based system for template management:

  • Initialization: Downloads the latest template
  • Upgrades: Applies incremental patches to update your project
  • Downgrades: Uses reverse patches to safely rollback changes
  • Version Tracking: Maintains version history in skeletone.lock

Template Structure

The generated project includes:

your-project/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ models/         # SQLAlchemy models
โ”‚   โ”œโ”€โ”€ routes/         # FastAPI routes
โ”‚   โ””โ”€โ”€ dependencies/   # Dependency injection
โ”œโ”€โ”€ alembic/           # Database migrations
โ”œโ”€โ”€ config.py          # Configuration management
โ”œโ”€โ”€ main.py           # FastAPI application
โ”œโ”€โ”€ requirements.txt  # Dependencies
โ””โ”€โ”€ skeletone.lock   # Version tracking

Examples

Complete Workflow

# Create and setup new project
mkdir blog-api && cd blog-api
skeletone init

# Start development...
# (build your amazing API)

# Update to latest template
skeletone upgrade

# Check what versions are available
skeletone versions

# Rollback if something breaks
skeletone downgrade -v v1.1.0

Version Management

# See all available versions
skeletone versions

# Current output example:
# Available Skeletone Versions
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Version โ”‚ Status      โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚ v1.3.0  โ”‚ โœ… Current  โ”‚
# โ”‚ v1.2.0  โ”‚             โ”‚
# โ”‚ v1.1.0  โ”‚             โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Best Practices

  1. Always commit your code before running upgrades/downgrades
  2. Review changes after template updates
  3. Test thoroughly after version changes
  4. Use version control to track your customizations

Template Source

The project template itself is hosted at:
https://github.com/yoursteacup/skeletone

Contributing

Contributions are welcome! Please see the main repository for guidelines.

Author

Developer: Zhaxybayev Daulet
Repository: https://github.com/yoursteacup/skeletone

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

skeletone-0.1.9.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

skeletone-0.1.9-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file skeletone-0.1.9.tar.gz.

File metadata

  • Download URL: skeletone-0.1.9.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for skeletone-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0c372e50fb3c14f680302b014b87edb125c736223da0869ce7d02d9bf7997162
MD5 de95b5217ea4928f4af6b89fb1128fa3
BLAKE2b-256 14e377a9d59cea1d0bc3d2dd59b4a4221dfd269dadc72bdf50535122dfdce826

See more details on using hashes here.

File details

Details for the file skeletone-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: skeletone-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for skeletone-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a64235ff117cd5d34a38b12f848756c35be38966bb25ac3ba81218d6791aeb28
MD5 09473f23a3205ac5bf757887c84bbe7e
BLAKE2b-256 9475112306d04ad1baa8fcf8eb53e99bb4421a5263f2d0ff22c92c5f63bced94

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