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.1.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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightwave_core-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7b7e5645dea9b325f86b55610d8d0e7b162d356010008a33239852f36a0ab56e
MD5 62871a8e33a3cc03ecaca0c80ae9a9fe
BLAKE2b-256 bd928728eda78939d899d2ba7d28c3e5e48a72682f3421dd0d2efb50ecd4b7ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lightwave_core-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9a20df35b4ee558e7c9cd777e81c1ce2366517124c2663d1ffd88567897867
MD5 19aa4161b0b00d45039a6245b569ff07
BLAKE2b-256 5900b5015f69fdfb34635289f65def1e5af4f2a7cb3f2dcbc2867dbb32e015d3

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