A lightweight Python client library for uploading files and text to 0x0.st, a simple and free file hosting service. (personal async fork) https://github.com/cvcvka5/pyzxz
Find a file
2025-10-08 03:24:13 -03:00
pyzxz make library instantiated 2025-10-08 03:24:13 -03:00
.gitignore Gitignore 2025-05-22 22:30:49 +03:00
LICENSE pyzxz v1.0 tested, no known issues 2025-05-22 22:22:07 +03:00
pyproject.toml pyzxz v1.0 tested, no known issues 2025-05-22 22:21:30 +03:00
README.md pyzxz v1.0 tested, no known issues 2025-05-22 22:22:07 +03:00

pyzxz

pyzxz is a lightweight Python client library for uploading files and text to 0x0.st, a simple and free file hosting service.

Features

  • Upload files from disk
  • Upload in-memory bytes
  • Upload plain text
  • Check 0x0.st availability

Installation

pip install pyzxz

Usage

from pyzxz import ZeroXZero

# Upload a local file
url = ZeroXZero.upload("path/to/file.txt")
print("Uploaded file URL:", url)

# Upload bytes from memory
url = ZeroXZero.upload_from_bytes(b"hello world", "hello.txt")
print("Uploaded bytes URL:", url)

# Upload a text string as a file
url = ZeroXZero.upload_text("Hello from pyzxz!")
print("Uploaded text URL:", url)

# Check if 0x0.st is online
is_online = ZeroXZero.is_available()
print("0x0.st online?", is_online)

License

MIT License © 2025