Skip to main content

No project description provided

Project description

Clocky

Clocky is a pseudo-port of GNU Time, written in Python. The output generally looks like time.

Certain format codes may not work exactly like they do in GNU time.

Installation

This will install the clocky cli:

pip install clocky

Usage

Clocky can be run via clocky or python -m clocky

usage: clocky [-h] [-p] [-o OUTPUT] [-f FORMAT] [-a] [-v] [-q] [-V] [-g] ...

A pseudo-port of GNU time to Python. You can look at the man page of time to
get some info about the args here. Certain format codes are not supported and
will return a ? in place of an actual value.

positional arguments:
  cmd                   The command to time.

options:
  -h, --help            show this help message and exit
  -p                    Use the portable output format.
  -o OUTPUT, --output OUTPUT
                        Do not send the results to stderr, but overwrite the
                        specified file.
  -f FORMAT, --format FORMAT
                        Specify output format, possibly overriding the format
                        specified in the environment variable TIME.
  -a, --append          (Used together with -o.) Do not overwrite but append.
  -v, --verbose         Give very verbose output about all the program knows
                        about.
  -q, --quiet           Don't report abnormal program termination (where
                        command is terminated by a signal) or nonzero exit
                        status.
  -V, --version         Print version information on standard output, then
                        exit successfully.
  -g                    A clocky-specific extension. When set, tries to act
                        similar to gnu time in terms of output. Otherwise by
                        default (without -f) clocky acts like bash's time
                        command.

Simple Example

Clocky can be used to time function execution (just like the time command):

> clocky echo "Hello World"
Hello World

real    0m0.007s
user    0m0.000s
sys     0m0.000s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clocky-0.0.5.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clocky-0.0.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file clocky-0.0.5.tar.gz.

File metadata

  • Download URL: clocky-0.0.5.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for clocky-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c442fc0f66361fdcc3699a6a95cde41b6c54f3ded0cb651b7d771b5825f0e2d1
MD5 87965fbccb63393a5613197915a22b65
BLAKE2b-256 697300c78b066ef1e3e6dd6206cc7a28ddddcbcfe1b518c81405264125be5b3f

See more details on using hashes here.

File details

Details for the file clocky-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: clocky-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for clocky-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 92501fa6dcb61fb565651e2f6926839352d041d38c3c8c942968942e84fa62d1
MD5 ca4d4d17357537d0fdd846d31258fbdf
BLAKE2b-256 a90e9b8516fe8053a6666275a68faddf4178deb0cb5c40f54e08481ff78689a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page