NextPy Agent
Version: 0.1.0
Status: Alpha (Phase B - Stage 1)
Overview
NextPy Agent is an AI-powered coding assistant specifically designed for the NextPy framework. It provides intelligent code generation, debugging, and refactoring capabilities with deep understanding of NextPy's architecture.
Quick Start
Installation
pip install nextpy-agent
Basic Usage
# Start a chat session
nextpy-agent chat
# Or with a specific provider
nextpy-agent chat --provider anthropic
nextpy-agent chat --provider ollama
Phase B - Stage 1 Features
Current Capabilities:
- Multi-provider support (Anthropic, Ollama)
- Interactive chat interface
- Framework-aware context via introspection
- Configuration management
- Quick start (<2 min setup)
Coming Soon (Stages 2-7):
- Tab completion
- Diff rendering
- Inline editing
- RAG with framework documentation
- Memory across sessions
- Composer mode with task planning
Provider Support
Anthropic (Cloud)
- Default provider for zero-install experience
- Requires API key:
ANTHROPIC_API_KEYenvironment variable - Best for: Production use, highest quality responses
Ollama (Local)
- Optional local provider for privacy and cost savings
- Requires Ollama installation and running service
- Best for: Development, offline use, cost-sensitive projects
Configuration
Create a .env file or set environment variables:
# Anthropic (cloud provider)
ANTHROPIC_API_KEY=your_api_key_here
# Ollama (local provider)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=gemma3:4b
# Default provider
NEXTPY_PROVIDER=anthropic
Development
Setup
# Clone repository
git clone https://github.com/IBRAHIMFONYUY/nextpy-agent.git
cd nextpy-agent
# Install with dev dependencies
pip install -e ".[dev,ollama]"
# Run tests
pytest
# Format code
black src/
ruff check src/
Architecture
nextpy-agent/
├── src/nextpy_agent/
│ ├── __init__.py
│ ├── cli.py # Command-line interface
│ ├── config.py # Configuration management
│ ├── providers/ # LLM provider implementations
│ │ ├── __init__.py
│ │ ├── base.py # Abstract provider interface
│ │ ├── anthropic.py # Anthropic provider
│ │ └── ollama.py # Ollama provider
│ └── chat.py # Chat functionality
├── tests/
├── pyproject.toml
└── README.md
Roadmap
Phase B - Stage 1 (Current)
- ✅ Provider interface
- ✅ Anthropic integration
- ✅ Ollama integration
- ✅ Basic chat functionality
- ✅ Configuration management
Phase C - Stages 2-3
- Tab completion
- Diff rendering
- Inline editing
Phase D - Stages 4-5
- RAG with framework docs
- Memory across sessions
Phase E - Stages 6-7
- Composer mode
- Task planning and execution
- AST-aware editing
License
MIT License - see LICENSE file for details.
Contributing
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
Metadata
Release files for nextpy-agent 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nextpy_agent-0.2.0.tar.gz | 63.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nextpy_agent-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 135.5 kB
Release files / nextpy_agent-0.2.0.tar.gz
| Download URL | nextpy_agent-0.2.0.tar.gz |
|---|---|
| Size | 63.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cdea765578b8a06bdd161e7af4bb7dd7f712fb756e7ff56dcb73bf63eb29b20
|
|
BLAKE2b-256 checksum How to use checksums |
27765b2531ee33a4227645d56e6399410da13610e8b4f6739e6733a2e500972f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / nextpy_agent-0.2.0-py3-none-any.whl
| Download URL | nextpy_agent-0.2.0-py3-none-any.whl |
|---|---|
| Size | 72.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f9dbd8710d6e6c2d487eb25dd83c9e7fe692f0bf675e481a89b413a75d19cba
|
|
BLAKE2b-256 checksum How to use checksums |
c0d0838027010e1289fcd1a0b530e19474d96725552fdf120f51904ec566b1db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for nextpy-agent 0.2.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.