sfsgl

Simple file sharing and gathering library for programming exams with user-friendly UI in Python.

https://github.com/hasanaliozkan-dev/sfsgl

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Simple file sharing and gathering library for programming exams with user-friendly UI in Python.

Basic Info
  • Host: GitHub
  • Owner: hasanaliozkan-dev
  • License: mit
  • Language: HTML
  • Default Branch: main
  • Homepage: https://commoncodebase.org
  • Size: 813 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

Badge License - MIT 3-Clause PyPI Downloads Visitors

SFSGL (Simple File Sharing Gathering Library)

bash ███████╗███████╗███████╗ ██████╗ ██╗ ██╔════╝██╔════╝██╔════╝██╔════╝ ██║ ███████╗█████╗ ███████╗██║ ███╗██║ ╚════██║██╔══╝ ╚════██║██║ ██║██║ ███████║██║ ███████║╚██████╔╝███████╗ ╚══════╝╚═╝ ╚══════╝ ╚═════╝ ╚══════╝ ┌───────────────────────────────────────┐ │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. This library's main purpose is to apply programming course assignments and quizzes safely and securely (without using 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 and they can't connect outside of the lab network.

Installation

You can install the library using pip.

bash pip install sfsgl

Docker installation and running

You can run this docker command to build and run the application using the docker container. bash 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.

bash python -m sfsgl

Example Usage

```python from SFSGL.sfsgl import SFSGL

if __name__ == '__main__':
    session = SFSGL(shared_folder_path= "exact_path_to_shared_folder")
    session.start()

```

!!! You'll need to specify the the exact path of the shared folder otherwise the library cannot find your folder path.

Configuration Parameters

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

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

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

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

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

  • addipto_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

Contribution

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 it and send a pull request.

License

MIT License

Copyright (c) 2025 Hasan Ali ÖZKAN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Owner

  • Name: Hasan Ali ÖZKAN
  • Login: hasanaliozkan-dev
  • Kind: user
  • Location: Muğla

Team Lead at DSRG | Computer Science Student at MSKU | Core Member and Mentor at Global AI Hub

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Özkan"
  given-names: "Hasan Ali"
  orcid: "https://orcid.org/0000-0003-1668-0533"
title: "SFSGL"
version: 0.1.10
date-released: 2025-01-05
url: "https://github.com/hasanaliozkan-dev/SFSGL"

GitHub Events

Total
  • Public event: 1
  • Push event: 22
  • Create event: 1
Last Year
  • Public event: 1
  • Push event: 22
  • Create event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 31 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 11
  • Total maintainers: 1
pypi.org: sfsgl

Simple File Sharing and Gathering Library

  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 31 Last month
Rankings
Dependent packages count: 9.8%
Average: 32.5%
Dependent repos count: 55.2%
Maintainers (1)
Last synced: 6 months ago