r2
Free open-source Cloudflare R2 desktop client and S3 GUI for macOS, Windows, and Linux. Manage Cloudflare R2, AWS S3, M…
Turn your computer into Local File Hosting Server. Improved version on Python 3 http.server with Upload and LOTS of FEA…
git clone https://github.com/RaSan147/pyrobox.gitRaSan147/pyroboxNote : DEFAULT UPLOAD PASSWORD: SECret
config class at top)-k or --password flag[Email Me: ratul.hasan.coder |at| gmail |dot| com]
File manager like NAVIGATION BARsend2trash, natsort python modulesCMD or PowerShellpip install -U pyroboxpyrobox to launch the server on the Terminal Current Working Directory.Terminalpip3 install -U pyroboxpyrobox to launch the server on the Terminal Current Working Directory.Simply running the code on will create a server on CURRENT WORKING DIRECTORY on Port: 6969
On browser (on device under same router/wifi network), go to deviceIP:port_number to see the output like this: http://192.168.0.101:6969/
To change the server running directory,
config class at top)-d or --directory command line argument when launching the program
pyrobox -d . to launch the server in current directory (where the file is)pyrobox -d "D:\Server\Public folder\" (Use Double-Quotation while directory has space)pyrobox -d "D:/Server/Public folder" (Forward or backward slash really doesn't matter, unless your terminal thinks otherwise)To change port number
config class at top)pyrobox 45678 # will run on port 45678pyrobox -d . 45678 # will run on port 45678 in current directoryTo specify alternate bind address
-bind {address} # ie: -bind 127.0.0.2 or -bind 127.0.0.99To change upload password
-k or --password command line argument when launching the program
pyrobox -k "my new password" to launch the server with new passwordpyrobox -k "" to launch the server without passwordpyrobox to launch the server with default password (SECret)config class at top)Optional configurations
usage: pyrobox [--password PASSWORD] [--no-upload] [--no-zip] [--no-update] [--no-delete] [--no-download] [--read-only] [--view-only] [--bind ADDRESS] [--directory DIRECTORY] [--version] [-h] [port]
| arg value | Description |
|---|---|
port |
Specify alternate port [default: 6969] |
Flags/Arg value |
Description |
|---|---|
--password PASSWORD, -k PASSWORD |
Upload Password (GUESTS users and Nameless server users must use it to upload files)(default: SECret) |
--directory DIRECTORY, -d DIRECTORY |
Specify alternative directory [default: current directory] |
--bind ADDRESS, -b ADDRESS |
Specify alternate bind address [default: all interfaces (0.0.0.0)] |
| --version, -v | show program's version number and exit |
| -h, --help | show this help message and exit |
| --no-extra-log | Disable file path and [= + - #] based logs (default: False) |
--zip-limit, -zl ZIP_LIMIT |
Set the limit of zip file size in bytes/KB/MB/GB/TB (default: 6GB) |
| Flags | Description |
|---|---|
| --no-upload, -nu | Files can't be uploaded (default: False) |
| --no-zip, -nz | Disable Folder->Zip downloading (default: False) |
| --no-modify, -nm | Disable File Modification (ie: renaming, overwriting existing files) (On upload, if file exists, will add a number at the end) (default: False) |
| --no-delete, -nd | Disable File Deletion (default: False) |
| --no-download, -ndw | Disable File Downloading [videos won't play either] (default: False) |
| --read-only, -ro | Read Only Mode disables upload and any modifications ie: rename, delete (default: False) |
| --view-only, -vo | Only allowed to see file list, nothing else (default: False) |
You must give a
--name [Name]and--admin-id [USER Name],--admin-pass [PASSWORD]to create an admin account. If guest not allowed--no-guest-allowedUser must login to access the server. You can also disable signing up--no-signup(Only admin can add user from admin page). Admin can also update user permission from admin page.
Flags/Arg value |
Description |
|---|---|
--name NAME, -n NAME |
Name of the user (default: None) |
--admin-id ADMIN_ID, -aid ADMIN_ID |
Admin ID (default: None) |
--admin-pass ADMIN_PASS, -ak ADMIN_PASS |
Admin Password (default: None) |
| --no-signup, -ns | Disable Signing up (Only admin can add user from admin page)(default: False) |
| --no-guest-allowed, -ng | Disable Guest Access (default: False) |
pyrobox -n "My Server1" -aid "admin" -ak "admin123" -k "Guest_pass" # will allow anyone to access the server, but they must use Guest_pass to upload filespyrobox -n "My Server2" -aid "admin" -ak "admin123" -ng # If someone wants to access the server they must sign up via signup page first. No guest allowedpyrobox -n "My Server3" -aid "admin" -ak "admin123" -ng -ns # Only admin can access the server. No guest allowed, no signup allowed. Admin can add user from admin pagefrom pyrobox import clone clone.main()
clone.py in the pyrobox module.Run this to install
pip3and addpipto path
sudo apt -y purge python3-pip
sudo python3 -m pip uninstall pip
sudo apt -y install python3-pip
pip3 install --upgrade pip
echo "export PATH=\"${HOME}/.local/bin:$PATH\"" >>"${HOME}"/.bashrc
Re-running the file should work.
Run this to install
pip3
sudo apt -y purge python3-pip sudo python3 -m pip uninstall pip sudo apt -y install python3-pip pip3 install --upgrade pip
Re-running the file should work.
Actually the feature is working fine, unfortunately NO-GUI mode linux and WSL don't recycle bin, so you can't find it! And to make things worse, you need to manually clear the recyle bin from
~/.local/share/TrashSO I'D RECOMMAND USING DELETE PARMANENTLY
You probably have FireWall ON and not configured. For your safety, I'd recommend you to allow Python on private network and run the server when your network is Private. IN SHORT: ALLOW PYTHON ON FIREWALL, RUN THE SERVER
note: allowed on private but using public network on firewall will cause similar issue, you gotta make both same or allow python both on public and private
Disclaimer: the owner or the programmers or any content of this repository hold no responsibility for any kind of data loss or modification on your system and do not warrenty for such actions. I tried my best to prevent all sorts of ways (that I am currently aware of) to prevent data loss or unwanted data modification. See Data Safety Measures taken on this projects to prevent unwanted data loss.
[<=3.4 compatibility] is on the way. ↩
more like this
search projects, people, and tags