HTML Index
A python script that generates index.html files for file indexing.
Usage
Simply type index <path>.
Replace the <path> with the path to the directory you want to generate indexes for.
For example: index ./
Optional Arguments
-h, --help show this help message and exit
--title TITLE change the title of the index.
(`#DIR`: the directory path)
(default: "Index of #DIR"
--parent_dir PARENT_DIR change the name of the "parent directory"
button in the index.
(default: "parent directory")
--filename FILENAME change the name of the field "File Name" in the table.
(default: "File Name")
--size SIZE change the name of the field "Size" in the table.
(default: "Size")
--modified MODIFIED change the name of the field "Last Modified" in the table.
(default: "Last Modified")
For example:
index --title "檢索中: #DIR"
--parent_dir "往上一層"
--filename "檔案名稱"
--size "大小"
--modified "最後修改日期"
./
Note
Files started with . will be completely ignored.
Files started with __ will be processed, but will not show up in index.html.
Currently this is for wrapping .url files while not showing them.
-
For example:
if I have a
abc.url,
it'll be wrapped into a.abcdirectory with aindex.html
that redirects you to whateverabc.urllinks to
and it'll be shown asabcin the indexbut if I don't want to show
abc.urlin the index
it should be renamed to__abc.url
so it'll still be looked at and wrapped, but not indexed.
Customizing
Under html-index/assets, there are several files.
__file_template.html- This is the template for indexed files, edit it if you want to change how the indexed files look.
__index_template.html- This is the template for the
index.html, edit it if you want to change how the whole index looks.
- This is the template for the
__icons/- Where all the icons are located.
icons.yml- The icon settings.
- Note that it's currently generated by a script and still needs configuration.
- The icon settings.
Metadata
Release files for html-index 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| html-index-1.0.9.tar.gz | 189.3 kB | Without provenance | Details for html-index-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| html_index-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for html_index-1.0.9-py3-none-any.whl |
Total release size: 460.9 kB
Release files / html-index-1.0.9.tar.gz
| Download URL | html-index-1.0.9.tar.gz |
|---|---|
| Size | 189.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b2a603a0ed3ffa2c720c3d1049121d0a7fb90e5b05c4989aeb0d9375ce1bdab
|
|
BLAKE2b-256 checksum How to use checksums |
2a0492ab322e6888d77e4fd4341e2909500fa2fa57c5523fe3a0c4e6aaf40b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2
|
Release files / html_index-1.0.9-py3-none-any.whl
| Download URL | html_index-1.0.9-py3-none-any.whl |
|---|---|
| Size | 271.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6844e0a6ab409151e21d743b71da133287ae43987cf3524cccb414f50abd951f
|
|
BLAKE2b-256 checksum How to use checksums |
6b29bee24a89ea195f3519381f8795c7b26ff28d03adb7b1624ffbf4728d955b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2
|
Security for html-index 1.0.9
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.