pdsx._internal.batch
batch operations for concurrent CRUD operations.
Functions
batch_delete
client: authenticated atproto clienturis: list of record URIs to deleteconcurrency: maximum concurrent operations (default: 10)fail_fast: stop on first error (default: False)show_progress: show progress bar (default: True)
- batch result with successful and failed operations
batch_create
client: authenticated atproto clientcollection: collection namerecords: list of record data dictionariesconcurrency: maximum concurrent operations (default: 10)fail_fast: stop on first error (default: False)show_progress: show progress bar (default: True)
- batch result with successful URIs and failed operations
batch_update
client: authenticated atproto clientupdates: list of (uri, updates_dict) tuplesconcurrency: maximum concurrent operations (default: 10)fail_fast: stop on first error (default: False)show_progress: show progress bar (default: True)
- batch result with successful URIs and failed operations
read_uris_from_stdin
- list of URIs read from stdin
read_records_from_stdin
- list of record dictionaries parsed from JSONL
ValueError: if JSON parsing fails
read_updates_from_stdin
- list of (uri, updates_dict) tuples
ValueError: if JSON parsing fails or uri field is missing
display_batch_result
result: batch operation resultoperation: operation name for display (e.g., “deleted”, “updated”)