Skip to main content

Simple File Sharing and Gathering Library

Project description

SFSGL (Simple File Sharing Gathering Library)

Description

This is a simple file sharing and gathering library. It provides a simple interface to share and gather files. The library is implemented using Flask and Flask-RESTful. The library provides two interfaces, one for sharing files and the other for gathering files. The library is implemented in a way that it can be used as a standalone application. The main purpose of this library is applying programming course assignments and quizes in a safe and secure way (without using of ChatGPT, Copilot, etc.). For example in your lab if you have an intranet you can share your programming assignments with your students and gather their solutions without using any other tools. They only reach your server they can't connect outside of the lab network.

Installation

You can install the library using pip.

pip install sfsgl

Docker installation and running

You can run this docker command to build and run the application using docker container.

docker build -t my-python-app .
docker run -p 5001:5001 -p 5002:5002 my-python-app

Usage

You can use the library as a standalone application. You can run the following command to start the application.

python -m sfsgl

Configuration Parameters

  • shared_folder_path : path to the folder where the files will be shared, default is "shared"

  • gathered_folder_path : path to the folder where the files will be gathered, default is "gathered"

  • allowed_extension_to_gather : list of allowed file extensions to gather, default is ["py","zip"]

  • allowed_extension_to_share : list of allowed file extensions to share, default is ["py","zip","txt"]

  • allow_multiple_upload : boolean value to allow multiple file upload per user, default is "True"

  • add_ip_to_file : boolean value to add the ip address of the user to the file name, default is "True"

  • shared_port : port number to file sharing interface, default is 5001

  • gathered_port : port number to file gathering interface, default is 5002

Contrubution

You can contribute to the library by forking the repository and sending a pull request. You can also report bugs and feature requests by creating an issue. Btw. the author has no idea about the security of the library. If you find a security issue do not hesitate to fix is and send a pull request.

License

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

sfsgl-0.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

SFSGL-0.1.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file sfsgl-0.1.2.tar.gz.

File metadata

  • Download URL: sfsgl-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for sfsgl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2be66653e8c78859c1e26530b981458b17f998ac0bfd8c7bfefaf722093f340e
MD5 a95bdee9dc2f9cc8b35ffed83c33ecff
BLAKE2b-256 b095ded6f55188f7818414ac58c88032f898ad1a4c6b4b14f9d0aad452f021f1

See more details on using hashes here.

File details

Details for the file SFSGL-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: SFSGL-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for SFSGL-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be38a48d53b60b8b38bdc277df777e66300da0edb923c5aa44fe9088d6ae1d4d
MD5 c699a53222b66846f3b419ace282d2a0
BLAKE2b-256 22c852f8972835ad4d7a0abbf116af6a57a60410d9af2ce7b6ad860934ac7c91

See more details on using hashes here.

Supported by

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