FelisType

class felis.types.FelisType

Bases: object

Base class for a representation of Felis column types.

Notes

This class plays a role of a metaclass without being an actual metaclass. It provides a method to retrieve a class (type) given Felis type name. There should be no instances of this class (or sub-classes), the utility of the class hierarchy is in the type system itself.

Methods Summary

felis_type(felis_name)

Return specific Felis type for a given name.

Methods Documentation

classmethod felis_type(felis_name)

Return specific Felis type for a given name.

Parameters:

felis_name (str) – Name of the felis type as defined in felis schema.

Returns:

A specific Felis type class.

Return type:

type [ FelisType ]

Raises:

TypeError – Raised if felis_name does not correspond to a known type.