Self-Hosted Virtual Stack
SVS is an open-source python library for managing self-hosted services on a linux server.
CI:
Docs
For full docs, visit svs.kristn.co.uk
This readme contains a quick summary and development setup info.
Goals
The goal of this project is to simplify deploying and managing self-hosted applications on a linux server. Inspired by Portainer but aimed at begginer users. Under the hood, all applications are containerized using Docker. For ease of use, the library provides pre-configured service templates for popular self-hosted applications such as:
- MySQL
- PostgreSQL
- Django
- NGINX
- ...
Technology overview
Every service will run a Docker container and all of users' services will be on the same Docker network, allowing them to communicate with each other easily without
- exposing them to other users on the same server
- having to use compose stacks and custom networks to allow cross-service communication.
Features
Currently, the library is in early development and has the following features:
- User management
- Docker network management
- Service management
- Service templates
- CI/CD integration
- DB/System sync issues + recovery
- Remote SSH access
Running locally
Given this repository accesses system files, creates docker containers and manages services and is designed strictly for linux servers, it is recommended to run in a virtual environment.
The easiest way to achieve a reproducible environment is to use the included devcontainer configuration. Devcontainers allow you to run a containerized development environment with all dependencies installed. See the devcontainer documentation.
The local devcontainer config creates the following compose stack:
- A
pythondevcontainer for the development environment. - A
postgresdatabase container for storing service data. - A
caddycontainer to act as a HTTP proxy (needed only if testing domains locally)
This guide assumes you have chosen to use the devcontainer setup.
Starting the devcontainer
To start the devcontainer, open the repository in Visual Studio Code and select "Reopen in Container" from the command palette. This will build the container and start it.
After attaching to the devcontainer, the dependencies will be automatically installed. After that's done, you can launch a new terminal which will have the virtual environment activated automatically.
You also need to run the install-dev.sh script to configure your system for development. This script will create the required directories and configure permissions. It is a subset of the production install script.
After running the install script, switch to the svs-admins group by running
newgrp svs-admins
Linting + Formatting
The devcontainer includes pre-configured linting and formatting tools for Visual Studio Code and all files should be formatted on save. If you use a different editor, you can run the pre-commit hooks manually by running pre-commit run --all-files in the terminal to apply the formatting and linting rules.
Running the tests
To run the tests, you can use the pytest command in the terminal. This will run all tests in the tests directory. You can also run individual test files or functions by specifying their paths.
Tests are split into unit, integration and cli tests. They can be run separately by using the -m flag with pytest:
pytest -m unit
pytest -m integration
pytest -m cli
Running the docs
Python docstrings are used throughout the codebase to generate documentation. To generate the documentation, you can use the zensical command in the terminal. This will build the documentation and serve it locally.
To run the documentation server, you can use the following command:
zensical serve
Metadata
Release files for svs-core 0.15.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 |
|---|---|---|---|---|
| svs_core-0.15.0.tar.gz | 77.6 kB | With provenance | Details for svs_core-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| svs_core-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for svs_core-0.15.0-py3-none-any.whl |
Total release size: 174.0 kB
Release files / svs_core-0.15.0.tar.gz
| Download URL | svs_core-0.15.0.tar.gz |
|---|---|
| Size | 77.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c087e6184e55d3d77d0f07618473c5920fb08c682a2f8af08a1843176dfbd1ef
|
|
BLAKE2b-256 checksum How to use checksums |
fa219406d92ba634e7667c823fdfa8fff1845d81e7ab771801dec222965e6402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logRelease files / svs_core-0.15.0-py3-none-any.whl
| Download URL | svs_core-0.15.0-py3-none-any.whl |
|---|---|
| Size | 96.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8a02a690b057b8fcb75d6a67d4bec980bdf6960e65c2ddf593fd1bef816a04a
|
|
BLAKE2b-256 checksum How to use checksums |
9cfec7eafb6a48edbc5dfc21df6548f431cefa587e30025ea27a195a0ab9e5c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logSecurity for svs-core 0.15.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for svs_core-0.15.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logA 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.