Skip to main content

TXAPI

轻量级的腾讯云SDK, 同时支持 yunapi2 与 yunapi3, 支持 公有云 / 专有云(租户端&运营端).

Install

pip install txapi

项目地址: https://pypi.org/project/txapi/

DEMO

# -*- coding:utf-8 -*-
from txapi import API

client = API.v3(
    api_domain="云API请求的域名",
    region="地域名称",
    secret_id="云API密钥id",
    secret_key="云API密钥key",
    debug=False,
    ssl=True)

cvm = client.get_client("cvm", "2017-03-12")

params = {
    "Limit": 20,
    "Offset": 1
}
print(cvm.request("DescribeInstances", params))
参数说明:

- api_domain: 云API请求的域名:
    默认为公有云域名, 也支持专有云(租户端+运营端)
    公有云: tencentcloudapi.com
    租户端api2: api2.环境主域名
    租户端api3: api3.环境主域名
    运营端api2: yunapi2.环境主域名
    运营端api3: yunapi3.环境主域名
- region: 地域名称
- secret_id, secret_key: 云API密钥
- ssl (是否开启https, 默认为True)
- debug(是否打印请求响应信息, 默认为False),
- 公有云密钥登录腾讯云控制台获取: https://console.cloud.tencent.com/cam/capi

Metadata

Release files for txapi 1.0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for txapi 1.0.2.8
File Size Uploaded Provenance
txapi-1.0.2.8.tar.gz 151.8 kB Without provenance Details

Release files / txapi-1.0.2.8.tar.gz

Download URL txapi-1.0.2.8.tar.gz
Size 151.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bf20d329205dcfbf4956e6cf94e8dce94c11ef42ea326c5c7faaa31a22383d7f
BLAKE2b-256 checksum
How to use checksums
1dfa65a7809b7bf321bdb27f233a28adb4b08148cad3c76cc0d90557e5a0f8ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for txapi 1.0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page