API reference
The 43 names fastatp exports, grouped by the module that
defines them. Import each one from the top: from fastatp import Peer.
fastatp.authz.attestation
Attestation: A signed pointer to a WireGuard-reachable repo, bound to a context.
fastatp.crypto
Signer: Something that signs with a key it may not be able to hand over.SoftwareSigner: A Signer holding a cryptography private key in memory.
fastatp.did.document
DIDDocumentbuild_did_document: Construct a valid atproto-shaped DID document.
fastatp.did.plc
PLCResolver: DIDResolver for did:plc via a PLC directory. Resolve-only.
fastatp.did.resolver
ContinuityResolver: Self-certifying did:web resolution.DIDResolverWebResolver: Default DIDResolver for did:web over HTTPS.chain: Compose resolvers: first non-None document wins.web_resolver: Module-level default resolver instance (shared cache).
fastatp.exceptions
CryptoError: Key parsing, encoding, or signing failure.DIDDocumentInvalid: A document was found but is not a valid (atproto-shaped) DID document.DIDNotFound: No resolver could produce a document for the DID.DIDResolutionTimeout: Resolution did not complete within the configured timeout.FastATPError: Base class for all FastATP errors.HeadMoved: The repo's head in its fastatp.repo.head.HeadStore is no longer the one this commit or import was built on: another process got there first. Nothing became visible. head is the current head, and the repo has already reloaded to it, so the caller re-reads and retries on the same object; Repo.apply_writes retries a few times by itself before letting this out. head is None when the store no longer holds a head for this DID at all (it was deleted): then there is nothing to reload, the repo object is stale, and the caller reopens or recreates the repo instead of retrying.LexiconError: Base class for Lexicon schema errors.LexiconExportError: A Pydantic construct has no Lexicon equivalent and cannot be exported.LexiconValidationError: Record data does not conform to its Lexicon schema.NotAuthorized: The authorize() hook rejected the (issuer, nsid) pair.RepoError: Base class for repository errors.SignatureInvalid: The signature does not verify against the resolved public key.SignerMismatch: The record's issuer does not match expected_signer.UnknownLexicon: The record's $type is not present in the Lexicon registry.VerificationError: Base class for signed-record verification failures.exceptions: FastATP exception hierarchy.
fastatp.identity
Identity: A bootstrapped identity: its DID, signing key, durable repo, and (for a did:web identity) its self-certifying continuity chain.
fastatp.lexicon
Lexicon: Base class for user-defined, atproto-conforming record types.parse_record: Dispatch a $type-carrying dict to its registered Lexicon class.
fastatp.peer
Peer: Symmetric participant: a DID, optionally a signing key, a resolver.
fastatp.peerapp
Envelope: Verified context handed to every handler.PeerApp: One DID's peer + PeerServer + reconciler, wrapped as a dispatch app.PrivateChannel: A live ephemeral private-response repo.
fastatp.repo.repo
fastatp.repo.storage
MemoryStorage: Everything in process memory: ephemeral peers, tests.SqliteStorage: The built-in durable storage: a directory holding blocks.sqlite (blocks and heads, one file, so a consistent copy of it is the whole repo) and blobs.sqlite (created when first used). Several processes may open the same directory; sqlite serializes the writers and the head swap decides who wins.Storage: Everything a peer's repos keep, in one database of the builder's choice.
fastatp.repo.sync
RepoMirror: Verified follower of one producer's repo.
fastatp.server.did_server
DIDServer: Serves /.well-known/did.json (root DID, slug "") and /{slug}/did.json (path-segmented DIDs) from a caller-supplied resolver.
fastatp.server.peer_server
PeerServer: Hosts a peer's repos; exposes the firehose and checkpoint routes.RepoHandle: A write + admin handle to one hosted repo.