Home PySnipp

PySnipp

Introduction

PySnipp is a command line application for collecting snippets and notes. For example you could store often used pieces of code there. For adding and editing your snippets the text editor vim is used.

Installation

For storing your snippets PySnipp uses redis. For editing your snippets vim is used. Both needs to be installed on your system: Debian/Ubuntu:

Ubuntu 14.04:

Ubuntu 12.04:

Fedora/Red-Hat/CentOS:

The final installation of pysnipp works with pip3:

After installation a single binary ‘pysnipp’ is callable.

Since version 0.4 you can use a configfile to use custom redis connection or another editor than vim.

You could either use a global config(/etc/pysnipprc) or your personal config(~/.pysnipprc).

Since version 0.5 bash completion is available. To use it you have to download the completion config:

After adding it to your completions configs you need to log in again and you are able to use it.

Usage

If you just type ‘pysnipp’ you get the usage message:

You could use the add command the following way:

After typing this vim will open and you’re able to enter your code/note/whatever. If you are ready, quit vim like you are used to. Now, take a look at your snippet with:

and pysnipp prints out your snippet.

Changes

pysnipp-0.5.1

  • added bash_completion
  • add a rename function for the snippets
  • fixed errors with empty snippets

pysnipp-0.4

  • modified list function
  • added configfile for storage connection and editor settings

Future

  • webinterface planned as seperate package(pysnipp-web) with rest service

Reporting Issues

If you got some issues, feel free to write a mail to pysnipp@hauck.it