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.8.tar.gz (9.2 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.8-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skeletone-0.1.8.tar.gz
  • Upload date:
  • Size: 9.2 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.8.tar.gz
Algorithm Hash digest
SHA256 ea55c115e8703b80f49fd6555b92d2c2683c88e8a0b203cdcefdcf65d4878d6f
MD5 6f24e5a6a046b09064f0986a1b73ff2a
BLAKE2b-256 0e87ff7ffce35c58a2d575b30711cd3330cb7fd3668342c8f201383ac99cc995

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skeletone-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0a43bbccb86f5e38543d5f3ff34d0f6bf4e97f5c1398e387c62083b63d2710
MD5 760ef52f73d29da1be736a645e384102
BLAKE2b-256 ca43db2d55b1cf3594fd77e9d8bfff65a1b79a3f9ac1dc75efbf04f39be4f644

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