Skip to main content

No project description provided

Project description

Logo

aCRUD

This python package provides a CRUD interfaces for a number of storage providers. Currently supported providers:

  • Local
  • AWS S3
  • Google Drive

aCRUD handles the loading and saving of multiple file types, including:

  • JSON
  • CSV
  • PDF
  • PKL
  • TXT

Installation

pip install acrud --extras s3, gdrive, ...
poetry add acrud --extras s3, gdrive, ...

Usage

from acrud import create_storage, get_storage_from_string, S3StorageConfig

# Create a storage config object
# Directly:
config = S3StorageConfig(
    bucket="my-bucket",
)

# Or from a string and a dictionary
config = get_storage_from_string("s3", {"bucket": "my-bucket"})

# Create a storage object
storage = create_storage("s3", config)

# Create a file
storage.create_file("my-file.txt", "Hello, World!")

# Read a file
content = storage.read_file("my-file.txt")

# Update a file
storage.update_file("my-file.txt", "Hello, World! Updated")

# Delete a file
storage.delete_file("my-file.txt")
Note

Original version of this package can be found on the branch v0.1.0.

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

acrud-0.3.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

acrud-0.3.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file acrud-0.3.1.tar.gz.

File metadata

  • Download URL: acrud-0.3.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for acrud-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0fecf5c552dbbf1fa293bfdd07e2eab904d4771eac788e7ada56c259a2d23d11
MD5 30b305b7acf9d014e9992a8e8e007420
BLAKE2b-256 afec1d0c659fb667c68f59acc2e50c3d9865ca506347f80edda267be21f49adc

See more details on using hashes here.

File details

Details for the file acrud-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: acrud-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/23.5.0

File hashes

Hashes for acrud-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68c433968cee99034097e60eec7cef6e47b2b87ae5153a62aa86a34d0a6c03f8
MD5 35b3d5ae309e2f7fdb77b7e19de5e87e
BLAKE2b-256 71d6072ffc8585de210a357552947f46f0d7fd84805328edbf658853c01cfbef

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