Metadata-Version: 2.4
Name: pyzxz
Version: 0.1.0
Summary: A Python client for 0x0.st file hosting service.
Author-email: cvcvka5 <cvcvka5@gmail.com>
License: MIT License
        
        Copyright (c) 2025
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Dynamic: license-file

# pyzxz

`pyzxz` is a lightweight Python client library for uploading files and text to [0x0.st](https://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

```bash
pip install pyzxz
```

## Usage

```python
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
