Skip to main content

Test Intelligence Engine

Project description

Aston AI

Aston is a code intelligence system for parsing, analyzing, and finding test coverage gaps in your code.

Installation

# Install from PyPI
pip install astonai

Quick Start

# Initialize your repository
aston init --offline

# Generate knowledge graph relationships
aston graph build

# View knowledge graph statistics
aston graph stats

Core Commands

Repository Initialization

# Initialize repository and create knowledge graph
aston init [--offline]

Options:

  • --offline: Skip Neo4j integration and work with local files only (default)
  • --online: Use Neo4j if available (broken right now)

Test Coverage

# Run tests with coverage
aston test

# Find testing gaps
aston coverage [--threshold 80] [--json results.json] [--exit-on-gap]

Options:

  • --threshold: Minimum coverage percentage (default: 0)
  • --json: Output results in JSON format
  • --exit-on-gap: Return code 1 if gaps found (useful for CI)
  • --coverage-file: Specify custom coverage file location

Knowledge Graph

# Build edge relationships between nodes
aston graph build

# View statistics about the knowledge graph
aston graph stats

# Export graph to DOT format
aston graph export [--output graph.dot] [--filter CALLS,IMPORTS] [--open]

# Open interactive graph viewer in browser
aston graph view [--filter CALLS,IMPORTS]

The graph command provides:

  • build: Analyzes your codebase to extract CALLS and IMPORTS edges
  • stats: Displays node and edge statistics
  • export: Converts the graph to Graphviz DOT format
  • view: Opens an interactive D3.js visualization in your browser

Environment Check

# Check if all required dependencies are installed
aston check

Options:

  • --no-env-check: Skip environment dependency check (also works with any command)

Repository-Centric Design

Aston follows a repository-centric approach:

  • All operations are relative to the repository root (current directory)
  • Data is stored in .testindex directory at the repository root
  • Path resolution is normalized for consistent matching
  • Works with both offline and Neo4j storage

Environment Variables

DEBUG=1                      # Enable debug logging
NEO4J_URI=bolt://localhost:7687  # Optional Neo4j connection
NEO4J_USER=neo4j            # Optional Neo4j username
NEO4J_PASS=password         # Optional Neo4j password
ASTON_NO_ENV_CHECK=1        # Skip environment dependency check

Project details


Download files

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

Source Distribution

astonai-0.1.19.tar.gz (213.3 kB view details)

Uploaded Source

Built Distribution

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

astonai-0.1.19-py3-none-any.whl (278.2 kB view details)

Uploaded Python 3

File details

Details for the file astonai-0.1.19.tar.gz.

File metadata

  • Download URL: astonai-0.1.19.tar.gz
  • Upload date:
  • Size: 213.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for astonai-0.1.19.tar.gz
Algorithm Hash digest
SHA256 a79091b05af799c918d77d7cfc866b223ca44975ca85ba4a27477a6d68c161f3
MD5 393bfd786d655ab18965ee45b3470fc8
BLAKE2b-256 a783454e941dc555794eafbfc97c96cbd76482e524651b69e9ab3c83ec72ceeb

See more details on using hashes here.

File details

Details for the file astonai-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: astonai-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 278.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for astonai-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 00cf19e3114042d6765c94d87ee81647dd5024a2bfec908a8a17902f10e2e3a4
MD5 f7bc76986be16dd71f943475c68fc2b7
BLAKE2b-256 9c135e46fe0f1901c38551f8aca4ec0ba435eaade42af5e92d22537997a8ca15

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