Skip to main content

Core library for the LightWave ecosystem.

Project description

Lightwave Core Library

Core library for the Lightwave task and project management system. This library provides the fundamental functionality, models, and services used by the Lightwave CLI and other tools.

Features

  • Task management with subtasks and dependencies
  • Sprint planning and tracking
  • Scrum project organization
  • Team member management
  • File-based data storage with JSON
  • Comprehensive error handling
  • Type-safe models using Pydantic

Installation

pip install lightwave-core

Usage

Basic Task Management

from lightwave.core import TaskService, Task

# Initialize the service
service = TaskService()

# Create a new task
task = service.create_task({
    "title": "Implement user authentication",
    "description": "Add OAuth2 authentication to the API",
    "priority": "high"
})

# Add subtasks
task = service.expand_task(
    task_id=task.id,
    num_subtasks=3,
    context_prompt="Break down the OAuth implementation"
)

# List all tasks
tasks = service.list_tasks()

# Get a specific task
task = service.get_task(1)

# Update a task
updated_task = service.update_task(1, {
    "status": "in_progress",
    "details": "Using Auth0 for OAuth provider"
})

Sprint Management

from lightwave.core import Sprint
from datetime import datetime, timedelta

sprint = Sprint(
    id="sprint-1",
    name="Authentication Sprint",
    scrum_id="main-project",
    start_date=datetime.utcnow(),
    end_date=datetime.utcnow() + timedelta(days=14),
    goal="Complete user authentication system"
)

Scrum Project Setup

from lightwave.core import Scrum, TeamMember

team_member = TeamMember(
    id="user-1",
    name="John Doe",
    email="john@example.com",
    role="developer"
)

scrum = Scrum(
    id="main-project",
    name="Authentication System",
    department_id="engineering",
    description="Implement secure user authentication"
)

scrum.add_team_member(team_member)

Development

Setup

  1. Clone the repository:

    git clone https://github.com/kiwi-dev-la/lightwave-core.git
    cd lightwave-core
    
  2. Create and activate a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install development dependencies:

    pip install -e ".[dev,test]"
    
  4. Install pre-commit hooks:

    pre-commit install
    

Running Tests

pytest

Code Quality

  • Format code:

    ruff format .
    
  • Run linter:

    ruff check .
    
  • Run type checker:

    mypy src
    

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and ensure code quality checks pass
  5. Submit a pull request

License

Proprietary - All rights reserved

Related Projects

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

lightwave_core-0.1.3.tar.gz (132.7 kB view details)

Uploaded Source

Built Distribution

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

lightwave_core-0.1.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightwave_core-0.1.3.tar.gz
  • Upload date:
  • Size: 132.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for lightwave_core-0.1.3.tar.gz
Algorithm Hash digest
SHA256 77c1a1bcbcb72e75bba883778ebc80dc7bddf822a73c0b99a7117a992e7f5eaa
MD5 4ce07052318981c49923f23d648117f7
BLAKE2b-256 8aed469fc0e1c825f5ab23f55ae27f9d2f2aa7380ba9a23b9b15b4bacff0d230

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lightwave_core-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for lightwave_core-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 962b9bf8e144d69dc59027acc6611c3b8a80f789d61ee5c0e832e18a7f46d8a4
MD5 4a012d969b358e886b336808812a670b
BLAKE2b-256 dd45d51f3621cd567fd80e7c36510ae507d0f754882533cbf4ba52313bebc52e

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