Skip to main content

qexshare

A simple file share service.

usage

First, clone the repository and install the project locally.

You are advised to use a virtual environment.

git clone ssh://git@codeberg.org/qexat/qexshare.git
cd qexshare/
# venv .venv -ppython314
pip install -e .

setup

qexshare setup

If this is your first time running qexshare on your computer, you will be prompted to enter the host (the address of the server that stores the files), the user and the password. They will be saved in a keyring. You can reset up each credential individually, using --host, --user and --password.

Note: this command is for a one-time convenience. If you don't run it, qexshare will ask for credentials on the first command that requires them.

get or create a link

qexshare get /path/to/file

If the file has already a share link, the command simply returns it. Otherwise, it uploads the file to the server and returns the newly created link.

list files and links

qexshare list
qexshare list --type=files
qexshare list --type=links
qexshare list --type=uuids

Lists the files that are shared from this device. --type=files only prints their paths. --type=links only prints their links. --type=uuids only prints their UUIDs.

remove link

qexshare remove /path/to/file
qexshare remove UUID

Remove the share link (and thus the file on the server) associated with the file or UUID given.

configuration

Currently, configuration happens directly in qexshare.py (this is why you need -e when installing qexshare with pip).

service domain name

The constant DOMAIN_NAME dictates the domain name of the file share service. Note that this is different from the server URL. The domain name is the visible address of the service, the one users interact with.

shared file directory

The constant REMOVE_ROOT_PATH dictates the directory on the remote server that stores the files shared.

database file name

The constant DATABASE_FILE_NAME dictates the name of the database file used by qexshare. This is mostly a choice of taste, it has no influence on anything else.

server port (advanced)

The constant PORT dictates the port to connect to on the remote server. It's unlikely that you need to change from the default value ; if you aren't sure, leave it as-is.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qexshare-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file qexshare-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qexshare-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for qexshare-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7383bf1341c76115814a869a3bc80d4dc30e08c3eb7dd03f623dbd4d2c50e9f3
MD5 cd3b1fc36949af1425aab389d3a5abf8
BLAKE2b-256 48042ff579d5f0b0428e7f83eb09ba4def754fb75c1f7559fddb51302963b06d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page