From 6c01e81cd58fe23506a6eb26b20de2e70407050d Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Fri, 16 Feb 2024 11:02:33 +0100 Subject: [PATCH] Fix typos in examples --- doc/changes/unreleased.md | 1 + doc/examples/delete.py | 8 ++++---- doc/examples/download.py | 8 ++++---- doc/examples/list.py | 8 ++++---- doc/examples/service.py | 8 ++++---- doc/examples/upload.py | 8 ++++---- 6 files changed, 21 insertions(+), 20 deletions(-) diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index a472952b..ec6f3f29 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -5,6 +5,7 @@ ## Documentation - Added overview of bucketfs system +- Fixed typos in examples ## Dependencies - [#60](https://github.com/exasol/bucketfs-python/issues/60): Updated typeguard to 4.0.0 diff --git a/doc/examples/delete.py b/doc/examples/delete.py index e2e5589a..5135df72 100644 --- a/doc/examples/delete.py +++ b/doc/examples/delete.py @@ -1,9 +1,9 @@ from exasol.bucketfs import Service URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = bucketfs["default"] # Delete file from bucket @@ -16,9 +16,9 @@ ) URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = MappedBucket(bucketfs["default"]) # Delete file from bucket diff --git a/doc/examples/download.py b/doc/examples/download.py index 428dd402..02f5741d 100644 --- a/doc/examples/download.py +++ b/doc/examples/download.py @@ -6,9 +6,9 @@ ) URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = bucketfs["default"] # Download as raw bytes @@ -31,9 +31,9 @@ ) URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = MappedBucket(bucketfs["default"]) # Download as raw bytes diff --git a/doc/examples/list.py b/doc/examples/list.py index 8156b5a9..18bd4a19 100644 --- a/doc/examples/list.py +++ b/doc/examples/list.py @@ -1,8 +1,8 @@ from exasol.bucketfs import Service URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +CREDENTIALS = {"default": {"username": "w", "password": "write"}} +bucketfs = Service(URL, CREDENTIALS) default_bucket = bucketfs["default"] files = [file for file in default_bucket] @@ -14,8 +14,8 @@ ) URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +CREDENTIALS = {"default": {"username": "w", "password": "write"}} +bucketfs = Service(URL, CREDENTIALS) default_bucket = MappedBucket(bucketfs["default"]) files = [file for file in default_bucket] diff --git a/doc/examples/service.py b/doc/examples/service.py index 1110b8ad..38562f10 100644 --- a/doc/examples/service.py +++ b/doc/examples/service.py @@ -2,16 +2,16 @@ from exasol.bucketfs import Service URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) buckets = [bucket for bucket in bucketfs] # Get bucket reference from exasol.bucketfs import Service URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) default_bucket = bucketfs["default"] diff --git a/doc/examples/upload.py b/doc/examples/upload.py index 6ee75cc8..d71c74ae 100644 --- a/doc/examples/upload.py +++ b/doc/examples/upload.py @@ -3,9 +3,9 @@ from exasol.bucketfs import Service URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = bucketfs["default"] # Upload bytes @@ -37,9 +37,9 @@ ) URL = "http://localhost:6666" -CREDENTAILS = {"default": {"username": "w", "password": "write"}} +CREDENTIALS = {"default": {"username": "w", "password": "write"}} -bucketfs = Service(URL, CREDENTAILS) +bucketfs = Service(URL, CREDENTIALS) bucket = MappedBucket(bucketfs["default"]) # Upload bytes