twitterapi.models.tweet_response module
- class sparta.twitterapi.models.tweet_response.TweetResponse(*, tweet: Dict[str, Any], includes: Dict[str, Any])
Bases:
BaseModel
Pydantic model to represent tweet response, as Twitter’s own classes cannot be used due to inconsistencies of API and actual responses.
- tweet
The original tweet object.
- Type:
Dict[str, Any]
- includes
The extension objects associated with the tweet (tweets, users, media, polls, places).
- Type:
Dict[str, Any]
- includes: Dict[str, Any]
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'includes': FieldInfo(annotation=Dict[str, Any], required=True), 'tweet': FieldInfo(annotation=Dict[str, Any], required=True)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- tweet: Dict[str, Any]