Skip to content
peikawPublic

About

A lightweight CLI utility for uploading text, files, and stdin to paste.c-net.org

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

autopaste

A lightweight command-line utility for instantly uploading text snippets, logs, source code, and file contents to paste.c-net.org directly from your terminal.

autopaste is designed for situations where you need to share something quickly without creating a Git repository, uploading a file manually, or opening a browser.

PyPI version Python Support License: MIT


📦 Installation

Install the latest version from PyPI:

pip install --upgrade autopaste

Verify the installation:

autopaste --version

🚀 Quick Start

Upload a file

autopaste main.py

Upload piped input

echo "Hello from terminal!" | autopaste

cat application.log | autopaste

python script.py 2>&1 | autopaste

Interactive mode

Run without arguments to enter interactive mode:

autopaste

Prompt:

Paste or Write:

After submitting your content, autopaste returns a shareable paste URL.


🎛️ Command Options

usage: autopaste [-h] [-v] [file]

positional arguments:
  file           File to upload

options:
  -h, --help     Show this help message and exit
  -v, --version  Show the program version and exit

📂 Examples

Upload a Python script:

autopaste bot.py

Upload program output:

python main.py | autopaste

Upload logs:

autopaste latest.log

Upload package information:

pip list | autopaste

Upload error output:

journalctl -xe | autopaste

🛡️ Privacy

autopaste sends content directly to paste.c-net.org.

The tool does not store uploads locally or maintain user accounts. Any data retention, logging, moderation, or privacy policies are controlled by the paste service itself.

Warning: Avoid uploading secrets, passwords, API keys, or other sensitive information.


❓ Why autopaste?

Sometimes you just need to quickly share:

  • Error logs
  • Stack traces
  • Configuration files
  • Terminal output
  • Source code snippets
  • Debugging information

Instead of creating a repository, committing files, and pushing changes, simply run:

autopaste your_file.log

and share the generated link.


✨ Features

  • Instant Uploads — Share text, code, logs, and file contents in seconds.
  • File Support — Upload content directly from a file path.
  • Pipe Support — Works seamlessly with Unix pipelines.
  • Interactive Mode — Paste or type content directly into your terminal.
  • Zero Configuration — No setup required after installation.
  • Lightweight — Fast startup and minimal dependencies.
  • Terminal First — Built for developers who live in the command line.

🤝 Contributing

Contributions are welcome.

If you'd like to improve the project, feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

Bug reports, feature requests, and documentation improvements are greatly appreciated.


📄 License

This project is licensed under the MIT License.


⭐ Support

If autopaste saves you time, consider giving the repository a star. It helps others discover the project and supports future development.

About

A lightweight CLI utility for uploading text, files, and stdin to paste.c-net.org

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages