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.4.2.tar.gz (7.6 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.4.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for acrud-0.4.2.tar.gz
Algorithm Hash digest
SHA256 820453665925ec4f4c587ac13fe1d17b0d455dad99b8364534aaf80cec932a7c
MD5 f3f7016eb6bbade71e0d6013232e99f7
BLAKE2b-256 d5c81f5ac63fee0358e8661d9fa22b1cfcd56393e8d9f7862b5fec3d2bd5fa5d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for acrud-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a907d0c8b6136f362eb251e57f6462c2801ff139ada30fcae88d07783febba
MD5 528d651d489a496e562f8cd3eebd8da3
BLAKE2b-256 d4e60e59803b46076a5521a86d70cc81a4207c22e25d305e3ab693a628e17af7

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