Pistachio aims to simplify reoccurring tasks when working with the file system.
Project description
pistachio
Pistachio aims to simplify reoccurring tasks when working with the file system.
Developing
To install pistachio, along with the tools you need to develop and run tests, run the following in your virtualenv:
$ pip install -e .[dev]
Install
You can install pistachio by running the following command.
$ pip install pistachio
Usage
To use pistachio you can inport the module by running the following commands.
>>> import pistachio
Describe
Method to return a description for the resource.
>>> pistachio.describe('README.md')
{'abspath': '/path/to/file/README.md', 'exists': True, 'is_directory': False, 'is_file': True, 'is_symlink': False, 'name': 'README.md'}
Exists
You can confirm if a directory, file or symbolic link exists using the following method.
>>> pistachio.exists('README.md')
True
Is Directory
Is the resource a directory? True or False.
>>> pistachio.is_directory('README.md')
False
Is File
Is the resource a file? True or False.
>>> pistachio.is_file('README.md')
True
Is Symlink
Is the resource a symbolic link? True or False.
>>> pistachio.is_symlink('README.md')
False
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 pistachio-0.1.0.tar.gz.
File metadata
- Download URL: pistachio-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d181ee1db205b00c5693e25821b05f623c6226647ed871d07c80f95afd2dcee3
|
|
| MD5 |
55d69c83d1a35740b1577d6dc9c54d02
|
|
| BLAKE2b-256 |
5c975a80bc402d1a972f4688877fcf649894970c5645ba3a980738d1b58d0e79
|
File details
Details for the file pistachio-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pistachio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9299e95e76834aca0a1f23277c3b226a580236a624a6b697b9026e12c7f40039
|
|
| MD5 |
ce53c030cdad68fb54dff7c986e8fbb9
|
|
| BLAKE2b-256 |
d0b388885a2a830638771c9fd711b951c7d97c2f9a5b507e1a4e8707fadb1f0e
|