Skip to main content

pdsx.cli

general-purpose cli for atproto record operations.

Functions

cmd_list

cmd_list(client: AsyncClient, collection: str, limit: int, repo: str | None = None, cursor: str | None = None, output_format: OutputFormat | None = None) -> None
list records in a collection.

cmd_get

cmd_get(client: AsyncClient, uri: str, output_format: OutputFormat | None = None, repo: str | None = None) -> None
get a specific record.

cmd_create

cmd_create(client: AsyncClient, collection: str, records: list[dict[str, RecordValue]]) -> None
create one or more records.

cmd_update

cmd_update(client: AsyncClient, updates_list: list[tuple[str, dict[str, RecordValue]]]) -> None
update one or more records.

cmd_delete

cmd_delete(client: AsyncClient, uris: list[str]) -> None
delete one or more records.

cmd_upload_blob

cmd_upload_blob(client: AsyncClient, file_path: str) -> None
upload a blob (image, video, etc.).

async_main

async_main() -> int
main entry point.

main

main() -> NoReturn
synchronous entry point.