Skip to main content

What

pylufic is a command line tool which allow to interact with Let's Upload File (Lufi) instances, that is to download and upload client-side encrypted files.

Why

Lufi is a web-application allowing client-side encrypted file transfers between users. Hence you don't have to trust the service provider to protect your data.

However Lufi works in a web browser, like Firefox or Chormium. When you don't want to run a full-featured graphical web browser on your machine to use it, you need a command line.

pylufic is a python implementation of a Lufi CLI, useful for those who already have Python in their environments.

How

pylufic use the same software libraries as the Javascript version - websocket client and Standford Javascript Cryptography Library (SJCL) - but in their python implementations.

Use

Install

Be sure to have Python 3.6+ installed.

Git clone this repo (or download as zip) :

git clone https://framagit.org/setop/pylufic.git && cd pylufic

Optionally, create python virtual environment :

python3 -m venv .venv && . .venv/bin/activate

Pip install requirements (use sudo if not in a venv) :

pip install -r requirements.txt

If you want to test libraries, run :

./sjcl-test.py && ./ws-test.py

Run

pylufic uses baker library which provide inline help

Help

./pylufic.py

Upload

./pylufic.py file service_url

You may use "https://framadrop.org/" (consider donation).

download

./pylufic.py url

Be aware a file is opened in the current directory in append mode with the name provided in the metadata of the transfer.

delete

To delete a file use link provided by upload function.

An example using curl :

curl -s -S 'https://framadrop.org/d/<shortid>/<token>' | html2text

Limitation

pylufic handles only one file at a time ; no multi-files upload or download.

Metadata

Release files for pylufic 1.0.1

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

Built distribution (wheel)

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

Release files / pylufic-1.0.1-py3-none-any.whl

Download URL pylufic-1.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c42a9c1dc697edb142fe9c11dd6aefc0d57081b679c522792aef2d7b016d985
BLAKE2b-256 checksum
How to use checksums
d182cd9a18db22f7598717365bbab334046c30b0f08c952503fbbdab3e81c548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

Security for pylufic 1.0.1

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.

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