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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cline_core-0.1.2.tar.gz.
File metadata
- Download URL: cline_core-0.1.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3293366d31a9a7d443be431633aa7ada67880dc1c81af9b4a62f31d5db6abfa0
|
|
| MD5 |
a359977afd24f61b0711e804c7108a81
|
|
| BLAKE2b-256 |
d58e7304a98f32216bab8286e2cc7af5b7b425eb110996433eab82592a02d0c0
|
Provenance
The following attestation bundles were made for cline_core-0.1.2.tar.gz:
Publisher:
release.yml on ademuk/cline-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cline_core-0.1.2.tar.gz -
Subject digest:
3293366d31a9a7d443be431633aa7ada67880dc1c81af9b4a62f31d5db6abfa0 - Sigstore transparency entry: 708973758
- Sigstore integration time:
-
Permalink:
ademuk/cline-core@64ab569ebe911a15f80ca93a97ced1d9a81deb84 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ademuk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@64ab569ebe911a15f80ca93a97ced1d9a81deb84 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cline_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cline_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f112c2ee8ad8cfa05343983d8c5176922bd1ec0240661ca64338fb2af91fb5b3
|
|
| MD5 |
9e211ffc440ab0201024fd2629924258
|
|
| BLAKE2b-256 |
12e6e53cef222810ed91bd924ad8fc33c06e87558ce6290234976a43124adff4
|
Provenance
The following attestation bundles were made for cline_core-0.1.2-py3-none-any.whl:
Publisher:
release.yml on ademuk/cline-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cline_core-0.1.2-py3-none-any.whl -
Subject digest:
f112c2ee8ad8cfa05343983d8c5176922bd1ec0240661ca64338fb2af91fb5b3 - Sigstore transparency entry: 708973775
- Sigstore integration time:
-
Permalink:
ademuk/cline-core@64ab569ebe911a15f80ca93a97ced1d9a81deb84 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ademuk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@64ab569ebe911a15f80ca93a97ced1d9a81deb84 -
Trigger Event:
push
-
Statement type: