Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install xsnippet-cli

How to install xsnippet-cli

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install xsnippet-cli
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1.2 Available View build log
0.1.2 Available View build log
BSD License
Lastest release
version 0.1.2 on Sep 20th, 2013

xsnippet-cli is a simple command line interface for interacting with xsnippet service. By means this script, you can easily post and receive snippets directly from your terminal.


It's very easy to use. You can paste the snippet this way

$ xsnippet /path/to/file

or this way

$ cat /path/to/file | xsnippet

As you can see the last method posts a some command output. It's very usefull to post the last few lines from logfile this way

$ tail -n 5 nginx.log | xsnippet

It's important to note that you can specify a snippet language or tags. Thats can be done by the following command

$ cat setup.py | xsnippet -l python -t setuptools test

If you want to receive snippet just do the following command

$ xsnippet -r snippet_id


$ (sudo) pip install xsnippet-cli


$ (sudo) easy_install xsnippet-cli


$ wget http://git.io/xsnippet-cli.zip -O xsnippet-cli.zip
$ unzip xsnippet-cli.zip && cd xsnippet-cli-master
$ (sudo) python ./setup.py install


Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.