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.4.tar.gz (3.7 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.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ticos_client-0.1.4.tar.gz
  • Upload date:
  • Size: 3.7 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.4.tar.gz
Algorithm Hash digest
SHA256 4b79f00f2035582d54357ef18e6fa7d8b1e1489dcd0a777f8836b752b1e93fa4
MD5 d67116fc203f7ead7bb5fcd0c3ac7ab5
BLAKE2b-256 d98cc87eac28e030e76d1498be18ac26b2810e45b6800d4b19c47504f2d839d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ticos_client-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b98e4eb821b4cb5b0e03fec2f271690a8dc327f2e607e4d9db48290ef2955e4d
MD5 b47054701cde859ad67022ae1c4256bc
BLAKE2b-256 26c088a3e841cb2e5b7a196f8de016d222dfd216ba887672cf3f61759fa587cd

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