Skip to main content

Crawl directories with style

Project description

PyPI - Version PyPI - License

Herkules

Crawl directories with style

Illustration of a Hercules beetle Illustration by George Shaw (obtained from Wikimedia Commons)

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-2026 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

herkules-1.3.0.tar.gz (277.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herkules-1.3.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file herkules-1.3.0.tar.gz.

File metadata

  • Download URL: herkules-1.3.0.tar.gz
  • Upload date:
  • Size: 277.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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

Hashes for herkules-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2a5a67bf7a30d815fef99abcb1d55d55e76feb8cb0da9913f54118d213dc225a
MD5 ae682b3d242e6d83bab21bd4e59bc616
BLAKE2b-256 ef455a21c5fd3d98577cc6ea27a055c7c4784ef32897651730fe89945e11dc4f

See more details on using hashes here.

File details

Details for the file herkules-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: herkules-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","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

Hashes for herkules-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf1b7a5af3c3bd69995c47ed22f4b7dc4acd23d43d2af6e4df2d68d61838b86
MD5 99ea6aa9ec8c67de545dbd9574eb4a2f
BLAKE2b-256 909168a9efdd2598e4891ed0d87f3f0f0b22be26a955c00cb77ac291949d6a29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page