Azure Blob Storage StacIO
An implementation of pystac's StacIO for reading static STACs stored in Azure Blob Storage. See the pystac docs for more info.
Installation
Either:
pip install az-blob-staciouv add az-blob-stacio
Usage
Set the global default StacIO to BlobStacIO:
import os
from az_blob_stacio import BlobStacIO
BlobStacIO.conn_str = os.environ["AZURE_STORAGE_CONNECTION_STRING"]
pystac.StacIO.set_default(BlobStacIO)
catalog = pystac.Catalog.from_file("https://myaccount.blob.core.windows.net/mycontainer/catalog.json")
Or use a context manager to temporarily set BlobStacIO as the default StacIO and reset to DefaultStacIO upon exiting the context:
import os
from az_blob_stacio import BlobStacIO, custom_stacio
BlobStacIO.conn_str = os.environ["AZURE_STORAGE_CONNECTION_STRING"]
with custom_stacio(BlobStacIO):
catalog = pystac.Catalog.from_file("https://myaccount.blob.core.windows.net/mycontainer/catalog.json")
Overwrite behavior is configurable by setting BlobStacIO.overwrite (defaults to True).
Credentials
Azure Blob Storage credentials can be provided by setting either of the following class variables:
-
BlobStacIO.conn_str: a connection string for the Azure storage account. Checks forAZURE_STORAGE_CONNECTION_STRINGin your environment by default. -
BlobStacIO.credential: a credential that provides access to the storage account hosting the static STAC.from azure.core.credentials import AzureSasCredential BlobStacIO.credential = AzureSasCredential("my-sas-token")
Metadata
Release files for az-blob-stacio 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| az_blob_stacio-0.1.2.tar.gz | 8.9 kB | Without provenance | Details for az_blob_stacio-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| az_blob_stacio-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for az_blob_stacio-0.1.2-py3-none-any.whl |
Total release size: 17.0 kB
Release files / az_blob_stacio-0.1.2.tar.gz
| Download URL | az_blob_stacio-0.1.2.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddbbf8f909551034960ee8aa7fa47abd91785bb3d67fb8fa29172c41191a36d2
|
|
BLAKE2b-256 checksum How to use checksums |
fb3b5fcdcc517e0b6c3a9a370dc0c0722743f865ccc313c6f5d03e8561cfaf08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Release files / az_blob_stacio-0.1.2-py3-none-any.whl
| Download URL | az_blob_stacio-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93e09c2a6cd3c622d9c825e5cc1a818eb4c4bae8a9185dfa2e710658e12614f3
|
|
BLAKE2b-256 checksum How to use checksums |
c80220d5a139eb155f1e4b17c3fff975f348327685ed1775bdef34c2b56a9090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Security for az-blob-stacio 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.