Metadata-Version: 2.4
Name: codehealthkit
Version: 0.1.0
Summary: Simple Python code analysis and formatting library.
Author-email: Student Developer <student@example.com>
License: MIT License
        
        Copyright (c) 2024 Student Developer
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# CodeHealthKit

A simple Python library for analyzing and formatting Python code.

## Installation

```bash
pip install codehealthkit
```

## Usage

### Analyzer

```python
from codehealthkit.analyzer import count_lines
print(count_lines("sample.py"))
```

### Formatter

```python
from codehealthkit.formatter import snake_to_camel
print(snake_to_camel("student_name"))
```

## Functions

### analyzer.py
- `count_lines(file_path)` - Count total lines in a file
- `find_todos(file_path)` - Find TODO comments
- `find_missing_docstrings(file_path)` - Detect functions without docstrings
- `find_duplicate_lines(file_path)` - Detect duplicate lines

### formatter.py
- `snake_to_camel(text)` - Convert snake_case to camelCase
- `camel_to_snake(text)` - Convert camelCase to snake_case
- `remove_trailing_whitespace(file_path)` - Remove trailing spaces
- `find_long_lines(file_path, limit=79)` - Find lines over the limit

## License

MIT
