Extended os module
Project description
eos: Extended os module
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'
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
extendedos-0.1.6.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for extendedos-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ad62e2e5922ee90a287b5f6776363c0a079ef66d42bb379402c0e509c493b6 |
|
MD5 | 059ac12a32037deb8eb7a27cda90eff6 |
|
BLAKE2b-256 | cafc92c4ae1e4a0ea9f094d173359ce93fe65f4dbc44fef1342295f5c0b736da |