Skip to main content
## CppCloud python3客户端sdk

install: pip install cppcloud
package: cppcloud

```
import cppcloud

if __name__ == "__main__":
if not cppcloud.init('serv_host', 4800, svrname="TestApp"):
print('CloudApp start fail, exit')
exit(-1)

# service job here

cppcloud.uninit()
```

CloudApp实例是*CppCloud python*客户端sdk的核心,提供与服务端cppcloud_serv的长连接,
只要初始化成功后便会自动保持心跳,接收/响应服务器命令,上报本服务状态等。
服务治理的其他业务(配置,服务提供,服务消费)都基于cloudapp之上,各业务实例均采用
单实例模型,下面的函数即是提供应该获得业务实例用的:

confObject() 分布式配置实例
statObject() 统计模块实例
providerObject() 服务提供者 # 无需实例,仅作初始化用
invokerObject() 服务消费者实例

ps: 如果某种实例无需用到,则不要调用对应的xxxObject()即可。

Metadata

Release files for cppcloud 1.0.3

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

Source distribution (sdist)

Source distribution for cppcloud 1.0.3
File Size Uploaded Provenance Actions
cppcloud-1.0.3.tar.gz 21.3 kB Without provenance Details for cppcloud-1.0.3.tar.gz

Release files / cppcloud-1.0.3.tar.gz

Download URL cppcloud-1.0.3.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
37b58466ab6de1ced75a31ce915136b32ce958c76b4224815fa040a5951ea1dd
BLAKE2b-256 checksum
How to use checksums
58d75c084b2bfbf0ebc34f9c324fc45118483efc2c872701f646fc67f072e84c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.0

Security for cppcloud 1.0.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file No provenance

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