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 - Sign-in, registration (optionally invite-only), email confirmation, password reset and roles
- 📊 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 with a cap on concurrently active keys
- 📝 Request Logging - Logs slow and failed requests to a separate log database
- 🛠️ Database Versioning - Built-in database migration support
- 💻 Admin Terminal - in-browser command line for managing users, jobs, settings and API keys
- 🎨 Customizable - YAML-based configuration system
Requirements
- Python 3.10 or higher
- Flask 3.0+
- SQLAlchemy 2.0+
Installation
From PyPI
pip install soseki
From source
git clone https://github.com/acodingmind/soseki
cd soseki
pip install -e .
Development Installation
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
pip install -e .
Quick Start
- Create a project and initialize a Soseki app in it:
# 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 (creates app/, bin/ and jup/)
soseki init
- Edit the configuration file
app/cfg/lite.yaml. Do this before the first start: the first start creates the database and theadmin, free and pro users from these values, and changing the passwords in the file later has no effect.
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'
ADMIN_PASS:
string: 'a-strong-admin-password'
Also replace the USER_FREE_PASS and USER_PRO_PASS placeholders. See Configuration for every setting.
- Run your application:
./bin/run_app.sh
It serves on port 5000. Sign in at /user/sign-in as admin; the admin terminal is at /cmd/terminal.
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 blueprintscfg/- Configuration fileshtml/local- Templateslogic/cmd- Custom commandslogic/jobs- Background jobsmodels/- 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
Run from the repository root (the tests load app/cfg/tst.yaml by relative path):
pytest
pytest --cov=ssk --cov-report=term-missing
pytest tests/unittests/test_home_blueprint.py
Security Notes
- Set a random
SECRET_KEYand replace everychangemevalue in the config before the first start. - Serve over HTTPS in production and enable
SESSION_COOKIE_SECURE. - Accounts are handled by
ssk.auth(Flask-Login, bcrypt, itsdangerous). Changing a password signs out the user's other sessions, password-reset links work once, and post-login redirects (next=) stay on the site.
License
MIT License - see the LICENSE 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.
Metadata
Release files for soseki 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soseki-0.10.0.tar.gz | 1.1 MB | Without provenance | Details for soseki-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| soseki-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for soseki-0.10.0-py3-none-any.whl |
Total release size: 2.2 MB
Release files / soseki-0.10.0.tar.gz
| Download URL | soseki-0.10.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6084d4feb0e4d3159001e2d9381fd7d1626c13868568f5407f9ce040ec1a2905
|
|
BLAKE2b-256 checksum How to use checksums |
a11ae3e08bfe958c51fb1988ad12b92ae741c9fd1c5ff87f9d91df966358c165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Release files / soseki-0.10.0-py3-none-any.whl
| Download URL | soseki-0.10.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5602602eedfb4d1ed3b2d54bff5e80ad8f4127705d4f6bcbdaf6543943f16d9
|
|
BLAKE2b-256 checksum How to use checksums |
d45faafc3b91f34dffbdb8c08882cbe529401b3d714e0eb7b3443b4f6b6b4a6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Security for soseki 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.