Metadata-Version: 2.4
Name: PyBastion
Version: 0.0.1.dev0
Summary: Network device configuration security analysis tool (Development Version - Not Production Ready)
Author-email: Randy <randy@example.com>
License: MIT
Project-URL: Homepage, https://github.com/flyguy62n/pybastion
Project-URL: Repository, https://github.com/flyguy62n/pybastion.git
Project-URL: Issues, https://github.com/flyguy62n/pybastion/issues
Keywords: network,security,configuration,analysis,cisco,fortinet,paloalto
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Networking
Classifier: Topic :: Security
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sqlmodel>=0.0.16
Requires-Dist: duckdb>=0.10.0
Requires-Dist: click>=8.1.0
Requires-Dist: pydantic>=2.5.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: rich>=13.7.0
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: jinja2>=3.1.0
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: python-dateutil>=2.8.0
Provides-Extra: dev
Requires-Dist: pytest>=8.3.5; extra == "dev"
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.7.0; extra == "dev"
Requires-Dist: pre-commit>=3.6.0; extra == "dev"
Dynamic: license-file

# PyBastion

⚠️ **DEVELOPMENT VERSION - NOT PRODUCTION READY** ⚠️

A comprehensive Python application for analyzing network device configurations to identify security vulnerabilities, compliance violations, and best practice deviations.

## 🚧 Current Status

**This package is in active development and is not ready for production use.**

- **Version**: 0.0.1 (Pre-Alpha)
- **Purpose**: PyPI name reservation and early development preview
- **Stability**: Features may change significantly between versions
- **Testing**: Limited functionality currently available

### What's Working
- Basic project structure and framework
- Core architecture design
- Development environment setup

### What's Coming
- Configuration file parsing for multiple vendors
- Security analysis and compliance checking
- Comprehensive reporting capabilities
- Full CLI interface

## Planned Features

- **Multi-vendor Support**: Parse and analyze configurations from:
  - Cisco IOS
  - Cisco ASA
  - FortiGate FortiOS
  - PaloAlto PAN-OS

- **Security Analysis**: 
  - CIS Benchmark compliance checks (Level 1)
  - Access control list analysis
  - Best practice validation
  - Vulnerability assessment using CVE Details API
  - End-of-life software detection

- **Flexible Reporting**: Generate reports in JSON, HTML, and Excel formats

- **Modern Architecture**: Built with Python 3.12+, SQLModel, DuckDB, and Click

## Installation

⚠️ **Warning**: This is a development version. Installing from PyPI will give you a minimal placeholder package.

### Prerequisites

- Python 3.12 or higher
- UV package manager (recommended for development)

### Install from PyPI (Development Version)

```bash
pip install pybastion
```

**Note**: The PyPI version currently provides only basic structure and will display warnings when imported. Most functionality is not yet implemented.

### Development Installation (Recommended)

To work with the actual development code:

```bash
git clone https://github.com/flyguy62n/pybastion.git
cd pybastion
uv sync
```

## Development Status & Roadmap

### Planned Usage (Coming Soon)

Once development is complete, PyBastion will support:

```bash
# Scan a single configuration file
pybastion scan files router.cfg

# Scan multiple files with device type specification
pybastion scan files --device-type cisco-ios *.cfg

# Scan directory recursively
pybastion scan files --recursive /path/to/configs/

# Generate HTML report
pybastion scan files --format html --output report.html *.cfg
```

### Generate Reports

```bash
# Generate report from database
pybastion report generate --database scan.db --format excel --output report.xlsx
```

### Validate Configurations

```bash
# Validate configuration syntax
pybastion validate config router.cfg --device-type cisco-ios
```

## Contributing

We welcome contributions! Since this is in early development:

1. Check the [Issues](https://github.com/flyguy62n/pybastion/issues) for current tasks
2. Fork the repository
3. Create a feature branch
4. Submit a pull request

### Development Setup

```bash
git clone https://github.com/flyguy62n/pybastion.git
cd pybastion
uv sync --group dev
uv run pytest
```

## Architecture

The application follows a modular, extensible architecture:

```
src/pybastion/
├── cli/                    # Command-line interface
├── core/                   # Core scanning logic
├── models/                 # Data models and schemas
├── parsers/                # Device-specific parsers
├── analyzers/              # Security analysis engines
├── api_clients/            # External API integrations
├── reports/                # Report generation
└── utils/                  # Utility functions
```

## Development Status

### Completed
- ✅ Project structure and architecture design
- ✅ Core framework setup
- ✅ Development environment configuration
- ✅ Base model classes and interfaces

### In Progress
- 🚧 Configuration file parsers
- 🚧 Security analysis engines
- 🚧 CLI interface implementation

### Planned
- 📅 API client integrations (CVE Details, End of Life)
- 📅 Report generation system
- 📅 Comprehensive test suite
- 📅 Documentation and examples

## Development

### Setup Development Environment

```bash
# Clone repository
git clone https://github.com/flyguy62n/pybastion.git
cd pybastion

# Install dependencies
uv sync --group dev

# Run tests
uv run pytest

# Run linting
uv run ruff check
uv run ruff format
```

### Publishing to PyPI

This package is currently published as a development placeholder to reserve the name. The process:

```bash
# Build the package
uv build

# Test on TestPyPI first
uv publish --repository testpypi

# Publish to PyPI
uv publish
```

## License

This project is licensed under the MIT License.

## Contact

- **Author**: Randy Bartels
- **Email**: rjbartels@outlook.com
- **Repository**: https://github.com/flyguy62n/pybastion
- **Issues**: https://github.com/flyguy62n/pybastion/issues
