Skip to main content

Swift Implementation

This drb-driver-swift module implements Swift protocol access with DRB data model.

Swift Factory and Swift Node

The module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.

The entry point group reference is drb.driver.swift.
The implementation name is swift.
The factory class is encoded into drb.driver.swift.
The Swift signature id is 86289118-7797-11ec-90d6-0242ac120003

Using this module

The project is present in https://www.pypi.org service. it can be freely loaded into projects with the following command line:

pip install drb-driver-swift

Access Data

DrbSwiftNode manages the swift protocol to access remote data. The construction parameter is an authentication object.

from drb.drivers.swift import SwiftService, SwiftAuth

_os_options = {
    'user_domain_name': 'Default',
    'project_domain_name': 'Default',
    'project_name': 'project_name',
    'project_id': 'project_id',
    'tenant_name': 'tenant_name',
    'tenant_id': 'tenant_id',
    'region_name': 'region_name'
}

auth = SwiftAuth(authurl="https://your_auth_url/v3",
                 auth_version=3, tenant_name="tenant_name",
                 user="user",
                 key='password', os_options=_os_options)

node = SwiftService(auth=auth)

When accessing a SwiftService the node gives access to all the container of this service by giving a list of ContainerNode, and then each container gives a list of ObjectNode for each object in the container.

Limitations

This implementation doesn't allow to write, modify, delete file on a swift container, or it doesn't allow to delete or upload a file. This implementation doesn't allow to download directly an all container.

Documentation

The documentation of this implementation can be found here https://drb-python.gitlab.io/impl/swift

Metadata

Release files for drb-driver-swift 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drb-driver-swift 1.4.0
File Size Uploaded Provenance Actions
drb_driver_swift-1.4.0.tar.gz 31.4 kB Without provenance Details for drb_driver_swift-1.4.0.tar.gz

Release files / drb_driver_swift-1.4.0.tar.gz

Download URL drb_driver_swift-1.4.0.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4212775ad6895e6fcb5c6f7d47f80859c8b20be59c501730c83337760c0a1784
BLAKE2b-256 checksum
How to use checksums
63f6288ebf5aefd177e4aefb9b1ba85de5c1da8ab77db59e5c7528fe36a8f20e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for drb-driver-swift 1.4.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page