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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f605cc3e1abc73ba3845d98560e665ab73e64c2732e67a07345e23af744c126f |
|
MD5 | a4f7f41cc435b34f4a665d8382522175 |
|
BLAKE2b-256 | 6874dea0458329913a89b3c028896a69876c02d8e50d360cc42dc439426d2e41 |
Close
Hashes for hexlet_immutable_fs_trees-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4cd7f80413056619116f4796a1d58c8fb767fed1c0cd42811f83d483a1456de |
|
MD5 | a6e98b4f4539a8c474e4d09a6489f17f |
|
BLAKE2b-256 | 0af0ef80e0c462710f6ab577acac3f9979ae1337c88b164debe5cc77682d61fe |