Skip to main content

A python3 CLI utility to interface with cpy.pt

Project description

A python3 CLI utility to interface with pastething

Example: https://cpy.pt

Dependencies

  • python3
  • requests

Installation

Using pip is the easiest way to install this Install from pypi: pip install capyt

You can also manually install this from source:

  • install dependencies - pip install -r requirements.txt
  • symlink capyt/capyt.py to a location of your choice
  • adjust defaults and options if required

Usage

capyt -h to see all available options

Pasting

  • paste a single file capyt somefile
  • create a single paste with many files concatenated capyt file1 file2 file3
  • paste from stdin somestdout | capyt -

Deleting a paste

  • capyt -d DELETE_TOKEN PASTE_ID
  • capyt -d DELETE_TOKEN https://cpy.pt/PASTE_ID

Extra Features

  • Transparently open gzip and bzip compressed files

Warning

The optional encoding flag only serves to open the file, internally everything is handled and converted to utf-8. Retrieved pastes are utf-8 encoded.

Project details


Download files

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

Files for capyt, version 1.1.post1
Filename, size File type Python version Upload date Hashes
Filename, size capyt-1.1.post1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size capyt-1.1.post1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page