My file-item
Project description
Documentation: https://file-item.readthedocs.io/en/latest/
Installation
pip install file_item
Examples:
from file_item import File basedir = File.basedir(__file__) file_1 = basedir.joinpath('test1.csv') file_2 = File('/home/user/test2.csv') file_3 = File.from_strings('/home/user/', 'test3.csv') print(repr(file_1)) # PosixPath('test1.csv') print(file_2) # /home/user/test2.csv print(file_1 == file_2) # False print(file_3.name) # test3.csv file_1.create_folder() print(File.get_file_name('test*.csv')) # test-.csv
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-item-1.0.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for file_item-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b37dd5738775f63f053ae206434d742f498f198b1e3bbfb6d2cd2923e568200 |
|
MD5 | e9a4f1688c3ea33c98120e7275f718b5 |
|
BLAKE2b-256 | 0183f70936b9f875825053ea41fc34936169f5dbdba899b9978646d9e94757b7 |