Skip to main content

Sage Deps

Project description

Sage Deps - A Sage Dependency Analysis Tool

This is a SageMath dependency analysis tool used for understanding Sage's structure. It can be used to detect circular imports, upstream dependencies, and provide various dependency-graph metrics including PageRank.

Installation

To install, simply download or clone the repository. The package requires numpy, scipy, networkx, and scikit-network.

Setup and Usage

The package requires access to the SageMath repository. By default, it assumes you have the repository cloned to the same parent directory as your sage-deps folder. You may modify this by modifying the environment variable SAGEBASE in sagedeps/python/constants.py, or specifying the Sage installation directory using options (see below).

usage: sagedeps [-h] [-s SAGE_SOURCE] [-m MODULES_SOURCE] [-o OUTPUT_FILE] [-up UP_DEPENDENCY UP_DEPENDENCY] [-cc CHECK_CYCLES CHECK_CYCLES] [-gm] [-gi]
                [-gd] [-gg] [-gdg GENERATE_DEPENDENCY_GRAPH GENERATE_DEPENDENCY_GRAPH GENERATE_DEPENDENCY_GRAPH] [--ff [FILTER_SOURCE]]
                [-view [SHOW_VIEW]] [--verbose]

A program top help manage SageMath dependencies.

options:
  -h, --help            show this help message and exit
  -s, --sage-source SAGE_SOURCE
                        The source file of Sage.
  -m, --modules-source MODULES_SOURCE
                        Specify the modules file.
  -o, --output-file OUTPUT_FILE
                        Specify the file to dump the output.
  -up UP_DEPENDENCY UP_DEPENDENCY
                        Generates a breadth-first dependency tree rooted at a particular node, up to a given depth.
  -cc CHECK_CYCLES CHECK_CYCLES
                        Finds cycles starting at given node.
  -gm, --generate-modules
                        Generate a modules file. Can optionally pass in destination file.
  -gi, --generate-imports
                        Generate an imports file. Can optionally pass in destination file.
  -gd, --generate-dependencies
                        Generate a dependencies file. Can optionally pass in destination file.
  -gg, --generate-graph
                        Generate an graph file. Can optionally pass in destination file.
  -gdg, --generate-dependency-graph GENERATE_DEPENDENCY_GRAPH GENERATE_DEPENDENCY_GRAPH GENERATE_DEPENDENCY_GRAPH
                        Generate an tree file.
  --ff [FILTER_SOURCE]  Load a custom filter. If not, a default filter is used.
  -view, --view [SHOW_VIEW]
                        Runs a cytoscape.js instance.
  --verbose             Enable verbose output.

Example Usage

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

sage_deps-0.1.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

sage_deps-0.1.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file sage_deps-0.1.0.tar.gz.

File metadata

  • Download URL: sage_deps-0.1.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for sage_deps-0.1.0.tar.gz
Algorithm Hash digest
SHA256 439d663072ec7373fce30c3be846555a3b09d1db5c187efd33645871039e3fd6
MD5 13b4505c7c684dccf7f300244fbcebeb
BLAKE2b-256 f761a645204b48ed14bc735c5cabc0df2b8a2ff83c1572a482f5a70379b2f1f4

See more details on using hashes here.

File details

Details for the file sage_deps-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sage_deps-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for sage_deps-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a574dbe5a1203c02dbffbeef2760585a90dae47e4dc4d4ba6939e312b671870d
MD5 27311837f9b5f75eed633d1912f421ea
BLAKE2b-256 9b8fd401487b2b9ec25d0f806bc8b5eed6cdb1a3b82c7df93daddaba77ec1e24

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