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
poetry add acrud

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.0.tar.gz (7.4 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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: acrud-0.3.0.tar.gz
  • Upload date:
  • Size: 7.4 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.0.tar.gz
Algorithm Hash digest
SHA256 e50319ced915776bc29ba258de8bfe93eec2a08757e0774682dc218293ce1a4d
MD5 c0ce8591c9853faf172166dda1983a1e
BLAKE2b-256 2ebe88513fa354fbb9e7436d93e53de2c74965f4d4cccfd209b7befdc5b1f37d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: acrud-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 643b453d28ffc619347326c03a0bea797f5c3e82b71b304d083e896318e4cf6d
MD5 18274f6fab3ec2c71bdfbc7f653e387f
BLAKE2b-256 cf2a70cb214768ea1a7760b4244a213ae9f9097cde90c0414b183c2083f9b094

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