File System Tree
Project description
python-immutable-fs-trees
Install
pip install hexlet-immutable-fs-trees
Usage example
>>> import hexlet.fs as fs
>>> fs.is_file(fs.mkfile('config'))
True
>>> fs.is_directory(fs.mkdir('etc'))
True
>>> tree = fs.mkdir('etc', [fs.mkfile('config'), fs.mkfile('hosts')])
>>> children = fs.get_children(tree)
>>> fs.get_name(children[0])
'config'
>>> list(map(lambda item: fs.get_name(item), children))
['config', 'hosts']
>>>
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).
See most active contributers on hexlet-friends.
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
Close
Hashes for hexlet-immutable-fs-trees-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff4ab05a21c0d2ab7b288d56d568167fed8b5b4c8cf606054fb39d04177544e |
|
MD5 | 117631f322e2ff48bc7c07d0d659f08a |
|
BLAKE2b-256 | b82524fe0c2beb2e6ba2628700ec2e2b1f42e4720ded10639cf016309c6d97b2 |
Close
Hashes for hexlet_immutable_fs_trees-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c30db3d0be51a86f1c2208fde299e94fc37c3b7ee984aca44e7849739863db90 |
|
MD5 | 9cdf354719bb18c0f820ac3a442c3368 |
|
BLAKE2b-256 | 6d4dcdfd2beaa38c3781f9aadedac691f855583f1a55ba987194adc0475d3710 |