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
Release files for sfsgl 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sfsgl-0.1.6.tar.gz | 167.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SFSGL-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 332.6 kB
Release files / sfsgl-0.1.6.tar.gz
| Download URL | sfsgl-0.1.6.tar.gz |
|---|---|
| Size | 167.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b12248784185f358fe53a51e963b6766a1dea4da74070da8f8278bdfdb46b6c
|
|
BLAKE2b-256 checksum How to use checksums |
cb8225f18522ae67113eceeb335bd4b4a473dde83c5f13e62a15b4dd939b9db8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / SFSGL-0.1.6-py3-none-any.whl
| Download URL | SFSGL-0.1.6-py3-none-any.whl |
|---|---|
| Size | 165.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e5a5474fdf97b0bb0061011a41b706953bdd9b4b7cc1d9a9b9a05e3d0aac4c5
|
|
BLAKE2b-256 checksum How to use checksums |
52edfee14f6d502fa46e3db81179f622ffdb1559acf9335779f3af6908efc8fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|