cape.tnakit
: Basic TNA Python tool kitΒΆ
The cape.tnakit
module is a toolkit of common tools that are not
necessarily specific to CAPE or database management but are not part of
the standard library either.
For example, it contains utilities, mostly in
cape.tnakit.typeutils
, that generalize code between Python 2 and
Python 3. It also contains useful tools built only on the standard
library (and are compatible with both Python 2.7 and Python 3.6+) like
creating formatted reStructuredText representations of Python objects
(in cape.tnakit.rstutils
).
Other extensions to standard Python conventions are provided, like a
handler for keyword arguments with many possible values
(cape.tnakit.kwutils
).
Another useful package provides extra options for plotting
(cape.tnakit.plot_mpl
).
cape.tnakit.arrayutils
: Tools for NumPy arrayscape.tnakit.kwutils
: Tools for Processing Keyword Argumentscape.tnakit.metautils
: Tools for module metadata databasescape.tnakit.modutils
: Module documentation utilitiescape.tnakit.optitem
: Option list item access toolscape.tnakit.plot_mpl
: Matplotlib/Pyplot Interfacescape.tnakit.promptutils
: Interactive Console Promptcape.tnakit.rstutils
: Tools for writing ReST filescape.tnakit.statutils
: Statistics toolscape.tnakit.textutils.wrap
: Text-wrapping toolkitcape.tnakit.typeutils
: Python 2/3 type-check utils