Skip to main content

A client SDK for communicating with Ticos Server

Project description

Ticos Client Python SDK

A Python client SDK for communicating with Ticos Server.

Installation

pip install ticos-client

Usage

from ticos_client import TicosClient

# Create a client instance
client = TicosClient(host="localhost", port=8080)

# Connect to server
client.connect(auto_reconnect=True)

# Define message handler
def handle_message(func, id):
    print(f"Received message - func: {func}, id: {id}")

# Set message handler
client.set_handler(handle_message)

# Send message
client.send_message(func="test", id="123")

# Disconnect when done
client.disconnect()

Features

  • Automatic reconnection
  • Message handling
  • Thread-safe communication
  • Configurable connection settings

Requirements

  • Python 3.6 or higher

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

ticos_client-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

ticos_client-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ticos_client-0.1.2.tar.gz.

File metadata

  • Download URL: ticos_client-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ticos_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 189a6c401606585929fd7f4f997f8f6537f8d945334ba1d20d71182eafd2ff9f
MD5 6327d98a6a5d9d20fc28145e1355ead7
BLAKE2b-256 2b2ceb0c90c08f2a6b35f89b40e4440b479b430cf3f4795f14725de49e83fbde

See more details on using hashes here.

File details

Details for the file ticos_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ticos_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ticos_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d931d41275f77ce826224c11fbe70001a6163a09b496bafb57cbd0480d2e1d7
MD5 d49e06aa31f27eb697c80e2f3635ef4d
BLAKE2b-256 345b93124f3269f16eada3119201892696835c59c48890461fcc85db866742f0

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