This release is a pre-release and may not be stable for production use.
SwiftPath: A pathlib-derived interface to Openstack Swift
🐉 Installation
Install from PyPI:
$ pip install swiftpath
🐉 About
Swift Connection
swiftpath will automatically read environment variables to determine how to connect to a swift instance.
Currently, swiftpath looks for the following environment variables when connecting to swift:
OS_USER_ID or OS_USERNAME
OS_PASSWORD
OS_PROJECT_NAME or OS_TENANT_NAME
OS_AUTH_URL or OS_AUTHENTICATION_URL
OS_STORAGE_URL
OS_REGION_NAME
OS_PROJECT_ID
Caveats
Note that the following methods are not provided as they are not available on swift:
SwiftPath.cwd()
SwiftPath.home()
SwiftPath.chmod()
SwiftPath.expanduser()
SwiftPath.lchmod()
SwiftPath.group()
SwiftPath.is_block_device()
SwiftPath.is_char_device()
SwiftPath.lstat()
SwiftPath.resolve()
🐉 Usage
To construct a path to a swift instance, simply use the syntax /containername/path/to/key when referencing the object. All pathlib.Path methods that are not explicitly excluded are available on the subsequently created object.
>>> from swiftpath import SwiftPath
>>> path = SwiftPath("/mycontainer/my-file.txt")
>>> path.write_text("hello\n")
>>> path.read_text()
hello
Metadata
Release files for swiftpath 0.0.1.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swiftpath-0.0.1.dev0.tar.gz | 38.8 kB | Without provenance | Details for swiftpath-0.0.1.dev0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swiftpath-0.0.1.dev0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for swiftpath-0.0.1.dev0-py2.py3-none-any.whl |
Total release size: 55.8 kB
Release files / swiftpath-0.0.1.dev0.tar.gz
| Download URL | swiftpath-0.0.1.dev0.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9980dbb50684ae6bdda19b304b02cd6a3f860809817105710914c91a90917bbf
|
|
BLAKE2b-256 checksum How to use checksums |
2d09fbb6b77ebca5cef8afcbb42f20eda0b0c1ba07bc38a7ed8794d3bf92ac52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Release files / swiftpath-0.0.1.dev0-py2.py3-none-any.whl
| Download URL | swiftpath-0.0.1.dev0-py2.py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ae7366e2cda95784c8ace70467060c8c04f614a7eb743ec6742f8cc4d5b3ba81
|
|
BLAKE2b-256 checksum How to use checksums |
6605083c7c4336188fba5957d01f97afb2193142c8ec45f34abe273a3818efda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Security for swiftpath 0.0.1.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.