Crawl directories with style
Project description
Herkules
Crawl directories with style
Introduction
Herkules is named after the beautiful large Hercules beetle (Dynastes hercules).
It provides a recursive, filtered and sorted list of the contents of a given
root directory. I find it easier to use than Python's os.scandir, but your
mileage may differ.
Installation
Herkules is now developed using Python v3.12. Older versions of Python used to work and will probably still do, but you are on your own here.
Unless you want to test Herkules, simply store it somewhere and import it. For testing, you must install it into a virtual environment. The easiest way is to run
# bash
./script/bootstrap
or
# PowerShell
.\script\bootstrap.ps1
For a very simple "no-options" experience, install from PyPI and execute the included script:
# bash
pip install herkules
herkules "./directory/"
Execution
See example_herkules.py for example code and an explanation of the parameters.
Code of conduct
Please read the code of conduct before asking for help, filing bug reports or contributing to this project. Thanks!
License
Copyright (c) 2022-2025 Martin Zuther
This program is free software and licensed under the terms of the BSD 3-Clause License.
Thank you for using free software!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file herkules-1.2.2.tar.gz.
File metadata
- Download URL: herkules-1.2.2.tar.gz
- Upload date:
- Size: 277.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
894ea7bed80c9735a99aa9a23bc7d34f29842593c0c44f3201c6ee463c240405
|
|
| MD5 |
3436cd55909721e5ae06535e4287a854
|
|
| BLAKE2b-256 |
8f00cb0b8c7aea9d14cf3a0528c4e03256832e67dde66a6e139572b5e939261b
|
File details
Details for the file herkules-1.2.2-py3-none-any.whl.
File metadata
- Download URL: herkules-1.2.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd278740a7a954289999657cfebc10d77037a9dca942194542dca4715565289
|
|
| MD5 |
595223791bb96d15b367484d0f67264f
|
|
| BLAKE2b-256 |
0521ea7521861b2b18af82f43779081c9f726f3ea5c1ccf0a63a8f912e84b4d4
|