Skip to main content

The ProductMap CLI tool for validation and execution of map generation process in the ProductMap tool

Project description

ProductMap CLI

This is a command line interface (CLI) for the ProductMap library. The CLI provides a way to interact with the library from the command line.

Install it

Use the following command to install the library:

pip install .

Usage

To use the library, you can create a script or run it directly from the command line (for local purposes):

pm-cli <file-path> <Repository-username> <Repository-email> --action=["generate", "validate"]

This setup provides a basic structure for validating and generating a product map. The logic for generating and validating the product map content will be added in the validate_file and generate_map functions.

Example

Here is an example of how to use the CLI to generate a product map:

pm-cli <your-product-map-token> "tests/sample_file/main.cpp" "AxelGithub" "axel.reichwein@koneksys.com" --action="validate"

This command will validate the content of the main.cpp file and should provide an output like this:

Validating file tests/sample_file/main.cpp
File 'tests/sample_file/main.cpp' successfully read! Size: 233 bytes.
File 'tests/sample_file/main.cpp' validated successfully!
{"valid":true,"lines_of_code":6,"consumed_lines_of_code":139437,"remaining_lines_of_code":10563}

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

productmap_cli-0.1.21.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

productmap_cli-0.1.21-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file productmap_cli-0.1.21.tar.gz.

File metadata

  • Download URL: productmap_cli-0.1.21.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for productmap_cli-0.1.21.tar.gz
Algorithm Hash digest
SHA256 0746b539a1484d3b939bd2c54efa630e3faaf9ba17dee8bdcf208fc00e033b78
MD5 3fc6b72e49d2ac94553b14e522371f76
BLAKE2b-256 3191dbf16cf2cb6c5a7fef5fb9849cc77987daf33f3e3bd7e2fdbf2ef741652b

See more details on using hashes here.

File details

Details for the file productmap_cli-0.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for productmap_cli-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 db85c96ed39bbb420b5a8cb4eac4ff68386e4820ee2942fafe2ac9c7f272b5c1
MD5 34f4a5941d0b4cc622cff64fd7719c50
BLAKE2b-256 1d4e1c6b8d5c30bc8b3f6d9bcfc0c245b9b207b5de24183c8b28219a7aacf435

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