Skip to main content

Add your description here

Project description

Cline Core

A python library to run cline core

Installation

Install Cline CLI which includes Cline Core. For more info visit: https://cline.bot/cline-cli

npm install -g cline

Install this library

pip install cline_core

Usage

Basic Cline Instance Management

from cline_core import ClineInstance

with ClineInstance.with_available_ports() as instance:
    print(f"Instance started: {instance.address}")
    # Use the instance

Examples

See examples/example.py for a complete example of creating and monitoring tasks.

API Reference

ClineInstance

ClineInstance class for managing Cline Core processes.

Methods

  • start(): Launches cline-host and cline-core.js processes, waits for instance lock
  • stop(): Terminates the processes
  • wait_for_instance(timeout=30): Waits for instance lock in database
  • is_running(): Checks if processes are still running
  • with_available_ports(cwd, config_path=None): Factory method for automatic port allocation

Supports context manager protocol for automatic cleanup.

Protocol Buffer Files

The library includes gRPC protocol buffer definitions and generated Python files for communicating with Cline's gRPC services. These files are located in src/cline/proto/ and include:

  • Task management (task_pb2.py)
  • State management (state_pb2.py)
  • Common types (common_pb2.py)
  • And more...

Protocol buffer files are automatically generated during the build process using uv build. The generated files are included in the package distribution but ignored in version control.

To manually regenerate these files during development:

python build.py

Development

This project uses uv for package management and development.

# Install dependencies
uv sync --dev

# Run tests
uv run pytest

# Semantic release (handled by CI)
  • Automatic versioning with python-semantic-release
  • Conventional commits with commitizen
  • CI/CD with GitHub Actions

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

cline_core-0.1.1.tar.gz (83.1 kB view details)

Uploaded Source

Built Distribution

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

cline_core-0.1.1-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file cline_core-0.1.1.tar.gz.

File metadata

  • Download URL: cline_core-0.1.1.tar.gz
  • Upload date:
  • Size: 83.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cline_core-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f5091e7fefbb032ef6d6a64f9efd64a37ea873a11a2500670d02ab141756c75
MD5 766b0030960fb7e34e3f032a3b7df4e0
BLAKE2b-256 b37f02d14ea4a43633c5cefdeb21b255eda35186cf3f6bdef692e73a75865a36

See more details on using hashes here.

Provenance

The following attestation bundles were made for cline_core-0.1.1.tar.gz:

Publisher: release.yml on ademuk/cline-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cline_core-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cline_core-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cline_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ca5beb7b45a174879e7c7d46be2f6e6c70732ca5470d894326c8c732c6bafb
MD5 50ea8372261c7491e149ec9d9c7c0207
BLAKE2b-256 111ecc13ef83d0b213bf2002d42c18289aa745ef405b4a65b44105a7e673f78d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cline_core-0.1.1-py3-none-any.whl:

Publisher: release.yml on ademuk/cline-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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