Skip to main content

Language-Driven Software Development Assistant powered by Claude AI

Project description

Janito is an open source Language-Driven Software Development Assistant powered by Claude AI. It helps developers understand, modify, and improve their Python code through natural language interaction.

Features

  • Natural language code interactions
  • File system monitoring and auto-restart
  • Interactive command-line interface
  • Workspace management and visualization
  • History and session management
  • Debug mode for troubleshooting
  • Syntax error detection and fixing
  • Python file execution
  • File editing with system editor

Installation

# Install package
pip install janito

Usage

Start Janito in your project directory:

python -m janito

Or launch with options:

python -m janito --debug  # Enable debug mode
python -m janito --no-watch  # Disable file watching

Commands

  • .help [command] - Show help information. Specify a command for details.
  • .exit - Exit the console
  • .clear - Clear console output
  • .debug - Toggle debug mode
  • .workspace [--missing] - Show workspace structure. Use --missing to show excluded files.
  • .last - Show last Claude response
  • .show <file> - Show file content with syntax highlighting
  • .check - Check workspace Python files for syntax errors
  • .p <file> - Run a Python file
  • .python <file> - Run a Python file (alias for .p)
  • .edit <file> - Open file in system editor
  • .missing - Show files excluded from the workspace based on patterns
  • .edit <file> - Open file in system editor

Input Formats

  • !request - Request file changes (e.g. '!add logging to utils.py')
  • request? - Get information and analysis without changes
  • request - General discussion and queries
  • $command - Execute shell commands

Configuration

Requires an Anthropic API key set via environment variable:

export ANTHROPIC_API_KEY='your_api_key_here'

Development

The package consists of several modules:

  • janito.py - Core functionality and CLI interface
  • change.py - File modification and change tracking
  • claude.py - Claude API interaction
  • console.py - Interactive console and command handling
  • commands.py - Command implementations
  • prompts.py - Prompt templates and builders
  • watcher.py - File system monitoring
  • workspace.py - Workspace analysis and management
  • xmlchangeparser.py - XML parser for file changes
  • watcher.py - File system monitoring

License

MIT License

Project details


Release history Release notifications | RSS feed

This version

0.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

janito-0.2.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

janito-0.2.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file janito-0.2.0.tar.gz.

File metadata

  • Download URL: janito-0.2.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for janito-0.2.0.tar.gz
Algorithm Hash digest
SHA256 57b137d2f3fb23edc8f6ddb90068ed2698613f9e4354212bc67eb94578b369d5
MD5 b6d138ee85b79f898aa2fceab59a7f4f
BLAKE2b-256 86dc8c2f6b4186f49953346a26d510e667494aafda5546001f35b72400749bcf

See more details on using hashes here.

File details

Details for the file janito-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: janito-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for janito-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5397822b5361ae94e6ff18bdcf2d3b445c30a8aa46e1ff021c553147bb738cc4
MD5 ac80009ca1034f9f4dd815894e47e8fc
BLAKE2b-256 f53868d7ecd3eb21f56a19d68f2b2f0322aa3d278550eb2c869d322cf60be8fd

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