Metadata-Version: 2.4
Name: formseal-fetch
Version: 2.3.0
Summary: CLI tool for fetching encrypted form submissions
Author: grayguava
License: MIT License
        
        Copyright (c) 2026 grayguava
        
        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.
        
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: keyring>=25.0
Dynamic: license-file

<p align="center">
  <img src="fsf.png" alt="formseal-fetch">
</p>

<p align="center">
  <img src="https://img.shields.io/pypi/v/formseal-fetch?style=flat&label=pypi&labelColor=1e293b&color=3776ab">
  <img src="https://img.shields.io/badge/license-MIT-fc8181?style=flat&labelColor=1e293b">
  <img src="https://img.shields.io/github/actions/workflow/status/grayguava/formseal-fetch/publish.yml">
  <img src="https://img.shields.io/badge/formseal-ecosystem-10b981?style=flat&labelColor=1e293b">
</p>

<p align="center">
  Download encrypted form submissions from your storage backend.
</p>

---

formseal-fetch pulls ciphertexts stored by your backend down to your machine. Nothing is decrypted in transit or on the server — only the holder of the private key can read submissions.

formseal-fetch is not a hosted service or dashboard. It is a CLI fetch utility.

---

## Installation

**Via pipx (recommended)**

```bash
pipx install formseal-fetch
```

**Via pip**

```bash
pip install formseal-fetch
```

---

## Quick start

```bash
fsf connect provider:<name>
fsf fetch
fsf status
```

---

## How it works

```
Browser (formseal-embed)
       │
       ▼ (encrypted submissions)
 Cloudflare KV / Supabase / any other server
       │
       ▼ (fsf fetch)
  ciphertexts.jsonl ──► Your PC
```

Your backend stores opaque ciphertext only. `fsf fetch` downloads it. Decryption happens separately, offline, with your private key.

---

## Commands

| Command | Description |
|---------|-------------|
| `fsf` | Show about / info |
| `fsf connect` | Connect to a storage provider |
| `fsf fetch` | Download ciphertexts |
| `fsf status` | Show connection info |
| `fsf disconnect` | Clear credentials |
| `fsf disconnect --wipe` | Clear everything including ciphertexts |
| `fsf providers` | List available backends |

Run `fsf --help` for all options.

---

## Security

Your API tokens never leave your machine. formseal-fetch:

- Stores credentials in your OS keychain (Windows Credential Manager / macOS Keychain / Linux Secret Service)
- Makes direct API calls to your storage backend only
- Sends no telemetry, has no analytics
- Skips already-downloaded ciphertexts automatically

---

## Documentation

- [Getting Started](./docs/getting-started.md)
- [Security](./docs/security.md)
- [Commands Reference](./docs/reference/commands.md)
- [Troubleshooting](./docs/troubleshooting.md)

---

## Contributing

Contributions welcome! See [contributing.md](./contributing.md) for how to add providers and contribute code.

Please star the repo if you find formseal-fetch useful.

---

## License

MIT
