Skip to main content

Paranoid Zookeeper SDK

Installation

Install the package using pip:

pip install paranoid_zookeeper

Usage

Example

from paranoid_zookeeper import ZookeeperServiceContext, Artifact, HttpHealthCheck, Zookeeper

# Set up the service context
settings = {
    'id': 'my-service',
    'baseEndpoint': 'http://localhost:8080/zookeeper',
    'headers': {
        'Authorization': 'Bearer abc123'
    }
}
context = ZookeeperServiceContext(settings)

# Create the health check and artifact
health_check = HttpHealthCheck(url='/health', port_number=8080)
artifact = Artifact(
    id='artifact-1',
    name='My Service',
    description='A demo microservice',
    id_address='192.168.1.10',
    http_health_check=health_check,
    type='Service',
    depends_on=[],
    tags=['demo', 'microservice']
)

# Register the artifact
zk = Zookeeper(context)
result = zk.check_in(artifact)

if result.success:
    print("Check-in successful")
else:
    print("Check-in failed:", result.serviceResponse)

Requirements

  • Python 3.6 or higher
  • requests library

License

This project is licensed under the MIT License.

Release files for paranoid-zookeeper 2.0.0

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

Source distribution (sdist)

Source distribution for paranoid-zookeeper 2.0.0
File Size Uploaded
paranoid_zookeeper-2.0.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paranoid-zookeeper 2.0.0
File Interpreter ABI Platform
paranoid_zookeeper-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / paranoid_zookeeper-2.0.0.tar.gz

Download URL paranoid_zookeeper-2.0.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9b7cfff81b205e4ab584a360720a4eecebf856ca3299a1c4ec353e9d0a609829
BLAKE2b-256 checksum
How to use checksums
f9fdc2ee540da24dcb3bf66a0694e395698d4546364f40731771317d54a6c202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.17

Release files / paranoid_zookeeper-2.0.0-py3-none-any.whl

Download URL paranoid_zookeeper-2.0.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5e3b515efc6570bea16f2d38168ebb76d45d0b13f9738b0122c5b415c14b4b3
BLAKE2b-256 checksum
How to use checksums
a1ec03da33cc99b122c69aab3ae9e836ba6bf97e34581db9dc23715ab38dd715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.17

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.5

2 release files

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