### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »

# wildcard

## Module: `wildcard`

Inheritance diagram for `IPython.wildcard`:

Support for wildcard pattern matching in object inspection.

### Authors

- Jörgen Stenarson <jorgen.stenarson@bostream.nu>

## Class

## `NameSpace`

class `IPython.wildcard.``NameSpace`(obj, name_pattern='*', type_pattern='all', ignore_case=True, show_all=True)

  Bases: `object`

  NameSpace holds the dictionary for a namespace and implements filtering on name and types

  `__init__`()
  `filter`()

    Return dictionary of filtered namespace.

  `get_ns`()

    Return name space dictionary with objects matching type and name patterns.

  `get_ns_names`()

    Return list of object names in namespace that match the patterns.

  `ns`

    Return name space dictionary with objects matching type and name patterns.

  `ns_names`

    List of objects in name space that match the type and name patterns.

## Functions

`IPython.wildcard.``create_typestr2type_dicts`()

  Return dictionaries mapping lower case typename to type objects, from the types package, and vice versa.

`IPython.wildcard.``is_type`()

  is_type(obj,typestr_or_type) verifies if obj is of a certain type or group of types takes strings as parameters of the for ‘tuple’<->TupleType ‘all’ matches all types. TODO: Should be extended for choosing more than one type

`IPython.wildcard.``list_namespace`()

  Return dictionary of all objects in namespace that matches type_pattern and filter.

`IPython.wildcard.``show_hidden`()

  Return true for strings starting with single _ if show_all is true.

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »