Data Models and Wrappers
Data models and wrappers for Simulchip.
This module provides standardized data models for working with cards, packs, and other Netrunner data throughout the library.
- class simulchip.models.FilterableItem[source]
Bases:
Protocol
Protocol for items that can be filtered and displayed.
- __init__(*args, **kwargs)
- class simulchip.models.PackModel[source]
Bases:
object
Model wrapper for pack data with filtering capabilities.
- class simulchip.models.CardModel[source]
Bases:
object
Model wrapper for card data with filtering capabilities.
- simulchip.models.filter_items(items, filter_text)[source]
Filter a list of items based on filter text.
- Parameters:
items (
List
[FilterableItem
]) – List of filterable itemsfilter_text (
str
) – Text to filter by
- Return type:
- Returns:
Filtered list of items