apinoa 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- apinoa-0.1.0/.gitignore +5 -0
- apinoa-0.1.0/LICENSE +21 -0
- apinoa-0.1.0/PKG-INFO +146 -0
- apinoa-0.1.0/README.md +121 -0
- apinoa-0.1.0/pyproject.toml +48 -0
- apinoa-0.1.0/reference.md +6836 -0
- apinoa-0.1.0/src/apinoa/__init__.py +613 -0
- apinoa-0.1.0/src/apinoa/_default_clients.py +30 -0
- apinoa-0.1.0/src/apinoa/aliexpress/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/aliexpress/client.py +801 -0
- apinoa-0.1.0/src/apinoa/aliexpress/raw_client.py +2233 -0
- apinoa-0.1.0/src/apinoa/aliexpress/types/__init__.py +40 -0
- apinoa-0.1.0/src/apinoa/aliexpress/types/browse_aliexpress_request_sort.py +5 -0
- apinoa-0.1.0/src/apinoa/aliexpress/types/product_aliexpress_request_include.py +5 -0
- apinoa-0.1.0/src/apinoa/aliexpress/types/search_aliexpress_request_sort.py +5 -0
- apinoa-0.1.0/src/apinoa/amazon/__init__.py +64 -0
- apinoa-0.1.0/src/apinoa/amazon/client.py +764 -0
- apinoa-0.1.0/src/apinoa/amazon/raw_client.py +1941 -0
- apinoa-0.1.0/src/apinoa/amazon/types/__init__.py +62 -0
- apinoa-0.1.0/src/apinoa/amazon/types/browse_amazon_request_region.py +8 -0
- apinoa-0.1.0/src/apinoa/amazon/types/browse_amazon_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/amazon/types/categories_amazon_request_region.py +8 -0
- apinoa-0.1.0/src/apinoa/amazon/types/image_search_amazon_request_image.py +41 -0
- apinoa-0.1.0/src/apinoa/amazon/types/image_search_amazon_request_region.py +8 -0
- apinoa-0.1.0/src/apinoa/amazon/types/image_search_amazon_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/amazon/types/product_amazon_request_region.py +8 -0
- apinoa-0.1.0/src/apinoa/amazon/types/search_amazon_request_region.py +8 -0
- apinoa-0.1.0/src/apinoa/amazon/types/search_amazon_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/client.py +487 -0
- apinoa-0.1.0/src/apinoa/core/__init__.py +134 -0
- apinoa-0.1.0/src/apinoa/core/api_error.py +23 -0
- apinoa-0.1.0/src/apinoa/core/client_wrapper.py +138 -0
- apinoa-0.1.0/src/apinoa/core/datetime_utils.py +70 -0
- apinoa-0.1.0/src/apinoa/core/file.py +67 -0
- apinoa-0.1.0/src/apinoa/core/force_multipart.py +18 -0
- apinoa-0.1.0/src/apinoa/core/http_client.py +1021 -0
- apinoa-0.1.0/src/apinoa/core/http_response.py +63 -0
- apinoa-0.1.0/src/apinoa/core/http_sse/__init__.py +42 -0
- apinoa-0.1.0/src/apinoa/core/http_sse/_api.py +455 -0
- apinoa-0.1.0/src/apinoa/core/http_sse/_decoders.py +74 -0
- apinoa-0.1.0/src/apinoa/core/http_sse/_exceptions.py +7 -0
- apinoa-0.1.0/src/apinoa/core/http_sse/_models.py +17 -0
- apinoa-0.1.0/src/apinoa/core/jsonable_encoder.py +145 -0
- apinoa-0.1.0/src/apinoa/core/logging.py +107 -0
- apinoa-0.1.0/src/apinoa/core/parse_error.py +36 -0
- apinoa-0.1.0/src/apinoa/core/pydantic_utilities.py +540 -0
- apinoa-0.1.0/src/apinoa/core/query_encoder.py +58 -0
- apinoa-0.1.0/src/apinoa/core/remove_none_from_dict.py +11 -0
- apinoa-0.1.0/src/apinoa/core/request_options.py +43 -0
- apinoa-0.1.0/src/apinoa/core/serialization.py +347 -0
- apinoa-0.1.0/src/apinoa/core/unchecked_base_model.py +505 -0
- apinoa-0.1.0/src/apinoa/environment.py +7 -0
- apinoa-0.1.0/src/apinoa/errors/__init__.py +65 -0
- apinoa-0.1.0/src/apinoa/errors/bad_gateway_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/bad_request_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/forbidden_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/internal_server_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/not_found_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/not_implemented_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/payment_required_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/service_unavailable_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/too_many_requests_error.py +11 -0
- apinoa-0.1.0/src/apinoa/errors/unauthorized_error.py +11 -0
- apinoa-0.1.0/src/apinoa/image_translate/__init__.py +46 -0
- apinoa-0.1.0/src/apinoa/image_translate/client.py +274 -0
- apinoa-0.1.0/src/apinoa/image_translate/raw_client.py +1065 -0
- apinoa-0.1.0/src/apinoa/image_translate/types/__init__.py +44 -0
- apinoa-0.1.0/src/apinoa/image_translate/types/ocr_image_translate_request_source_language.py +7 -0
- apinoa-0.1.0/src/apinoa/image_translate/types/translate_image_translate_request_font_weight.py +7 -0
- apinoa-0.1.0/src/apinoa/image_translate/types/translate_image_translate_request_source_language.py +7 -0
- apinoa-0.1.0/src/apinoa/instagram/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/instagram/client.py +612 -0
- apinoa-0.1.0/src/apinoa/instagram/raw_client.py +2060 -0
- apinoa-0.1.0/src/apinoa/instagram/types/__init__.py +40 -0
- apinoa-0.1.0/src/apinoa/instagram/types/comments_instagram_request_sort.py +5 -0
- apinoa-0.1.0/src/apinoa/instagram/types/groups_instagram_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/instagram/types/posts_instagram_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/linkedin/__init__.py +4 -0
- apinoa-0.1.0/src/apinoa/linkedin/client.py +602 -0
- apinoa-0.1.0/src/apinoa/linkedin/raw_client.py +2292 -0
- apinoa-0.1.0/src/apinoa/marketplaces/__init__.py +4 -0
- apinoa-0.1.0/src/apinoa/marketplaces/client.py +100 -0
- apinoa-0.1.0/src/apinoa/marketplaces/raw_client.py +148 -0
- apinoa-0.1.0/src/apinoa/py.typed +0 -0
- apinoa-0.1.0/src/apinoa/reddit/__init__.py +49 -0
- apinoa-0.1.0/src/apinoa/reddit/client.py +818 -0
- apinoa-0.1.0/src/apinoa/reddit/raw_client.py +2494 -0
- apinoa-0.1.0/src/apinoa/reddit/types/__init__.py +47 -0
- apinoa-0.1.0/src/apinoa/reddit/types/comments_reddit_request_period.py +5 -0
- apinoa-0.1.0/src/apinoa/reddit/types/comments_reddit_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/reddit/types/posts_reddit_request_period.py +5 -0
- apinoa-0.1.0/src/apinoa/reddit/types/posts_reddit_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/shopify/__init__.py +52 -0
- apinoa-0.1.0/src/apinoa/shopify/client.py +739 -0
- apinoa-0.1.0/src/apinoa/shopify/raw_client.py +1920 -0
- apinoa-0.1.0/src/apinoa/shopify/types/__init__.py +50 -0
- apinoa-0.1.0/src/apinoa/shopify/types/image_search_shopify_request_condition.py +5 -0
- apinoa-0.1.0/src/apinoa/shopify/types/image_search_shopify_request_image.py +29 -0
- apinoa-0.1.0/src/apinoa/shopify/types/image_search_shopify_request_in_stock.py +7 -0
- apinoa-0.1.0/src/apinoa/shopify/types/image_search_shopify_request_in_stock_one.py +5 -0
- apinoa-0.1.0/src/apinoa/shopify/types/search_shopify_request_condition.py +5 -0
- apinoa-0.1.0/src/apinoa/threads/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/threads/client.py +426 -0
- apinoa-0.1.0/src/apinoa/threads/raw_client.py +1386 -0
- apinoa-0.1.0/src/apinoa/threads/types/__init__.py +40 -0
- apinoa-0.1.0/src/apinoa/threads/types/comments_threads_request_sort.py +5 -0
- apinoa-0.1.0/src/apinoa/threads/types/posts_threads_request_sort.py +5 -0
- apinoa-0.1.0/src/apinoa/threads/types/posts_threads_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/tiktok/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/tiktok/client.py +848 -0
- apinoa-0.1.0/src/apinoa/tiktok/raw_client.py +2786 -0
- apinoa-0.1.0/src/apinoa/tiktok/types/__init__.py +40 -0
- apinoa-0.1.0/src/apinoa/tiktok/types/groups_tiktok_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/tiktok/types/posts_tiktok_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/tiktok/types/profiles_tiktok_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/tiktokshop/__init__.py +4 -0
- apinoa-0.1.0/src/apinoa/tiktokshop/client.py +553 -0
- apinoa-0.1.0/src/apinoa/tiktokshop/raw_client.py +1991 -0
- apinoa-0.1.0/src/apinoa/types/__init__.py +413 -0
- apinoa-0.1.0/src/apinoa/types/account.py +48 -0
- apinoa-0.1.0/src/apinoa/types/account_counts.py +22 -0
- apinoa-0.1.0/src/apinoa/types/account_page.py +26 -0
- apinoa-0.1.0/src/apinoa/types/account_page_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/account_page_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/account_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/account_ref.py +36 -0
- apinoa-0.1.0/src/apinoa/types/account_ref_counts.py +22 -0
- apinoa-0.1.0/src/apinoa/types/account_ref_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/account_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/attribute.py +21 -0
- apinoa-0.1.0/src/apinoa/types/audio.py +23 -0
- apinoa-0.1.0/src/apinoa/types/broadcast.py +33 -0
- apinoa-0.1.0/src/apinoa/types/broadcast_status.py +5 -0
- apinoa-0.1.0/src/apinoa/types/catalog.py +22 -0
- apinoa-0.1.0/src/apinoa/types/catalog_marketplaces_item.py +30 -0
- apinoa-0.1.0/src/apinoa/types/catalog_marketplaces_item_cost_value.py +21 -0
- apinoa-0.1.0/src/apinoa/types/catalog_marketplaces_item_kind.py +5 -0
- apinoa-0.1.0/src/apinoa/types/catalog_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/category_list.py +24 -0
- apinoa-0.1.0/src/apinoa/types/category_list_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/category_node.py +35 -0
- apinoa-0.1.0/src/apinoa/types/category_step.py +21 -0
- apinoa-0.1.0/src/apinoa/types/comment.py +62 -0
- apinoa-0.1.0/src/apinoa/types/comment_metrics.py +21 -0
- apinoa-0.1.0/src/apinoa/types/comment_more_replies.py +23 -0
- apinoa-0.1.0/src/apinoa/types/comment_page.py +32 -0
- apinoa-0.1.0/src/apinoa/types/comment_page_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/comment_page_response.py +39 -0
- apinoa-0.1.0/src/apinoa/types/comment_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/delivery_option.py +50 -0
- apinoa-0.1.0/src/apinoa/types/entities.py +24 -0
- apinoa-0.1.0/src/apinoa/types/error_response.py +27 -0
- apinoa-0.1.0/src/apinoa/types/error_response_error.py +25 -0
- apinoa-0.1.0/src/apinoa/types/ext.py +5 -0
- apinoa-0.1.0/src/apinoa/types/facet.py +28 -0
- apinoa-0.1.0/src/apinoa/types/facet_kind.py +5 -0
- apinoa-0.1.0/src/apinoa/types/facet_value.py +23 -0
- apinoa-0.1.0/src/apinoa/types/group.py +43 -0
- apinoa-0.1.0/src/apinoa/types/group_counts.py +21 -0
- apinoa-0.1.0/src/apinoa/types/group_kind.py +7 -0
- apinoa-0.1.0/src/apinoa/types/group_page.py +26 -0
- apinoa-0.1.0/src/apinoa/types/group_page_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/group_page_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/group_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/group_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/identifiers.py +22 -0
- apinoa-0.1.0/src/apinoa/types/in_reply_to.py +23 -0
- apinoa-0.1.0/src/apinoa/types/job.py +48 -0
- apinoa-0.1.0/src/apinoa/types/job_company.py +27 -0
- apinoa-0.1.0/src/apinoa/types/job_page.py +24 -0
- apinoa-0.1.0/src/apinoa/types/job_page_items_item.py +36 -0
- apinoa-0.1.0/src/apinoa/types/job_page_items_item_company.py +21 -0
- apinoa-0.1.0/src/apinoa/types/job_page_items_item_platform.py +5 -0
- apinoa-0.1.0/src/apinoa/types/job_page_platform.py +5 -0
- apinoa-0.1.0/src/apinoa/types/job_page_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/job_platform.py +5 -0
- apinoa-0.1.0/src/apinoa/types/job_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/link.py +21 -0
- apinoa-0.1.0/src/apinoa/types/link_preview.py +28 -0
- apinoa-0.1.0/src/apinoa/types/media.py +22 -0
- apinoa-0.1.0/src/apinoa/types/media_file.py +53 -0
- apinoa-0.1.0/src/apinoa/types/media_file_encoding.py +5 -0
- apinoa-0.1.0/src/apinoa/types/media_file_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/media_variant.py +28 -0
- apinoa-0.1.0/src/apinoa/types/media_video.py +28 -0
- apinoa-0.1.0/src/apinoa/types/mention.py +26 -0
- apinoa-0.1.0/src/apinoa/types/money.py +21 -0
- apinoa-0.1.0/src/apinoa/types/ocr_result.py +24 -0
- apinoa-0.1.0/src/apinoa/types/ocr_result_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/offer.py +43 -0
- apinoa-0.1.0/src/apinoa/types/option.py +23 -0
- apinoa-0.1.0/src/apinoa/types/option_value.py +26 -0
- apinoa-0.1.0/src/apinoa/types/page.py +22 -0
- apinoa-0.1.0/src/apinoa/types/place.py +32 -0
- apinoa-0.1.0/src/apinoa/types/poll.py +30 -0
- apinoa-0.1.0/src/apinoa/types/poll_options_item.py +21 -0
- apinoa-0.1.0/src/apinoa/types/post.py +78 -0
- apinoa-0.1.0/src/apinoa/types/post_metrics.py +31 -0
- apinoa-0.1.0/src/apinoa/types/post_page.py +32 -0
- apinoa-0.1.0/src/apinoa/types/post_page_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/post_page_response.py +39 -0
- apinoa-0.1.0/src/apinoa/types/post_platform.py +7 -0
- apinoa-0.1.0/src/apinoa/types/post_response.py +40 -0
- apinoa-0.1.0/src/apinoa/types/product.py +146 -0
- apinoa-0.1.0/src/apinoa/types/product_delivery_to.py +26 -0
- apinoa-0.1.0/src/apinoa/types/product_offers_summary.py +27 -0
- apinoa-0.1.0/src/apinoa/types/product_package.py +36 -0
- apinoa-0.1.0/src/apinoa/types/product_price_range.py +22 -0
- apinoa-0.1.0/src/apinoa/types/product_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/product_review_aspects_item.py +23 -0
- apinoa-0.1.0/src/apinoa/types/product_unit_price.py +22 -0
- apinoa-0.1.0/src/apinoa/types/rating.py +23 -0
- apinoa-0.1.0/src/apinoa/types/review.py +39 -0
- apinoa-0.1.0/src/apinoa/types/review_page.py +33 -0
- apinoa-0.1.0/src/apinoa/types/review_page_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/review_reply.py +22 -0
- apinoa-0.1.0/src/apinoa/types/search_item.py +116 -0
- apinoa-0.1.0/src/apinoa/types/search_item_delivery_to.py +26 -0
- apinoa-0.1.0/src/apinoa/types/search_item_offers_summary.py +27 -0
- apinoa-0.1.0/src/apinoa/types/search_item_price_range.py +22 -0
- apinoa-0.1.0/src/apinoa/types/search_item_unit_price.py +22 -0
- apinoa-0.1.0/src/apinoa/types/search_result.py +28 -0
- apinoa-0.1.0/src/apinoa/types/search_result_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/seller.py +38 -0
- apinoa-0.1.0/src/apinoa/types/seller_detailed_ratings.py +28 -0
- apinoa-0.1.0/src/apinoa/types/shipping_option.py +50 -0
- apinoa-0.1.0/src/apinoa/types/shipping_quote.py +31 -0
- apinoa-0.1.0/src/apinoa/types/shipping_quote_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/social_media.py +39 -0
- apinoa-0.1.0/src/apinoa/types/social_media_type.py +5 -0
- apinoa-0.1.0/src/apinoa/types/supported_fonts.py +47 -0
- apinoa-0.1.0/src/apinoa/types/supported_fonts_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/text_region.py +55 -0
- apinoa-0.1.0/src/apinoa/types/text_region_bbox.py +23 -0
- apinoa-0.1.0/src/apinoa/types/text_region_bg_color.py +22 -0
- apinoa-0.1.0/src/apinoa/types/text_region_text_color.py +22 -0
- apinoa-0.1.0/src/apinoa/types/translated_region.py +60 -0
- apinoa-0.1.0/src/apinoa/types/translated_region_bbox.py +23 -0
- apinoa-0.1.0/src/apinoa/types/translated_region_bg_color.py +22 -0
- apinoa-0.1.0/src/apinoa/types/translated_region_text_color.py +22 -0
- apinoa-0.1.0/src/apinoa/types/translated_regions.py +27 -0
- apinoa-0.1.0/src/apinoa/types/translated_regions_response.py +34 -0
- apinoa-0.1.0/src/apinoa/types/url.py +25 -0
- apinoa-0.1.0/src/apinoa/types/variant.py +53 -0
- apinoa-0.1.0/src/apinoa/types/variant_selection.py +25 -0
- apinoa-0.1.0/src/apinoa/walmart/__init__.py +34 -0
- apinoa-0.1.0/src/apinoa/walmart/client.py +633 -0
- apinoa-0.1.0/src/apinoa/walmart/raw_client.py +1813 -0
- apinoa-0.1.0/src/apinoa/walmart/types/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/walmart/types/browse_walmart_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/walmart/types/search_walmart_request_sort.py +7 -0
- apinoa-0.1.0/src/apinoa/x/__init__.py +4 -0
- apinoa-0.1.0/src/apinoa/x/client.py +357 -0
- apinoa-0.1.0/src/apinoa/x/raw_client.py +1321 -0
- apinoa-0.1.0/src/apinoa/youtube/__init__.py +34 -0
- apinoa-0.1.0/src/apinoa/youtube/client.py +649 -0
- apinoa-0.1.0/src/apinoa/youtube/raw_client.py +2093 -0
- apinoa-0.1.0/src/apinoa/youtube/types/__init__.py +38 -0
- apinoa-0.1.0/src/apinoa/youtube/types/groups_youtube_request_type.py +5 -0
- apinoa-0.1.0/src/apinoa/youtube/types/posts_youtube_request_type.py +5 -0
- apinoa-0.1.0/tests/live/test_live.py +31 -0
- apinoa-0.1.0/tests/test_client.py +129 -0
- apinoa-0.1.0/tests/test_readme.py +31 -0
apinoa-0.1.0/.gitignore
ADDED
apinoa-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 apinoa
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
apinoa-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: apinoa
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK for the apinoa API: marketplace, social and image-translation data through one API.
|
|
5
|
+
Project-URL: Homepage, https://apinoa.com
|
|
6
|
+
Project-URL: Documentation, https://apinoa.com/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/apinoahq/apinoa-python
|
|
8
|
+
Project-URL: Issues, https://github.com/apinoahq/apinoa-python/issues
|
|
9
|
+
Author: apinoa
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: aliexpress,amazon,api,apinoa,instagram,reddit,scraping,sdk,shopify,tiktok,walmart,youtube
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Requires-Dist: httpx>=0.21.2
|
|
21
|
+
Requires-Dist: pydantic-core>=2.18.2; python_version >= '3.9'
|
|
22
|
+
Requires-Dist: pydantic>=1.9.2
|
|
23
|
+
Requires-Dist: typing-extensions>=4.0.0
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# apinoa
|
|
27
|
+
|
|
28
|
+
The official Python SDK for [apinoa](https://apinoa.com): product data from Amazon, Walmart, Shopify,
|
|
29
|
+
TikTok Shop and AliExpress, social data from TikTok, YouTube, Instagram, Threads, X, Reddit and LinkedIn,
|
|
30
|
+
and image translation, through one API.
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
pip install apinoa
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Requires Python 3.9 or later.
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
Create a key under **Dashboard > API keys** at [apinoa.com](https://apinoa.com), then:
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from apinoa import Apinoa
|
|
44
|
+
|
|
45
|
+
client = Apinoa() # reads APINOA_API_KEY; or Apinoa(api_key="...")
|
|
46
|
+
|
|
47
|
+
res = client.amazon.search(query="wool socks", price_max=30)
|
|
48
|
+
for item in res.data.items:
|
|
49
|
+
print(item.title, item.price.amount if item.price else None)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Keep the key on your server: it spends your balance.
|
|
53
|
+
|
|
54
|
+
Every call is `client.<platform>.<operation>(...)`, spelled the way the URL is, in snake_case:
|
|
55
|
+
`/v1/amazon/image-search` is `client.amazon.image_search(...)`, and the parameter `priceMax` is
|
|
56
|
+
`price_max`. Every answer is `{ success, data, request_id }`; fields beyond the documented ones are kept
|
|
57
|
+
on the object.
|
|
58
|
+
|
|
59
|
+
### Marketplaces
|
|
60
|
+
|
|
61
|
+
Every marketplace answers in one commerce schema: a `Product` from Amazon reads like one from Shopify.
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
product = client.walmart.product(id="5089499913")
|
|
65
|
+
reviews = client.shopify.reviews(id="allbirds.com/products/mens-tree-runners")
|
|
66
|
+
tree = client.amazon.categories()
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Social platforms
|
|
70
|
+
|
|
71
|
+
Every platform answers in one social schema (`Account`, `Post`, `Comment`, `Group`), with what only one
|
|
72
|
+
platform has under `ext`.
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
creator = client.tiktok.profile(username="khaby.lame")
|
|
76
|
+
page = client.reddit.posts(community="python")
|
|
77
|
+
next_page = client.reddit.posts(cursor=page.data.cursor) # the next page: the cursor alone
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Image translation
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
with open("product.jpg", "rb") as f:
|
|
84
|
+
image = f.read()
|
|
85
|
+
|
|
86
|
+
translated = b"".join(
|
|
87
|
+
client.image_translate.translate(source_language="zh-CN", target_language="ko", request=image)
|
|
88
|
+
)
|
|
89
|
+
with open("translated.jpg", "wb") as f:
|
|
90
|
+
f.write(translated)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Async
|
|
94
|
+
|
|
95
|
+
`AsyncApinoa` has the same methods, awaitable:
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
import asyncio
|
|
99
|
+
from apinoa import AsyncApinoa
|
|
100
|
+
|
|
101
|
+
async def main() -> None:
|
|
102
|
+
client = AsyncApinoa()
|
|
103
|
+
res = await client.youtube.profile(username="@mkbhd")
|
|
104
|
+
print(res.data.display_name)
|
|
105
|
+
|
|
106
|
+
asyncio.run(main())
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Errors
|
|
110
|
+
|
|
111
|
+
A failed call raises a subclass of `apinoa.core.ApiError` named after its status (`BadRequestError`,
|
|
112
|
+
`PaymentRequiredError`, `NotFoundError`, `TooManyRequestsError`, …). `err.body.error.code` is the stable
|
|
113
|
+
code to branch on; every code is listed at [apinoa.com/docs/errors](https://apinoa.com/docs/errors). A
|
|
114
|
+
failed call is not billed.
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
from apinoa import NotFoundError, PaymentRequiredError
|
|
118
|
+
|
|
119
|
+
try:
|
|
120
|
+
client.amazon.product(id="B000000000")
|
|
121
|
+
except NotFoundError:
|
|
122
|
+
print("no such product")
|
|
123
|
+
except PaymentRequiredError:
|
|
124
|
+
print("top up your balance")
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Retries and timeouts
|
|
128
|
+
|
|
129
|
+
`429`, `408` and `5xx` answers are retried twice with exponential backoff, honouring `Retry-After`. The
|
|
130
|
+
default timeout is 300 seconds, because image translation under load can take minutes. Both can be set
|
|
131
|
+
per client or per call:
|
|
132
|
+
|
|
133
|
+
```python
|
|
134
|
+
client = Apinoa(max_retries=4, timeout=60)
|
|
135
|
+
client.tiktok.posts(username="nasa", request_options={"max_retries": 0, "timeout_in_seconds": 10})
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Reference
|
|
139
|
+
|
|
140
|
+
Every method and parameter: [reference.md](./reference.md). The API itself:
|
|
141
|
+
[apinoa.com/docs](https://apinoa.com/docs). The OpenAPI document this SDK is generated from:
|
|
142
|
+
[apinoa.com/openapi.json](https://apinoa.com/openapi.json).
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
MIT
|
apinoa-0.1.0/README.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# apinoa
|
|
2
|
+
|
|
3
|
+
The official Python SDK for [apinoa](https://apinoa.com): product data from Amazon, Walmart, Shopify,
|
|
4
|
+
TikTok Shop and AliExpress, social data from TikTok, YouTube, Instagram, Threads, X, Reddit and LinkedIn,
|
|
5
|
+
and image translation, through one API.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pip install apinoa
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires Python 3.9 or later.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Create a key under **Dashboard > API keys** at [apinoa.com](https://apinoa.com), then:
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from apinoa import Apinoa
|
|
19
|
+
|
|
20
|
+
client = Apinoa() # reads APINOA_API_KEY; or Apinoa(api_key="...")
|
|
21
|
+
|
|
22
|
+
res = client.amazon.search(query="wool socks", price_max=30)
|
|
23
|
+
for item in res.data.items:
|
|
24
|
+
print(item.title, item.price.amount if item.price else None)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Keep the key on your server: it spends your balance.
|
|
28
|
+
|
|
29
|
+
Every call is `client.<platform>.<operation>(...)`, spelled the way the URL is, in snake_case:
|
|
30
|
+
`/v1/amazon/image-search` is `client.amazon.image_search(...)`, and the parameter `priceMax` is
|
|
31
|
+
`price_max`. Every answer is `{ success, data, request_id }`; fields beyond the documented ones are kept
|
|
32
|
+
on the object.
|
|
33
|
+
|
|
34
|
+
### Marketplaces
|
|
35
|
+
|
|
36
|
+
Every marketplace answers in one commerce schema: a `Product` from Amazon reads like one from Shopify.
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
product = client.walmart.product(id="5089499913")
|
|
40
|
+
reviews = client.shopify.reviews(id="allbirds.com/products/mens-tree-runners")
|
|
41
|
+
tree = client.amazon.categories()
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Social platforms
|
|
45
|
+
|
|
46
|
+
Every platform answers in one social schema (`Account`, `Post`, `Comment`, `Group`), with what only one
|
|
47
|
+
platform has under `ext`.
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
creator = client.tiktok.profile(username="khaby.lame")
|
|
51
|
+
page = client.reddit.posts(community="python")
|
|
52
|
+
next_page = client.reddit.posts(cursor=page.data.cursor) # the next page: the cursor alone
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Image translation
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
with open("product.jpg", "rb") as f:
|
|
59
|
+
image = f.read()
|
|
60
|
+
|
|
61
|
+
translated = b"".join(
|
|
62
|
+
client.image_translate.translate(source_language="zh-CN", target_language="ko", request=image)
|
|
63
|
+
)
|
|
64
|
+
with open("translated.jpg", "wb") as f:
|
|
65
|
+
f.write(translated)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Async
|
|
69
|
+
|
|
70
|
+
`AsyncApinoa` has the same methods, awaitable:
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
import asyncio
|
|
74
|
+
from apinoa import AsyncApinoa
|
|
75
|
+
|
|
76
|
+
async def main() -> None:
|
|
77
|
+
client = AsyncApinoa()
|
|
78
|
+
res = await client.youtube.profile(username="@mkbhd")
|
|
79
|
+
print(res.data.display_name)
|
|
80
|
+
|
|
81
|
+
asyncio.run(main())
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Errors
|
|
85
|
+
|
|
86
|
+
A failed call raises a subclass of `apinoa.core.ApiError` named after its status (`BadRequestError`,
|
|
87
|
+
`PaymentRequiredError`, `NotFoundError`, `TooManyRequestsError`, …). `err.body.error.code` is the stable
|
|
88
|
+
code to branch on; every code is listed at [apinoa.com/docs/errors](https://apinoa.com/docs/errors). A
|
|
89
|
+
failed call is not billed.
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
from apinoa import NotFoundError, PaymentRequiredError
|
|
93
|
+
|
|
94
|
+
try:
|
|
95
|
+
client.amazon.product(id="B000000000")
|
|
96
|
+
except NotFoundError:
|
|
97
|
+
print("no such product")
|
|
98
|
+
except PaymentRequiredError:
|
|
99
|
+
print("top up your balance")
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Retries and timeouts
|
|
103
|
+
|
|
104
|
+
`429`, `408` and `5xx` answers are retried twice with exponential backoff, honouring `Retry-After`. The
|
|
105
|
+
default timeout is 300 seconds, because image translation under load can take minutes. Both can be set
|
|
106
|
+
per client or per call:
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
client = Apinoa(max_retries=4, timeout=60)
|
|
110
|
+
client.tiktok.posts(username="nasa", request_options={"max_retries": 0, "timeout_in_seconds": 10})
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Reference
|
|
114
|
+
|
|
115
|
+
Every method and parameter: [reference.md](./reference.md). The API itself:
|
|
116
|
+
[apinoa.com/docs](https://apinoa.com/docs). The OpenAPI document this SDK is generated from:
|
|
117
|
+
[apinoa.com/openapi.json](https://apinoa.com/openapi.json).
|
|
118
|
+
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
MIT
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "apinoa"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Official Python SDK for the apinoa API: marketplace, social and image-translation data through one API."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.9"
|
|
9
|
+
authors = [{ name = "apinoa" }]
|
|
10
|
+
keywords = ["apinoa", "amazon", "walmart", "shopify", "aliexpress", "tiktok", "reddit", "youtube", "instagram", "scraping", "api", "sdk"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 4 - Beta",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Operating System :: OS Independent",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
17
|
+
"Typing :: Typed",
|
|
18
|
+
]
|
|
19
|
+
dependencies = [
|
|
20
|
+
"httpx>=0.21.2",
|
|
21
|
+
"pydantic>=1.9.2",
|
|
22
|
+
"pydantic-core>=2.18.2; python_version >= '3.9'",
|
|
23
|
+
"typing_extensions>=4.0.0",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://apinoa.com"
|
|
28
|
+
Documentation = "https://apinoa.com/docs"
|
|
29
|
+
Repository = "https://github.com/apinoahq/apinoa-python"
|
|
30
|
+
Issues = "https://github.com/apinoahq/apinoa-python/issues"
|
|
31
|
+
|
|
32
|
+
[dependency-groups]
|
|
33
|
+
dev = ["pytest>=8", "pytest-asyncio>=0.24"]
|
|
34
|
+
|
|
35
|
+
[build-system]
|
|
36
|
+
requires = ["hatchling>=1.27"]
|
|
37
|
+
build-backend = "hatchling.build"
|
|
38
|
+
|
|
39
|
+
[tool.hatch.build.targets.wheel]
|
|
40
|
+
packages = ["src/apinoa"]
|
|
41
|
+
|
|
42
|
+
[tool.hatch.build.targets.sdist]
|
|
43
|
+
include = ["src/apinoa", "README.md", "LICENSE", "reference.md", "tests"]
|
|
44
|
+
|
|
45
|
+
[tool.pytest.ini_options]
|
|
46
|
+
testpaths = ["tests"]
|
|
47
|
+
addopts = "--ignore=tests/live"
|
|
48
|
+
asyncio_mode = "auto"
|