References¶
mountainash-transport sits on a small set of third-party libraries, Python standard library modules and storage provider APIs, and it shares configuration and credentials with sibling Mountainash packages. Each entry below links to the project's own documentation, states what transport uses it for, and points to the section of this book where it matters.
Mountainash packages¶
The Mountainash packages section describes how these packages depend on each other.
- mountainash-transport: source repository for this package, including the tests and protocol classes that the support matrix is drawn from.
- mountainash-settings: supplies the settings classes, the
Profilebase class and profile registries behind storage profiles andresolve_storage. See Configuration comes from settings. mountainash-auth-client(repository not public): supplies auth profiles, credential rendering and OAuth token lifecycles that transport pairs with storage profiles. See mountainash-auth-client.mountainash-files(repository not public): reads and writes file formats through transport's public API. See mountainash-files.- mountainash: data frame expressions and relations; its readers reach storage through transport. See mountainash relations readers.
Libraries transport builds on¶
HTTPX¶
- Clients:
httpx.Clientis the client thatHTTPConnectionbuilds and thatHttpRequestEnginesends every request through. See Making requests and HTTPConnection. - Exceptions: the httpx exception hierarchy (timeouts, network and protocol errors) that the engine and the HTTP backend translate into transport's typed errors. See Responses and errors.
fsspec¶
- API reference: its read-buffering classes in
fsspec.cachingback thereadahead,blockcacheandbytesrange policies ofRangedReader. See RangedReader and Range tuning.
universal_pathlib¶
- universal_pathlib repository: the fsspec-based
UPathtype thatStoragePath.normalizereturns for the schemes it supports. See StoragePath.
Pydantic¶
- Validation errors: storage profiles validate their fields at construction and raise pydantic's
ValidationErroron bad values. See What a storage profile is.
boto3¶
- S3 client reference: the S3 client that
S3Connectioncreates for every S3 flavour, including the managedcopyforcopy()andupload_fileobjfor streamed writes. See S3Connection and S3 family. - Error handling: botocore's
ClientErrorand its error codes, which the S3 backend maps to transport errors. See Backend error mapping.
paramiko¶
- SSHClient: the SSH session that
SSHConnectionopens for SFTP and for bastion hosts. See SSHConnection. - SFTPClient: the client the SFTP backend uses for every remote file operation. See SFTPConnection and SFTP.
- Transport:
open_channelwith adirect-tcpipchannel carries each forwarded socket of a bastion tunnel. See Bastion tunnels.
python-gnupg¶
- python-gnupg documentation: the wrapper around the
gpgbinary that theGPGtransform calls to encrypt and decrypt, including therecipients,armorandalways_trustoptions. See GPG.
Authlib¶
- OAuth 1.0 for HTTPX: Authlib's OAuth 1.0 clients for httpx; the
[oauth1]extra installs Authlib for OAuth 1.0a request signing. See Optional extras.
Python standard library and specifications¶
- PEP 562: module-level
__getattr__, which lets the package root resolve its public names on first use. See The lazy package root. - gzip module:
GzipFiledecodes gzip data when theGziptransform unwraps a stream. See Gzip. - zlib module: a raw deflate
compressobjandcrc32produce the body and trailer of the streaming gzip encoder. See Internals: the streaming gzip encoder. - RFC 1952, GZIP file format: defines the header (including
MTIME) and the CRC32 and size trailer that the streaming encoder writes. See Internals: the streaming gzip encoder.
Storage provider documentation¶
- Amazon S3 CopyObject: documents the 5 GB limit for a single-request copy, above which the S3 backend's
copy()uses multipartUploadPartCopy. See Copying and S3 family. Provider limits for R2, B2 and MinIO are linked from Where backends differ. - AWS STS AssumeRole: the temporary credentials behind a
ROLE_ARNon an IAM auth profile. See S3Connection and How profiles become SDK arguments. - Amazon S3 Express One Zone: directory buckets and Zonal endpoints, served by the
expressflavour. See S3 flavours. - Cloudflare R2 S3 API compatibility: the
https://<ACCOUNT_ID>.r2.cloudflarestorage.comendpoint and theautoregion used by ther2flavour. See S3 flavours. - Backblaze B2 S3-compatible API endpoints: the
https://s3.<region>.backblazeb2.comendpoint format used by theb2flavour. See S3 flavours.
Packages installed by each extra¶
Every third-party package that pyproject.toml declares, with its PyPI page. Base install and extras describes what each extra enables.
| Extra | Package | Version constraint |
|---|---|---|
| base | typing-extensions | >=4.0 |
[http] |
mountainash-settings (not on PyPI) |
>=0.1.0,<0.2 |
[http] |
mountainash-auth-client (not on PyPI) |
>=0.1.0,<0.2 |
[http] |
pydantic | >=2.10,<3 |
[http] |
universal-pathlib | ==0.2.2 |
[http] |
httpx | >=0.27 |
[http] |
fsspec | >=2026.6.0,<2027 |
[s3] |
boto3 | >=1.29.4 |
[s3] |
s3fs | >=2023.1.0 |
[s3] |
aiobotocore | >=2.19.0 |
[s3] |
minio | >=7.2.7 |
[gcs] |
google-cloud-storage | >=2.9.0 |
[gcs] |
gcsfs | >=2023.1.0 |
[azure] |
azure-storage-blob | >=12.13.0 |
[azure] |
adlfs | >=2023.1.0 |
[sftp] |
paramiko | >=5.0.0 |
[sftp] |
smart-open | >=7.0.4 |
[encryption] |
python-gnupg | >=0.5.2 |
[oauth1] |
Authlib | >=1.9.1 |
The [gcs] and [azure] extras install SDKs only; transport has no GCS or Azure backend yet. See Settings-only providers.