Skip to main content

simple server for serving directories via http or https and BASIC authorization

Project description

https://img.shields.io/pypi/v/sauth.svg

S erver auth

A simple server for serving directories via http or https and BASIC authorization:

$ sauth --help
Usage: sauth [OPTIONS] USERNAME PASSWORD [IP] [PORT]

  Start http server with basic authentication current directory.

Options:
  -d, --dir TEXT  use different directory
  -s, --https     use https
  -t, --thread    serve each request in a different thread
  --help          Show this message and exit.
  • Free software: GNU General Public License v3

Installation

pip install sauth

Also available on Arch User Repository if you’re running arch:

pacaur -S sauth

Usage

To serve your current directory simply run:

$ sauth someuser somepass
Serving "/home/user/somedir" directory on http://0.0.0.0:8333

You can specify port and ip to serve on with 3rd and 4th arguments:

$ sauth someuser somepass 127.0.0.1 1234
Serving "/home/user/somedir" directory on http://127.0.0.1:1234

Threading is also supported through -t or –thread flags:

$ sauth someuser somepass 127.0.0.1 1234 –thread Serving “/home/user/somedir” directory on http://127.0.0.1:1234 using threading

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

sauth-1.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

sauth-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file sauth-1.1.0.tar.gz.

File metadata

  • Download URL: sauth-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.15.4-1-MANJARO

File hashes

Hashes for sauth-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b3274fb30e65f9e6e23a012d159f461d46cc02748530621aa4451c1a33e77d78
MD5 f85a551c01e2eab909d9b62eeaba07d4
BLAKE2b-256 bf00a08b96379741ba5addaf7894d7f8870c2c80f381732610a0c9f218bdabf7

See more details on using hashes here.

File details

Details for the file sauth-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sauth-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.15.4-1-MANJARO

File hashes

Hashes for sauth-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5748c33574fe15c4b0582f6424c0a30c37e6851f81f6b7911321b0c481dbb273
MD5 d63dd17734c44d6ef680942000355704
BLAKE2b-256 b87530c60e9a24fea693fec09978107e412da180248acf162c8cb3e51c7b7d60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page