uapi-sdk-python/internal at main · AxT-Team/uapi-sdk-python · GitHub
Skip to content

Latest commit

 

History

History

README.md

uapi-sdk-python

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import uapi

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import uapi

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import uapi
from uapi.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://uapis.cn/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = uapi.Configuration(
    host = "https://uapis.cn/api/v1"
)



# Enter a context with an instance of the API client
with uapi.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = uapi.DefaultApi(api_client)

    try:
        # 搜索引擎配置
        api_response = api_instance.get_search_engines()
        print("The response of DefaultApi->get_search_engines:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->get_search_engines: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://uapis.cn/api/v1

Class Method HTTP request Description
DefaultApi get_search_engines GET /search/engines 搜索引擎配置
DefaultApi get_sensitive_word_analyze_query GET /sensitive-word/analyze-query 敏感词分析 (GET)
DefaultApi post_search_aggregate POST /search/aggregate 智能搜索
DefaultApi post_sensitive_word_analyze POST /sensitive-word/analyze 分析敏感词
DefaultApi post_sensitive_word_quick_check POST /text/profanitycheck 敏感词检测(快速)
ClipzyApi get_clipzy_get GET /api/get 步骤2 (方法一): 获取加密数据
ClipzyApi get_clipzy_raw GET /api/raw/{id} 步骤2 (方法二): 获取原始文本
ClipzyApi post_clipzy_store POST /api/store 步骤1:上传加密数据
ConvertApi get_convert_unixtime GET /convert/unixtime 时间戳转换
ConvertApi post_convert_json POST /convert/json JSON 格式化
DailyApi get_daily_news_image GET /daily/news-image 每日新闻图
GameApi get_game_epic_free GET /game/epic-free Epic 免费游戏
GameApi get_game_minecraft_historyid GET /game/minecraft/historyid 查询 MC 曾用名
GameApi get_game_minecraft_serverstatus GET /game/minecraft/serverstatus 查询 MC 服务器
GameApi get_game_minecraft_userinfo GET /game/minecraft/userinfo 查询 MC 玩家
GameApi get_game_steam_summary GET /game/steam/summary 查询 Steam 用户
ImageApi get_avatar_gravatar GET /avatar/gravatar 获取Gravatar头像
ImageApi get_image_bing_daily GET /image/bing-daily 获取必应每日壁纸
ImageApi get_image_bing_daily_history GET /image/bing-daily/history 查询必应壁纸历史
ImageApi get_image_motou GET /image/motou 生成摸摸头GIF (QQ号)
ImageApi get_image_qrcode GET /image/qrcode 生成二维码
ImageApi get_image_tobase64 GET /image/tobase64 图片转 Base64
ImageApi post_image_compress POST /image/compress 无损压缩图片
ImageApi post_image_decode POST /image/decode 解码并缩放图片
ImageApi post_image_frombase64 POST /image/frombase64 通过Base64编码上传图片
ImageApi post_image_motou POST /image/motou 生成摸摸头GIF
ImageApi post_image_nsfw POST /image/nsfw 图片敏感检测
ImageApi post_image_ocr POST /image/ocr 通用 OCR 文字识别
ImageApi post_image_speechless POST /image/speechless 生成你们怎么不说话了表情包
ImageApi post_image_svg POST /image/svg SVG转图片
MiscApi get_history_programmer GET /history/programmer 程序员历史事件
MiscApi get_history_programmer_today GET /history/programmer/today 程序员历史上的今天
MiscApi get_misc_district GET /misc/district Adcode 国内外行政区域查询
MiscApi get_misc_holiday_calendar GET /misc/holiday-calendar 查询节假日与万年历
MiscApi get_misc_hotboard GET /misc/hotboard 查询热榜
MiscApi get_misc_lunartime GET /misc/lunartime 查询农历时间
MiscApi get_misc_phoneinfo GET /misc/phoneinfo 查询手机归属地
MiscApi get_misc_randomnumber GET /misc/randomnumber 随机数生成
MiscApi get_misc_timestamp GET /misc/timestamp 转换时间戳 (旧版,推荐使用/convert/unixtime)
MiscApi get_misc_tracking_carriers GET /misc/tracking/carriers 获取支持的快递公司列表
MiscApi get_misc_tracking_detect GET /misc/tracking/detect 识别快递公司
MiscApi get_misc_tracking_query GET /misc/tracking/query 查询快递物流信息
MiscApi get_misc_weather GET /misc/weather 查询天气
MiscApi get_misc_worldtime GET /misc/worldtime 查询世界时间
MiscApi post_misc_date_diff POST /misc/date-diff 计算两个日期之间的时间差值
NetworkApi get_network_dns GET /network/dns 执行DNS解析查询
NetworkApi get_network_icp GET /network/icp 查询域名ICP备案信息
NetworkApi get_network_ipinfo GET /network/ipinfo 查询 IP
NetworkApi get_network_myip GET /network/myip 查询我的 IP
NetworkApi get_network_ping GET /network/ping Ping 主机
NetworkApi get_network_pingmyip GET /network/pingmyip Ping 我的 IP
NetworkApi get_network_portscan GET /network/portscan 端口扫描
NetworkApi get_network_urlstatus GET /network/urlstatus 检查URL的可访问性状态
NetworkApi get_network_whois GET /network/whois 查询域名的WHOIS注册信息
NetworkApi get_network_wxdomain GET /network/wxdomain 检查域名在微信中的访问状态
PoemApi get_saying GET /saying 一言
RandomApi get_answerbook_ask GET /answerbook/ask 答案之书
RandomApi get_random_image GET /random/image 随机图片
RandomApi get_random_string GET /random/string 随机字符串
RandomApi post_answerbook_ask POST /answerbook/ask 答案之书 (POST)
SocialApi get_github_repo GET /github/repo 查询 GitHub 仓库
SocialApi get_github_user GET /github/user 查询 GitHub 用户信息
SocialApi get_social_bilibili_archives GET /social/bilibili/archives 查询 B站投稿
SocialApi get_social_bilibili_liveroom GET /social/bilibili/liveroom 查询 B站直播间
SocialApi get_social_bilibili_replies GET /social/bilibili/replies 查询 B站评论
SocialApi get_social_bilibili_userinfo GET /social/bilibili/userinfo 查询 B站用户
SocialApi get_social_bilibili_videoinfo GET /social/bilibili/videoinfo 查询 B站视频
SocialApi get_social_qq_groupinfo GET /social/qq/groupinfo 查询 QQ 群信息
SocialApi get_social_qq_userinfo GET /social/qq/userinfo 查询 QQ 信息
StatusApi get_status_ratelimit GET /status/ratelimit 限流状态
StatusApi get_status_usage GET /status/usage 获取API端点使用统计
TextApi get_text_md5 GET /text/md5 MD5 哈希
TextApi post_text_aes_decrypt POST /text/aes/decrypt AES 解密
TextApi post_text_aes_decrypt_advanced POST /text/aes/decrypt-advanced AES高级解密
TextApi post_text_aes_encrypt POST /text/aes/encrypt AES 加密
TextApi post_text_aes_encrypt_advanced POST /text/aes/encrypt-advanced AES高级加密
TextApi post_text_analyze POST /text/analyze 文本分析
TextApi post_text_base64_decode POST /text/base64/decode Base64 解码
TextApi post_text_base64_encode POST /text/base64/encode Base64 编码
TextApi post_text_convert POST /text/convert 格式转换
TextApi post_text_markdown_to_html POST /text/markdown-to-html Markdown 转 HTML
TextApi post_text_markdown_to_pdf POST /text/markdown-to-pdf Markdown 转 PDF
TextApi post_text_md5 POST /text/md5 MD5 哈希 (POST)
TextApi post_text_md5_verify POST /text/md5/verify MD5 校验
TranslateApi get_ai_translate_languages GET /ai/translate/languages AI翻译配置
TranslateApi post_ai_translate POST /ai/translate AI智能翻译
TranslateApi post_translate_stream POST /translate/stream 流式翻译(中英互译)
TranslateApi post_translate_text POST /translate/text 翻译
WebParseApi get_web_tomarkdown_async_status GET /web/tomarkdown/async/{task_id} 转换任务状态
WebParseApi get_webparse_extractimages GET /webparse/extractimages 提取网页图片
WebParseApi get_webparse_metadata GET /webparse/metadata 提取网页元数据
WebParseApi post_web_tomarkdown_async POST /web/tomarkdown/async 网页转 Markdown

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author