Skip to main content

Personal DropBox for Private Network

Project description

""" Since this is almost in the alpha stage, I'm not sure if I should call it a beta or not. But it's almost there. I'm still working on it. So, if you find any issue, please report it. I'll try to fix it as soon as possible. And also for the same reason, I'm punching too many updates (acually bug fixes) in a short time. """

pyrobox 🔥

Note : DEFAULT UPLOAD PASSWORD: SECret

  • you can change it by editing the code (see config class at top)
  • to set password from command line, use -k or --password flag

Status

Downloads

Requesting for more suggesions and ideas

Basic FEATURES

  • File Hosting system (Serve files from local Storage system)
  • Access Shared File System from Multiple Devices

Extra FEATURES

  • 🔽 DOWNLOAD AND VIDEO STREAM WITH PAUSE AND RESUME
  • 🔼 UPLOAD WITH PASSWORD
  • 👌 HTML5 drag and drop uploader
  • 📈 MULTIPLE FILE UPLOAD
  • 📝 RENAME
  • 📁 FOLDER DOWNLOAD as ZIP (uses temp folder)
  • ⏯ VIDEO PLAYER
  • 🔁 DELETE FILE (MOVE TO RECYCLE BIN)
  • 🔥 PERMANENTLY DELETE
  • File manager like NAVIGATION BAR
  • 📑 Right click Context menu (Tap n hold on touch device)
  • 🧨 RELOAD SERVER FROM REMOTE [DEBUG PURPOSE]
  • 🆕 FOLDER CREATION
  • 💬 Pop-up messages UI(from my Web leach repo)
  • 🌐 (Didn't test yet) If you are using REAL IP AND ALLOW PYTHON TO USE PUBLIC NETWORK, YOUR SERVER CAN BE VISIBLE AROUND THE GLOBE. (also vulnerable, since you can't control access yet)
  • 🧬 Clone entire directory from Host to Client with least changes (last modified preserved)
  • 🔜 More comming soon

Server side requirement

  • Python 3.7 or higher. Older support available.[^1]
  • Basic knowledge about Python
  • send2trash, natsort pip package (if missing, will be auto installed when the code runs)

[^1]: [<=3.4 compat] is on the way.

Installation


  • Install Python 3.7 or higher
  • Close older pyrobox process if already running
  1. Install using PIP

On Windows:

  • Open CMD or PowerShell
  • Run pip install pyrobox
  • Run pyrobox to launch the server

On Linux:

  • Open Terminal
  • Run pip3 install pyrobox
  • Run pyrobox to launch the server

CHECK FAQ FOR FUTURE HELP AND ISSUE FIX

Customization

  1. Simply running the code on will create a server on CURRENT WORKING DIRECTORY on Port: 6969

  2. 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/

    • you must allow python in firewall to access network, check FAQ for more help
  3. To change the server running directory,

    • i) either edit the code (see config class at top)
    • ii) or add -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)
  4. To change port number

    • i) just edit the code for permanent change (see config class at top)
    • ii) or add the port number at the end of the command line arg
      • pyrobox 45678 # will run on port 45678
      • pyrobox -d . 45678 # will run on port 45678 in current directory
  5. To specify alternate bind address

    • Add bind add -bind {address} # ie: -bind 127.0.0.2 or -bind 127.0.0.99
  6. To change upload password

    • i) or add -k or --password command line argument when launching the program
      • pyrobox -k "my new password" to launch the server with new password
      • pyrobox -k "" to launch the server without password
      • pyrobox to launch the server with default password (SECret)
    • ii) just edit the code for permanent change (see config class at top)

TODO:

Support for more features

Context menu:

Right click on any file link

FAQ:

Using WSL, "PIP not found"

Run this to install pip3 and add pip to 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.

Using Linux, "PIP not found"

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.

Deleted (Move to Recycle), But WHERE ARE THEY?? [on LINUX & WSL]

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/Trash SO I'D RECOMMAND USING DELETE PARMANENTLY

Running on WINDOWS, but can't access with other device [FIREWALL]

You probably have FireWall ON and Unconfigured. For your safety, I'd recommand 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

Thanks to:

  1. https://github.com/bones7456/bones7456/blob/master/SimpleHTTPServerWithUpload.py (the guy who made upload possible)
  2. https://gist.github.com/UniIsland/3346170 (the guy who made multiple file upload possible)
  3. https://github.com/SethMMorton/natsort (sorting titles)
  4. https://github.com/sandes/zipfly (modified lets you see the zip progress)
  5. https://github.com/sampotts/plyr (improved video player)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrobox-0.7.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

pyrobox-0.7.1-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file pyrobox-0.7.1.tar.gz.

File metadata

  • Download URL: pyrobox-0.7.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for pyrobox-0.7.1.tar.gz
Algorithm Hash digest
SHA256 9d93adc9337c886c0da8948d3a9b90aa795f707e4c0b708b80a874e0be5946a0
MD5 f3166f3fd70c51c05ab703cf68c7c3f5
BLAKE2b-256 178b589f79856a89dee0d068fc313981b6ee4f038b0ff494b1cbec607feb4f19

See more details on using hashes here.

File details

Details for the file pyrobox-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: pyrobox-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for pyrobox-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebff79ff13d7caef2494c4962918b4fbab01024d3c34f187922a14a81056c3bb
MD5 b1a503584cfe6d765eef17d0e8e7c203
BLAKE2b-256 27f54955b6e50fb92c37ce09212ffda8b129e6d3cfdaa3a5c99af5d06fe29d11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page