src.brag.sources
Sources of data.
Modules:
Name | Description |
---|---|
git_commits |
Load and format Git commits from a local repository. |
github_commits |
Fetch and format Github commits. |
Classes:
Name | Description |
---|---|
DataSource |
A source of data. |
LimitDataSource |
A data source that limits the number of items it yields. |
MapDataSource |
A data source that maps a function over a data source. |
DataSource
🔗
Bases: ABC
A source of data.
Methods:
Name | Description |
---|---|
limit |
Limit the number of items this data source yields. |
map |
Map a function over a data source. |
Source code in src/brag/sources/__init__.py
limit
🔗
limit(count: int) -> LimitDataSource[T]
LimitDataSource
dataclass
🔗
Bases: DataSource[T]
A data source that limits the number of items it yields.
Source code in src/brag/sources/__init__.py
MapDataSource
dataclass
🔗
Bases: DataSource[R]
A data source that maps a function over a data source.