Skip to main content

netfshare

A flask-based local network file sharing tool.

Not for production environements. Use with care.

Installation and use

  1. Install the netfshare python package:

    py -m pip install netfshare

  2. Navigate to the directory that you want to share the contents of.

  3. (OPTIONAL) To secure your WSGI application, set a custom SECRET_KEY environment variable, or create a .env file in the shared directory defining the SECRET_KEY:

     SECRET_KEY=my_secret_key
    
  4. Run netfshare to start the sharing service:

    py -m netfshare

The service can be accessed at http://<your-local-ip> by default.

If needed, you can override the port through configuration.

On Linux, binding to port 80 requires additional privileges. One simple option for a local development setup is to grant the virtual environment's Python interpreter permission to bind low ports:

sudo setcap 'cap_net_bind_service=+ep' "$(realpath .venv/bin/python3)"

If you recreate the virtual environment, run the command again.

Make sure your machine is discoverable in the local network and that the required firewall rules are active.

Admin access

The netfshare app automatically recognizes a client that's accessing the app from the host (machine running the app) as admin.

If you're having issues with admin access (e.g. you're not recognized as admin despite accessing the app from your local machine), try accessing the app directl at:

http://127.0.0.1

If you configured a custom port, append :<port>.

Sharing settings

Visit the service website Admin interface from the machine running the service to manage the sharing settings.

netfshare supports downloading the contents (subdirectories) of your shared folder, as well as uploading clients' content to selected directories inside the shared folder.

Only downloads of whole subdirectories are supported, as .zip archives. To make files available for downalod, they must be placed inside a subdirectory of the sharedfolder, and the appropriate sharing mode must be set for this subdirectory in the Admin web interface.

Currently, the supported sharing modes are:

  • read_only: whole subdirectories of the shared folder can be downloaded as a .zip archive.
  • upload_only: clients can upload their data into a selected subdirectory of the shared folder. The uploaded content is placed inside a subfolder with the user's selected name. Currently, only a single upload by each user is allowed.

Localization

netfshare supports localization using flask-babel.

The client-facing routes of the app are translated into English and Slovenian.

To update the translations after adding / modifying app text, run the following to get new text to bt translated and update the Slovenian translation file,:

pybabel extract -F babel.cfg -o messages.pot .
pybabel update -i messages.pot -d netfshare/translations

Now edit / add new translations in translations/sl/LC_MESSAGES/messages.po and compile the new translations:

pybabel compile -d netfshare/translations

Download files

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

Source Distribution

netfshare-0.7.1.tar.gz (55.8 kB view details)

Uploaded Source

Built Distribution

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

netfshare-0.7.1-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file netfshare-0.7.1.tar.gz.

File metadata

  • Download URL: netfshare-0.7.1.tar.gz
  • Upload date:
  • Size: 55.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for netfshare-0.7.1.tar.gz
Algorithm Hash digest
SHA256 0579b14c6439c6d052f42a4c428a0d45ebc1afe077c51b74a438c546b1c67268
MD5 4d512d0f5e8cc93a477e25483e000707
BLAKE2b-256 501c208b940a6381f425f4018a66dc6c0a44e6758381d8e4965958d79a2841d8

See more details on using hashes here.

File details

Details for the file netfshare-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: netfshare-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 53.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for netfshare-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ba52e404f5629740fd099bdc1fda296c8f4cf9352fc46136d13aaefe5c2e8e
MD5 3a0e631b2ee40474c8f146c58e78dfae
BLAKE2b-256 82047cfdffe08c55375ee6d000d7830a286e8abb68146e9c3342c6631755be02

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.2

2 files

This release

0.7.1 This release

2 files

0.7

2 files

0.6

2 files

0.5

2 files

0.4

2 files

0.3

2 files

0.2

2 files

0.1

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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