snowflake-connector-python の API リファレンス
snowflake-connector-python (snowflakedb/snowflake-connector-python) の公開 API 152 件 —— クラス 64、関数 32、メソッド 56。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: snowflakedb/snowflake-connector-python
| 種別 | 件数 |
|---|---|
| クラス | 64 |
| 関数 | 32 |
| メソッド | 56 |
API 一覧
func
ci.anaconda.validate_deps_sync.get_meta_run_requirements(meta_path:Path) -> List[str]Extract normalized run requirements from meta.yaml.
func
ci.anaconda.validate_deps_sync.normalize_name(name:str) -> strNormalize a dependency name to a canonical form.
func
ci.anaconda.validate_deps_sync.split_requirement(req:str) -> Tuple[str, str]Split a requirement into name and version specifier.
func
ci.docker.connector_test_lambda.app.run_tests()Run tests using tox
func
ci.download_minicore.build_download_url(platform_dir:str, filename_arch:str, version:str) -> strBuild the download URL.
func
ci.download_minicore.detect_arch() -> strDetect the CPU architecture.
func
ci.download_minicore.detect_libc() -> strDetect libc type on Linux (glibc vs musl).
func
ci.download_minicore.detect_os() -> strDetect the operating system.
func
ci.download_minicore.download_file(url:str, dest_path:Path) -> NoneDownload a file from URL to destination path.
func
ci.download_minicore.extract_tar_gz(tar_path:Path, extract_to:Path) -> NoneExtract a tar.gz file to the specified directory.
func
ci.download_minicore.get_filename_arch(os_name:str, arch:str, libc:str) -> strBuild filename architecture component.
func
ci.download_minicore.get_platform_dir(os_name:str, arch:str) -> strBuild platform directory name for URL.
func
ci.download_minicore.get_repo_root() -> PathGet the repository root directory.
class
ci.generate_full_matrix.CSPAvailable cloud service providers.
class
ci.generate_full_matrix.OperatingSystemInfoOperating system configuration.
class
ci.generate_full_matrix.PythonAvailable Python versions.
class
ci.generate_full_matrix.PythonVersionPython version configuration.
class
ci.pre-commit.check_no_native_http.ASTHelperHelper functions for AST analysis.
method
ci.pre-commit.check_no_native_http.ASTHelper.is_type_checking_test(node:ast.expr) -> boolCheck if expression is TYPE_CHECKING test.
class
ci.pre-commit.check_no_native_http.CallAnalyzerAnalyzes function calls for violations.
method
ci.pre-commit.check_no_native_http.ContextBuilder.visit_AnnAssign(node:ast.AnnAssign)Handle annotated assignments.
method
ci.pre-commit.check_no_native_http.ContextBuilder.visit_Call(node:ast.Call)Track runtime usage of names.
method
ci.pre-commit.check_no_native_http.ContextBuilder.visit_Import(node:ast.Import)Handle import statements.
method
ci.pre-commit.check_no_native_http.FileChecker.check_file() -> Tuple[List[HTTPViolation], List[str]]Check a file for HTTP violations.
method
ci.pre-commit.check_no_native_http.FileChecker.is_exempt() -> boolCheck if file is exempt from all checks.
class
ci.pre-commit.check_no_native_http.ImportContextTracks all import-related information.
method
ci.pre-commit.check_no_native_http.ImportContext.add_import(import_info:ImportInfo)Add an import.
method
ci.pre-commit.check_no_native_http.ImportContext.add_runtime_usage(name:str)Mark a name as used at runtime.
method
ci.pre-commit.check_no_native_http.ImportContext.add_star_import(module:str)Add a star import.
method
ci.pre-commit.check_no_native_http.ImportContext.get_import_location(name:str) -> Tuple[int, int]Get line/col for an import.
class
ci.pre-commit.check_no_native_http.ImportInfoInformation about an import statement.
class
ci.pre-commit.check_no_native_http.ModulePatternUtility class for module pattern matching.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_aiohttp_api(name:str) -> boolCheck if name is an aiohttp API function.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_aiohttp_module(module_or_symbol:str) -> boolCheck if module or symbol is aiohttp-related.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_aiohttp_session(name:str) -> boolCheck if name is an aiohttp session class.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_http_method(name:str) -> boolCheck if name is an HTTP method.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_pool_manager(name:str) -> boolCheck if name is a pool manager class.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_requests_module(module_or_symbol:str) -> boolCheck if module or symbol is requests-related.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_urllib3_api(name:str) -> boolCheck if name is a urllib3 API function.
method
ci.pre-commit.check_no_native_http.ModulePattern.is_urllib3_module(module_or_symbol:str) -> boolCheck if module or symbol is urllib3-related.
class
ci.pre-commit.check_no_native_http.ViolationTypeTypes of HTTP violations.
class
ci.pre-commit.check_optional_imports.ImportViolationPretty prints a violation import restrictions.
func
ci.pre-commit.check_optional_imports.check_file(filename:str) -> List[ImportViolation]Check a file for optional import violations.
func
prober.probes.put_fetch_get.get_driver_version() -> strReturns the version of the Snowflake connector.
func
prober.probes.put_fetch_get.get_python_version() -> strReturns the Python version being used.
func
src.snowflake.connector._sql_util.remove_starting_comments(sql:str) -> strRemove all comments from the start of a SQL statement.
class
src.snowflake.connector.aio._cursor.DictCursorCursor returning results in a dictionary.
method
src.snowflake.connector.aio._network.SnowflakeRestful.delete_session(retry:bool=False) -> NoneDeletes the session.
func
src.snowflake.connector.aio._wif_util.get_aws_region() -> strGet the current AWS workload's region.
func
src.snowflake.connector.aio._wif_util.get_gcp_access_token(session_manager:SessionManager) -> strGets a GCP access token from the metadata server.
method
src.snowflake.connector.aio.auth._by_plugin.AuthByPlugin.handle_timeout(*authenticator:str, *service_name:str | None, *account:str, *user:str, *password:str, **kwargs:Any) -> NoneDefault timeout handler.
method
src.snowflake.connector.aio.auth._by_plugin.AuthByPlugin.reauthenticate(*conn:SnowflakeConnection, **kwargs:Any) -> dict[str, Any]Re-perform authentication.
method
src.snowflake.connector.aio.auth._by_plugin.AuthByPlugin.reset_secrets() -> NoneReset secret members.
method
src.snowflake.connector.aio.auth._by_plugin.AuthByPlugin.update_body(body:dict[Any, Any]) -> NoneUpdate the body of the authentication request.
method
src.snowflake.connector.aio.auth._default.AuthByDefault.update_body(body:dict[Any, Any]) -> NoneSets the password if available.
method
src.snowflake.connector.aio.auth._idtoken.AuthByIdToken.update_body(body:dict[Any, Any]) -> NoneSets the id_token if available.
method
src.snowflake.connector.aio.auth._keypair.AuthByKeyPair.update_body(body:dict[Any, Any]) -> NoneSets the private key if available.
class
src.snowflake.connector.aio.auth._no_auth.AuthNoAuthNo-auth Authentication.
method
src.snowflake.connector.aio.auth._okta.AuthByOkta.prepare(*conn:SnowflakeConnection, *authenticator:str, *service_name:str | None, *account:str, *user:str, *password:str, **kwargs:Any) -> NoneSAML Authentication.
class
src.snowflake.connector.auth._auth.AuthSnowflake Authenticator.
class
src.snowflake.connector.auth._oauth_base.AuthByOAuthBaseA base abstract class for OAuth authenticators
method
src.snowflake.connector.auth._oauth_base.AuthByOAuthBase.assertion_content() -> strReturns the token.
class
src.snowflake.connector.auth.by_plugin.AuthByPluginExternal Authenticator interface.
method
src.snowflake.connector.auth.by_plugin.AuthByPlugin.handle_timeout(*authenticator:str, *service_name:str | None, *account:str, *user:str, *password:str, **kwargs:Any) -> NoneDefault timeout handler.
method
src.snowflake.connector.auth.by_plugin.AuthByPlugin.reauthenticate(*conn:SnowflakeConnection, **kwargs:Any) -> dict[str, Any]Re-perform authentication.
method
src.snowflake.connector.auth.by_plugin.AuthByPlugin.reset_secrets() -> NoneReset secret members.
method
src.snowflake.connector.auth.by_plugin.AuthByPlugin.update_body(body:dict[Any, Any]) -> NoneUpdate the body of the authentication request.
class
src.snowflake.connector.auth.default.AuthByDefaultDefault username and password authenticator.
method
src.snowflake.connector.auth.default.AuthByDefault.update_body(body:dict[Any, Any]) -> NoneSets the password if available.
class
src.snowflake.connector.auth.idtoken.AuthByIdTokenInternal IdToken Based Authentication.
class
src.snowflake.connector.auth.keypair.AuthByKeyPairKey pair based authentication.
class
src.snowflake.connector.auth.no_auth.AuthNoAuthNo-auth Authentication.
class
src.snowflake.connector.auth.oauth.AuthByOAuthOAuth Based Authentication.
method
src.snowflake.connector.auth.oauth.AuthByOAuth.assertion_content() -> str | NoneReturns the token.
method
src.snowflake.connector.auth.oauth.AuthByOAuth.update_body(body:dict[Any, Any]) -> NoneUpdate some information required by OAuth.
class
src.snowflake.connector.auth.oauth_code.AuthByOauthCodeAuthenticates user by OAuth code flow.
class
src.snowflake.connector.auth.okta.AuthByOktaAuthenticate user by OKTA.
method
src.snowflake.connector.auth.okta.AuthByOkta.prepare(*conn:SnowflakeConnection, *authenticator:str, *service_name:str | None, *account:str, *user:str, *password:str, **kwargs:Any) -> NoneSAML Authentication.
class
src.snowflake.connector.auth.usrpwdmfa.AuthByUsrPwdMfaUsername & password & mfa authenticator.
method
src.snowflake.connector.auth.usrpwdmfa.AuthByUsrPwdMfa.update_body(body:dict[Any, Any]) -> NoneSets the password and mfa_token if available.
class
src.snowflake.connector.auth.webbrowser.AuthByWebBrowserAuthenticates user by web browser.
method
src.snowflake.connector.auth.webbrowser.AuthByWebBrowser.assertion_content() -> strReturns the token.
method
src.snowflake.connector.config_manager.ConfigManager.add_option(*option_cls:type[ConfigOption]=ConfigOption, **kwargs) -> NoneAdd a ConfigOption to this ConfigManager.
method
src.snowflake.connector.config_manager.ConfigManager.add_submanager(new_child:ConfigManager) -> NoneNest another ConfigManager under this one.
method
src.snowflake.connector.config_manager.ConfigManager.read_config(skip_file_permissions_check:bool=False) -> NoneRead and cache config file contents.
class
src.snowflake.connector.config_manager.ConfigOptionConfigOption represents a flag/setting.
method
src.snowflake.connector.config_manager.ConfigOption.option_name() -> strUser-friendly name of the config option.
method
src.snowflake.connector.config_manager.ConfigOption.value() -> AnyRetrieve a value of option.
class
src.snowflake.connector.connection.TypeAndBindingStores the type name and the Snowflake binding.
class
src.snowflake.connector.constants.OCSPModeOCSP Mode enumerator for all the available modes.
func
src.snowflake.connector.converter.convert_datetime_to_epoch(dt:datetime) -> floatConverts datetime to epoch time in seconds.
class
src.snowflake.connector.converter_snowsql.SnowflakeConverterSnowSQLSnowflake Converter for SnowSQL.
class
src.snowflake.connector.crl.CRLConfigConfiguration class for CRL validation settings.
class
src.snowflake.connector.crl_cache.CRLCacheAbstract base class for CRL caches.
method
src.snowflake.connector.crl_cache.CRLCache.get(crl_url:str) -> CRLCacheEntry | NoneGet a CRL cache entry by URL.
method
src.snowflake.connector.crl_cache.CRLCache.put(crl_url:str, entry:CRLCacheEntry) -> NoneStore a CRL cache entry.
class
src.snowflake.connector.crl_cache.CRLFileCacheFile-based CRL cache that persists CRLs to disk.
method
src.snowflake.connector.crl_cache.CRLFileCache.cleanup() -> NoneRemove expired files from disk cache.
method
src.snowflake.connector.crl_cache.CRLFileCache.get(crl_url:str) -> CRLCacheEntry | NoneGet a CRL cache entry from disk.
method
src.snowflake.connector.crl_cache.CRLFileCache.put(crl_url:str, entry:CRLCacheEntry) -> NoneStore a CRL cache entry to disk.
method
src.snowflake.connector.crl_cache.NoopCRLCache.cleanup() -> NoneDoes nothing.
method
src.snowflake.connector.crl_cache.NoopCRLCache.get(crl_url:str) -> CRLCacheEntry | NoneAlways returns None.
method
src.snowflake.connector.crl_cache.NoopCRLCache.put(crl_url:str, entry:CRLCacheEntry) -> NoneDoes nothing.
class
src.snowflake.connector.cursor.DictCursorCursor returning results in a dictionary.
class
src.snowflake.connector.cursor.QueryResultStatsStatistics for rows affected by a DML operation.
func
src.snowflake.connector.cursor.exit_handler(*_) -> NoReturnHandler for signal.
func
src.snowflake.connector.encryption_util.matdesc_to_unicode(matdesc:MaterialDescriptor) -> strConvert Material Descriptor to Unicode String.
class
src.snowflake.connector.errors.BadGatewayErrorException for 502 HTTP error for retry.
class
src.snowflake.connector.errors.BadRequestException for 400 HTTP error for retry.
class
src.snowflake.connector.errors.ConfigManagerErrorConfiguration manager related errors.
class
src.snowflake.connector.errors.ConfigSourceErrorConfiguration source related errors.
class
src.snowflake.connector.errors.DatabaseErrorException for errors related to the database.
class
src.snowflake.connector.errors.ErrorBase Snowflake exception class.
method
src.snowflake.connector.errors.Error.generate_telemetry_exception_data() -> dict[str, tuple[bool, str, str] | str]Generate the data to send through telemetry.
class
src.snowflake.connector.errors.ForbiddenErrorException for 403 HTTP error for retry.
class
src.snowflake.connector.errors.GatewayTimeoutErrorException for 504 HTTP error for retry.
class
src.snowflake.connector.errors.InterfaceErrorException for errors related to the interface.
class
src.snowflake.connector.errors.InternalErrorException for errors internal database errors.
class
src.snowflake.connector.errors.InternalServerErrorException for 500 HTTP code for retry.
class
src.snowflake.connector.errors.MethodNotAllowedException for 405 HTTP error for retry.
class
src.snowflake.connector.errors.MissingDependencyErrorException for missing extras dependencies.
class
src.snowflake.connector.errors.OperationalErrorException for errors related to the database's operation.
class
src.snowflake.connector.errors.OtherHTTPRetryableErrorException for other HTTP error for retry.
class
src.snowflake.connector.errors.ProgrammingErrorException for errors programming errors.
class
src.snowflake.connector.errors.RequestTimeoutErrorException for 408 HTTP error for retry.
class
src.snowflake.connector.errors.ServiceUnavailableErrorException for 503 HTTP code for retry.
class
src.snowflake.connector.errors.TooManyRequestsException for 429 HTTP error for retry.
class
src.snowflake.connector.file_transfer_agent.SnowflakeProgressPercentageBuilt-in Progress bar for PUT commands.
func
src.snowflake.connector.interval_util.interval_year_month_to_string(interval:int, scale:int) -> strConvert a year-month interval to a string.
class
src.snowflake.connector.network.ReauthenticationRequestSignal to reauthenticate.
class
src.snowflake.connector.network.RetryRequestSignal to retry request.
class
src.snowflake.connector.network.SnowflakeAuthAttaches HTTP Authorization header for Snowflake.
class
src.snowflake.connector.network.SnowflakeRestfulSnowflake Restful class.
method
src.snowflake.connector.network.SnowflakeRestful.delete_session(retry:bool=False) -> NoneDeletes the session.
func
src.snowflake.connector.network.is_retryable_http_code(code:int) -> boolDecides whether code is a retryable HTTP issue.
class
src.snowflake.connector.ocsp_asn1crypto.SnowflakeOCSPAsn1CryptoOCSP checks by asn1crypto.
method
src.snowflake.connector.ocsp_asn1crypto.SnowflakeOCSPAsn1Crypto.create_ocsp_request(issuer:Certificate, subject:Certificate) -> tuple[CertId, OCSPRequest]Creates CertId and OCSPRequest.
method
src.snowflake.connector.ocsp_asn1crypto.SnowflakeOCSPAsn1Crypto.extract_good_status(single_response:SingleResponse) -> tuple[datetime, datetime]Extracts GOOD status.
class
src.snowflake.connector.options.MissingOptionalDependencyA class to replace missing dependencies.
class
src.snowflake.connector.session_manager.HttpConfigHTTP configuration specific to requests library.
class
src.snowflake.connector.sf_dirs.SFPlatformDirsSingle folder platformdirs.
method
src.snowflake.connector.sf_dirs.SFPlatformDirs.user_config_path() -> strdata directory tied to to the user
class
src.snowflake.connector.sfdatetime.SnowflakeDateTimeFormatSnowflake DateTime Formatter.
func
src.snowflake.connector.time_util.get_time_millis() -> intReturns the current time in milliseconds.
func
src.snowflake.connector.tool.dump_certs.main() -> NoneInternal Tool: Extract certificate files in PEM.
func
src.snowflake.connector.tool.dump_ocsp_response.main() -> NoneInternal Tool: OCSP response dumper.
func
src.snowflake.connector.url_util.is_valid_url(url:str) -> boolConfirms if the provided URL is a valid HTTP/HTTPS URL.
class
src.snowflake.connector.util_text.SQLDelimiterClass that wraps a SQL delimiter string.
func
src.snowflake.connector.util_text.construct_hostname(region:str | None, account:str) -> strConstructs hostname from region and account.
func
src.snowflake.connector.util_text.is_valid_account_identifier(account:str) -> boolValidate the Snowflake account identifier format.
func
src.snowflake.connector.wif_util.get_gcp_access_token(session_manager:SessionManager) -> strGets a GCP access token from the metadata server.
func
src.snowflake.connector.wif_util.get_gcp_identity_token(session_manager:SessionManager) -> strGets a GCP identity token from the metadata server.
この情報について
掲載しているシグネチャは snowflakedb/snowflake-connector-python の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。