Skip to main content

A utility to recursively locate files by name.

Project description

mp_locate

mp_locate is a simple Python library for finding files by name recursively from a base directory.

✨ Features

  • Recursive file search
  • Configurable base path (or use the current directory)
  • Support for returning single or multiple found files

⚡ Installation

pip install mp_locate

Or install locally:

pip install -e .

📄 Usage example

from mp_locate import find_file

# Find the first file with the specified name
path = find_file("data.csv")

# Return all found paths
all = find_file("data.csv", return_all=True)

✉ License

MIT. See the LICENSE file for more details.

mp_locate Portuguese

mp_locate é uma biblioteca Python simples para localizar arquivos por nome de forma recursiva a partir de um diretório base.

✨ Características

  • Busca recursiva por arquivos
  • Caminho base configurável (ou usa o diretório atual)
  • Suporte a retorno único ou múltiplos arquivos encontrados

⚡ Instalação

pip install mp_locate

Ou instale localmente:

pip install -e .

📄 Exemplo de uso

from mp_locate import find_file

# Localizar o primeiro arquivo com nome especificado
caminho = find_file("dados.csv")

# Retornar todos os caminhos encontrados
todos = find_file("dados.csv", retornar_todos=True)

✉ Licença

MIT. Veja o arquivo LICENSE para mais detalhes.

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

mp_locate-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

mp_locate-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mp_locate-0.1.3.tar.gz.

File metadata

  • Download URL: mp_locate-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for mp_locate-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c54a1410f4785e871cf091c7a0774d78576f712d9bf42a3400e0d00d66663f5d
MD5 dd199e3237bc9c613f1d3dafe299f02f
BLAKE2b-256 974fef4bb84ba94297ecaabe5cef42cd761e16deab20d65039ac2c1adde1bf55

See more details on using hashes here.

File details

Details for the file mp_locate-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mp_locate-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for mp_locate-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b58c1eb4190452a40e4af02facbe1a4a8e991d7a808206f58173b8a90aeeb69
MD5 b156106eaa7bfd31a48c8de0d00b4b31
BLAKE2b-256 021a9c64b90524a7ec252217a598c7d18f99fcde7d13e93fcb4851f81907e4b4

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