Skip to main content

Scout out for transitive versions of Drupal modules for the upgrade of the core.

Project description

Drupal Scout

Search for Drupal module entries with transitive core version requirements to help to upgrade the Drupal Core

Installation

  pip install drupal-scout

Features

  • Use asyncio concurrency to speed up the process of searching for Drupal module entries with transitive core version requirements.
  • Quick self-diagnostic check of the environment and dependencies using the info command.
  • Choose between three output formats: table, json, and suggest.
    • table format will output the data in the table format.
      Example: Table format example
    • json format will output the raw data in the json format.
    • suggest format will output the suggested composer.json file with the updated module version requirements.
      It will also dump the suggested composer.json file to the specified path if the --save-dump argument is used.

Limitations

  • The application will only work with Composer-based (Composer v2) Drupal 8+ projects.

Usage/Examples

drupal-scout [-h] [-v] [-d DIRECTORY] [-n] [-l LIMIT] [-f {table,json,suggest}] [-s] [-c CORE] [-m MODULES [MODULES ...]] {info} ...

Arguments

-h, --help show this help message and exit
-v, --version show program's version number and exit
-d DIRECTORY, --directory DIRECTORY Directory of the Drupal installation
-n, --no-lock Do not use the composer.lock file to determine the installed versions of the modules
-l LIMIT, --limit LIMIT The concurrency limit for async requests and data parsing. By default, the application uses all available CPU cores.
-f {table,json,suggest}, --format {table,json,suggest} The output format. By default, the application will use the table format.
-s, --save-dump Use in pair with --format suggest to dump the suggested composer.json file to the specified path. – -c CORE, --core CORE Optional core version override for targeted scans. If omitted with --modules, core is auto-detected from composer metadata in --directory.
-m MODULES [MODULES ...], --modules MODULES [MODULES ...] Scan only specific modules. When used, full environment module discovery is skipped. If composer.lock exists and --no-lock is not set, installed versions are still used for downgrade protection.

Subcommands

info - show diagnostic information about the tool and the current Drupal environment.

Targeted Scan Examples

Scan one specific module with explicit core version:

drupal-scout --core 10.0.0 --modules drupal/webform

Scan multiple specific modules and output JSON:

drupal-scout --core 10.0.0 --modules drupal/webform drupal/ctools --format json

Scan targeted modules with auto-detected core from local composer.lock/composer.json in directory:

drupal-scout --directory /path/to/drupal --modules drupal/webform

If core cannot be auto-detected, provide --core explicitly.

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

drupal_scout-3.0.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

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

drupal_scout-3.0.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file drupal_scout-3.0.0.tar.gz.

File metadata

  • Download URL: drupal_scout-3.0.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drupal_scout-3.0.0.tar.gz
Algorithm Hash digest
SHA256 a0e2b4e80f34295a9cf4763d24ca0a8720cc2b32d7d4bd1ff73e15e6c937974a
MD5 45a97fda05e145ce9e3893b54b04366a
BLAKE2b-256 74778d81708c883a89915249cf8c2eb70499604173f7ca60303cf53c4a3a6335

See more details on using hashes here.

Provenance

The following attestation bundles were made for drupal_scout-3.0.0.tar.gz:

Publisher: release.yml on rtech91/drupal-scout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file drupal_scout-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: drupal_scout-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drupal_scout-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91163a13b695355f3d85e57487623aadf5e22f3dc567b66662f0d79d9c233dc1
MD5 943ed6e7d6c3fade30f88b39c6cfff8d
BLAKE2b-256 0558fd1bcd43ff880f53e538c213ab273246644c59241577742810ed6266e329

See more details on using hashes here.

Provenance

The following attestation bundles were made for drupal_scout-3.0.0-py3-none-any.whl:

Publisher: release.yml on rtech91/drupal-scout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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