Skip to content

Commit

Permalink
Fix typos in examples (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti authored Feb 16, 2024
1 parent 296d350 commit 717504b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/examples/delete.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/examples/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/examples/list.py
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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]
8 changes: 4 additions & 4 deletions doc/examples/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
8 changes: 4 additions & 4 deletions doc/examples/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 717504b

Please sign in to comment.