Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.
85
A utility that manages application credentials across different deployment environments using secure credential injection.
@generates
import modal
def create_credentials_from_dict(creds_dict: dict) -> modal.Secret:
"""
Creates a credential configuration from a dictionary.
Args:
creds_dict: Dictionary mapping environment variable names to values
Returns:
A credential configuration object
"""
pass
def create_credentials_from_env(*var_names: str) -> modal.Secret:
"""
Creates a credential configuration by copying specified environment variables.
Args:
*var_names: Names of environment variables to copy
Returns:
A credential configuration object
"""
pass
def create_credentials_from_file(filepath: str) -> modal.Secret:
"""
Creates a credential configuration from a .env file.
Args:
filepath: Path to the .env file
Returns:
A credential configuration object
"""
passProvides serverless cloud compute with credential management support.
Install with Tessl CLI
npx tessl i tessl/pypi-modaldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10