File Parsing function
Project description
ak-file
A base module to manipulate files and folders
View Demo · Documentation · Report Bug · Request Feature
Table of Contents
1. About the Project
A base project to simplify file manipulation
1.2. Features
- Can sanitize filename based on windows limitaions
- Can search for and return files with specified filenames
2. Getting Started
2.2. Dependencies
The repo comes pre-compiled with all dependencies.
2.3. Installation
Install my-project with npm
python -m venv .venv
venv\Scripts\activate.bat
pip install ak_file
3. Usage
import ak_file
file = ak_file.File("<path/to/file>")
file.exists()
file.properties()
To sanitize filename
from ak_file import sanitize
sanitize("Dirty_windows_file_name.ext")
To search for files with extension
from ak_file import find_files_w_extension
find_files_w_extension(folder_path="Folder\path", extension="py", search_subdir=True)
8. License
See LICENSE.txt for more information.
9. Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/
10. Acknowledgements
Use this section to mention useful resources and libraries that you have used in your projects.
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
ak_file-0.0.1.tar.gz
(149.8 kB
view hashes)
Built Distribution
Close
Hashes for ak_file-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0136ad45e8a60008e288e159edfd7e677fadc35c0a0f1cd745b87853a53eb8a3 |
|
MD5 | 767d691be1c4f18eebc1a401cf1d9235 |
|
BLAKE2b-256 | 2410beedad92934044a6048639b9392d9c04bf4d525b5e6bee826994b98ddbd7 |