Skip to main content

Swift Implementation

This drb-impl-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.impl.
The implementation name is swift.
The factory class is encoded into drb_impl_swift.swift_node_factory.
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-impl-swift

Access Data

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

from drb_impl_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-impl-swift 1.0.1

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-impl-swift 1.0.1
File Size Uploaded
drb-impl-swift-1.0.1.tar.gz 24.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for drb-impl-swift 1.0.1
File Interpreter ABI Platform
drb_impl_swift-1.0.1-py3.8.egg Legacy Egg format - - Details
drb_impl_swift-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.5 kB

Release files / drb-impl-swift-1.0.1.tar.gz

Download URL drb-impl-swift-1.0.1.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
376ef4b3fe18f4c4b7f251177efc7149dc430e31a65e02e5575431159ee27e27
BLAKE2b-256 checksum
How to use checksums
9227a7ccf28efbeed979d25861248c22e1280c864d2d39f270eff80f93ca1c26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.11.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / drb_impl_swift-1.0.1-py3.8.egg

Download URL drb_impl_swift-1.0.1-py3.8.egg
Size 15.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
b6bd4261dcf59d020292e20600d1601bb6888caac2dcee72b33d325a37925bf2
BLAKE2b-256 checksum
How to use checksums
31c7b5b92f1bf106f4215cf96a4805f34e0fac14c101a5482d94639b040a40a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.11.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / drb_impl_swift-1.0.1-py3-none-any.whl

Download URL drb_impl_swift-1.0.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a46bcfa9ec9291e7551fb838f3e87e435c6bfc2881b1b8bd5e0f8493dcf6a1f5
BLAKE2b-256 checksum
How to use checksums
5c2d91ebec7b37b615aa6d3934939e968056a7bd04ed67a1e3819bdc27da7ac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.11.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

3 release files

1.0.0

3 release files

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