Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
577 B
1
Indexable
Never
from azure.storage.blob import BlobClient
blob = BlobClient.from_connection_string(conn_str="BlobEndpoint=https://updowntest.blob.core.windows.net/;QueueEndpoint=https://updowntest.queue.core.windows.net/;FileEndpoint=https://updowntest.file.core.windows.net/;TableEndpoint=https://updowntest.table.core.windows.net/;SharedAccessSignature=sv=2022-11-02&ss=b&srt=sc&sp=rwdlac&se=2023-11-09T02:08:46Z&st=2023-11-04T22:00:00Z&spr=https&sig=WkCcgVPOp7UBhnqcl+i2MsRMv9phRqi6mN3mBeylpls=", container_name="test", blob_name="a")
blob.upload_blob(b'aaa')
blob.download_blob("test.txt")