Skip to main content

pyfileindex - pythonic file system index

Project description

pyfileindex

PyFileIndex - pythonic file system index

Pipeline codecov Binder

The pyfileindex helps to keep track of files in a specific directory, to monitor added files, modified files and deleted files. The module is compatible with Python 3.7 or later but restricted to Unix-like system - Windows is not supported.

Preview

Installation

The pyfileindex can either be installed via pip using:

pip install pyfileindex

Or via anaconda from the conda-forge channel

conda install -c conda-forge pyfileindex

Usage

Import pyfileindex:

from pyfileindex import PyFileIndex 
pfi = PyFileIndex(path='.')

Or you can filter for a specifc file extension:

def filter_function(file_name):
    return '.txt' in file_name
    
pfi = PyFileIndex(path='.', filter_function=filter_function)

List files in the file system index:

pfi.dataframe 

Update file system index:

pfi.update()

And open a subdirectory using:

pfi.open(path='subdirectory')

For more details, take a look at the example notebook: https://github.com/pyiron/pyfileindex/blob/main/notebooks/demo.ipynb

License

The pyfileindex is released under the BSD license https://github.com/pyiron/pyfileindex/blob/main/LICENSE . It is a spin-off of the pyiron project https://github.com/pyiron/pyiron therefore if you use the pyfileindex for your publication, please cite:

@article{pyiron-paper,
  title = {pyiron: An integrated development environment for computational materials science},
  journal = {Computational Materials Science},
  volume = {163},
  pages = {24 - 36},
  year = {2019},
  issn = {0927-0256},
  doi = {https://doi.org/10.1016/j.commatsci.2018.07.043},
  url = {http://www.sciencedirect.com/science/article/pii/S0927025618304786},
  author = {Jan Janssen and Sudarsan Surendralal and Yury Lysogorskiy and Mira Todorova and Tilmann Hickel and Ralf Drautz and Jörg Neugebauer},
  keywords = {Modelling workflow, Integrated development environment, Complex simulation protocols},
}

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

pyfileindex-0.1.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

pyfileindex-0.1.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfileindex-0.1.4.tar.gz.

File metadata

  • Download URL: pyfileindex-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfileindex-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2c78ddca80381832cbda63ced079f906754f62befe0c40dfe684271fafc3352c
MD5 7c85b82ff07cf1d6330e454a310f29e9
BLAKE2b-256 4854f9dcbe451382f5ada3740d576595536e09ad8f49699f15bef1a7b70808a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfileindex-0.1.4.tar.gz:

Publisher: deploy.yml on pyiron/pyfileindex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfileindex-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyfileindex-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfileindex-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3aca2003e19121ae43cd269c64869334e45fcf3c4f05ef5252ca410ba24d5e9
MD5 3abd02f76c9044a9427bdf2c787c55a1
BLAKE2b-256 c4435a7a1a787bdd1cbbad9034e74e144371d60589a16bc1059a0c79a776912f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfileindex-0.1.4-py3-none-any.whl:

Publisher: deploy.yml on pyiron/pyfileindex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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