CodeHint is a package for describing python functions and methods in console during runtime.
CodeHint is a package for describing a function within the python console during runtime. It works in the same way as an advanced IDE does when it displays the hint for function, but pretty-printing to console rather than to a window.
If we have the following function defined somewhere in our code:
>>> def hello(a, b:int, c) -> int: ... """ ... Hello, this is an explanation ... of what this is going to do ... :param a: foo ... :param b: bar example ... :param c: ... :return: True if good, False otherwise. ... """ ... x = a + b * 2*c ... return x
It can be described later on with CodeHint:
>>> from codehint import hint >>> hint(hello)
The result is
------------------------ def hello(a, b:int, c) -> int: Hello, this is an explanation of what this is going to do === Parameters: 3 ======  a (type Any) -> foo  b (type int) -> bar example  c (type Any) -> ======================== Result (type int) -> True if good, False otherwise.
CodeHint currently can only be used to describe the signature of functions or methods.
It is only supported Python 3.4.1 onwards:
sudo pip3 install codehint
It is released under the MIT license.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size codehint-0.0.1.tar.gz (5.3 kB)||File type Source||Python version None||Upload date||Hashes View|