Skip to main content

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.

Metadata

Release files for acrud 0.4.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 acrud 0.4.2
File Size Uploaded Provenance
acrud-0.4.2.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for acrud 0.4.2
File Interpreter ABI Platform
acrud-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / acrud-0.4.2.tar.gz

Download URL acrud-0.4.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
820453665925ec4f4c587ac13fe1d17b0d455dad99b8364534aaf80cec932a7c
BLAKE2b-256 checksum
How to use checksums
d5c81f5ac63fee0358e8661d9fa22b1cfcd56393e8d9f7862b5fec3d2bd5fa5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Darwin/23.5.0

Release files / acrud-0.4.2-py3-none-any.whl

Download URL acrud-0.4.2-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8a907d0c8b6136f362eb251e57f6462c2801ff139ada30fcae88d07783febba
BLAKE2b-256 checksum
How to use checksums
d4e60e59803b46076a5521a86d70cc81a4207c22e25d305e3ab693a628e17af7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Darwin/23.5.0

Security for acrud 0.4.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