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.1.tar.gz (28.1 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.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cf_extractor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7f2ce5a5ef2fc9ce2a253b085fd490c53fd987242449151d285bb869e763cb5b
MD5 3324cb6016ab8e04546e98b6aa577664
BLAKE2b-256 a59d126caa652f831f6caea13e6f5d036f63fdcca45f7113c51ee42ef98f3eba

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cf_extractor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45502e3181e82ef50172f56951e46f98b747f64986ac3528d3e27fdb1170df45
MD5 b5d2b8a51e1c5c7172f85ed48c4591a9
BLAKE2b-256 1770094a633d8964228c5f37b3ee6bfce6beb7329e1da5b91686f70bc2065c12

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