Skip to main content

Utilities for Coze coding client runtime context and helpers.

Project description

coze-coding-utils

Python utilities for the Coze coding client. Provides a simple runtime Context object and a factory function to construct it from environment variables and optional request headers.

Installation

pip install coze-coding-utils

Usage

from coze_coding_utils import new_context

ctx = new_context("fetchData", headers={
    "x-tt-logid": "abc123",
    "x-tt-env": "prod",
})
print(ctx.run_id, ctx.method)

Python Version

Requires Python 3.10+.

License

MIT

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

coze_coding_utils-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

coze_coding_utils-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file coze_coding_utils-0.1.0.tar.gz.

File metadata

  • Download URL: coze_coding_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for coze_coding_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67a1a87d754ab6fcb9c47a8c4e8449614df1d2bcab71eedd0144c3d8ba561ef0
MD5 b924a880315b204fbdec3821254fb69a
BLAKE2b-256 7d836745851d7955b2005263c04f15140808d46c5a0c8606f093d4b618a8cf25

See more details on using hashes here.

File details

Details for the file coze_coding_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coze_coding_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08d8178a3b32d39c7c0a8a4d0ae7362e06639cb5ddf1cefacd6f463fbaae3f99
MD5 0c7cc57a79aa79be0a01e55a1925dc86
BLAKE2b-256 906cff432184165ca631608498e1bded2f64534df149e5797034585ed5465847

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