Skip to main content

sharemydir

PyPI Python Version License GitHub Release Downloads

Effortlessly serve any folder over HTTP with zero configuration, featuring a mobile-friendly web interface, QR code access, and downloadable folders as ZIP files. Perfect for developers, testers, and anyone needing to share files quickly.

Features

  • Instant HTTP Server: Serve any folder with a single command.
  • Automatic IP Detection: Works seamlessly on your local network.
  • Mobile-Friendly: Access via QR code or URL on any device.
  • Download Folders as ZIP: Easily share entire directories.
  • Individual File Downloads: Grab single files directly from the browser.
  • Clean Web UI: Responsive, intuitive interface for all devices.
  • Zero Config CLI: No setup, just run and share.
  • Elegant Terminal Output: Clear URLs and QR codes for quick access.

Installation

Install sharemydir directly from PyPI:

pip install sharemydir

Alternatively, clone the repository for development:

git clone https://github.com/anilrajrimal1/sharemydir.git
cd sharemydir

Dependencies

  • Requires qrcode for QR code generation:
    pip install qrcode
    

Usage

Serve the current directory:

sharemydir

Serve a specific folder on a custom port:

sharemydir /path/to/folder -p 9000

Example Output

+------------------------------------------------------------+
| Serving folder: /home/anil/demo/sharemydir-demo               |
| URL: http://192.168.1.42:9000/                             |
| Scan this QR code for mobile access:                       |
+------------------------------------------------------------+

Open the URL in a browser or scan the QR code on your mobile device.

Web Interface

  • Table View: Clean, organized display of files and folders.
  • Download Options: Buttons for downloading files or entire folders as ZIP.
  • Responsive Design: Optimized for desktops, tablets, and phones.

CLI Options

Option Description Default
FOLDER Folder to serve Current (.)
-p, --port Port for the server 8080

Graceful Shutdown

Stop the server cleanly with Ctrl+C.

Development

To run locally for development:

python sharemydir.py

Contributing

We welcome contributions! To get started:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feat/name-your-feature).
  3. Commit your changes (git commit -m 'add amazing feature').
  4. Push to the branch (git push origin feat/name-your-feature).
  5. Open a Pull Request.

Releases

Check out the Releases page for the latest updates, changelogs, and version history.

License

Distributed under the MIT License. © 2025 Anil Raj Rimal. See LICENSE for more information.

Acknowledgments

  • Built with 💖 by Anil Raj Rimal.
  • Powered by Python and open-source libraries.

Metadata

Release files for sharemydir 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sharemydir 1.0.3
File Size Uploaded
sharemydir-1.0.3.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sharemydir 1.0.3
File Interpreter ABI Platform
sharemydir-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / sharemydir-1.0.3.tar.gz

Download URL sharemydir-1.0.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
259f1b8b73fb8e53eff381e5daf430bca6c18c2fcb67e633e4b9d75fc0a18335
BLAKE2b-256 checksum
How to use checksums
0214276cd12e4492a2dad20e4f2c51cf19789879233df2cc797f0c578d888f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / sharemydir-1.0.3-py3-none-any.whl

Download URL sharemydir-1.0.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a59fe22738fcde05d54ba64e2f97df9b01dd9d181d8345cb9fab0b8172b96d38
BLAKE2b-256 checksum
How to use checksums
53e4fb3ad25ee093f4141aeb2ad6aba69ca9be02a560aaf5660261dba09e4a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page