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.2.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.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: acrud-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9e896dbfdf0132463b3afd78e7770df0510f27b7214b21a353386ee233e35d4e
MD5 3f4a5b88b2fdca1918b053a7b3399640
BLAKE2b-256 66c9942ac63c81f9ae9df15d71cee480faf86924cd5fd610a434a35f3ebd49be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: acrud-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 975b77d10aee35eb64aa3d0e277db269ad90961f8dffa45e6eadef7dd39a85ad
MD5 200cc891e3c834855a8c233fb9c7a2a6
BLAKE2b-256 00620fdc8e9cc5412173dae37e3df42e126298e9ec6f0395a925fa5f507ddde3

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