Skip to main content

A python package that serves as an easy file sharing application over local network

Project description

File Share - Local File Sharing Service

fshare is a Python package that serves as a file sharing service over a local network. It utilizes Flask to create a local server on port 8000, allowing users to upload files and share them within the network.

Installation

To install fshare, use pip:

pip install fshare

All of the required dependencies (flask >= 1.0.0) will be installed automatically by pip.

Running the Service

To start the file-sharing service, run the following command:

python -m fshare

You're all set! Servers is up and running on http://localhost:8000

Default save-location is the temp directory (/tmp/fshare on unix like systems or %tmp%/fshare on windows)

Command-Line Options

fshare supports the following command-line options:

usage: python -m fshare [-h] [--bind BIND] [--port PORT] [--location LOCATION]

Starts the python file-sharing service application

options:
  -h, --help            show this help message and exit
  --bind BIND, -b BIND  The local address to bind the server
  --port PORT, -p PORT  File server port to run on
  --location LOCATION, -l LOCATION
                        The path to the folder where files will be stored
                        (default: /tmp/fshare)

Options

  • -h, --help: Displays the help message and exits.
  • --bind BIND, -b BIND: Sets the local address to bind the server (optional).
  • --port PORT, -p PORT: Specifies the file server port to run on (optional).
  • --location LOCATION, -l LOCATION: Sets the path to the folder where files will be stored. By default, files are stored in /tmp/fshare.

Example Usage

Here's an example of running fshare with custom options:

python -m fshare --port 8080 --location /path/to/custom/folder

This will start the file-sharing service on port 8080 and use /path/to/custom/folder as the file storage location.

Running programatically

Fshare can be imported in your project alongside with a reference to the FileManager class and the flask app.

from fshare.main import app, fileManager

# change the save-location path
# fileManager.changeLocation('/new/location/path')

app.run(host='0.0.0.0', port=8000, debug=True)

Contributing

We welcome contributions from the community! If you find any issues, have suggestions for improvements, or want to add new features, please feel free to open an issue or submit a pull request on our GitHub repository.

License

fshare is open-source software released under the MIT License. See the LICENSE file for more details.

Issues

For any issues or feedback, please visit the Bug Tracker on GitHub.

Contact

For questions or inquiries, you can reach out to Stevo Mitric at stevomitric2000@gmail.com.

Disclaimer

File-Share is provided "as is" without warranty of any kind, express or implied. Use it at your own risk. The authors of File-Share are not responsible for any damages or liabilities resulting from the use of this package.

Acknowledgments

  • fshare is built with the help of Flask and other open-source libraries.
  • Special thanks to the Python community for their continuous support.

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

fshare-1.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

fshare-1.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fshare-1.1.1.tar.gz.

File metadata

  • Download URL: fshare-1.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fshare-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1f0d14c19181e188fb967b22ffd86050ed1edcef36650eb655bf1e4422082152
MD5 2c8b42ae71268776dad8dd39eced395c
BLAKE2b-256 bfa3c33b05e009e28bb4bb31e21c8e2f68513b089c7493ce922b57ce3859e291

See more details on using hashes here.

File details

Details for the file fshare-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: fshare-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fshare-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 978d6ec0a5399bd93df02fc40bcb372757561657e32ea2ae0bad4acc48a35228
MD5 f9ed670cce882e38d8368c7aa19676c2
BLAKE2b-256 b27b8fd91346bb2b8aa9c98a9b713e9b9664b21752b35e174ee1873b45cadc8f

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