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.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distributions

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

drb_impl_swift-1.0.0-py3.8.egg (15.5 kB view details)

Uploaded Egg

drb_impl_swift-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drb-impl-swift-1.0.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.10.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.0.tar.gz
Algorithm Hash digest
SHA256 9a57df8fba8850387b584897421030eba883a2f0e8820c972e2404bd3d9ab02a
MD5 36599bb5827da58ed7c655908716a249
BLAKE2b-256 e569d9decd74ab37845b125056cce3efb62e26c3cb72482c26d7a7de97960259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drb_impl_swift-1.0.0-py3.8.egg
  • Upload date:
  • Size: 15.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.10.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.0-py3.8.egg
Algorithm Hash digest
SHA256 0e2a0a27cc15d2a0faf6b4760246eee27358e28e4ba6f9faf80cb01b50bfaf07
MD5 965074e1004d2133e35ac11c0b5bf896
BLAKE2b-256 2890b10446bcaa68ec586907e5ea44bd7f4aed3062f7834d6de98c787047998f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drb_impl_swift-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.10.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07d477c739c64e56cad7ace7085e6f79339686a350e01c8bbbbb242cb3fb5ee7
MD5 e542a2eca968a5e52ea7f4d33733cbd2
BLAKE2b-256 f2c2ec976c6971f6bc72262eb7f9334176cefaefb6525a451e185193df0a1a05

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