Skip to main content

A command-line tool for quickly sharing files and text snippets using a Zipline server

Project description

pastit-cli

A command-line tool for quickly sharing files and text snippets using a Zipline server.

Features

  • Upload files directly from command line
  • Upload text from stdin
  • Progress bar with upload status
  • Configurable file extensions
  • Supports custom Zipline servers
  • Automatic first-time setup

Installation

pip install pastit-cli

Usage

Upload a file:

pasta filename.txt

Upload from stdin:

echo "Hello World" | pastit

Or pipe any command output:

ls -la | pastit

On first run, you'll be prompted to enter your:

  • Zipline server URL
  • Authorization token

Your configuration will be saved in ~/.config/pastit/.env and will be used for future uploads.

Manual Configuration

If you need to change your configuration, you can either:

  1. Edit ~/.config/pastit/.env directly:
URL=https://your.server/api/upload
AUTHORIZATION_TOKEN=your_token
DEFAULT_EXTENSION=sh
CONSIDER_FILES_STARTING_WITH_DOT_EXTENSIONLESS=true
  1. Or run the setup command:
pastit-setup

Project details


Download files

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

Source Distribution

pastit_cli-1.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pastit_cli-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pastit_cli-1.0.1.tar.gz.

File metadata

  • Download URL: pastit_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pastit_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ec0fd3d753ff62f8fd4d93f5772fa7af87bfba1daeddfad3f6e36144cd889ac9
MD5 ce0739ff87e23629cb26b1a7f91d1b25
BLAKE2b-256 71efd77c241851eb9dfe578070aaaa2e6568ab37b831d42c594208e24c4457bc

See more details on using hashes here.

File details

Details for the file pastit_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pastit_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pastit_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42cbc91368baaef3f3b7f47146db9a430e5be0d735e9a455f147c407c6f0e5c4
MD5 17144b9ad0e6f2ec7e2f75a2830cde62
BLAKE2b-256 076536134821d18fc6d2c19ffbab29e8d0c3a548471e7e9cfb8e56c4b9db1033

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page