Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions twitter_openapi_python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "twitter_openapi_python"
version = "0.0.32"
version = "0.0.35"
description = "Twitter OpenAPI"
authors = ["fa0311 <yuki@yuki0311.com>"]
license = "proprietary" # or "AGPL-3.0-only"
Expand All @@ -13,8 +13,9 @@ include = ["twitter_openapi_python/py.typed"]
[tool.poetry.dependencies]
python = "^3.7"
pydantic = ">=2.6"
urllib3 = ">= 2.1.0 < 3.0.0"

twitter-openapi-python-generated = "0.0.29"
twitter-openapi-python-generated = "0.0.31"

[tool.poetry.dev-dependencies]

Expand Down
Binary file modified twitter_openapi_python/requirements.txt
Binary file not shown.
5 changes: 3 additions & 2 deletions twitter_openapi_python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
from setuptools import find_packages, setup

NAME = "twitter_openapi_python"
VERSION = "0.0.32"
VERSION = "0.0.35"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"twitter_openapi_python_generated == 0.0.29",
"twitter_openapi_python_generated == 0.0.31",
"pydantic >= 2.6",
"urllib3 >= 2.1.0, < 3.0.0"
]
GITHUB_RAW_URL = (
"https://raw.githubusercontent.com/fa0311/twitter_openapi_python/refs/heads/master/twitter_openapi_python/"
Expand Down
2 changes: 1 addition & 1 deletion twitter_openapi_python/twitter_openapi_python/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_v11_post_api(self) -> V11PostApiUtils:


class TwitterOpenapiPython:
hash: str = "8b2d05d1525404a29730f740a259026502be7cbd"
hash: str = "227f4e3716dbb034500945c378bd7874b611f8f5"
placeholder_url = "https://raw.githubusercontent.com/fa0311/twitter-openapi/{hash}/src/config/placeholder.json"
header = "https://raw.githubusercontent.com/fa0311/latest-user-agent/refs/heads/main/header.json"
access_token: str = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
pip install -r test-requirements.txt
- name: Test with pytest
run: |
pytest --cov={{packageName}}
pytest --cov=twitter_openapi_python_generated
12 changes: 12 additions & 0 deletions twitter_openapi_python_generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ docs/Text.md
docs/TextEntity.md
docs/TextEntityRef.md
docs/TextHighlight.md
docs/ThumbnailImage.md
docs/Timeline.md
docs/TimelineAddEntries.md
docs/TimelineAddEntry.md
Expand All @@ -195,6 +196,7 @@ docs/TimelineTimelineItem.md
docs/TimelineTimelineModule.md
docs/TimelineTombstone.md
docs/TimelineTopicContext.md
docs/TimelineTrend.md
docs/TimelineTweet.md
docs/TimelineUser.md
docs/TimelineV2.md
Expand All @@ -205,6 +207,8 @@ docs/TombstoneRef.md
docs/TombstoneRichText.md
docs/TopicContext.md
docs/Tracing.md
docs/TrendImage.md
docs/TrendMetadata.md
docs/TrendResults.md
docs/Tweet.md
docs/TweetApi.md
Expand Down Expand Up @@ -470,6 +474,7 @@ test/test_text.py
test/test_text_entity.py
test/test_text_entity_ref.py
test/test_text_highlight.py
test/test_thumbnail_image.py
test/test_timeline.py
test/test_timeline_add_entries.py
test/test_timeline_add_entry.py
Expand All @@ -494,6 +499,7 @@ test/test_timeline_timeline_item.py
test/test_timeline_timeline_module.py
test/test_timeline_tombstone.py
test/test_timeline_topic_context.py
test/test_timeline_trend.py
test/test_timeline_tweet.py
test/test_timeline_user.py
test/test_timeline_v2.py
Expand All @@ -504,6 +510,8 @@ test/test_tombstone_ref.py
test/test_tombstone_rich_text.py
test/test_topic_context.py
test/test_tracing.py
test/test_trend_image.py
test/test_trend_metadata.py
test/test_trend_results.py
test/test_tweet.py
test/test_tweet_api.py
Expand Down Expand Up @@ -777,6 +785,7 @@ twitter_openapi_python_generated/models/text.py
twitter_openapi_python_generated/models/text_entity.py
twitter_openapi_python_generated/models/text_entity_ref.py
twitter_openapi_python_generated/models/text_highlight.py
twitter_openapi_python_generated/models/thumbnail_image.py
twitter_openapi_python_generated/models/timeline.py
twitter_openapi_python_generated/models/timeline_add_entries.py
twitter_openapi_python_generated/models/timeline_add_entry.py
Expand All @@ -801,6 +810,7 @@ twitter_openapi_python_generated/models/timeline_timeline_item.py
twitter_openapi_python_generated/models/timeline_timeline_module.py
twitter_openapi_python_generated/models/timeline_tombstone.py
twitter_openapi_python_generated/models/timeline_topic_context.py
twitter_openapi_python_generated/models/timeline_trend.py
twitter_openapi_python_generated/models/timeline_tweet.py
twitter_openapi_python_generated/models/timeline_user.py
twitter_openapi_python_generated/models/timeline_v2.py
Expand All @@ -811,6 +821,8 @@ twitter_openapi_python_generated/models/tombstone_ref.py
twitter_openapi_python_generated/models/tombstone_rich_text.py
twitter_openapi_python_generated/models/topic_context.py
twitter_openapi_python_generated/models/tracing.py
twitter_openapi_python_generated/models/trend_image.py
twitter_openapi_python_generated/models/trend_metadata.py
twitter_openapi_python_generated/models/trend_results.py
twitter_openapi_python_generated/models/tweet.py
twitter_openapi_python_generated/models/tweet_card.py
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.10.0
7.12.0
8 changes: 6 additions & 2 deletions twitter_openapi_python_generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Twitter OpenAPI(Swagger) specification
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.0.1
- Package version: 0.0.29
- Generator version: 7.10.0
- Package version: 0.0.31
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -431,6 +431,7 @@ Class | Method | HTTP request | Description
- [TextEntity](docs/TextEntity.md)
- [TextEntityRef](docs/TextEntityRef.md)
- [TextHighlight](docs/TextHighlight.md)
- [ThumbnailImage](docs/ThumbnailImage.md)
- [Timeline](docs/Timeline.md)
- [TimelineAddEntries](docs/TimelineAddEntries.md)
- [TimelineAddEntry](docs/TimelineAddEntry.md)
Expand All @@ -455,6 +456,7 @@ Class | Method | HTTP request | Description
- [TimelineTimelineModule](docs/TimelineTimelineModule.md)
- [TimelineTombstone](docs/TimelineTombstone.md)
- [TimelineTopicContext](docs/TimelineTopicContext.md)
- [TimelineTrend](docs/TimelineTrend.md)
- [TimelineTweet](docs/TimelineTweet.md)
- [TimelineUser](docs/TimelineUser.md)
- [TimelineV2](docs/TimelineV2.md)
Expand All @@ -465,6 +467,8 @@ Class | Method | HTTP request | Description
- [TombstoneRichText](docs/TombstoneRichText.md)
- [TopicContext](docs/TopicContext.md)
- [Tracing](docs/Tracing.md)
- [TrendImage](docs/TrendImage.md)
- [TrendMetadata](docs/TrendMetadata.md)
- [TrendResults](docs/TrendResults.md)
- [Tweet](docs/Tweet.md)
- [TweetCard](docs/TweetCard.md)
Expand Down
4 changes: 0 additions & 4 deletions twitter_openapi_python_generated/docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Method | HTTP request | Description
# **get_profile_spotlights_query**
> ProfileResponse get_profile_spotlights_query(path_query_id, variables, features)



get user by screen name

### Example
Expand Down Expand Up @@ -246,8 +244,6 @@ Name | Type | Description | Notes
# **get_tweet_result_by_rest_id**
> TweetResultByRestIdResponse get_tweet_result_by_rest_id(path_query_id, variables, features, field_toggles)



get TweetResultByRestId

### Example
Expand Down
7 changes: 7 additions & 0 deletions twitter_openapi_python_generated/docs/ItemContentUnion.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ Name | Type | Description | Notes
**user_results** | [**UserResults**](UserResults.md) | |
**tombstone_display_type** | **str** | | [optional]
**tombstone_info** | [**TombstoneInfo**](TombstoneInfo.md) | | [optional]
**images** | [**List[TrendImage]**](TrendImage.md) | |
**is_ai_trend** | **bool** | | [optional]
**name** | **str** | |
**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional]
**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | |
**trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | |
**trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | |

## Example

Expand Down
1 change: 1 addition & 0 deletions twitter_openapi_python_generated/docs/ModuleItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dispensable** | **bool** | | [optional]
**entry_id** | **str** | |
**item** | [**ModuleEntry**](ModuleEntry.md) | |

Expand Down
2 changes: 0 additions & 2 deletions twitter_openapi_python_generated/docs/OtherApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Method | HTTP request | Description
# **other**
> OtherObjectAll other()



This is not an actual endpoint

### Example
Expand Down
16 changes: 0 additions & 16 deletions twitter_openapi_python_generated/docs/PostApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Method | HTTP request | Description
# **post_create_bookmark**
> CreateBookmarkResponse post_create_bookmark(path_query_id, post_create_bookmark_request)



create Bookmark

### Example
Expand Down Expand Up @@ -251,8 +249,6 @@ Name | Type | Description | Notes
# **post_create_retweet**
> CreateRetweetResponse post_create_retweet(path_query_id, post_create_retweet_request)



create Retweet

### Example
Expand Down Expand Up @@ -485,8 +481,6 @@ Name | Type | Description | Notes
# **post_create_tweet**
> CreateTweetResponse post_create_tweet(path_query_id, post_create_tweet_request)



create Tweet

### Example
Expand Down Expand Up @@ -719,8 +713,6 @@ Name | Type | Description | Notes
# **post_delete_bookmark**
> DeleteBookmarkResponse post_delete_bookmark(path_query_id, post_delete_bookmark_request)



delete Bookmark

### Example
Expand Down Expand Up @@ -953,8 +945,6 @@ Name | Type | Description | Notes
# **post_delete_retweet**
> DeleteRetweetResponse post_delete_retweet(path_query_id, post_delete_retweet_request)



delete Retweet

### Example
Expand Down Expand Up @@ -1187,8 +1177,6 @@ Name | Type | Description | Notes
# **post_delete_tweet**
> DeleteTweetResponse post_delete_tweet(path_query_id, post_delete_tweet_request)



delete Retweet

### Example
Expand Down Expand Up @@ -1421,8 +1409,6 @@ Name | Type | Description | Notes
# **post_favorite_tweet**
> FavoriteTweetResponse post_favorite_tweet(path_query_id, post_favorite_tweet_request)



favorite Tweet

### Example
Expand Down Expand Up @@ -1655,8 +1641,6 @@ Name | Type | Description | Notes
# **post_unfavorite_tweet**
> UnfavoriteTweetResponse post_unfavorite_tweet(path_query_id, post_unfavorite_tweet_request)



unfavorite Tweet

### Example
Expand Down
31 changes: 31 additions & 0 deletions twitter_openapi_python_generated/docs/ThumbnailImage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# ThumbnailImage


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**original_img_height** | **int** | | [optional]
**original_img_url** | **str** | | [optional]
**original_img_width** | **int** | | [optional]

## Example

```python
from twitter_openapi_python_generated.models.thumbnail_image import ThumbnailImage

# TODO update the JSON string below
json = "{}"
# create an instance of ThumbnailImage from a JSON string
thumbnail_image_instance = ThumbnailImage.from_json(json)
# print the JSON string representation of the object
print(ThumbnailImage.to_json())

# convert the object into a dict
thumbnail_image_dict = thumbnail_image_instance.to_dict()
# create an instance of ThumbnailImage from a dict
thumbnail_image_from_dict = ThumbnailImage.from_dict(thumbnail_image_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


37 changes: 37 additions & 0 deletions twitter_openapi_python_generated/docs/TimelineTrend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# TimelineTrend


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**typename** | [**TypeName**](TypeName.md) | |
**images** | [**List[TrendImage]**](TrendImage.md) | |
**is_ai_trend** | **bool** | | [optional]
**item_type** | [**ContentItemType**](ContentItemType.md) | |
**name** | **str** | |
**social_context** | [**SocialContextUnion**](SocialContextUnion.md) | | [optional]
**thumbnail_image** | [**ThumbnailImage**](ThumbnailImage.md) | |
**trend_metadata** | [**TrendMetadata**](TrendMetadata.md) | |
**trend_url** | [**SocialContextLandingUrl**](SocialContextLandingUrl.md) | |

## Example

```python
from twitter_openapi_python_generated.models.timeline_trend import TimelineTrend

# TODO update the JSON string below
json = "{}"
# create an instance of TimelineTrend from a JSON string
timeline_trend_instance = TimelineTrend.from_json(json)
# print the JSON string representation of the object
print(TimelineTrend.to_json())

# convert the object into a dict
timeline_trend_dict = timeline_trend_instance.to_dict()
# create an instance of TimelineTrend from a dict
timeline_trend_from_dict = TimelineTrend.from_dict(timeline_trend_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


29 changes: 29 additions & 0 deletions twitter_openapi_python_generated/docs/TrendImage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# TrendImage


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**url** | **str** | | [optional]

## Example

```python
from twitter_openapi_python_generated.models.trend_image import TrendImage

# TODO update the JSON string below
json = "{}"
# create an instance of TrendImage from a JSON string
trend_image_instance = TrendImage.from_json(json)
# print the JSON string representation of the object
print(TrendImage.to_json())

# convert the object into a dict
trend_image_dict = trend_image_instance.to_dict()
# create an instance of TrendImage from a dict
trend_image_from_dict = TrendImage.from_dict(trend_image_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading