Skip to main content

a lightweight foundation for building Python web tools.

Project description

Soseki

A lightweight, batteries-included Flask framework designed for rapidly building internal tools, admin panels, and data-driven web applications.

Soseki takes care of the repetitive infrastructure—authentication, database management, background jobs, API controls, and logging—so you can focus on building the features that matter. Perfect for prototypes, internal dashboards, and production-ready utilities that need to ship fast without sacrificing structure.

Features

  • 🔐 User Management - Complete authentication system with Flask-User
  • 📊 Database Management - SQLAlchemy integration with dual database support (app + logs)
  • Job Scheduling - Background job execution with APScheduler
  • 📧 Email Support - Built-in email functionality with Flask-Mail
  • 🔌 API Gateway - API key management and rate limiting
  • 📝 Request Logging - Comprehensive request/response logging
  • 🛠️ Database Versioning - Built-in database migration support
  • 🛠️ CLI - interactive command line for quick feature development and testing
  • 🎨 Customizable - YAML-based configuration system

Requirements

  • Python 3.10 or higher
  • Flask 3.0+
  • SQLAlchemy 2.0+

Installation

From PyPI (coming soon)

pip install soseki

From source

git clone https://github.com/acodingmind/soseki
cd soseki
pip install -e .

Development Installation

pip install -r requirements.txt
pip install -r requirements-dev.txt

Quick Start

  1. Initialize a new soseki like application:
# Create a project folder 
mkdir soseki_app
cd soseki_app

# Install soseki
python3 -m venv venv
source venv/bin/activate
pip install soseki

# Initialize basic soseki app
python3 -m ssk.cli init
  1. Update configuration file (cfg/lite.yaml):
ssk:
  USER_APP_NAME:
    string: 'MyApp'
  SECRET_KEY:
    string: 'your-secret-key-here'
  SQLALCHEMY_DATABASE_URI:
    string: 'sqlite:///myapp.sqlite'
  LOG_DB_CONNSTR:
    string: 'sqlite:///myapp_log.sqlite'
  1. Run your application:
# run the app
./bin/run_app.sh

Documentation

How To

Blanco App

Check the app/ directory for a complete working example application.

The standard folder structure (created by init command):

  • assets/local - Static files (CSS, JS)
  • blueprints/ - Flask blueprints
  • cfg/ - Configuration files
  • html/local - Templates
  • logic/cmd - Custom commands
  • logic/jobs - Background jobs
  • models/ - Database models

Project Structure

soseki/
├── ssk/              # Core framework package
├── app/              # Blanco application
├── bin/              # Utility scripts
├── tests/            # Test suite
├── docs/             # Documentation
└── requirements.txt  # Core dependencies

Running Tests

pytest

With coverage:

pytest --cov=ssk

License

MIT License - see LICENCE file for details.

Author

Michał Świtała - CodingMinds.io

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please use the GitHub issue tracker.

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

soseki-0.9.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

soseki-0.9.2-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file soseki-0.9.2.tar.gz.

File metadata

  • Download URL: soseki-0.9.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for soseki-0.9.2.tar.gz
Algorithm Hash digest
SHA256 1b836c07704f258d73db6e25281be82283c6e89d2a2c8d5cb880c8853719bbc7
MD5 31a332237418f035d0518a00e021b2bf
BLAKE2b-256 9b127163a33a8fc888b047e67aa7a9394bc53174230cc1dee392fd5e51fd3b94

See more details on using hashes here.

File details

Details for the file soseki-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: soseki-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for soseki-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc4c51a21d6eb0452be12230f9dba3d20c7605da4d3bfc0059093121e27f1f8
MD5 f6ca4faf8f718ce279c55e65b5dbff9d
BLAKE2b-256 f67efac58ac54c10a005d58f82f8dc50376d0991bcb456bbb98f1289acf1ebf0

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