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

The graph command analyzes your codebase to extract:

  • CALLS edges (function → function)
  • IMPORTS edges (module → module)

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.18.tar.gz (208.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.18-py3-none-any.whl (272.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astonai-0.1.18.tar.gz
  • Upload date:
  • Size: 208.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.18.tar.gz
Algorithm Hash digest
SHA256 c31feafd6ba3c1c05c797d49d331d43c4715a097d2c9231bedffd3966faea1b1
MD5 527970baa310db61d8dcbdd11c091d87
BLAKE2b-256 4ccb091b7c77c0dd0106d9505039f0eea395bd5890ce7b0f500fcb7d74a41aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astonai-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 272.4 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7217e765b2d22720af56d50edc2d6ac0dc9c6e4a89eea5f72faea55f6aa179
MD5 cdcf00f2222d39a5d6519aa0bfe1f465
BLAKE2b-256 de376f663c50d3eb02ac4f590dcd495c5461b899ed6996f112e04b761902c99b

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