No project description provided
Project description
PyCabinet: directories as an object
A simple tool for file path management and discovery. The creation of a cabinet object from a file path allows the user to easily filter, index and slice the contents of any directory.
Users of pandas should be familiar with the framework for filtering/slicing demonstrated in the examples below.
How to Install
PyCabinet can be easily installed using pip:
pip install pycabinet
Examples
>>> import pycabinet as pc
>>> c = pc.cabinet(r'/Users/Nick/downloads')
>>> files = c.files()
>>> print(files['.zip'])
['ParquetViewer_v1.1.0.0.zip', 'SQLiteStudio-3.2.1.zip']
>>> print(files['.zip'][1])
'SQLiteStudio-3.2.1.zip'
>>> print(files['Par'])
'ParquetViewer_v1.1.0.0.zip'
>>> files = c.files(full_path=true)
>>> print(files['.zip'])
['/Users/Nick/downloads/ParquetViewer_v1.1.0.0.zip', '/Users/Nick/downloads/SQLiteStudio-3.2.1.zip']
Future Development
The initial plan is to keep PyCabinet doing a simple job; allow users to find file paths of specific files and folders in a systematic and userfriendly way.
If it proves popular and there is demand for it, functionality could be expanded to include the ability to manipulate folders and files.
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
File details
Details for the file pycabinet-1.0.1.tar.gz.
File metadata
- Download URL: pycabinet-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
989ddb5e7d85b3ff7297887c1076735f45aa9461312d3aa1267d0544b3abca53
|
|
| MD5 |
2dea299066f98168564376211b553e41
|
|
| BLAKE2b-256 |
e5fe71445a4574a85a8aa2c3908b8d225f1425f1b33abed9882602ead57843b8
|