Skip to main content

PyPevol - Python Package Evolution Analysis Tool

A comprehensive tool for analyzing PyPI package API evolution and lifecycle. This package fetches information from PyPI, analyzes wheels and sources, and provides detailed reports about when APIs were introduced and removed across different versions.

Features

  • PyPI Integration: Fetch package metadata and releases from PyPI
  • Wheel Analysis: Download and analyze wheel files to extract API information
  • Source Code Analysis: Parse Python source code to identify APIs
  • Evolution Tracking: Track API changes across package versions
  • Visualization: Generate interactive reports and visualizations
  • CLI Interface: Easy-to-use command-line interface
  • Web Dashboard: Interactive web interface for exploring results

Installation

pip install pypevol

For development:

pip install -e ".[dev]"

Quick Start

Command Line Usage

# Analyze a single package
pypevol analyze requests

# Analyze with specific version range
pypevol analyze requests --from-version 2.20.0 --to-version 2.28.0

# Generate HTML report
pypevol analyze requests --output report.html --format html

# Analyze multiple packages
pypevol analyze requests flask django --output results/

Python API Usage

from pypevol import PackageAnalyzer

# Create analyzer
analyzer = PackageAnalyzer()

# Analyze package evolution
result = analyzer.analyze_package('requests')

# Get API changes
api_changes = result.get_api_changes()

# Generate report
report = result.generate_report(format='html')

API Evolution Analysis

PyPevol tracks the following API elements:

  • Functions: Top-level and module functions
  • Classes: Class definitions and inheritance
  • Methods: Instance and class methods
  • Properties: Class properties and descriptors
  • Constants: Module-level constants
  • Type Hints: Type annotations and their evolution

Output Formats

  • JSON: Machine-readable format for further processing
  • HTML: Interactive web report with visualizations
  • CSV: Tabular format for spreadsheet analysis
  • Markdown: Human-readable documentation format

Configuration

Create a .pypevol.yaml configuration file:

# Package analysis settings
analysis:
  include_private: false
  include_deprecated: true
  max_versions: 50

# Output settings
output:
  default_format: html
  include_source_links: true
  show_usage_examples: true

# Caching settings
cache:
  enabled: true
  directory: ~/.pypevol/cache
  max_size: 1GB

Examples

See the examples/ directory for detailed usage examples and tutorials.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Run the test suite: pytest
  6. Submit a pull request

License

MIT License - see LICENSE file for details.

Metadata

Release files for pypevol 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypevol 0.2.2
File Size Uploaded Provenance Actions
pypevol-0.2.2.tar.gz 848.6 kB Without provenance Details for pypevol-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypevol 0.2.2
File Interpreter ABI Platform Actions
pypevol-0.2.2-py3-none-any.whl Python 3 none any Details for pypevol-0.2.2-py3-none-any.whl

Total release size: 887.2 kB

Release files / pypevol-0.2.2.tar.gz

Download URL pypevol-0.2.2.tar.gz
Size 848.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a840d3f05782d53f3e55e7104751f98a95fad5c1d99776bfc7f769ea9dd15ad
BLAKE2b-256 checksum
How to use checksums
425c6da35f46d2a7fb39e51046db1df4d52894e743c55ea8544be26d3acd8eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pypevol-0.2.2-py3-none-any.whl

Download URL pypevol-0.2.2-py3-none-any.whl
Size 38.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f745e669ea1e36eb60be3a1c74a2c68f8ce17905400d50a7ccc0ea3250b3a60a
BLAKE2b-256 checksum
How to use checksums
002a08b3158566df31e10a4f1aaea98507b80188c2e4d759960a29f31bbaa2ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for pypevol 0.2.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page