Skip to main content

sdaab

Build Status

Simple Data Abstraction provides an abstraction layer to access different types of storage (e.g. local disk, S3). Basic file management methods are implemented for each type of storage.

Installation

To install the package:

pip install sdaab

Example of usage:

from sdaab.disk.storage_disk import StorageDisk

# Initialize the storage object
s = StorageDisk(root_path="/tmp/")

# You can mkdir, rename, ls, cp, mv, etc.
s.mkdir("folder1")
s.rename("folder1", "folder2")

# You can also upload or download files.
v1 = "Hello world!"
s.upload_from_memory(v1, "v1")
v2 = s.download_to_memory(v2, "/folder3/v2")

# When you want to switch to another storage, 
# just re-initialize the storage object and 
# the methods will work exactly as before. 
s = StorageS3boto(
    host="s3.eu-west-3.amazonaws.com",
    port=1234,
    access_key="xxxyyyzzz",
    secret_key="aaabbbccc", 
    bucket="bucket-x",
    calling_format="boto.s3.connection.SubdomainCallingFormat",
    secure=True,
    root_path="/"
)

Metadata

Release files for sdaab 1.0.2

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

Source distribution (sdist)

Source distribution for sdaab 1.0.2
File Size Uploaded Provenance Actions
sdaab-1.0.2.tar.gz 11.1 kB Without provenance Details for sdaab-1.0.2.tar.gz

Release files / sdaab-1.0.2.tar.gz

Download URL sdaab-1.0.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9bbbae40ff7b9ef6c8d4d8dc9abd0318be4123dc6598b341cef96739be76424e
BLAKE2b-256 checksum
How to use checksums
af7d6476659dad1f663353653c47150f122e16f71f6e7d98d137f5d8c08c28f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

Security for sdaab 1.0.2

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