Lightweight file storage service
Project description
Lightweight File Storage Service (LFSS)
My experiment on a lightweight file/object storage service.
It stores small files and metadata in sqlite, large files in the filesystem.
Tested on 2 million files, and it works fine...
Usage:
pip install lfss
lfss-user add <username> <password>
lfss-serve
By default, the data will be stored in .storage_data.
You can change storage directory using the LFSS_DATA environment variable.
I provide a simple client to interact with the service:
lfss-panel --open
Or, you can start a web server at /frontend and open index.html in your browser.
The API usage is simple, just GET, PUT, DELETE to the /<username>/file/url path.
Authentication is done via Authorization header with the value Bearer <token>, or through the token query parameter.
You can refer to frontend as an application example, and frontend/api.js or lfss/client/api.py for the API usage.
By default, the service exposes all files to the public for GET requests,
but file-listing is restricted to the user's own files.
Please refer to docs/Permission.md for more details on the permission system.
Project details
Release history Release notifications | RSS feed
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 lfss-0.7.11.tar.gz.
File metadata
- Download URL: lfss-0.7.11.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163f37b31b5d0f0d06f29916c0d5766a974b480004e801445de1ba8a9945a082
|
|
| MD5 |
0979a4a3f2e88f3cf5d1184a13e41670
|
|
| BLAKE2b-256 |
138c33f160cc524fa8f11966055e9a7582944dadd6e1e53c907b2874a7998440
|
File details
Details for the file lfss-0.7.11-py3-none-any.whl.
File metadata
- Download URL: lfss-0.7.11-py3-none-any.whl
- Upload date:
- Size: 46.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a83ae1e382246d93e8c05996a298ebca8c2c8e08f139ce16b8d262d7ecdf56f
|
|
| MD5 |
1a21ae464a9a6e1d79fe6a59f207b7b5
|
|
| BLAKE2b-256 |
73b816cec348ea338c3bfc7b6257a6391d77f6efea12b5040066c4998553d38b
|