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.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: efcfile-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5ae63105f360134a577a320a37672368c447b7c60d151922ffb56ee5dee69251
MD5 cea83c99bf7a8c5e5713cced5fcaefaf
BLAKE2b-256 825be832e26e1ec104f6e2ac20b028b9db43e46ad01ffa5a6655c33c3aee3875

See more details on using hashes here.

File details

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

File metadata

  • Download URL: efcFile-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49bc7f9d1aa110a9aa54f4ddc34d1d7cc2560ea20bcfe31c4fed8530869031e3
MD5 64e8e3c320d3786d94d1fd7777ecca59
BLAKE2b-256 766fe898b6e1afe941012904915338ba4e871c83ccbe2cb6b8430555e6db2589

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