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.19.tar.gz (6.6 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.19-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: productmap_cli-0.1.19.tar.gz
  • Upload date:
  • Size: 6.6 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.19.tar.gz
Algorithm Hash digest
SHA256 f8ddecaa0fd0eafdeb6538b19a7920436225c48474dc35b1b352dd325d38b5fa
MD5 baac565613c9030429efebbc43df1881
BLAKE2b-256 473a437980fb27fa67bed1b315d46df191a543f22abd19648bf0faecb4af151e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for productmap_cli-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8d0bb976ebdab625d2d392f1d1b12aaebcb8c48f5bb654116d26502ca33ed7
MD5 02beaf8b01ddfed989af88265513656d
BLAKE2b-256 40bfaec268031e52688ce045ddff08bca2b4ce802adba862e0bc23c9fb08ac31

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