Skip to main content

pyfileindex - pythonic file system index

Project description

pyfileindex

PyFileIndex - pythonic file system index

Codacy Badge Python package Coverage Status 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.0.15.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

pyfileindex-0.0.15-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfileindex-0.0.15.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyfileindex-0.0.15.tar.gz
Algorithm Hash digest
SHA256 7a389f03794ed24ed579805d51dcb49a7a9d72ca1d1bb5fe78e719cc6ae050ce
MD5 f44c22c8bf7415f07d5fae5c3779117d
BLAKE2b-256 496449382106600c0488d5e5dfaf76d70b7eda8761c6a56b83f9476a57fc1857

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfileindex-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyfileindex-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c5c100d026d4337891d0484485999ee155f3f6416d176d12fbf7213bef2e9601
MD5 0081d54042e01581f6f25c9a1c5a6a9d
BLAKE2b-256 39d4f6b48f5ef0d9f4bb39292fb2f4a0d93194415c93a997cbdac1d4cad5bc7b

See more details on using hashes here.

Supported by

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