Skip to main content

DRB OpenStack Swift driver

Project description

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

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

drb_driver_swift-1.3.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drb_driver_swift-1.3.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file drb_driver_swift-1.3.1.tar.gz.

File metadata

  • Download URL: drb_driver_swift-1.3.1.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for drb_driver_swift-1.3.1.tar.gz
Algorithm Hash digest
SHA256 c23183a38466326d8bd002ced5412d78f0f3e445b0a1f2a40f9e6e80090d66c7
MD5 109c994bc974d0f116c8a9170c3d6a3c
BLAKE2b-256 3c8c596172e79a82c63404545193f88f2493f7533e7cd789c463a6d30f332202

See more details on using hashes here.

File details

Details for the file drb_driver_swift-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for drb_driver_swift-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29a9601cc6d2907d0708e6658c5847eb063d8afadfda21d00817580a481d70b1
MD5 db5e6afb8401be68449e9df412732e28
BLAKE2b-256 e48e33acb9854578e7211248bbf6fd22f2ac2317eada05618874881d0fac96b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page