Skip to main content

A file storage management package supporting various providers like S3, OSS, and Qiniu.

Project description

efcFIle

通用的文件储存类

from efcFile import FileStorageManager, LocalFileStorage

manager = FileStorageManager(default_storage="local")
manager.set_storage("local", LocalFileStorage(storage_path="./storage/"))
manager.put("example.txt", b"This is a test file")
print(manager.get("example.txt"))
print(manager.exists("example.txt"))
print(manager.size("example.txt"))
print(manager.mime_type("example.txt"))
print(manager.list(""))
manager.move("example.txt", "example_moved.txt")
print(manager.exists("example_moved.txt"))
manager.delete("example_moved.txt")

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

efcfile-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

efcFile-1.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file efcfile-1.0.2.tar.gz.

File metadata

  • Download URL: efcfile-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for efcfile-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0102811dd38f738d25002c39ca7310f93152a08f050fe038427ad87b53a7a9fb
MD5 a9b4f574ceb3bb39c67b5265f3a74b5f
BLAKE2b-256 41235ad8573c08add6ac749bc729e846fe329ec0322c5c7f22da3bd402e7244d

See more details on using hashes here.

File details

Details for the file efcFile-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: efcFile-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for efcFile-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c02a9e3052496ecd38ccac6a92c4c96211a3983e5e65312074b486d5dd1f6f92
MD5 420004bf63284b5458ea207a2b3fb37e
BLAKE2b-256 bf017ddc02d1d89bd7099b79ccd51befcab52b6a8baeebc06d219b9f1057d248

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page