معرفی شرکت ها


cmdtime-0.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Similar to the Linux time utility for timing commands. Useful under Windows.
ویژگی مقدار
سیستم عامل -
نام فایل cmdtime-0.0.4
نام cmdtime
نسخه کتابخانه 0.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ravi Chandran
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/ravi-chandran/cmdtime
آدرس اینترنتی https://pypi.org/project/cmdtime/
مجوز -
[![Build Status](https://travis-ci.org/ravi-chandran/cmdtime.svg?branch=master)](https://travis-ci.org/ravi-chandran/cmdtime) # cmdtime - Similar to the Linux `time` utility for measuring how long a command takes to run - Useful for the Windows Command Prompt - Uses pure Python - No point using this under Linux - No need to install Cygwin # Installation - Requires Python 3.5+. - Install from PyPi: ```bat python -m pip install cmdtime ``` # Usage Examples - Time a Python script ```bat cmdtime python whateverscript.py ``` - Time anything else ```bat cmdtime dir ``` # Notes For some machine learning projects, I use the Windows command prompt to execute scripts. I use Windows so that Tensorflow can access my PC's NVIDIA GPU. (Unfortunately, using Linux under VirtualBox can't access GPUs.) In addition, there is no built-in equivalent of the Linux `time` utility in the Windows 10 command prompt. Yes, there are other options such as those discussed [here](https://stackoverflow.com/questions/673523/how-do-i-measure-execution-time-of-a-command-on-the-windows-command-line) and [here](https://www.raymond.cc/blog/measure-time-taken-to-complete-a-batch-file-or-command-line-execution/). But they either require installing old binaries that I'd rather avoid, or involve more cumbersome approaches. I wanted something where I can just prefix the command I want to run similar to the Linux `time` utility. Hence the creation of this really trivial but useful Linux `time`-like utility which I'm calling `cmdtime`. And it's pure Python. Probably someone else has already created such a utility under PyPi, but I couldn't find it. ## Developer Notes ```bat python setup.py sdist ``` - [Work in development mode](https://packaging.python.org/guides/distributing-packages-using-setuptools/#working-in-development-mode): ```bat python -m pip install --editable . ``` - Push to TestPyPI ```bat python -m twine upload --repository testpypi dist/* ``` - Push to PyPI ```bat python -m twine upload dist/* ``` ## Testing Notes Tests are written to support both Windows and Linux, although this utility is not really needed in Linux. - Install `pytest`: ```bat python -m pip install --upgrade pytest ``` - Local testing: ```bat pytest -v ``` - Travis CI: - Right now, Travis CI doesn't support Python on Windows, so this can only be tested on Linux. - The tests only work on Python 3.7 or later as the `subprocess.run()` had significant changes in parameters (`capture_output`, `text`) not available in earlier versions. While it's possible to create version-specific test code to be compatible with earlier versions, it's not worth the effort...


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl cmdtime-0.0.4:

    pip install cmdtime-0.0.4.whl


نصب پکیج tar.gz cmdtime-0.0.4:

    pip install cmdtime-0.0.4.tar.gz