Skip to main content

A lightweight and efficient SDK for interacting with the One2X platform.

Project description

One2x-sdk

SDK for One2x Developer


快速开始

初始化客户端

from one2x_sdk import CoreApiClient

client = CoreApiClient(
    base_url="https://api.example.com",  # API 基础 URL(可选)
    token="your-token",                 # 认证 Token(可选)
    enable_requests=True                # 是否启用请求(可选,默认 False)
)

默认配置

  1. base_url:http://localhost:3000
  2. token:default-token
  3. enable_requests:False

可通过以下环境变量覆盖默认配置:

  1. MEDEO_CORE_API_BASE_URL:API 基础 URL
  2. MEDEO_CORE_API_AUTH_TOKEN:认证 Token
  3. MEDEO_CORE_API_ENABLE_REQUESTS:是否启用请求("true" 或 "false")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

one2x_sdk-0.0.22.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

one2x_sdk-0.0.22-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file one2x_sdk-0.0.22.tar.gz.

File metadata

  • Download URL: one2x_sdk-0.0.22.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for one2x_sdk-0.0.22.tar.gz
Algorithm Hash digest
SHA256 08678e4d6dc17c831d96beac17eb327dbf98362336a4dbcc05fe64b58cf8c99b
MD5 7af6fa5b5cc97afcbfb44056661d4748
BLAKE2b-256 b68c8207d786b784600a822e142add776c585d50be69b39086b64ea6ae8c73d8

See more details on using hashes here.

File details

Details for the file one2x_sdk-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: one2x_sdk-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for one2x_sdk-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 b4932ef799c2de3d9588304b9dd3c55926dc207930d45c29e21bcf0e8921e0c5
MD5 0d2b80288dff218b92e4809f07bc56b6
BLAKE2b-256 3ab1718b9b1b6f215062e856d03a220aa264aeae31d5006c77e7dffa7b3ee047

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page