Skip to main content

Walkmate

Traverse the file tree.

Installation

pip install walkmate

Usage

Given a multi-level directory structure:

.
├── one.py
├── two.py
└── child
    └── three.py

We can list all the files tree:

>>> tree("test/fixtures")
["one.py", "two.py", "child/three.py"]

Filter with a regex:

>>> tree("test/fixtures", r"one\.py$")
["one.py"]

Add exlude patterns too:

>>> tree("test/fixtures", r"\.py$", [r"one\.py$"])
["two.py", "child/three.py"]

Specify the maximum depth:

>>> tree("test/fixtures", depth=1)
["one.py", "two.py"]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

walkmate-1.5.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

walkmate-1.5.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file walkmate-1.5.0.tar.gz.

File metadata

  • Download URL: walkmate-1.5.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for walkmate-1.5.0.tar.gz
Algorithm Hash digest
SHA256 626c5e84d589fd1e107d2e0d8f5f3aa0e2b251f72bfe38c4d7694c3158f49117
MD5 b720c974d003c3cf9fd7741a43fad33b
BLAKE2b-256 5269c69095be5ccbf81603f3c45509facf37b16eb1dec4254d22e9fd8befba81

See more details on using hashes here.

File details

Details for the file walkmate-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: walkmate-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for walkmate-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5024879da3e9de4ab67271d99279ed849b94b3c2c709c48dc2b3fd81bb75e659
MD5 0f7471999f37ac389738e4a6a74e9a75
BLAKE2b-256 dc5b1cec5d86b4556deaa5be234fccba5d2bbec00bd6420b4ed4467ed4e10624

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 files

1.4.0

2 files

1.3.1

2 files

1.2.2

2 files

1.1.0

2 files

Supported by

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