python_cheatsheet package

Module contents

python_cheatsheet.a.public_fn_with_googley_docstring(name, state=None)[source]

This function does something.

Args:
name (str): The name to use.
Kwargs:
state (bool): Current state to be in.
Returns:

int. The return code:

0 -- Success!
1 -- No good.
2 -- Try again.
Raises:
AttributeError, KeyError

A really great idea. A way you might use me is

>>> print public_fn_with_googley_docstring(name='foo', state=None)
0

BTW, this always returns 0. NEVER use with MyPublicClass.

Main module.

Main module.

python_cheatsheet.c.calendar_examples()[source]
python_cheatsheet.d.datetime_examples()[source]

docstring here

python_cheatsheet.d.dictionary_manipulation()[source]
python_cheatsheet.e.exception_example()[source]

Main module.

python_cheatsheet.o.os_walk_current_dir()[source]

Main module.

python_cheatsheet.t.timedelta()[source]
python_cheatsheet.t.timezone_example()[source]
python_cheatsheet.u.unit_testing()[source]

This function shows an example unit test (so too though does this module!)

Args:

Returns:

int. The return code:

0 -- Success!
1 -- No good.
2 -- Try again.

Raises:

A really great idea in any project. A way you might use me is super simpl;e.

>>> print public_fn_with_googley_docstring(name='foo', state=None)
0

BTW, this always returns 0. NEVER use with MyPublicClass.

python_cheatsheet.z.zen()[source]