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.3.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.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ticos_client-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 97e71c5b2e5af1a79d5017cbb418da8d0ac401036cef316bc7cf895079d0a269
MD5 33b674c72ec8827bd90b4ffb14c64e10
BLAKE2b-256 a42fbd7c92c3fd43fc01090b5b4232501cfae1f47d39c8e8746a2f496e7b3d91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticos_client-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e860b548755894721d294f90b8e8ab346d91b48798b84e518708a5cdfa3098d9
MD5 f208053afd1326d0fa0fe647e77cc965
BLAKE2b-256 fa59ab1e205b2b710a189c56cbd00cdd49705267ec46657a37b2149116d08df6

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