https://github.com/iory/eos
eos: Extended os module
https://github.com/iory/eos
makedirs os pip python
Last synced: 6 days ago
JSON representation
eos: Extended os module
- Host: GitHub
- URL: https://github.com/iory/eos
- Owner: iory
- License: mit
- Created: 2020-03-27T09:55:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T09:13:13.000Z (over 2 years ago)
- Last Synced: 2025-05-20T15:14:42.468Z (about 1 month ago)
- Topics: makedirs, os, pip, python
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eos: Extended os module
[](https://github.com/iory/eos/actions)
## Install
```
pip install extendedos
```## Quick Start
```
import os.path as osp
from eos import makedirs
makedirs('/tmp/example/1/2')
osp.exists('/tmp/example/1/2')
# True
from eos import make_fancy_output_dir
make_fancy_output_dir('/tmp/result')
# '/tmp/result/iory-mac-2020-03-27-19-08-17-191116-46504'
make_fancy_output_dir(time_format=None)
# '/tmp/vm7bwis1'
``````
from eos import measure
import time
with measure('measure_example'):
time.sleep(1.0)
# measure_example: 00:00:01.000574
``````
from eos import current_time_str
current_time_str()
# '2021-01-08-07-42-12-301381'
```