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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfileindex-0.1.3.tar.gz.
File metadata
- Download URL: pyfileindex-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9f14eb9c989d55b7a2259d245d62271c40cf8773510e266681a9064f702f09
|
|
| MD5 |
e1bd01c7172fa5d1d58dac6905101a3e
|
|
| BLAKE2b-256 |
fc43038c651ad0713bdaf31e2f376c1b33d79d6def4619f1031300adb21334a8
|
Provenance
The following attestation bundles were made for pyfileindex-0.1.3.tar.gz:
Publisher:
deploy.yml on pyiron/pyfileindex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfileindex-0.1.3.tar.gz -
Subject digest:
3b9f14eb9c989d55b7a2259d245d62271c40cf8773510e266681a9064f702f09 - Sigstore transparency entry: 853319881
- Sigstore integration time:
-
Permalink:
pyiron/pyfileindex@bd2766bf70d0027788a474ad0f6c16035af696a1 -
Branch / Tag:
refs/tags/pyfileindex-0.1.3 - Owner: https://github.com/pyiron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@bd2766bf70d0027788a474ad0f6c16035af696a1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyfileindex-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyfileindex-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11f4f16f07f58a2f5a4b337325c021abd6787e90e3eddd4933d4b43c1811793e
|
|
| MD5 |
9707036388765ec65b3285f77d61e6dd
|
|
| BLAKE2b-256 |
83176deceefebe8556e28c4919429b41867c94f6b468bcb6ec6403ef3117f9ab
|
Provenance
The following attestation bundles were made for pyfileindex-0.1.3-py3-none-any.whl:
Publisher:
deploy.yml on pyiron/pyfileindex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfileindex-0.1.3-py3-none-any.whl -
Subject digest:
11f4f16f07f58a2f5a4b337325c021abd6787e90e3eddd4933d4b43c1811793e - Sigstore transparency entry: 853319919
- Sigstore integration time:
-
Permalink:
pyiron/pyfileindex@bd2766bf70d0027788a474ad0f6c16035af696a1 -
Branch / Tag:
refs/tags/pyfileindex-0.1.3 - Owner: https://github.com/pyiron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@bd2766bf70d0027788a474ad0f6c16035af696a1 -
Trigger Event:
push
-
Statement type: