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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lightwave_core-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 589cea13dfa35f63b499ceb101a01ef5ae858234f458ac55c74a49f8de26cc87
MD5 fa70d46f553b393292cfd1d3e6dc2b3c
BLAKE2b-256 e2547cfc5d3d3b3f16cac4211b7174aef1e335b7f773d209bbad8b856c886f4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lightwave_core-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e53207d82fab83f179b2c7b7e125026bda7531cf8d830edf284d37aa84fdf01
MD5 e21e1725eca18facfcf5258a1c757069
BLAKE2b-256 cbf3bcfb5dc8d7d6310ff38b12311fbbb134789989180f8132b891dbcea5ca47

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