Skip to main content

Using Pastebin pastes as if they were files

Project description

Pastebin.com as a python file object

A small python library with little dependencies to use pastebin.com as file like objects Don't take it serious it's just a project to have some fun

TODO

  • Add support for none buffered files
  • Split huge files to multiple pastes
  • Add encoding options
  • Add os function support (move, cpy, list)
  • Add async operations
  • Add missing tests

install

git

pip install .

pypi

pip install pastebinfs

Example

user_key = pastebinfs.sync.pastebin_auth(api_key, username, password)

with pastebinfs.sync.pastebin_open("test.txt", "w", api_key, user_key) as f:
    f.write("hello pastebin this is a test")

with pastebinfs.sync.pastebin_open("test.txt", "r", api_key, user_key) as f:
    print(f.read()) # yields "hello pastebin this is a test"

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

pastebinfs-0.3.tar.gz (8.3 kB view hashes)

Uploaded Source

Supported by

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