This is an example to display how to use RESTful API to execute CRUD operations, such as uploading files, download files, create remote folder, login, ... in File Browser, which is a popular open source web file explorer.
Provide simple CRUD of FileBrowser operations in Python, and simply profile the uploading performance with sequential and concurrent manners.
- Python: v3.9.5
- FileBrowser Docker Image: v2.23.0
The lib folder contains all the definitions for RESTful API operations. Feel free to incorporate it into your project, and any contribution is also welcome!
- First, run
run.shto start the FileBrowser docker container - Config the environment variables in
.env - Move your large files such as SVGs or videos to
/test_data/large_filesfolder - Run
test_fb.py, it will automatically create a new folder namedTESTin FileBrowser root directory, and execute some CRUD and uploading operations to test the processing flow - Run
profile_performance.pyto see how much time does the FileBrowser take to upload large files
Test 440 SVG files with total 1.5GB size, and it takes 20 seconds to uploading in sequential manner, and 14 seconds to uploading in concurrent manner.