Metadata-Version: 2.3
Name: atprotobin
Version: 0.3.0
Summary: ATProto based pastebin
Project-URL: Repository, https://github.com/publicdomainrelay/atprotobin.git
Project-URL: Issues, https://github.com/publicdomainrelay/atprotobin/issues
Author-email: Public Domain <publicdomainrelay@protonmail.com>
License: Unlicense
Requires-Python: >=3.12
Requires-Dist: atproto>=0.0.55
Requires-Dist: fastapi[standard]>=0.115.5
Requires-Dist: markdown2>=2.5.1
Requires-Dist: pillow>=11.0.0
Requires-Dist: pygments>=2.18.0
Requires-Dist: python-magic>=0.4.27
Requires-Dist: python-multipart>=0.0.19
Requires-Dist: uvicorn[standard]>=0.32.1
Description-Content-Type: text/markdown

# ATProto based pastebin

GitHub: https://github.com/publicdomainrelay/atprotobin

Paste

```bash
curl -X POST --data-binary @README.md -H "Content-Type: text/plain" https://paste.chadig.com
```

Retrive using id from paste reponse JSON (`| jq -r .id`)

```bash
curl -sf https://paste.chadig.com/$id
```

Paste and retrive

```bash
curl -sf https://paste.chadig.com/$(curl -X POST --data-binary @README.md -H "Content-Type: text/plain" https://paste.chadig.com | tee /dev/stderr | jq -r .id)
```

Paste and retrive (development)

```bash
curl -sf http://localhost:8000/$(curl -X POST --data-binary @src/atprotobin/cli.py -H "Content-Type: text/plain" http://localhost:8000/ | tee /dev/stderr | jq -r .id)
```

Start server

```bash
python -m pip install -U pip setuptools wheel
python -m pip install -e .
ATPROTO_BASE_URL=https://atproto.chadig.com ATPROTO_HANDLE=publicdomainrelay.atproto.chadig.com ATPROTO_PASSWORD=$(python -m keyring get publicdomainrelay@protonmail.com password.publicdomainrelay.atproto.chadig.com) python -m atprotobin
```

- References
  - https://bsky.app/profile/johnandersen777.bsky.social/post/3lc47yvadu22i

[![asciicast](https://asciinema.org/a/693001.svg)](https://asciinema.org/a/693001)
