pyfileindex - pythonic file system index
Project description
pyfileindex
PyFileIndex - pythonic file system index
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyfileindex-0.0.17.tar.gz
.
File metadata
- Download URL: pyfileindex-0.0.17.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c7d8d4a1b82c13202864a7dce7c7613a09070a7485a1284c294c0d3577630b |
|
MD5 | 41b9ba75833bfffd5512b036645f6b52 |
|
BLAKE2b-256 | 78a15e6a71d0eb24e5cd04712a5240cc918c2105f5870571d0d2032aef89ac00 |
File details
Details for the file pyfileindex-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: pyfileindex-0.0.17-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63555590d26897e418792ddb73d0e2fabb8dbf01907324d6356afa888ec51de0 |
|
MD5 | 0406ea91ff69e078e4f665a5d096c881 |
|
BLAKE2b-256 | eeaa1c3b4fb8fc91232ab94ed35cefd13b43e10c3d2cc5b55b3a92f79c898d72 |