Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple command line interface for the XSnippet service.

Project Description

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 | 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 -O
$ unzip && cd xsnippet-cli-master
$ (sudo) python ./ install


Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
xsnippet-cli-0.1.2.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Jan 26, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting