Benign python Download

pulumi-kong 4.7.0a1782803775

Legitimate Python package

“A Pulumi package for creating and managing Kong resources.”

PEM private-key footerPEM private-key header

Evidence

Imports Python base64 module lines 1–42
1# coding=utf-8
2# *** WARNING: this file was generated by pulumi-language-python. ***
3# *** Do not edit by hand unless you're certain you know what you are doing! ***
4
5
6import asyncio
7import functools
8import importlib.metadata
9import importlib.util
10import inspect
11import json
12import os
13import sys
14import typing
15import warnings
16import base64
17
18import pulumi
19import pulumi.runtime
20from pulumi.runtime.sync_await import _sync_await
21from pulumi.runtime.proto import resource_pb2
22
23from semver import VersionInfo as SemverVersion
24from parver import Version as PEP440Version
25
26C = typing.TypeVar("C", bound=typing.Callable)
27
28
29def get_env(*args):
30 for v in args:
31 value = os.getenv(v)
32 if value is not None:
33 return value
⋯4 lines
38 str = get_env(*args)
39 if str is not None:
40 # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
41 # Terraform uses internally when parsing boolean values.
42 …
References top-level /pkg path lines 94–96
94:66… hen converting an arbitrary prerelease,
95 # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
96 # do the reverse conversion here and s …
Module assigns a no-arg call lines 102–108
102:34… cache the value, which measurably improves program performance.
103_version = _get_semver_version()
104_version_str = str(_version)
105
106def get_resource_opts_defaults() -> pulumi.ResourceOptions:
107 return pulumi.ResourceOptions(
108 …
Python mapping reads an args key lines 136–143
136:15… urce args type.
137 if resource_args is None:
138 a = kwargs.get("args")
139 if isinstance(a, resource_args_type):
140 resource_args = a
141
142 # If opts is None, look it up in kwargs.
143 i …
Python getattr dynamic attribute lookup lines 149–160
149:64… pgrades.
150def lazy_import(fullname):
151
152 import pulumi._utils as u
153 f = getattr(u, 'lazy_import', None)
154 if f is None:
155 f = _lazy_import_temp
⋯5 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.