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
-
Clone the repository:
git clone https://github.com/kiwi-dev-la/lightwave-core.git cd lightwave-core
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install development dependencies:
pip install -e ".[dev,test]"
-
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
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and ensure code quality checks pass
- Submit a pull request
License
Proprietary - All rights reserved
Related Projects
- lightwave-cli - Command-line interface for Lightwave
- lightwave-web - Web interface for Lightwave (coming soon)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77c1a1bcbcb72e75bba883778ebc80dc7bddf822a73c0b99a7117a992e7f5eaa
|
|
| MD5 |
4ce07052318981c49923f23d648117f7
|
|
| BLAKE2b-256 |
8aed469fc0e1c825f5ab23f55ae27f9d2f2aa7380ba9a23b9b15b4bacff0d230
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962b9bf8e144d69dc59027acc6611c3b8a80f789d61ee5c0e832e18a7f46d8a4
|
|
| MD5 |
4a012d969b358e886b336808812a670b
|
|
| BLAKE2b-256 |
dd45d51f3621cd567fd80e7c36510ae507d0f754882533cbf4ba52313bebc52e
|