Skip to main content

Python semantic data extractor for Context-Footprint (AST + Jedi)

Project description

cf-extractor

Python semantic data extractor for Context-Footprint. Outputs SemanticData JSON using Python AST + Jedi.

As a dependency

This package is a dependency of cftool. When you install cftool via uv or pip, cf-extractor is installed automatically:

uv tool install cftool   # includes cf-extractor

Standalone usage

You can also install and use cf-extractor directly:

# From PyPI (when published)
pip install cf-extractor

# From Git
uv pip install "cf-extractor @ git+https://github.com/context-footprint/context-footprint#subdirectory=extractors/python"

# Development
cd extractors/python
uv sync

Run the extractor:

cf-extract /path/to/python/project
# or
uv run cf-extract /path/to/python/project
# or
python -m cf_extractor.main /path/to/project

Without arguments, uses the current directory (.). Output is written to stdout (valid JSON for cftool).

Tests

uv run pytest tests/ -v

Requirements

  • Python >= 3.9
  • jedi, pydantic (installed automatically)

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

cf_extractor-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

cf_extractor-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cf_extractor-0.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cf_extractor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c747c01edc11b31641fb9045793059ff06a27274161d9381ad9afa7d24401b75
MD5 c470e7297645badc1a0b7ebe7d89da96
BLAKE2b-256 de6e7561aebffe61cd81a5e68c696c5a9e9ad53f850201bfa5f96e62ff01ca95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cf_extractor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cf_extractor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8353c728079ee72fe5a94ab541c049242b6008a88eb2b35bd2fc75cb2f0ebd3
MD5 f29662e3cd969084420a542a6486cdc3
BLAKE2b-256 927e9eed1cb91bad2244f66c57c3e81e2265f038f289f78e70be8854c0164738

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