SFSGL


NameSFSGL JSON
Version 0.1.10 PyPI version JSON
download
home_pagehttps://commoncodebase.org
SummarySimple File Sharing and Gathering Library
upload_time2025-01-29 20:26:39
maintainerNone
docs_urlNone
authorHasan Ali Özkan
requires_python>=3.6
licenseMIT License
keywords file sharing gathering library
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# **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. 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

- 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```






### 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://commoncodebase.org",
    "name": "SFSGL",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "file sharing gathering library",
    "author": "Hasan Ali \u00d6zkan",
    "author_email": "hasanaliozkan-dev@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/fa/91/67852a791c442853ae6c900a3d700b1795291457956a1854a143e6267db1/sfsgl-0.1.10.tar.gz",
    "platform": null,
    "description": "\n# **SFSGL (Simple File Sharing Gathering Library)**\n\n### Description\nThis 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.\n\n### Installation\nYou can install the library using pip.\n\n```bash\npip install sfsgl\n```\n\n### Docker installation and running\nYou can run this docker command to build and run the application using the docker container.\n```bash\ndocker build -t my-python-app .\ndocker run -p 5001:5001 -p 5002:5002 my-python-app\n```\n\n\n\n### Usage\nYou can use the library as a standalone application. You can run the following command to start the application.\n\n```bash\npython -m sfsgl\n```\n\n### Example Usage\n```python \n    from SFSGL.sfsgl import SFSGL\n\n    if __name__ == '__main__':\n        session = SFSGL(shared_folder_path= \"exact_path_to_shared_folder\")\n        session.start()\n```\n\n!!! You'll need to specify the the exact path of the shared folder otherwise the library cannot find your folder path. \n\n\n\n### Configuration Parameters\n\n- shared_folder_path : path to the folder where the files will be shared, default is \"shared\"\n\n- gathered_folder_path : path to the folder where the files will be gathered, default is \"gathered\"\n\n- allowed_extension_to_gather : list of allowed file extensions to gather, default is ```[\"py\",\"zip\"]```\n\n- allowed_extension_to_share : list of allowed file extensions to share, default is ```[\"py\",\"zip\",\"txt\"]```\n\n- allow_multiple_upload : boolean value to allow multiple file upload per user, default is ```\"True\"```\n\n- add_ip_to_file : boolean value to add the IP address of the user to the file name, default is ```\"True\"```\n\n- shared_port : port number to file sharing interface, default is ```5001```\n\n- gathered_port : port number to file gathering interface, default is ```5002```\n\n\n\n\n\n\n### Contribution\nYou can contribute to the library by forking the repository and sending a pull request. \nYou can also report bugs and feature requests by creating an issue. Btw. the author has\nno idea about the security of the library. If you find a security issue do not hesitate \nto fix it  and send a pull request. \n\n\n\n### License\n\nMIT License\n\nCopyright (c) 2025 Hasan Ali \u00d6ZKAN\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Simple File Sharing and Gathering Library",
    "version": "0.1.10",
    "project_urls": {
        "Bug Tracker": "https://github.com/hasanaliozkan-dev/SFSGL/issues",
        "Documentation": "https://hasanaliozkan-dev.github.io/SFSGL/",
        "Homepage": "https://commoncodebase.org",
        "Source Code": "https://github.com/hasanaliozkan-dev/SFSGL/"
    },
    "split_keywords": [
        "file",
        "sharing",
        "gathering",
        "library"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e6326e234abb85828e542941500228ee3d68ff9a20f72747f6660468849d41e2",
                "md5": "8439d2930bddd060c123e5ed876ba9ec",
                "sha256": "aab6aeff53b4c5b03576bef8e0974e2c866a34379fbb7a210a721cc7c29303ed"
            },
            "downloads": -1,
            "filename": "SFSGL-0.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8439d2930bddd060c123e5ed876ba9ec",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 166741,
            "upload_time": "2025-01-29T20:26:37",
            "upload_time_iso_8601": "2025-01-29T20:26:37.499177Z",
            "url": "https://files.pythonhosted.org/packages/e6/32/6e234abb85828e542941500228ee3d68ff9a20f72747f6660468849d41e2/SFSGL-0.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa9167852a791c442853ae6c900a3d700b1795291457956a1854a143e6267db1",
                "md5": "8de3e0853ea02ed4e6db9d5cef3a03e6",
                "sha256": "199bb8090761edb2dfba591d9f968d0a8cc14f19e59ff88279c2fdbe2dad04ae"
            },
            "downloads": -1,
            "filename": "sfsgl-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "8de3e0853ea02ed4e6db9d5cef3a03e6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 169236,
            "upload_time": "2025-01-29T20:26:39",
            "upload_time_iso_8601": "2025-01-29T20:26:39.790211Z",
            "url": "https://files.pythonhosted.org/packages/fa/91/67852a791c442853ae6c900a3d700b1795291457956a1854a143e6267db1/sfsgl-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-29 20:26:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hasanaliozkan-dev",
    "github_project": "SFSGL",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sfsgl"
}
        
Elapsed time: 0.38278s