# SnyPy

SnyPy is an open source, self-hosted (on-premises) code snippet manager that lets you and your team create, edit, label and share code snippets with per-item visibility control, using an integrated Monaco editor, all.

Canonical page: https://ourlocalhost.com/app/8771/snypy

## Description

SnyPy is an open source, self-hosted (on-premises) code snippet manager that lets you and your team create, edit, label and share code snippets with per-item visibility control, using an integrated Monaco editor, all under the MIT license.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

44/100 (Fair), based on 3 of 4 factors.
- Maintained: 60 (last commit 125 days ago)
- Popular: 33 (45 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- Official website: https://snypy.com
- GitHub: https://github.com/snypy/snypy-docker

## Common questions

### How do I start SnyPy with Docker Compose?

Create docker-compose.override.yml based on the provided example, then pull the images and start the stack. The commands are docker compose pull and docker compose up.

### How can I export or restore SnyPy data from the Docker setup?

Use the api container to run manage.py dumpdata for the auth, users, shares, snippets, and teams models into a fixture file. A fixture can be mapped into data/fixtures and restored with manage.py loaddata.

### What initial account does the bundled Docker fixture provide?

The current fixture contains dummy data, language configuration, and an admin user. The username is admin and the password is 12345678!.

### How can I expose SnyPy publicly with reverse proxies?

The documented setup uses nginx and Let's Encrypt with separate subdomains for the application UI and REST API. The UI is forwarded to 127.0.0.1:8080, with HTTP redirected to HTTPS.

## Alternatives

- Snippetbox

---
Source: Our Local Host (https://ourlocalhost.com/app/8771/snypy), the self-hosted and open-source app directory.
