Skip to main content

Minimalism snippet manager

Project description

# Snape

Snape is a minimalism snippets manager written in Python. You may add/search a snippet, all data is saved into a local json file, you can modify the json file at will and put that file with other dot files under version control.

Of course the name comes from Harry Potter, as mentioned by Harry potter:

> He was probably the bravest man I ever knew.

I think we all need a little bravery from time to time.

# Installation and usage

The installation is plain and simple, just use pip to install it.

` pip install Snape `

To add a snippet, run Snape add [name of snippeet], for example:

` {~}Snape add python post json Enter/Paste your content. Ctrl-D to save it. import requests, json url = '' headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} data = {'name': 1, 'param': 2} response =, data=json.dumps(data), headers=headers} `

Please note that after you have added all the data there, you need to add an Enter and a Ctrl-D to send an EOL to mark the end of the stream.

After that, the snippet would be saved to ~/.snape.json.

You can list all the snippets by running Snape. You can also search the snippets with Snape search [query] to look for the snippet you need.

There’s no intention to add the ability to modify or remove a snippet, since you can easily do that with any editor you like.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Snape, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size Snape-1.0-py2-none-any.whl (3.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size Snape-1.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page