Skip to main content

DRB Swift implementation

Project description

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

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-impl-swift-1.0.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distributions

drb_impl_swift-1.0.1-py3.8.egg (15.8 kB view details)

Uploaded Source

drb_impl_swift-1.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file drb-impl-swift-1.0.1.tar.gz.

File metadata

  • Download URL: drb-impl-swift-1.0.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for drb-impl-swift-1.0.1.tar.gz
Algorithm Hash digest
SHA256 376ef4b3fe18f4c4b7f251177efc7149dc430e31a65e02e5575431159ee27e27
MD5 30ddac40e8c2408df3349252cfeee996
BLAKE2b-256 9227a7ccf28efbeed979d25861248c22e1280c864d2d39f270eff80f93ca1c26

See more details on using hashes here.

File details

Details for the file drb_impl_swift-1.0.1-py3.8.egg.

File metadata

  • Download URL: drb_impl_swift-1.0.1-py3.8.egg
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for drb_impl_swift-1.0.1-py3.8.egg
Algorithm Hash digest
SHA256 b6bd4261dcf59d020292e20600d1601bb6888caac2dcee72b33d325a37925bf2
MD5 a1780e05938dc471039f189eb8135ba7
BLAKE2b-256 31c7b5b92f1bf106f4215cf96a4805f34e0fac14c101a5482d94639b040a40a7

See more details on using hashes here.

File details

Details for the file drb_impl_swift-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: drb_impl_swift-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for drb_impl_swift-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a46bcfa9ec9291e7551fb838f3e87e435c6bfc2881b1b8bd5e0f8493dcf6a1f5
MD5 5127ff6bec327385397f041dc30d44e1
BLAKE2b-256 5c2d91ebec7b37b615aa6d3934939e968056a7bd04ed67a1e3819bdc27da7ac3

See more details on using hashes here.

Supported by

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