geoips.utils package#

Submodules#

geoips.utils.decorators module#

GeoIPS decorators module.

class geoips.utils.decorators.deprecated(replacement=None)[source]#

Bases: object

A decorator that deprecates a function.

When applied to a function, will cause that function to raise a DeprecationWarning when called.

geoips.utils.decorators.developmental(func)[source]#

Mark an interfaces as developmental.

When applied to a function, will prepend a “developmental” message to the beginning of that function’s docstring.

geoips.utils.memusg module#

Utilities for tracking and monitoring memory and resource usage.

geoips.utils.memusg.print_mem_usage(logstr='', verbose=False)[source]#

Print memory usage to LOG.info.

  • By default include psutil output.

  • If verbose is True, include output from both psutil and resource packages.

geoips.utils.memusg.print_resource_usage(logstr='')[source]#

Print verbose resource usage, using “resource” package.

Module contents#

Geoips utilities init file.