CSV File Info List Generator from Folders and Subfolders
Export files information from directory and subdirectory with process monitor.
Currently only .csv format supported for output/export.
GitHub Repo: https://github.com/sannjayy/python_export_file_info
Installaion
Do the following in your virtualenv:
pip install python-export-file-info
Import:
from python_export_file_info import FileListGenerator
Minimal Code Example:
from python_export_file_info import FileListGenerator
myfolder = FileListGenerator(folder='/home/')
myfolder.generate()
Generate Options:
| Syntax | Default | Options | Description |
|---|---|---|---|
| monitor | False | True / False | Show process bar on terminal. |
| filename | exported_list.csv | any .csv | Output CSV Filename. |
| index | True | True / False | Add ID column. |
| file_prefix | None | any | Prefix of file column. |
| remove_non_ascii | False | True / False | Remove Non ASCII Characters from File Name |
remove_non_asciimay unable to find your files.- /dir/myfile.mp3 >
file_prefix='new/sub/'> new/sub/dir/myfile.mp3 - Default Output Folder: output/ [In Project Root].
Full Code Example:
from python_export_file_info import FileListGenerator
scan_folder_path = r"C:\Users\sannjayy\Desktop"
myfolder = FileListGenerator(folder=scan_folder_path, output_path='newpath/')
myfolder.filter_extensions = ('.mp4', '.mp3')
myfolder.generate(monitor=True, filename='pyfiles.csv')
-
To Filter Files by Extensions [Optional]:
folder.filter_extensions = ('.mp4', '.mp3', '.jpg'). -
To change the default output path use
output_path='newpath/'
DEMO OUTPUT:
Exported demo csv file structure.
| ID | Name | Extention | Size | File | CRC32 (hash) | SH1 (hash) | MD5 (hash) | Modified Date | Created Date |
|---|---|---|---|---|---|---|---|---|---|
| 1 | myfile | .mp3 | 4.29 MB | /dir/myfile.mp3 | 362... | 8dcdb... | 1a717... | 2022-06-19 13:33:12 | 2022-05-19 10:45:12 |
Metadata
Release files for python-export-file-info 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_export_file_info-0.0.6.tar.gz | 5.2 kB | Without provenance | Details for python_export_file_info-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_export_file_info-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for python_export_file_info-0.0.6-py3-none-any.whl |
Total release size: 10.9 kB
Release files / python_export_file_info-0.0.6.tar.gz
| Download URL | python_export_file_info-0.0.6.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0157e1402a326e6fe3cb7c4d94679cc29d66dfe8da6fd650e07d3553f3d527c9
|
|
BLAKE2b-256 checksum How to use checksums |
b4dd84a43e1725727744530e5fb9c1c58d7766a7d3c67a1ef4dcc0a7f771291d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / python_export_file_info-0.0.6-py3-none-any.whl
| Download URL | python_export_file_info-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
782cdaa5eadef4b4030c62d072eb8b1c7d8e615bc5b35188467656b0ca25e5d3
|
|
BLAKE2b-256 checksum How to use checksums |
389afd8c212bec8dd8b2476af15484880aa0d1e75fd05667cf5862ce5daf7eaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for python-export-file-info 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.