# Python Guides

The `mstransfer.client` package exposes the same transfers the CLI uses. Every function has a synchronous form and an `async_` form:

| Sync | Async | Purpose |
| --- | --- | --- |
| `send_file` | `async_send_file` | Upload one file |
| `send_batch` | `async_send_batch` | Upload many files in parallel |
| `download_file` | `async_download_file` | Download one file |
| `download_batch` | `async_download_batch` | Download many files in parallel |

The sync functions call `asyncio.run()`, so they cannot be used from inside a running event loop. Use the `async_` variants there instead.

- [Uploading files](<https://chrisagrams.github.io/mstransfer/guides/uploading/index.md>)
- [Downloading files](<https://chrisagrams.github.io/mstransfer/guides/downloading/index.md>)
- [Progress reporting](<https://chrisagrams.github.io/mstransfer/guides/progress/index.md>)

Full signatures are in the [API Reference](<https://chrisagrams.github.io/mstransfer/reference/client/index.md>).
