Skip to main content

Core component for CLI tools built atop of Modular Framework

Project description

License

PyPI - Version PyPI - Python Version

Modular CLI SDK

Modular CLI SDK is a core component for CLI tools built atop of Modular Framework

Installation

To install Modular CLI SDK please use pip command:

  • standard installation pip install "modular_cli_sdk"

Usage:

1. Credentials Manager

class CredentialsProvider
Used for storing, extracting and deleting credentials. In case if a tool installed in standalone mode all operations with credentials are carried out using the user`s file system. In case if a tool installed as a part of Modular-API the AWS Parameter Store (SSM) will be used instead of file system.

In standalone installation credentials will be placed by path: ~user_home_directory/.<tool_name>/credentials
In Modular-API's installation credentials will be placed at SSM by name: modular-api.<tool_name>.<system_username>.configuration

from modular_cli_sdk.services.credentials_manager import CredentialsProvider

configuration = CredentialsProvider(module_name="tool_name", context: Click.Context)

To access to the available methods use class property credentials_manager:

configuration.credentials_manager.store(config=$config_dict)
configuration.credentials_manager.extract()
configuration.credentials_manager.extract()
  • store(config= ) # saving given configuration
    Parameters:

    • config (dict) [Required] - takes a dictionary with tool configuration data
      Return type:
    • str
  • extract() # retrieve saved configuration
    Parameters:

    • None
      Return type:
    • dict
  • clean_up() # delete saved configuration Parameters:

    • None
      Return type:
    • str

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

modular_cli_sdk-4.0.0.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

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

modular_cli_sdk-4.0.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file modular_cli_sdk-4.0.0.tar.gz.

File metadata

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

File hashes

Hashes for modular_cli_sdk-4.0.0.tar.gz
Algorithm Hash digest
SHA256 e5621151078c23315b4ee4a9e1e4e9efa06ec7fa0fbcc8ec9909b7b9e6b38711
MD5 5819f5b35e3515db7be6def8235e5c79
BLAKE2b-256 92d8417a4d230df19cd52821d714929538fbfa17e5ca4b0002e1bd5337ec2726

See more details on using hashes here.

Provenance

The following attestation bundles were made for modular_cli_sdk-4.0.0.tar.gz:

Publisher: pypi-package.yml on epam/modular-cli-sdk

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

File details

Details for the file modular_cli_sdk-4.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for modular_cli_sdk-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6359d842e6bf959f459dc9031df2cd047f771f291c3369b3144491b5eef18ad6
MD5 beed099fd2c7ffbc6d92a87dcf42b07f
BLAKE2b-256 e82a02deb61abeb2b826b55228e408f6aa029339ec4cc1b90597a95af72039a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for modular_cli_sdk-4.0.0-py3-none-any.whl:

Publisher: pypi-package.yml on epam/modular-cli-sdk

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