Skip to main content

python-nacos

声明

参考nacos-sdk-python项目改造

https://github.com/nacos-group/nacos-sdk-python

Usage

from nacos import NacosUsage

SERVER_ADDRESSES = "127.0.0.1:8848"
NAMESPACE = "44b27ac4-60c1-43e7-8ac3-ed34108ca1aa"

params = {
    "servers": SERVER_ADDRESSES,
    "namespace": NAMESPACE,
    "service_name": "test.service",
    # "ip": "127.0.0.1",
    "port": 8080,
    "cluster_name": "testCluster",
    "weight": 1.0,
    "metadata": {},
    "enable": True,
    "healthy": True,
    "ephemeral": True,
}

usage = NacosUsage(debug=False, daemon=False, **params)

# 获取配置
conf = usage.get_config(data_id="test")
print("config: {}".format(conf))

# 注册实例
usage.register_instance()

Metadata

Release files for python-nacos 0.1.1

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

Source distribution (sdist)

Source distribution for python-nacos 0.1.1
File Size Uploaded Provenance Actions
python-nacos-0.1.1.tar.gz 12.1 kB Without provenance Details for python-nacos-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-nacos 0.1.1
File Interpreter ABI Platform Actions
python_nacos-0.1.1-py3-none-any.whl Python 3 none any Details for python_nacos-0.1.1-py3-none-any.whl

Total release size: 30.5 kB

Release files / python-nacos-0.1.1.tar.gz

Download URL python-nacos-0.1.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a92619d955b9fe0e48a52e6ecd23df1e784e2dde87b9b869a14b108659df7d26
BLAKE2b-256 checksum
How to use checksums
1a17a679c6de0b5ce204faefd5c33fdbf8a3195b84a3381989e7eb9e0c3956f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

Release files / python_nacos-0.1.1-py3-none-any.whl

Download URL python_nacos-0.1.1-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d43a064f395bec0ca7b52b55ac4116f0d0e3820cea04ca3208f0665f00d65af
BLAKE2b-256 checksum
How to use checksums
0b0861972c50d51b35b10624fffc24bc54fa74d62433f7444c39fe70fccf3d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

Security for python-nacos 0.1.1

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

0.1.1 This release

2 release files 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