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.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

fshare-1.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fshare-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 096113f723cba68ed8820a451540197ebad7fe5ca56a6671c51a90cae70ecd23
MD5 c772b27c970b5956fdecc965ddff920d
BLAKE2b-256 bf294b20b201bda062e43d208bcb37592901be1e171f545748c328e55298e376

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fshare-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 720ebc122b2ec27612a7952966108fa038af05333d02a38dc3be8dfdf98c6044
MD5 62fddf90ff06f1dc57b01a04b3333901
BLAKE2b-256 77974002590dc1e83d6ec51f8ddf3f4e6353baaec692553fbc0178723c3da1e8

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