Metadata-Version: 2.1
Name: dropbox-index
Version: 0.6.0
Summary: 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 each file.
Home-page: https://github.com/jaraco/dropbox-index
Author: Wojciech 'KosciaK' Pietrzok
Author-email: kosciak@kosciak.net
Maintainer: Jason R. Coombs
Maintainer-email: jaraco@jaraco.com
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8
License-File: LICENSE
Requires-Dist: importlib-resources
Provides-Extra: docs
Requires-Dist: sphinx >=3.5 ; extra == 'docs'
Requires-Dist: jaraco.packaging >=9.3 ; extra == 'docs'
Requires-Dist: rst.linker >=1.9 ; extra == 'docs'
Requires-Dist: furo ; extra == 'docs'
Requires-Dist: sphinx-lint ; extra == 'docs'
Provides-Extra: testing
Requires-Dist: pytest >=6 ; extra == 'testing'
Requires-Dist: pytest-checkdocs >=2.4 ; extra == 'testing'
Requires-Dist: pytest-cov ; extra == 'testing'
Requires-Dist: pytest-enabler >=2.2 ; extra == 'testing'
Requires-Dist: pytest-ruff ; extra == 'testing'
Requires-Dist: pytest-black >=0.3.7 ; (platform_python_implementation != "PyPy") and extra == 'testing'
Requires-Dist: pytest-mypy >=0.9.1 ; (platform_python_implementation != "PyPy") and extra == 'testing'

.. image:: https://img.shields.io/pypi/v/dropbox-index.svg
   :target: https://pypi.org/project/dropbox-index

.. image:: https://img.shields.io/pypi/pyversions/dropbox-index.svg

.. image:: https://github.com/jaraco/dropbox-index/workflows/tests/badge.svg
   :target: https://github.com/jaraco/dropbox-index/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: Black

.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2023-informational
   :target: https://blog.jaraco.com/skeleton

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.
