Category#

class fedfred.objects.Category(id, name, parent_id=None, client=None)[source]#

Bases: object

A class used to represent a Category.

Parameters:
  • id (int)

  • name (str)

  • parent_id (Optional[int])

  • client (Optional['FredAPI'])

Methods#

Category.__init__

Category.to_object

Parses FRED API response and returns a list of Category objects.

Category.to_object_async

Asynchronously parses FRED API response and returns a list of Category objects.

Attributes#

Category.children

Get the child categories of this category.

Category.client

Category.parent_id

Category.related

Get the related categories of this category.

Category.related_tags

Get the related tags associated with this category.

Category.series

Get the series in this category.

Category.tags

Get the tags associated with this category.

Category.id

Category.name