Skip to content

Commit 7a8751a

Browse files
committed
update readme
1 parent 5c43f1f commit 7a8751a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ pip install aablobwrapper
1212
## Examples
1313

1414
```python
15-
import aablobwrapper
15+
import csv
16+
from aablobwrapper import SyncBlobAppender
1617

18+
connection_string = "https://<storageaccount>.blob.core.windows.net/<container_name>"
19+
credential = "<key>"
20+
container_name = "<container_name>"
21+
blob_name = "<blobname>"
1722

23+
appender = SyncBlobAppender(connection_string, credential, container_name, blob_name)
24+
csv_writer = csv.writer(appender)
25+
csv_writer.writerow(["write", "some", "data"])
1826
```
19-
for more examples, for example, an async one, see the examples folder.
27+
for more examples, for example, to see how to use context managers or how to use the async version, see the examples folder.
2028

2129

0 commit comments

Comments
 (0)