crtime-0.0.6


توضیحات

crtime: get creation time of files for any platform and no external dependencies.
ویژگی مقدار
سیستم عامل Unix
نام فایل crtime-0.0.6
نام crtime
نسخه کتابخانه 0.0.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Pascal van Kooten
ایمیل نویسنده kootenpv@gmail.com
آدرس صفحه اصلی https://github.com/kootenpv/crtime
آدرس اینترنتی https://pypi.org/project/crtime/
مجوز MIT
## crtime [![PyPI](https://img.shields.io/pypi/v/crtime.svg?style=flat-square)](https://pypi.python.org/pypi/crtime/) [![PyPI](https://img.shields.io/pypi/pyversions/crtime.svg?style=flat-square)](https://pypi.python.org/pypi/crtime/) Get creation time of files for any platform and no external dependencies. ### Caveat Linux requires sudo! There is no way to avoid this, as creation time is not exposed by the kernel. It uses debugfs to mount the filesystem, as the information is actually contained on most linux platforms. Speed: because it does one query for a whole directory, it is roughly 1000x faster than any other method (such as the `xstat` utility that can be found online). ### Installation pip install crtime ### Usage In a shell: ```bash crtime . # 1552938709\tfile_a.py ``` In Python ```python from crtime import get_crtimes_in_dir for fname, date in get_crtimes_in_dir(".", raise_on_error=True, as_epoch=False): print(fname, date) # file_a.py Mon Mar 18 20:51:18 CET 2019 ```


نحوه نصب


نصب پکیج whl crtime-0.0.6:

    pip install crtime-0.0.6.whl


نصب پکیج tar.gz crtime-0.0.6:

    pip install crtime-0.0.6.tar.gz