id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,400 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.EmptyDirNameException | class EmptyDirNameException(CookiecutterException):
"""
Exception for a empty directory name.
Raised when the directory name provided is empty.
""" | class EmptyDirNameException(CookiecutterException):
'''
Exception for a empty directory name.
Raised when the directory name provided is empty.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,401 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.FailedHookException | class FailedHookException(CookiecutterException):
"""
Exception for hook failures.
Raised when a hook script fails.
""" | class FailedHookException(CookiecutterException):
'''
Exception for hook failures.
Raised when a hook script fails.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,402 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.InvalidConfiguration | class InvalidConfiguration(CookiecutterException):
"""
Exception for invalid configuration file.
Raised if the global configuration file is not valid YAML or is
badly constructed.
""" | class InvalidConfiguration(CookiecutterException):
'''
Exception for invalid configuration file.
Raised if the global configuration file is not valid YAML or is
badly constructed.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,403 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.InvalidModeException | class InvalidModeException(CookiecutterException):
"""
Exception for incompatible modes.
Raised when cookiecutter is called with both `no_input==True` and
`replay==True` at the same time.
""" | class InvalidModeException(CookiecutterException):
'''
Exception for incompatible modes.
Raised when cookiecutter is called with both `no_input==True` and
`replay==True` at the same time.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,404 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.InvalidZipRepository | class InvalidZipRepository(CookiecutterException):
"""
Exception for bad zip repo.
Raised when the specified cookiecutter repository isn't a valid
Zip archive.
""" | class InvalidZipRepository(CookiecutterException):
'''
Exception for bad zip repo.
Raised when the specified cookiecutter repository isn't a valid
Zip archive.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,405 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.MissingProjectDir | class MissingProjectDir(CookiecutterException):
"""
Exception for missing generated project directory.
Raised during cleanup when remove_repo() can't find a generated project
directory inside of a repo.
""" | class MissingProjectDir(CookiecutterException):
'''
Exception for missing generated project directory.
Raised during cleanup when remove_repo() can't find a generated project
directory inside of a repo.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,406 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.NonTemplatedInputDirException | class NonTemplatedInputDirException(CookiecutterException):
"""
Exception for when a project's input dir is not templated.
The name of the input directory should always contain a string that is
rendered to something else, so that input_dir != output_dir.
""" | class NonTemplatedInputDirException(CookiecutterException):
'''
Exception for when a project's input dir is not templated.
The name of the input directory should always contain a string that is
rendered to something else, so that input_dir != output_dir.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,407 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.OutputDirExistsException | class OutputDirExistsException(CookiecutterException):
"""
Exception for existing output directory.
Raised when the output directory of the project exists already.
""" | class OutputDirExistsException(CookiecutterException):
'''
Exception for existing output directory.
Raised when the output directory of the project exists already.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,408 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.RepositoryCloneFailed | class RepositoryCloneFailed(CookiecutterException):
"""
Exception for un-cloneable repo.
Raised when a cookiecutter template can't be cloned.
""" | class RepositoryCloneFailed(CookiecutterException):
'''
Exception for un-cloneable repo.
Raised when a cookiecutter template can't be cloned.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,409 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.RepositoryNotFound | class RepositoryNotFound(CookiecutterException):
"""
Exception for missing repo.
Raised when the specified cookiecutter repository doesn't exist.
""" | class RepositoryNotFound(CookiecutterException):
'''
Exception for missing repo.
Raised when the specified cookiecutter repository doesn't exist.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,410 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.UndefinedVariableInTemplate | from typing import TYPE_CHECKING, Any
class UndefinedVariableInTemplate(CookiecutterException):
"""
Exception for out-of-scope variables.
Raised when a template uses a variable which is not defined in the
context.
"""
def __init__(self, message: str, error: TemplateError, context: dict[str, A... |
class UndefinedVariableInTemplate(CookiecutterException):
'''
Exception for out-of-scope variables.
Raised when a template uses a variable which is not defined in the
context.
'''
def __init__(self, message: str, error: TemplateError, context: dict[str, Any]) -> None:
'''Exception for ... | 3 | 3 | 7 | 0 | 6 | 1 | 1 | 0.54 | 1 | 3 | 0 | 0 | 2 | 3 | 2 | 12 | 23 | 3 | 13 | 8 | 8 | 7 | 7 | 6 | 4 | 1 | 4 | 0 | 2 |
15,411 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.UnknownExtension | class UnknownExtension(CookiecutterException):
"""
Exception for un-importable extension.
Raised when an environment is unable to import a required extension.
""" | class UnknownExtension(CookiecutterException):
'''
Exception for un-importable extension.
Raised when an environment is unable to import a required extension.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,412 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.UnknownRepoType | class UnknownRepoType(CookiecutterException):
"""
Exception for unknown repo types.
Raised if a repo's type cannot be determined.
""" | class UnknownRepoType(CookiecutterException):
'''
Exception for unknown repo types.
Raised if a repo's type cannot be determined.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,413 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.UnknownTemplateDirException | class UnknownTemplateDirException(CookiecutterException):
"""
Exception for ambiguous project template directory.
Raised when Cookiecutter cannot determine which directory is the project
template, e.g. more than one dir appears to be a template dir.
""" | class UnknownTemplateDirException(CookiecutterException):
'''
Exception for ambiguous project template directory.
Raised when Cookiecutter cannot determine which directory is the project
template, e.g. more than one dir appears to be a template dir.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,414 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/exceptions.py | cookiecutter.exceptions.VCSNotInstalled | class VCSNotInstalled(CookiecutterException):
"""
Exception when version control is unavailable.
Raised if the version control system (git or hg) is not installed.
""" | class VCSNotInstalled(CookiecutterException):
'''
Exception when version control is unavailable.
Raised if the version control system (git or hg) is not installed.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
15,415 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/extensions.py | cookiecutter.extensions.JsonifyExtension | from typing import TYPE_CHECKING, Any
from jinja2 import Environment, nodes
import json
from jinja2.ext import Extension
class JsonifyExtension(Extension):
"""Jinja2 extension to convert a Python object to JSON."""
def __init__(self, environment: Environment) -> None:
"""Initialize the extension with ... |
class JsonifyExtension(Extension):
'''Jinja2 extension to convert a Python object to JSON.'''
def __init__(self, environment: Environment) -> None:
'''Initialize the extension with the given environment.'''
pass
def jsonify(obj: Any, indent: int=4) -> str:
pass | 3 | 2 | 5 | 1 | 4 | 1 | 1 | 0.33 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 9 | 11 | 3 | 6 | 3 | 3 | 2 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
15,416 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/extensions.py | cookiecutter.extensions.RandomStringExtension | from secrets import choice
import string
from jinja2.ext import Extension
from jinja2 import Environment, nodes
class RandomStringExtension(Extension):
"""Jinja2 extension to create a random string."""
def __init__(self, environment: Environment) -> None:
"""Jinja2 Extension Constructor."""
su... |
class RandomStringExtension(Extension):
'''Jinja2 extension to create a random string.'''
def __init__(self, environment: Environment) -> None:
'''Jinja2 Extension Constructor.'''
pass
def random_ascii_string(length: int, punctuation: bool=False) -> str:
pass | 3 | 2 | 9 | 1 | 8 | 1 | 2 | 0.2 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 9 | 15 | 3 | 10 | 5 | 7 | 2 | 9 | 4 | 6 | 2 | 1 | 1 | 3 |
15,417 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/extensions.py | cookiecutter.extensions.SlugifyExtension | from jinja2.ext import Extension
from collections.abc import Iterable
from slugify.slugify import DEFAULT_SEPARATOR
from jinja2 import Environment, nodes
from slugify import slugify as pyslugify
class SlugifyExtension(Extension):
"""Jinja2 Extension to slugify string."""
def __init__(self, environment: Enviro... |
class SlugifyExtension(Extension):
'''Jinja2 Extension to slugify string.'''
def __init__(self, environment: Environment) -> None:
'''Jinja2 Extension constructor.'''
pass
def slugify(value: str, entities: bool=True, decimal: bool=True, hexadecimal: bool=True, max_length: int=0, word_... | 3 | 3 | 34 | 1 | 32 | 2 | 1 | 0.09 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 9 | 40 | 3 | 34 | 17 | 17 | 3 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
15,418 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/extensions.py | cookiecutter.extensions.TimeExtension | from jinja2 import Environment, nodes
import arrow
from jinja2.ext import Extension
class TimeExtension(Extension):
"""Jinja2 Extension for dates and times."""
tags = {'now'}
def __init__(self, environment: Environment) -> None:
"""Jinja2 Extension constructor."""
super().__init__(environm... |
class TimeExtension(Extension):
'''Jinja2 Extension for dates and times.'''
def __init__(self, environment: Environment) -> None:
'''Jinja2 Extension constructor.'''
pass
def _datetime(self, timezone: str, operator: str, offset: str, datetime_format: str | None) -> str:
pass
... | 5 | 3 | 15 | 2 | 12 | 1 | 3 | 0.12 | 1 | 8 | 0 | 0 | 4 | 0 | 4 | 12 | 66 | 11 | 51 | 20 | 40 | 6 | 30 | 14 | 25 | 4 | 1 | 1 | 10 |
15,419 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/extensions.py | cookiecutter.extensions.UUIDExtension | import uuid
from jinja2 import Environment, nodes
from jinja2.ext import Extension
class UUIDExtension(Extension):
"""Jinja2 Extension to generate uuid4 string."""
def __init__(self, environment: Environment) -> None:
"""Jinja2 Extension constructor."""
super().__init__(environment)
d... |
class UUIDExtension(Extension):
'''Jinja2 Extension to generate uuid4 string.'''
def __init__(self, environment: Environment) -> None:
'''Jinja2 Extension constructor.'''
pass
def uuid4() -> str:
'''Generate UUID4.'''
pass | 3 | 3 | 6 | 1 | 4 | 2 | 1 | 0.5 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 9 | 12 | 3 | 6 | 3 | 3 | 3 | 6 | 3 | 3 | 1 | 1 | 0 | 2 |
15,420 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/main.py | cookiecutter.main._patch_import_path_for_repo | import sys
from pathlib import Path
from copy import copy
class _patch_import_path_for_repo:
def __init__(self, repo_dir: Path | str) -> None:
self._repo_dir = f'{repo_dir}' if isinstance(repo_dir, Path) else repo_dir
def __enter__(self) -> None:
self._path = copy(sys.path)
sys.path.a... |
class _patch_import_path_for_repo:
def __init__(self, repo_dir: Path | str) -> None:
pass
def __enter__(self) -> None:
pass
def __exit__(self, _type, _value, _traceback):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0.25 | 0 | 2 | 0 | 0 | 3 | 2 | 3 | 3 | 10 | 2 | 8 | 6 | 4 | 2 | 8 | 6 | 4 | 2 | 0 | 0 | 4 |
15,421 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/prompt.py | cookiecutter.prompt.JsonPrompt | from rich.prompt import Confirm, InvalidResponse, Prompt, PromptBase
from typing import TYPE_CHECKING, Any, Union
class JsonPrompt(PromptBase[dict]):
"""A prompt that returns a dict from JSON string."""
default = None
response_type = dict
validate_error_message = '[prompt.invalid] Please enter a valid... |
class JsonPrompt(PromptBase[dict]):
'''A prompt that returns a dict from JSON string.'''
@staticmethod
def process_response(value: str) -> dict[str, Any]:
'''Convert choices to a dict.'''
pass | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 0.29 | 1 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 11 | 2 | 7 | 6 | 4 | 2 | 6 | 5 | 4 | 1 | 1 | 0 | 1 |
15,422 | audreyr/cookiecutter | audreyr_cookiecutter/cookiecutter/prompt.py | cookiecutter.prompt.YesNoPrompt | from rich.prompt import Confirm, InvalidResponse, Prompt, PromptBase
class YesNoPrompt(Confirm):
"""A prompt that returns a boolean for yes/no questions."""
yes_choices = ['1', 'true', 't', 'yes', 'y', 'on']
no_choices = ['0', 'false', 'f', 'no', 'n', 'off']
def process_response(self, value: str) -> b... |
class YesNoPrompt(Confirm):
'''A prompt that returns a boolean for yes/no questions.'''
def process_response(self, value: str) -> bool:
'''Convert choices to a bool.'''
pass | 2 | 2 | 8 | 0 | 7 | 1 | 3 | 0.2 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 14 | 2 | 10 | 4 | 8 | 2 | 10 | 4 | 8 | 3 | 1 | 1 | 3 |
15,423 | pulumi/pulumi | tests/integration/python/implicit-dependency-cycles/__main__.py | __main__.A | import pulumi
class A(pulumi.ComponentResource):
def __init__(self, name: str, opts=None):
super().__init__('my:modules:A', name, {}, opts)
a_1 = pulumi.CustomResource('my:module:Child-1', 'a-child-1', opts=pulumi.ResourceOptions(parent=self, depends_on=[self]))
pulumi.CustomResource('my:m... |
class A(pulumi.ComponentResource):
def __init__(self, name: str, opts=None):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 3 | 3 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,424 | pulumi/pulumi | tests/integration/types/python/declared/__main__.py | __main__.Additional | import pulumi
from typing import Optional
@pulumi.output_type
class Additional(dict):
def __init__(self, first_value: str, second_value: Optional[float]):
pulumi.set(self, 'first_value', first_value)
pulumi.set(self, 'second_value', second_value)
@property
@pulumi.getter(name='firstValue'... | @pulumi.output_type
class Additional(dict):
def __init__(self, first_value: str, second_value: Optional[float]):
pass
@property
@pulumi.getter(name='firstValue')
def first_value(self) -> str:
pass
@property
@pulumi.getter(name='secondValue')
def second_value(self) -> Optiona... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0.17 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 30 | 16 | 2 | 12 | 6 | 4 | 2 | 8 | 4 | 4 | 1 | 2 | 0 | 3 |
15,425 | pulumi/pulumi | tests/integration/types/python/simple/__main__.py | __main__.Additional | from pulumi import Input, InputType, Output, export, input_type, output_type, property
from typing import Optional
@output_type
class Additional(dict):
first_value: str = property('firstValue')
second_value: Optional[float] = property('secondValue', default=None) | @output_type
class Additional(dict):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 27 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 2 | 0 | 0 |
15,426 | pulumi/pulumi | tests/integration/types/python/declared/__main__.py | __main__.AdditionalArgs | import pulumi
from typing import Optional
@pulumi.input_type
class AdditionalArgs:
def __init__(self, first_value: pulumi.Input[str], second_value: Optional[pulumi.Input[float]]=None):
pulumi.set(self, 'first_value', first_value)
pulumi.set(self, 'second_value', second_value)
@property
@p... | @pulumi.input_type
class AdditionalArgs:
def __init__(self, first_value: pulumi.Input[str], second_value: Optional[pulumi.Input[float]]=None):
pass
@property
@pulumi.getter(name='firstValue')
def first_value(self) -> pulumi.Input[str]:
pass
@first_value.setter
def first_value(se... | 13 | 0 | 2 | 0 | 2 | 0 | 1 | 0.11 | 0 | 2 | 0 | 0 | 5 | 0 | 5 | 5 | 24 | 4 | 18 | 10 | 6 | 2 | 12 | 6 | 6 | 1 | 0 | 0 | 5 |
15,427 | pulumi/pulumi | tests/integration/types/python/simple/__main__.py | __main__.AdditionalArgs | from typing import Optional
from pulumi import Input, InputType, Output, export, input_type, output_type, property
@input_type
class AdditionalArgs:
first_value: Input[str] = property('firstValue')
second_value: Optional[Input[float]] = property('secondValue', default=None) | @input_type
class AdditionalArgs:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
15,428 | pulumi/pulumi | tests/integration/resource_refs_get_resource/python/__main__.py | __main__.Child | import pulumi
from typing import Optional
class Child(pulumi.ComponentResource):
@pulumi.input_type
class ChildArgs:
pass
def __init__(self, resource_name: str, message: Optional[str]=None, opts: Optional[pulumi.ResourceOptions]=None):
props = Container.ContainerArgs.__new__(Container.Con... |
class Child(pulumi.ComponentResource):
@pulumi.input_type
class ChildArgs:
def __init__(self, resource_name: str, message: Optional[str]=None, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def message(self) -> pulumi.Output[str]:
pass | 7 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 6 | 4 | 0 | 2 | 0 | 2 | 10 | 22 | 2 | 20 | 12 | 8 | 0 | 12 | 5 | 8 | 2 | 2 | 1 | 3 |
15,429 | pulumi/pulumi | tests/integration/construct_component_provider/python/__main__.py | __main__.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
message: pulumi.Output[str]
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
props = {'message': None}
super().__init__('testcomponent:index:Component', name, props, opts, Tr... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 8 | 1 | 7 | 3 | 5 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,430 | pulumi/pulumi | tests/integration/construct_component_provider_explicit/python/__main__.py | __main__.Component | from typing import Optional
import pulumi
class Component(pulumi.ComponentResource):
message: pulumi.Output[str]
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
props = {'message': None}
super().__init__('testcomponent:index:Component', name, props, opts, Tr... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 8 | 1 | 7 | 3 | 5 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,431 | pulumi/pulumi | tests/integration/construct_component_provider_propagation/python/__main__.py | __main__.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
"""
Python-level remote component for the component resource
defined in sibling testcomponent-go directory.
"""
result: pulumi.Output[str]
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=N... |
class Component(pulumi.ComponentResource):
'''
Python-level remote component for the component resource
defined in sibling testcomponent-go directory.
'''
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 1 | 0.57 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 13 | 2 | 7 | 5 | 3 | 4 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,432 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step1/__main__.py | __main__.Component1 | from pulumi import ComponentResource, export, Resource, ResourceOptions
class Component1(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component', name, None, opts) |
class Component1(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,433 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step2/__main__.py | __main__.Component1 | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class Component1(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component', name, None, opts)
resource = Resource1(name + '-child', ResourceOptions(... |
class Component1(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 11 | 0 | 5 | 6 | 1 | 1 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 12 | 0 | 6 | 3 | 4 | 6 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,434 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step1/__main__.py | __main__.Component2 | from pulumi import ComponentResource, export, Resource, ResourceOptions
class Component2(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component2', name, None, opts) |
class Component2(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,435 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step2/__main__.py | __main__.Component2 | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class Component2(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component2', name, None, opts) |
class Component2(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,436 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step1/__main__.py | __main__.Component3 | from pulumi import ComponentResource, export, Resource, ResourceOptions
class Component3(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component3', name, None, opts)
mycomp2 = Component2(name + '-child', opts) |
class Component3(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,437 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step2/__main__.py | __main__.Component3 | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class Component3(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
super().__init__('my:module:Component3', name, None, opts)
mycomp2 = Component2(name + '-child', Re... |
class Component3(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 1 | 0 | 1 | 9 | 6 | 0 | 6 | 3 | 4 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,438 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step1/__main__.py | __main__.Component4 | from pulumi import ComponentResource, export, Resource, ResourceOptions
class Component4(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Component4', name) |
class Component4(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,439 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step2/__main__.py | __main__.Component4 | import copy
from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class Component4(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
child_opts = copy.copy(opts)
if child_opts.aliases is None:
child_opts.alia... |
class Component4(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
pass | 2 | 0 | 6 | 1 | 5 | 0 | 2 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 7 | 1 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 2 | 1 | 2 |
15,440 | pulumi/pulumi | tests/integration/aliases/python/rename_component_and_child/step1/__main__.py | __main__.ComponentFive | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class ComponentFive(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentFive', name, None, opts)
res1 = Resource1('otherchild', ResourceOptions(... |
class ComponentFive(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,441 | pulumi/pulumi | tests/integration/aliases/python/rename_component_and_child/step2/__main__.py | __main__.ComponentFive | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class ComponentFive(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentFive', name, None, opts)
res1 = Resource1('otherchildrenamed', ResourceO... |
class ComponentFive(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 1 | 0 | 1 | 9 | 6 | 0 | 6 | 3 | 4 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,442 | pulumi/pulumi | tests/integration/aliases/python/retype_component/step1/__main__.py | __main__.ComponentFour | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class ComponentFour(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentFour', name, None, opts)
res1 = Resource1('otherchild', ResourceOptions(... |
class ComponentFour(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,443 | pulumi/pulumi | tests/integration/aliases/python/retype_component/step2/__main__.py | __main__.ComponentFour | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
import copy
class ComponentFour(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
aliases = [Alias(type_='my:module:ComponentFour')]
if opts.aliases is not None:
... |
class ComponentFour(ComponentResource):
def __init__(self, name, opts=ResourceOptions()):
pass | 2 | 0 | 15 | 2 | 9 | 4 | 3 | 0.4 | 1 | 4 | 3 | 0 | 1 | 0 | 1 | 9 | 16 | 2 | 10 | 6 | 8 | 4 | 10 | 6 | 8 | 3 | 2 | 2 | 3 |
15,444 | pulumi/pulumi | tests/integration/aliases/python/adopt_component_child/step2/__main__.py | __main__.ComponentResource | import pulumi
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentResource', name, None, opts)
FooResource('child', pulumi.ResourceOptions(parent=self, aliases=[pulumi.Alias(parent=pulumi.ROOT_STACK_RESOURCE)])) |
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 1 | 0 | 1 | 9 | 7 | 0 | 7 | 2 | 5 | 0 | 4 | 2 | 2 | 1 | 2 | 0 | 1 |
15,445 | pulumi/pulumi | tests/integration/aliases/python/extract_component_child/step2/__main__.py | __main__.ComponentResource | import pulumi
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentResource', name, None, opts) |
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,446 | pulumi/pulumi | tests/integration/aliases/python/rename_component_child/step2/__main__.py | __main__.ComponentResource | import pulumi
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentResource', name, None, opts)
FooResource('childrenamed', pulumi.ResourceOptions(parent=self, aliases=[pulumi.Alias(name='child')])) |
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 1 | 0 | 1 | 9 | 7 | 0 | 7 | 2 | 5 | 0 | 4 | 2 | 2 | 1 | 2 | 0 | 1 |
15,447 | pulumi/pulumi | tests/integration/aliases/python/retype_component_child/step2/__main__.py | __main__.ComponentResource | import pulumi
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentResource', name, None, opts)
FooResource('child', pulumi.ResourceOptions(parent=self)) |
class ComponentResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 2 | 0 | 1 |
15,448 | pulumi/pulumi | tests/integration/aliases/python/retype_parents/step1/__main__.py | __main__.ComponentSix | from pulumi import Alias, ComponentResource, ResourceOptions
class ComponentSix(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentSix-v0', name, None, opts)
resource = Resource('otherchild', ResourceOptions(parent=self)) |
class ComponentSix(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,449 | pulumi/pulumi | tests/integration/aliases/python/retype_parents/step2/__main__.py | __main__.ComponentSix | import copy
from pulumi import Alias, ComponentResource, ResourceOptions
class ComponentSix(ComponentResource):
def __init__(self, name, opts=None):
aliases = [Alias(type_=f'my:module:ComponentSix-v{i}') for i in range(0, 100)]
opts_copy = copy.copy(opts)
opts_copy.aliases = aliases
... |
class ComponentSix(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 13 | 2 | 9 | 2 | 1 | 0.2 | 1 | 5 | 3 | 0 | 1 | 0 | 1 | 9 | 14 | 2 | 10 | 5 | 8 | 2 | 7 | 5 | 5 | 1 | 2 | 0 | 1 |
15,450 | pulumi/pulumi | tests/integration/aliases/python/retype_parents/step1/__main__.py | __main__.ComponentSixParent | from pulumi import Alias, ComponentResource, ResourceOptions
class ComponentSixParent(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentSixParent-v0', name, None, opts)
child = ComponentSix('child', ResourceOptions(parent=self)) |
class ComponentSixParent(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,451 | pulumi/pulumi | tests/integration/aliases/python/retype_parents/step2/__main__.py | __main__.ComponentSixParent | from pulumi import Alias, ComponentResource, ResourceOptions
class ComponentSixParent(ComponentResource):
def __init__(self, name, opts=None):
aliases = [Alias(type_=f'my:module:ComponentSixParent-v{i}') for i in range(0, 10)]
opts = ResourceOptions(aliases=aliases)
super().__init__('my:mo... |
class ComponentSixParent(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 12 | 2 | 8 | 2 | 1 | 0.22 | 1 | 5 | 3 | 0 | 1 | 0 | 1 | 9 | 13 | 2 | 9 | 4 | 7 | 2 | 6 | 4 | 4 | 1 | 2 | 0 | 1 |
15,452 | pulumi/pulumi | tests/integration/aliases/python/rename_component/step2/__main__.py | __main__.ComponentThree | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class ComponentThree(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:ComponentThree', name, None, opts)
resource1 = Resource1(name + '-child', Resour... |
class ComponentThree(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 7 | 0 | 4 | 3 | 1 | 0.6 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 8 | 0 | 5 | 4 | 3 | 3 | 5 | 4 | 3 | 1 | 2 | 0 | 1 |
15,453 | pulumi/pulumi | tests/integration/resource_refs_get_resource/python/__main__.py | __main__.Container | import pulumi
from typing import Optional
class Container(pulumi.ComponentResource):
@pulumi.input_type
class ContainerArgs:
pass
def __init__(self, resource_name: str, child: Optional[Child]=None, opts: Optional[pulumi.ResourceOptions]=None):
props = Container.ContainerArgs.__new__(Conta... |
class Container(pulumi.ComponentResource):
@pulumi.input_type
class ContainerArgs:
def __init__(self, resource_name: str, child: Optional[Child]=None, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def child(self) -> pulumi.Output[Child]:
pass | 7 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 6 | 4 | 0 | 2 | 0 | 2 | 10 | 22 | 2 | 20 | 12 | 8 | 0 | 12 | 5 | 8 | 2 | 2 | 1 | 3 |
15,454 | pulumi/pulumi | tests/integration/dynamic/python-resource-type-name/__main__.py | __main__.CustomResource | from pulumi.dynamic import CreateResult, Resource, ResourceProvider
class CustomResource(Resource, module='custom-provider', name='CustomResource'):
def __init__(self, name, opts=None):
super().__init__(DummyResourceProvider(), name, {}, opts) |
class CustomResource(Resource, module='custom-provider', name='CustomResource'):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 3 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 5 | 0 | 5 | 4 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
15,455 | pulumi/pulumi | tests/integration/dynamic/python-resource-type-name/__main__.py | __main__.DummyResourceProvider | from pulumi.dynamic import CreateResult, Resource, ResourceProvider
class DummyResourceProvider(ResourceProvider):
def create(self, props):
return CreateResult('resource-id', {}) |
class DummyResourceProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
15,456 | pulumi/pulumi | tests/integration/stack_outputs_resource_error/python/step3/__main__.py | __main__.FailsOnCreate | import pulumi
class FailsOnCreate(pulumi.CustomResource):
def __init__(self, resource_name: str):
super().__init__('testprovider:index:FailsOnCreate', resource_name, {'value': None})
value = None |
class FailsOnCreate(pulumi.CustomResource):
def __init__(self, resource_name: str):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,457 | pulumi/pulumi | tests/integration/enums/python/__main__.py | __main__.Farm | from enum import Enum
class Farm(str, Enum):
PLANTS_R_US = "Plants'R'Us"
PULUMI_PLANTERS_INC = 'Pulumi Planters Inc.' |
class Farm(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
15,458 | pulumi/pulumi | tests/integration/aliases/python/retype_component_child/step1/__main__.py | __main__.FooResource | import pulumi
class FooResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:FooResource', name, None, opts) |
class FooResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,459 | pulumi/pulumi | tests/integration/aliases/python/retype_component_child/step2/__main__.py | __main__.FooResource | import pulumi
class FooResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_='my:module:FooResource')])
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
super().__init__('my:module:FooResourceNew', name... |
class FooResource(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 3 | 3 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,460 | pulumi/pulumi | tests/integration/get_resource/python/__main__.py | __main__.GetResource | import pulumi
from pulumi import Output, ResourceOptions, export, UNKNOWN
class GetResource(pulumi.Resource):
foo: Output
bar: Output
def __init__(self, urn):
props = {'foo': None, 'bar': None}
super().__init__('unused', 'unused:unused:unused', True, props, ResourceOptions(urn=urn), False,... |
class GetResource(pulumi.Resource):
def __init__(self, urn):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 7 | 10 | 1 | 9 | 3 | 7 | 0 | 6 | 3 | 4 | 1 | 1 | 0 | 1 |
15,461 | pulumi/pulumi | tests/integration/construct_component_provider_explicit/python/__main__.py | __main__.LocalComponent | import pulumi
from typing import Optional
class LocalComponent(pulumi.ComponentResource):
message: pulumi.Output[str]
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
super().__init__('my:index:LocalComponent', name, {}, opts)
component = Component(f'{name}-m... |
class LocalComponent(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None) -> None:
pass | 2 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 9 | 8 | 2 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 1 | 2 | 0 | 1 |
15,462 | pulumi/pulumi | tests/integration/resource_refs_get_resource/python/__main__.py | __main__.Module | import pulumi
class Module(pulumi.runtime.ResourceModule):
def version(self):
return '0.0.1'
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
if typ == 'test:index:Child':
return Child(name, opts=pulumi.ResourceOptions(urn=urn))
else:
rais... |
class Module(pulumi.runtime.ResourceModule):
def version(self):
pass
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 5 | 3 | 0 | 2 | 0 | 2 | 24 | 9 | 1 | 8 | 3 | 5 | 0 | 7 | 3 | 4 | 2 | 5 | 1 | 3 |
15,463 | pulumi/pulumi | tests/integration/aliases/python/alias_after_failed_update/step2/__main__.py | __main__.MyComponent | from pulumi import ComponentResource, ResourceOptions
class MyComponent(ComponentResource):
def __init__(self, name):
super().__init__('my:index:MyComponent', name) |
class MyComponent(ComponentResource):
def __init__(self, name):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,464 | pulumi/pulumi | tests/integration/aliases/python/alias_after_failed_update/step3/__main__.py | __main__.MyComponent | from pulumi import Alias, ComponentResource, ResourceOptions
class MyComponent(ComponentResource):
def __init__(self, name):
super().__init__('my:index:MyComponent', name) |
class MyComponent(ComponentResource):
def __init__(self, name):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,465 | pulumi/pulumi | tests/integration/log_debug/python/__main__.py | __main__.MyComponent | import pulumi
class MyComponent(pulumi.ComponentResource):
def __init__(self, name, opts=None):
super().__init__('test:index:MyComponent', name, {}, opts) |
class MyComponent(pulumi.ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,466 | pulumi/pulumi | tests/integration/transformations/python/simple/__main__.py | __main__.MyComponent | from pulumi import Output, ComponentResource, ResourceOptions, ResourceTransformationArgs, ResourceTransformationResult
from random_ import Random
class MyComponent(ComponentResource):
child: Random
def __init__(self, name, opts=None):
super().__init__('my:component:MyComponent', name, {}, opts)
... |
class MyComponent(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 8 | 0 | 8 | 3 | 6 | 0 | 7 | 3 | 5 | 1 | 2 | 0 | 1 |
15,467 | pulumi/pulumi | tests/integration/transforms/python/simple/__main__.py | __main__.MyComponent | from pulumi import Output, ComponentResource, ResourceOptions, ResourceTransformArgs, ResourceTransformResult, InvokeTransformArgs, InvokeTransformResult
from random_ import Component, Random, Provider
class MyComponent(ComponentResource):
child: Random
def __init__(self, name, opts=None):
super().__i... |
class MyComponent(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 8 | 0 | 8 | 3 | 6 | 0 | 7 | 3 | 5 | 1 | 2 | 0 | 1 |
15,468 | pulumi/pulumi | tests/integration/python/resource_args/__main__.py | __main__.MyMocks | import pulumi
class MyMocks(pulumi.runtime.Mocks):
resources = {}
def call(self, args: pulumi.runtime.MockCallArgs):
return {}
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
if args.name == 'f1':
assert args.inputs == {'first': 1, 'second': 'second', 'third': '... |
class MyMocks(pulumi.runtime.Mocks):
def call(self, args: pulumi.runtime.MockCallArgs):
pass
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
pass | 3 | 0 | 13 | 0 | 13 | 0 | 6 | 0 | 1 | 2 | 2 | 0 | 2 | 0 | 2 | 24 | 29 | 2 | 27 | 4 | 24 | 0 | 19 | 4 | 16 | 10 | 5 | 1 | 11 |
15,469 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.MyMocks | import pulumi
class MyMocks(pulumi.runtime.Mocks):
def call(self, args: pulumi.runtime.MockCallArgs):
return {}
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
if args.name == 'o1':
assert args.inputs == {'serviceName': 'hello'}
elif args.name == 'o2':
... |
class MyMocks(pulumi.runtime.Mocks):
def call(self, args: pulumi.runtime.MockCallArgs):
pass
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
pass | 3 | 0 | 15 | 0 | 13 | 2 | 7 | 0.11 | 1 | 2 | 2 | 0 | 2 | 0 | 2 | 24 | 30 | 0 | 27 | 3 | 24 | 3 | 17 | 3 | 14 | 12 | 5 | 1 | 13 |
15,470 | pulumi/pulumi | tests/integration/transformations/python/simple/__main__.py | __main__.MyOtherComponent | from pulumi import Output, ComponentResource, ResourceOptions, ResourceTransformationArgs, ResourceTransformationResult
from random_ import Random
class MyOtherComponent(ComponentResource):
child1: Random
child2: Random
def __init__(self, name, opts=None):
super().__init__('my:component:MyOtherCom... |
class MyOtherComponent(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 1 | 1 | 9 | 8 | 0 | 8 | 3 | 6 | 0 | 8 | 3 | 6 | 1 | 2 | 0 | 1 |
15,471 | pulumi/pulumi | tests/integration/partial_values/python/__main__.py | __main__.MyProvider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class MyProvider(ResourceProvider):
def create(self, props):
return CreateResult('0', props) |
class MyProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
15,472 | pulumi/pulumi | tests/integration/get_resource/python/__main__.py | __main__.MyResource | from pulumi import Output, ResourceOptions, export, UNKNOWN
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class MyResource(Resource):
foo: Output
bar: Output
def __init__(self, name, props, opts=None):
super().__init__(MyProvider(), name, props, opts) |
class MyResource(Resource):
def __init__(self, name, props, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 3 | 0 | 1 |
15,473 | pulumi/pulumi | tests/integration/partial_values/python/__main__.py | __main__.MyResource | from pulumi import Output, export, UNKNOWN
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class MyResource(Resource):
foo: Output
bar: Output
baz: Output
def __init__(self, name, props, opts=None):
super().__init__(MyProvider(), name, props, opts) |
class MyResource(Resource):
def __init__(self, name, props, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 7 | 1 | 6 | 2 | 4 | 0 | 6 | 2 | 4 | 1 | 3 | 0 | 1 |
15,474 | pulumi/pulumi | tests/integration/types/python/declared/__main__.py | __main__.MyResource | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
import pulumi
class MyResource(Resource):
additional: pulumi.Output[Additional]
def __init__(self, name: str, additional: pulumi.InputType[AdditionalArgs]):
super().__init__(MyResourceProvider(), name, {'additional': additional}) |
class MyResource(Resource):
def __init__(self, name: str, additional: pulumi.InputType[AdditionalArgs]):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 11 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,475 | pulumi/pulumi | tests/integration/types/python/simple/__main__.py | __main__.MyResource | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
from pulumi import Input, InputType, Output, export, input_type, output_type, property
class MyResource(Resource):
additional: Output[Additional]
def __init__(self, name: str, additional: InputType[AdditionalArgs]):
super().__init__(M... |
class MyResource(Resource):
def __init__(self, name: str, additional: InputType[AdditionalArgs]):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 11 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,476 | pulumi/pulumi | tests/integration/types/python/simple/__main__.py | __main__.MyResourceProvider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class MyResourceProvider(ResourceProvider):
def create(self, inputs):
global current_id
current_id += 1
return CreateResult(str(current_id), {'additional': inputs['additional']}) |
class MyResourceProvider(ResourceProvider):
def create(self, inputs):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 1 |
15,477 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NestedArgs | import pulumi
@pulumi.input_type
class NestedArgs:
def __init__(self, foo_bar: pulumi.Input[str], some_value: pulumi.Input[int]):
pulumi.set(self, 'foo_bar', foo_bar)
pulumi.set(self, 'some_value', some_value)
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> pulumi.Input[s... | @pulumi.input_type
class NestedArgs:
def __init__(self, foo_bar: pulumi.Input[str], some_value: pulumi.Input[int]):
pass
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> pulumi.Input[str]:
pass
@property
@pulumi.getter(name='someValue')
def some_value(self) -> pu... | 9 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 16 | 2 | 14 | 8 | 4 | 0 | 8 | 4 | 4 | 1 | 0 | 0 | 3 |
15,478 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NestedNewOutput | import pulumi
@pulumi.output_type
class NestedNewOutput(dict):
def __init__(self, foo_bar: str, some_value: int):
pulumi.set(self, 'foo_bar', foo_bar)
pulumi.set(self, 'some_value', some_value)
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> str:
return pulumi.get... | @pulumi.output_type
class NestedNewOutput(dict):
def __init__(self, foo_bar: str, some_value: int):
pass
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> str:
pass
@property
@pulumi.getter(name='someValue')
def some_value(self) -> int:
pass | 9 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 30 | 16 | 2 | 14 | 8 | 4 | 0 | 8 | 4 | 4 | 1 | 2 | 0 | 3 |
15,479 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NestedOldOutput | import pulumi
@pulumi.output_type
class NestedOldOutput(dict):
def __init__(self, foo_bar: str, some_value: int):
pulumi.set(self, 'foo_bar', foo_bar)
pulumi.set(self, 'some_value', some_value)
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> str:
return pulumi.get... | @pulumi.output_type
class NestedOldOutput(dict):
def __init__(self, foo_bar: str, some_value: int):
pass
@property
@pulumi.getter(name='fooBar')
def foo_bar(self) -> str:
pass
@property
@pulumi.getter(name='someValue')
def some_value(self) -> int:
pass
def _tran... | 10 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 4 | 0 | 4 | 31 | 19 | 3 | 16 | 9 | 5 | 0 | 10 | 5 | 5 | 1 | 2 | 0 | 4 |
15,480 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NewBehavior | from typing import Mapping, Optional, Sequence
import pulumi
class NewBehavior(pulumi.CustomResource):
def __init__(self, resource_name: str, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.I... |
class NewBehavior(pulumi.CustomResource):
def __init__(self, resource_name: str, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[NestedArgs]]]=None, list_of_nested_values: Optional[... | 37 | 0 | 4 | 0 | 4 | 0 | 1 | 0.01 | 1 | 8 | 5 | 0 | 14 | 0 | 14 | 22 | 91 | 13 | 77 | 39 | 28 | 1 | 43 | 16 | 28 | 2 | 2 | 1 | 15 |
15,481 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NewBehaviorArgs | import pulumi
from typing import Mapping, Optional, Sequence
@pulumi.input_type
class NewBehaviorArgs:
def __init__(self, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[NestedArgs]... | @pulumi.input_type
class NewBehaviorArgs:
def __init__(self, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[NestedArgs]]]=None, list_of_nested_values: Optional[pulumi.Input[Sequence... | 33 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 11 | 0 | 11 | 11 | 72 | 10 | 62 | 32 | 20 | 0 | 32 | 12 | 20 | 1 | 0 | 0 | 11 |
15,482 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NewBehaviorDict | import pulumi
from typing import Mapping, Optional, Sequence
class NewBehaviorDict(pulumi.CustomResource):
def __init__(self, resource_name: str, args: NewBehaviorDictArgs, opts: Optional[pulumi.ResourceOptions]=None):
if opts is None:
opts = pulumi.ResourceOptions()
args['something_el... |
class NewBehaviorDict(pulumi.CustomResource):
def __init__(self, resource_name: str, args: NewBehaviorDictArgs, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter(name='serviceName')
def service_name(self) -> pulumi.Output[str]:
pass
@property
@pulumi.g... | 37 | 0 | 3 | 0 | 2 | 0 | 1 | 0.02 | 1 | 7 | 4 | 0 | 14 | 0 | 14 | 22 | 72 | 14 | 57 | 29 | 17 | 1 | 32 | 15 | 17 | 2 | 2 | 1 | 15 |
15,483 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.NewBehaviorDictArgs | import pulumi
from typing import Mapping, Optional, Sequence
@pulumi.input_type
class NewBehaviorDictArgs(dict):
def __init__(self, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[N... | @pulumi.input_type
class NewBehaviorDictArgs(dict):
def __init__(self, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[NestedArgs]]]=None, list_of_nested_values: Optional[pulumi.Inpu... | 33 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 11 | 0 | 11 | 38 | 72 | 10 | 62 | 32 | 20 | 0 | 32 | 12 | 20 | 1 | 2 | 0 | 11 |
15,484 | pulumi/pulumi | tests/integration/python/translation/__main__.py | __main__.OldBehavior | from typing import Mapping, Optional, Sequence
import pulumi
class OldBehavior(pulumi.CustomResource):
def __init__(self, resource_name: str, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.I... |
class OldBehavior(pulumi.CustomResource):
def __init__(self, resource_name: str, service_name: pulumi.Input[str], some_value: Optional[pulumi.Input[str]]=None, another_value: Optional[pulumi.Input[str]]=None, nested_value: Optional[pulumi.Input[pulumi.InputType[NestedArgs]]]=None, list_of_nested_values: Optional[... | 37 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 7 | 4 | 0 | 14 | 0 | 14 | 22 | 90 | 13 | 77 | 39 | 28 | 0 | 43 | 16 | 28 | 2 | 2 | 1 | 15 |
15,485 | pulumi/pulumi | tests/integration/enums/python/__main__.py | __main__.PlantProvider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class PlantProvider(ResourceProvider):
def create(self, inputs):
global current_id
current_id += 1
return CreateResult(str(current_id), inputs) |
class PlantProvider(ResourceProvider):
def create(self, inputs):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 1 |
15,486 | pulumi/pulumi | tests/integration/construct_component_provider_explicit/python/__main__.py | __main__.Provider | from typing import Optional
import pulumi
class Provider(pulumi.ProviderResource):
message: pulumi.Output[str]
def __init__(self, name: str, message: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> None:
super().__init__('testcomponent', name, {'message': message}, opts) |
class Provider(pulumi.ProviderResource):
def __init__(self, name: str, message: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 10 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,487 | pulumi/pulumi | tests/integration/run_plugin/provider-python/__main__.py | __main__.Provider | import pulumi.provider as provider
class Provider(provider.Provider):
VERSION = '0.0.1'
def __init__(self):
super().__init__(Provider.VERSION)
def construct(self, name, resource_type, inputs, options):
return provider.ConstructResult('', {'ITS_ALIVE': "IT'S ALIVE!"}) |
class Provider(provider.Provider):
def __init__(self):
pass
def construct(self, name, resource_type, inputs, options):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 6 | 8 | 2 | 6 | 4 | 3 | 0 | 6 | 4 | 3 | 1 | 1 | 0 | 2 |
15,488 | pulumi/pulumi | tests/integration/secret_outputs/python/__main__.py | __main__.Provider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class Provider(ResourceProvider):
def create(self, props):
return CreateResult('1', {'prefix': props['prefix']}) |
class Provider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
15,489 | pulumi/pulumi | tests/integration/secret_outputs/python/__main__.py | __main__.R | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
from pulumi import export, Input, Output, ResourceOptions
class R(Resource):
prefix: Output[str]
def __init__(self, name, prefix: Input[str], opts: ResourceOptions=None):
super().__init__(Provider(), name, {'prefix': prefix}, opts) |
class R(Resource):
def __init__(self, name, prefix: Input[str], opts: ResourceOptions=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 11 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,490 | pulumi/pulumi | tests/integration/gather_plugin/python/__main__.py | __main__.Random | from pulumi import Resource, export
from pulumi.resource import ResourceOptions
from typing import Any, Optional
class Random(Resource):
def __init__(self, name: str, length=int, opts: Optional[ResourceOptions]=None):
props = {'length': length, 'result': None}
self.length = length
Resource... |
class Random(Resource):
def __init__(self, name: str, length=int, opts: Optional[ResourceOptions]=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 1 | 1 | 1 | 6 | 0 | 6 | 4 | 4 | 0 | 6 | 4 | 4 | 1 | 1 | 0 | 1 |
15,491 | pulumi/pulumi | tests/integration/python/pylint/__main__.py | __main__.Random | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class Random(Resource):
"""Random resource."""
val: str
def __init__(self, name, opts=None):
super().__init__(RandomResourceProvider(), name, {'val': ''}, opts) |
class Random(Resource):
'''Random resource.'''
def __init__(self, name, opts=None):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.25 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 6 | 1 | 4 | 2 | 2 | 1 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,492 | pulumi/pulumi | tests/integration/python_await/create_inside_apply/__main__.py | __main__.Random | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class Random(Resource):
val: str
def __init__(self, name, opts=None):
super().__init__(RandomResourceProvider(), name, {'val': ''}, opts) |
class Random(Resource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,493 | pulumi/pulumi | tests/integration/construct_component_provider_propagation/python/__main__.py | __main__.RandomProvider | import pulumi
from typing import Optional
class RandomProvider(pulumi.ProviderResource):
"""
Provider for the testprovider:index:Random resource.
Implemented in tests/testprovider.
"""
def __init__(self, name, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testprovider', ... |
class RandomProvider(pulumi.ProviderResource):
'''
Provider for the testprovider:index:Random resource.
Implemented in tests/testprovider.
'''
def __init__(self, name, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 1.33 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 10 | 9 | 2 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
15,494 | pulumi/pulumi | tests/integration/gather_plugin/python/__main__.py | __main__.RandomProvider | from pulumi.resource import ResourceOptions
from pulumi.resource import ProviderResource as Provider
from typing import Any, Optional
class RandomProvider(Provider):
def __init__(self, opts: Optional[ResourceOptions]=None):
Provider.__init__(self, 'testprovider', 'provider', None, opts) |
class RandomProvider(Provider):
def __init__(self, opts: Optional[ResourceOptions]=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 10 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
15,495 | pulumi/pulumi | tests/integration/dynamic/python-disable-serialization-as-secret/__main__.py | __main__.RandomResourceProvider | import os
import binascii
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class RandomResourceProvider(ResourceProvider):
serialize_as_secret_always = False
def create(self, props):
val = binascii.b2a_hex(os.urandom(15)).decode('ascii')
return CreateResult(val, {'val': val}... |
class RandomResourceProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 1 | 0 | 1 |
15,496 | pulumi/pulumi | tests/integration/python/dynamic-provider/pip/__main__.py | __main__.RandomResourceProvider | import os
import binascii
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
class RandomResourceProvider(ResourceProvider):
def create(self, props):
val = binascii.b2a_hex(os.urandom(15)).decode('ascii')
return CreateResult(val, {'val': val}) |
class RandomResourceProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
15,497 | pulumi/pulumi | tests/integration/python/dynamic-provider/uv/__main__.py | __main__.RandomResourceProvider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
import binascii
import os
class RandomResourceProvider(ResourceProvider):
def create(self, props):
val = binascii.b2a_hex(os.urandom(15)).decode('ascii')
return CreateResult(val, {'val': val}) |
class RandomResourceProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
15,498 | pulumi/pulumi | tests/integration/python/pylint/__main__.py | __main__.RandomResourceProvider | import binascii
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
import os
class RandomResourceProvider(ResourceProvider):
"""Random resource provider."""
def create(self, props):
val = binascii.b2a_hex(os.urandom(15)).decode('ascii')
return CreateResult(val, {'val': val}) |
class RandomResourceProvider(ResourceProvider):
'''Random resource provider.'''
def create(self, props):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 0.25 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
15,499 | pulumi/pulumi | tests/integration/python_await/create_inside_apply/__main__.py | __main__.RandomResourceProvider | from pulumi.dynamic import Resource, ResourceProvider, CreateResult
import os
import binascii
class RandomResourceProvider(ResourceProvider):
def create(self, props):
val = binascii.b2a_hex(os.urandom(15)).decode('ascii')
return CreateResult(val, {'val': val}) |
class RandomResourceProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.