fsspec implementation for OpenStack SWIFT
Project description
swiftspec
import fsspec
with fsspec.open("swift://server/account/container/object.txt", "r") as f:
print(f.read())
Authentication
swiftspec
uses the environment variables OS_STORAGE_URL
and OS_AUTH_TOKEN
for authentication if available. To create these variables, you can use the swift auth
command from the python-swiftclient.
Develop
Code Formatting
swiftspec uses Black to ensure
a consistent code format throughout the project.
Run black .
from the root of the swiftspec repository to
auto-format your code. Additionally, many editors have plugins that will apply
black
as you edit files.
Optionally, you may wish to setup pre-commit hooks to
automatically run black
when you make a git commit.
Run pre-commit install --install-hooks
from the root of the
swiftspec repository to setup pre-commit hooks. black
will now be run
before you commit, reformatting any changed files. You can format without
committing via pre-commit run
or skip these checks with git commit --no-verify
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for swiftspec-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aa8f85b1e24b8bfa95b4a2abbd02e3594991df384e1507738b3d2975d59a956 |
|
MD5 | 1db7d1cfc5c30684e34cd9e057de6f9f |
|
BLAKE2b-256 | 95650b05aad9b217d1df6035a3615726a2a5cd8f4fb89c2294bdc099d2dea030 |