Skip to main content

Sven

Sven is the CLI client for ActiveAgent, providing a command-line interface for interacting with the ActiveAgent server.

Installation

pip install sven

Usage

# Basic usage
aa --help

# Connect to a server
aa connect --url http://localhost:8000

# Run an agent
aa agent run --name my-agent

# List available tools
aa tools list

Development

Setup

# Clone the repository
git clone https://git.swedishembedded.com/core/platform/sven.git
cd sven

# Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install development dependencies
pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

Testing

pytest

Linting

# Run all linters
pre-commit run --all-files

# Run individual linters
black .
isort .
mypy .
ruff .

CI/CD Pipeline

This project uses GitLab CI/CD for automated testing, building, and deployment. The pipeline includes:

  • Lint: Code quality checks with black, isort, ruff, and mypy
  • Test: Unit and integration tests with pytest
  • Build: Package building with setuptools
  • Publish: Publishing to PyPI (on tags) and TestPyPI (on main branch)

Releasing

We use semantic versioning for this project. To create a new release:

  1. Update the CHANGELOG.md with your changes
  2. Use bump2version to increment the version:
    # For a patch release (0.1.0 -> 0.1.1)
    bump2version patch
    
    # For a minor release (0.1.0 -> 0.2.0)
    bump2version minor
    
    # For a major release (0.1.0 -> 1.0.0)
    bump2version major
    
  3. Push the new tag to trigger the release pipeline:
    git push --tags
    

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

License

MIT

Metadata

Release files for sven-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sven-client 0.1.0
File Size Uploaded Provenance
sven_client-0.1.0.tar.gz 28.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sven-client 0.1.0
File Interpreter ABI Platform
sven_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 64.5 kB

Release files / sven_client-0.1.0.tar.gz

Download URL sven_client-0.1.0.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
539142ef46a475467d2df9f391adcd24d4e44d8b8f1a3a8a0d7396f2eb7db35e
BLAKE2b-256 checksum
How to use checksums
e6c0e406cc58d38dc1caa05b883874438723de7d9fdc59f19aaef9b3a0f213bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / sven_client-0.1.0-py3-none-any.whl

Download URL sven_client-0.1.0-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55e61197998e75106abf210ba997918838637f03522d30db4e998fb0a4316819
BLAKE2b-256 checksum
How to use checksums
27bbc405315d7f4b7c5bad61a156c297c80a5430156789bc13a702a6376865c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for sven-client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page