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.
Release files for hexlet-immutable-fs-trees 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hexlet-immutable-fs-trees-0.1.8.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hexlet_immutable_fs_trees-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / hexlet-immutable-fs-trees-0.1.8.tar.gz
| Download URL | hexlet-immutable-fs-trees-0.1.8.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
250159064cf2ce3e7da4a8dbe8527ccdef1ebd63c9a6f9e66606736d4dc40dc0
|
|
BLAKE2b-256 checksum How to use checksums |
8e9912436dff85089e50cbba2f499e011ecb0bdb253bfc8104665b4f3811704e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.7 Darwin/19.6.0
|
Release files / hexlet_immutable_fs_trees-0.1.8-py3-none-any.whl
| Download URL | hexlet_immutable_fs_trees-0.1.8-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a4d8afc2c2d17406c0f036fd9ffe200a4c0099bad74acfca74682169d4ca1d7
|
|
BLAKE2b-256 checksum How to use checksums |
268c955b9d29b394515a8552ed2b46bb53c814deeff0a917e6566b7e7550b02c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.7 Darwin/19.6.0
|