dir_ops
Handy directory operations along with homemade Dir/Path classes
Installation
pip install kabbes_dir_ops
Usage
For more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.
import dir_ops as do
do.join( 'C', 'Path', 'To', 'File' )
>>> 'C:/Path/To/File'
do.path_to_dirs( 'C:/Path/To/File/asdf.txt' )
>>> [ 'C', 'Path', 'To', 'File', 'asdf.txt' ]
Path_inst = do.Path( 'C:/Path/To/File/asdf.txt')
print( Path_inst.exists() )
>>> True
Path_inst.print_atts() #from parent_class dependency
>>>
---Path Class---
path: C:/Path/To/File/asdf.txt
dirs: ['C:', 'Path', 'To', 'File', 'asdf.txt']
ending: txt
size: None
Author
James Kabbes
Metadata
Release files for kabbes-dir-ops 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kabbes_dir_ops-0.10.0.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kabbes_dir_ops-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / kabbes_dir_ops-0.10.0.tar.gz
| Download URL | kabbes_dir_ops-0.10.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6c5825f66c31cae95caddd21e74a088c0931f2ca56c20b99e475f8ccc1a48f6
|
|
BLAKE2b-256 checksum How to use checksums |
b3c5e409aa2fe341d64bd97fef7f9ad5f63229b75997f2c9f679255a0e2d8719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Release files / kabbes_dir_ops-0.10.0-py3-none-any.whl
| Download URL | kabbes_dir_ops-0.10.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6047889cfc0d94a03866ecb7f921007cb9d7c92f440921ae7ed34b2519054de1
|
|
BLAKE2b-256 checksum How to use checksums |
825af875de502b1b416b930e3aa5c3bf8527d72af8b4c9a74896e87ab5f00a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|