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 = 'http://127.0.0.1:27182/api/account' headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} data = {'name': 1, 'param': 2} response = requests.post(url, 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

1.0

Download files

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

Source Distribution

Snape-1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

Snape-1.0-py2-none-any.whl (3.5 kB view details)

Uploaded Python 2

File details

Details for the file Snape-1.0.tar.gz.

File metadata

  • Download URL: Snape-1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Snape-1.0.tar.gz
Algorithm Hash digest
SHA256 9a9acc45f0cc670b6024bfb48a44c6feca46837b02c6297db97c30272f5c6cf0
MD5 5eeacfea0acb9ef30a58ef9c30e438d3
BLAKE2b-256 6b1dd5b58ee16cc0b1b016f5fe7ad498b8e1f2adcc115b709eeadc2b1fce8172

See more details on using hashes here.

File details

Details for the file Snape-1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for Snape-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 76c24332c46e6b9a594e7887b8309b82577785614fc167edca80e3a16ce0dc6f
MD5 9a6003d1ad5a10e962560ab212d06994
BLAKE2b-256 51d436f1ee13a4f8b83d77b32a6ade239470592de3fd7ed887e57cb6ca53e5c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page