Metadata-Version: 2.4
Name: tp-sdk
Version: 0.1.0
Summary: Python SDK for TeaserPaste API - Simple, Typed, and Fun.
Author-email: TeaserPaste <contact@teaserverse.online>
License: MIT License
        
        Copyright (c) 2025 TeaserPaste
        
        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.
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Description-Content-Type: text/markdown

# TeaserPaste Python SDK

Official Python SDK for TeaserPaste API. Simple, typed, and ready for the Teaserverse.

## Installation

```bash
# Using uv (Recommended)
uv add tp-sdk

# Using pip
pip install tp-sdk
```

## Quick Start

```python
import tp

# Initialize with your API Key
api = tp.TeaserPaste("YOUR_API_KEY")

# Create a new paste
note = api.paste(tp.SnippetInput(
    title="Teaserverse Logs", 
    content="System status: All green."
))
print(f"Created: {note.id}")

# Get a paste
data = api.get(note.id)
print(data.content)
```

## API Reference

"One-word" API's.

* `api.paste(input)` — Create a new snippet.
* `api.get(id, pwd=None)` — Get a snippet.
* `api.edit(id, **kwargs)` — Update a snippet.
* `api.kill(id)` — Soft delete a snippet.
* `api.live(id)` — Restore a deleted snippet.
* `api.fork(id)` — Copy a snippet to your account.
* `api.star(id, on=True)` — Star (or unstar) a snippet.
* `api.ls(limit=20)` — List your snippets.
* `api.user(uid)` — List another user's public snippets.
* `api.find(q)` — Search snippets.
* `api.me()` — Get your account info.

## Development
```bash
# Install dependencies
uv sync

# Build
uv build
```

## License

[MIT](LICENSE)
