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>:5000 by default.

If needed, you can override the port through configuration.

On first startup, netfshare creates .netfshare/config.json with the default settings if that file does not already exist. For example:

{
  "PORT": 5000,
  "MAX_FILES": 10
}

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, including access via 127.0.0.1 and the host machine's own local network IP address.

If you're having issues with admin access, try accessing the app directly at:

http://127.0.0.1:5000

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

Metadata

Release files for netfshare 0.7.2

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

Source distribution (sdist)

Source distribution for netfshare 0.7.2
File Size Uploaded
netfshare-0.7.2.tar.gz 56.1 kB Details

Built distribution (wheel)

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

Total release size: 109.2 kB

Release files / netfshare-0.7.2.tar.gz

Download URL netfshare-0.7.2.tar.gz
Size 56.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1f8f094810dcbded49cb6e7c92edd355bc415bf7a3e269af295ff18c93fb62c1
BLAKE2b-256 checksum
How to use checksums
a78ede9da3785281cc0a1737f6e44fc94e2951a63107f4d629915b1ca30fcd97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / netfshare-0.7.2-py3-none-any.whl

Download URL netfshare-0.7.2-py3-none-any.whl
Size 53.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b2b16072886d2b797a67fa4f503a436583770e999000cb11a01fd1bf39080c0
BLAKE2b-256 checksum
How to use checksums
928533b923856947a598ba2630253478742d380f8fa594865e040579c0e8ae68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

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