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.5.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for extendedos-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f5098981ad2bf8064c27f752aba496a7442a13368c4b64e11a3e8958cb433e9 |
|
MD5 | 72ce0484389ab6924df5cd4ba0ae24aa |
|
BLAKE2b-256 | 7a27fa716d4a680bd47aeed00d73567bd44c6a37371d3dadc29d197905568c2b |