Manage files in bulk quantity using a friendly dict-like interface
Project description
File-Storehouse
Manage files in bulk quantity using a friendly dict-like interface
Overview
File-Storehouse is a lightweight Python package that aims to facilitate the management of files in bulk quantity.
There are four key points that are combined to achieving such a goal:
-
Mapping Interface - The file managers are leveraged by the Mapping and MutableMapping interfaces, which means that everything can be done using a friendly dict-like interface. For instance:
# Store data to a file: file_manager[id] = file_content # Retrine data from a file file_content = file_manager[id] # Delete a file del file_manager[id] # Loop through all files for id, content in file_manager.items(): pass # and many more...
-
Engine - Choose the engine (or back-end) your file managers are connected to:
- S3 buckets, powered by boto3;
- Local filesystem and more are planned.
-
Key Mapping - Customize a two-way key mapping between the dict-like keys and the files' location at the engines according to the business rules of your application.
-
Transformations - Configure a chained operation to convert the files back and forward between your Python code and the storage. The supported operations are:
- Encode/decode bytes and strings;
- Dump/load Json files;
- Compress/decompress tarballs and more transformations are planned.
Example
Please, take a look at the user story used for testing.
Copyright and License
© 2022 Felipe N. Schuch. All content is under MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_storehouse-0.5.1.tar.gz.
File metadata
- Download URL: file_storehouse-0.5.1.tar.gz
- Upload date:
- Size: 215.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c31135da912b4b33f707831f738def249de9eda2de4900cd0e79078cc0854fe
|
|
| MD5 |
6964ec3acb26801eb2cabd8e576ebc42
|
|
| BLAKE2b-256 |
5fec08ab2fbd79c37d3090dc9d201e830d6e84ce2422fd095cc1b4fdab8764e3
|
Provenance
The following attestation bundles were made for file_storehouse-0.5.1.tar.gz:
Publisher:
ci.yaml on fschuch/file_storehouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_storehouse-0.5.1.tar.gz -
Subject digest:
9c31135da912b4b33f707831f738def249de9eda2de4900cd0e79078cc0854fe - Sigstore transparency entry: 272308840
- Sigstore integration time:
-
Permalink:
fschuch/file_storehouse@7349a3f918f744ed246371eb0eed1d165a7bb453 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/fschuch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@7349a3f918f744ed246371eb0eed1d165a7bb453 -
Trigger Event:
push
-
Statement type:
File details
Details for the file file_storehouse-0.5.1-py3-none-any.whl.
File metadata
- Download URL: file_storehouse-0.5.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbc9b1283121f55c5caf320450e8c392854ef9feffb579d81f26d369d09b80c3
|
|
| MD5 |
66f130de7f0d0155dd0185ce57fa26c8
|
|
| BLAKE2b-256 |
b9e568dd4f66cc38476948c37671de45b1c3d8c6a86d28f7ed61ba3a8cbcc00d
|
Provenance
The following attestation bundles were made for file_storehouse-0.5.1-py3-none-any.whl:
Publisher:
ci.yaml on fschuch/file_storehouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_storehouse-0.5.1-py3-none-any.whl -
Subject digest:
dbc9b1283121f55c5caf320450e8c392854ef9feffb579d81f26d369d09b80c3 - Sigstore transparency entry: 272308841
- Sigstore integration time:
-
Permalink:
fschuch/file_storehouse@7349a3f918f744ed246371eb0eed1d165a7bb453 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/fschuch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@7349a3f918f744ed246371eb0eed1d165a7bb453 -
Trigger Event:
push
-
Statement type: