dataclasses

E431926

dataclasses is a Python module that provides a decorator and helper functions for automatically generating boilerplate methods for classes that primarily store data.

All labels observed (2)

Label Occurrences
dataclasses canonical 1
dataclasses module 1

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Python standard library module ⓘ
automaticallyGenerates __eq__ method ⓘ
__init__ method ⓘ
__repr__ method ⓘ
backportAvailableFor Python 3.6 ⓘ
canGenerate __hash__ method ⓘ
ordering methods ⓘ
category data modeling utility ⓘ
classConfigurationParameter eq ⓘ
frozen ⓘ
init ⓘ
order ⓘ
slots ⓘ
unsafe_hash ⓘ
decoratorTarget user-defined classes ⓘ
definedIn PEP 557 ⓘ
documentationLocation Python official documentation ⓘ
fieldConfigurationOption compare ⓘ
default ⓘ
default_factory ⓘ
hash ⓘ
init ⓘ
metadata ⓘ
repr ⓘ
introducedInVersion Python 3.7 ⓘ
moduleName dataclasses ⓘ
partOf Python standard library ⓘ
primaryPurpose reduce boilerplate in data-holding classes ⓘ
programmingLanguage Python ⓘ
providesDecorator dataclass ⓘ
providesFunction asdict ⓘ
astuple ⓘ
field ⓘ
is_dataclass ⓘ
make_dataclass ⓘ
replace ⓘ
relatedConcept attrs library ⓘ
namedtuple ⓘ
runtimeBehavior processes class annotations at decoration time ⓘ
supportsFeature default field values ⓘ
default_factory for fields ⓘ
field metadata ⓘ
frozen (immutable) classes ⓘ
init-only variables (InitVar) ⓘ
post-init processing via __post_init__ ⓘ
slots-based dataclasses ⓘ
type annotations for fields ⓘ
typicalUseCase classes that primarily store data ⓘ

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

Python 3.x → feature → dataclasses module ⓘ
linked to: dataclasses