Skip to main content

Lite File Storage Service (LFSS)

PyPI PyPI - Downloads

My experiment on a lightweight and high-performance file/object storage service...

Highlights:

  • User storage limit and multi-level access control.
  • Pagination and sorted file listing for vast number of files.
  • Support range requests, so you can stream large files / resume download.
  • User-friendly web panel for management.
  • WebDAV compatible (NOTE).

It stores small files and metadata in sqlite, large files in the filesystem.
Tested on 2 million files, and it is still fast.

Usage:

pip install "lfss[all]"
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.

There is a simple frontend at http://localhost:8000/.panel/.

Frontend Screenshot

The API usage is simple, just GET, PUT, DELETE to the /<username>/file/url path.
The authentication can be acheived through one of the following methods:

  1. Authorization header with the value Bearer sha256(<username>:<password>).
  2. token query parameter with the value sha256(<username>:<password>).
  3. HTTP Basic Authentication with the username and password (If WebDAV is enabled).

You can refer to frontend as an application example, lfss/api/connector.py for more APIs.

More information can be found in the documentation.

Metadata

Release files for lfss 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lfss 0.18.0
File Size Uploaded Provenance Actions
lfss-0.18.0.tar.gz 1.3 MB Without provenance Details for lfss-0.18.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.8 MB

Release files / lfss-0.18.0.tar.gz

Download URL lfss-0.18.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
55ccf9dd7521b8d7724aad508eff7ffea315a7af741ee066901db999e3a4d59d
BLAKE2b-256 checksum
How to use checksums
859dc63c38d0684e8e5c3cd251b4cf35cee0786701e7ad1335534783b2f61df4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.5

Release files / lfss-0.18.0-py3-none-any.whl

Download URL lfss-0.18.0-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
98ba43aa2402a8d10490fe63f6c5d0ce2d8c4bcddcb58e2994077f67834ffd6c
BLAKE2b-256 checksum
How to use checksums
d938a4e8593af9baaa8020c43741d8537c52ce8bd95f1270271b42ea3b60fd2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.5

Security for lfss 0.18.0

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.

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files No provenance

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