This project has been archived by its maintainers, and is no longer receiving any updates.
xsnippet-cli
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.
Usage
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
Installation
$ (sudo) pip install xsnippet-cli
or
$ (sudo) easy_install xsnippet-cli
or
$ wget http://git.io/xsnippet-cli.zip -O xsnippet-cli.zip $ unzip xsnippet-cli.zip && cd xsnippet-cli-master $ (sudo) python ./setup.py install
Meta
Author: Igor Kalnitsky <igor@kalnitsky.org>
License: BSD License
Metadata
Release files for xsnippet-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xsnippet-cli-0.1.2.tar.gz | 4.7 kB | Without provenance | Details for xsnippet-cli-0.1.2.tar.gz |
Release files / xsnippet-cli-0.1.2.tar.gz
| Download URL | xsnippet-cli-0.1.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e6093803dfc9b4b2c1cece982d900effd30f75fa98b59d48ff3727a1a0e890a
|
|
BLAKE2b-256 checksum How to use checksums |
c258637cf952ba5134937b08966b5e761f1ddf2ba6dcbdfb44ab57f4232e774d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for xsnippet-cli 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.