Metadata-Version: 2.5
Name: grantstamp-server
Version: 0.6.0
Summary: The Grantstamp registry server: stores owners' stamps and answers AI agents' ownership checks.
Project-URL: Homepage, https://grantstamp.io
Project-URL: Documentation, https://grantstamp.io/docs/latest/run-a-registry.html
Project-URL: Source, https://github.com/grantstamp/grantstamp/tree/main/server
Project-URL: Issues, https://github.com/grantstamp/grantstamp/issues
Author: Grantstamp contributors
License-Expression: AGPL-3.0-only
License-File: LICENSE
Keywords: ai-agents,fastapi,ownership,provenance,registry
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Security
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110
Requires-Dist: grantstamp==0.6.0
Requires-Dist: segno>=1.5
Requires-Dist: tldextract>=5
Requires-Dist: uvicorn[standard]>=0.29
Provides-Extra: images
Requires-Dist: pillow>=10; extra == 'images'
Provides-Extra: postgres
Requires-Dist: psycopg[binary]>=3.1; extra == 'postgres'
Description-Content-Type: text/markdown

# grantstamp-server

The Grantstamp registry server. It stores owners' stamps (fingerprints, policy and contact), answers AI agents' ownership checks, signs receipts, and keeps the transparency log.

```bash
pip install grantstamp-server              # SQLite by default
pip install "grantstamp-server[postgres]"  # Postgres support
grantstamp serve --host 0.0.0.0 --port 8000 --db sqlite:///grantstamp.db
```

Or run the Docker image from the repository root, or `uvicorn --factory grantstamp_server.app:app_factory`. Configuration is read from `GRANTSTAMP_*` environment variables (see `config.py`).

## Owners must be on record (from 0.3)

By default nobody can register a stamp without an identity on record, a public contact, and accepting the registry's Terms. The Terms and privacy notice that ship with the package are those of the hosted registry at registry.grantstamp.io: point `GRANTSTAMP_TERMS_URL` and `GRANTSTAMP_PRIVACY_URL` at your own, and change `GRANTSTAMP_TERMS_VERSION` whenever you change them (`none` turns acceptance off). For identities, choose one:

- set `GRANTSTAMP_LINKEDIN_CLIENT_ID` and `GRANTSTAMP_LINKEDIN_CLIENT_SECRET` for the one-time LinkedIn sign-in;
- record identities yourself with `grantstamp admin verify-identity <owner> --name "…"` (the name is published on the owner's stamps);
- set `GRANTSTAMP_REQUIRE_IDENTITY=0` for a private registry where you already know every owner.

All settings are in [Run a registry](https://grantstamp.io/docs/latest/run-a-registry.html).

## Licence

This package is licensed under the **GNU Affero General Public License, version 3 only** (AGPL-3.0-only); see [LICENSE](LICENSE). If you run a modified version of this server for other people over a network, you must offer them the source of your modified version.

The client library, CLI, MCP server, agent hook and browser checker are a separate package, [`grantstamp`](https://pypi.org/project/grantstamp/), under Apache-2.0. Agents and tools that only check the registry need only that package, and the AGPL does not apply to them.

"Grantstamp" is a trademark of the project owner. Neither licence grants trademark rights; see [TRADEMARK.md](../TRADEMARK.md). Run modified forks under a different name.
