Skip to main content
https://img.shields.io/pypi/v/dropbox-index.svg https://img.shields.io/pypi/pyversions/dropbox-index.svg tests Ruff Code style: Black https://img.shields.io/badge/skeleton-2023-informational

Introduction

dropbox-index creates index.html for directory contents shared publicly on Dropbox. Easily share whole content of the directory without the need to send separate links for all the shared files.

After installing, just run this Python script with directory as an argument (and add -R as an option if to include subdirectories):

Usage: dropbox-index [options] DIRECTORY

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -R, --recursive       Include subdirectories [default: False]
  -T TEMPLATE, --template=TEMPLATE
                        Use HTML file as template

ATTENTION: Script will overwrite any existing index.html file(s)!

Example: dropbox-index.py -R -T template.html ~/Dropbox/Public/show will generate index.html for directory (and subdirectories if run in recursive mode). Hidden files (filenames starting with ‘.’) are automatically omitted.

If a directory contains a file with dir-info in it’s name (dir-name, dir-name.txt, dir-name.html, - all these names are valid) the contents of the file will be used in the index.html as and additional information about directory content.

Click on the table’s headings to sort files by name, size, or date (in ascending and descending order).

Template

Templates can be used to generate custom index.html files. Selected template is used to generate all pages, including subdirectories if the script is run in recursive mode.

Templates are just regular HTML files. CSS styles and JavaScript code will be automatically injected. The table with the files list will be injected in place of %(FILES)s.

Use (names are case sensitive!):

  • %(FILES)s: must be included or the files list won’t be injected!

  • %(FAVICON)s: place it inside <head> if you want Dropbox-favicon to be used

  • %(ENCODING)s: system encoding identified by the script

  • %(PATH)s: name of the directory

  • %(DIR_INFO)s: place for additional directory information (from dir-info files Screenshot).

Icons

dropbox-index uses icons from famfamfam’s “Silk” icon set

Acknowledgements

Wojciech ‘KosciaK’ Pietrzok was the original author.

Tommy MacWilliam introduced the template system.

Jason R. Coombs ported the project to Python 3 and maintains it.

Metadata

Release files for dropbox-index 0.6.0

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

Source distribution (sdist)

Source distribution for dropbox-index 0.6.0
File Size Uploaded Provenance
dropbox-index-0.6.0.tar.gz 28.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dropbox-index 0.6.0
File Interpreter ABI Platform
dropbox_index-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.4 kB

Release files / dropbox-index-0.6.0.tar.gz

Download URL dropbox-index-0.6.0.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a5a59f9a699053aad63b32913da4c93f1a6944a5581e5eb4892a10bda6babaf4
BLAKE2b-256 checksum
How to use checksums
31c3def5bb1384b44d91a35cf6f31cf151730c5b79f5c7dcef1265ab22aa5192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / dropbox_index-0.6.0-py3-none-any.whl

Download URL dropbox_index-0.6.0-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de19f87f40cb9fc9424da11b7b72ba7d178fee5aecac008ce31bf5640d1b8b1c
BLAKE2b-256 checksum
How to use checksums
bc221af0eb7da2cb5f76b7866be6247b1199bbe2b69a3f212bcf1e12dcf1903e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for dropbox-index 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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