hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8aa61acfcc23aff9ad0ec8ef114cf28fa093aa6b
| 295,263
|
py
|
Python
|
google/storage/v1/storage-v1-py/tests/unit/gapic/storage_v1/test_storage.py
|
googleapis/googleapis-gen
|
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
|
[
"Apache-2.0"
] | 7
|
2021-02-21T10:39:41.000Z
|
2021-12-07T07:31:28.000Z
|
google/storage/v1/storage-v1-py/tests/unit/gapic/storage_v1/test_storage.py
|
googleapis/googleapis-gen
|
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
|
[
"Apache-2.0"
] | 6
|
2021-02-02T23:46:11.000Z
|
2021-11-15T01:46:02.000Z
|
google/storage/v1/storage-v1-py/tests/unit/gapic/storage_v1/test_storage.py
|
googleapis/googleapis-gen
|
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
|
[
"Apache-2.0"
] | 4
|
2021-01-28T23:25:45.000Z
|
2021-08-30T01:55:16.000Z
|
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import mock
import packaging.version
import grpc
from grpc.experimental import aio
import math
import pytest
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.api_core import path_template
from google.auth import credentials as ga_credentials
from google.auth.exceptions import MutualTLSChannelError
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import options_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.oauth2 import service_account
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.protobuf import wrappers_pb2 # type: ignore
from google.storage_v1.services.storage import StorageAsyncClient
from google.storage_v1.services.storage import StorageClient
from google.storage_v1.services.storage import pagers
from google.storage_v1.services.storage import transports
from google.storage_v1.services.storage.transports.base import _GOOGLE_AUTH_VERSION
from google.storage_v1.types import storage
from google.storage_v1.types import storage_resources
from google.type import expr_pb2 # type: ignore
import google.auth
# TODO(busunkim): Once google-auth >= 1.25.0 is required transitively
# through google-api-core:
# - Delete the auth "less than" test cases
# - Delete these pytest markers (Make the "greater than or equal to" tests the default).
requires_google_auth_lt_1_25_0 = pytest.mark.skipif(
packaging.version.parse(_GOOGLE_AUTH_VERSION) >= packaging.version.parse("1.25.0"),
reason="This test requires google-auth < 1.25.0",
)
requires_google_auth_gte_1_25_0 = pytest.mark.skipif(
packaging.version.parse(_GOOGLE_AUTH_VERSION) < packaging.version.parse("1.25.0"),
reason="This test requires google-auth >= 1.25.0",
)
def client_cert_source_callback():
return b"cert bytes", b"key bytes"
# If default endpoint is localhost, then default mtls endpoint will be the same.
# This method modifies the default endpoint so the client can produce a different
# mtls endpoint for endpoint testing purposes.
def modify_default_endpoint(client):
return "foo.googleapis.com" if ("localhost" in client.DEFAULT_ENDPOINT) else client.DEFAULT_ENDPOINT
def test__get_default_mtls_endpoint():
api_endpoint = "example.googleapis.com"
api_mtls_endpoint = "example.mtls.googleapis.com"
sandbox_endpoint = "example.sandbox.googleapis.com"
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"
assert StorageClient._get_default_mtls_endpoint(None) is None
assert StorageClient._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
assert StorageClient._get_default_mtls_endpoint(api_mtls_endpoint) == api_mtls_endpoint
assert StorageClient._get_default_mtls_endpoint(sandbox_endpoint) == sandbox_mtls_endpoint
assert StorageClient._get_default_mtls_endpoint(sandbox_mtls_endpoint) == sandbox_mtls_endpoint
assert StorageClient._get_default_mtls_endpoint(non_googleapi) == non_googleapi
@pytest.mark.parametrize("client_class", [
StorageClient,
StorageAsyncClient,
])
def test_storage_client_from_service_account_info(client_class):
creds = ga_credentials.AnonymousCredentials()
with mock.patch.object(service_account.Credentials, 'from_service_account_info') as factory:
factory.return_value = creds
info = {"valid": True}
client = client_class.from_service_account_info(info)
assert client.transport._credentials == creds
assert isinstance(client, client_class)
assert client.transport._host == 'storage.googleapis.com:443'
@pytest.mark.parametrize("transport_class,transport_name", [
(transports.StorageGrpcTransport, "grpc"),
(transports.StorageGrpcAsyncIOTransport, "grpc_asyncio"),
])
def test_storage_client_service_account_always_use_jwt(transport_class, transport_name):
with mock.patch.object(service_account.Credentials, 'with_always_use_jwt_access', create=True) as use_jwt:
creds = service_account.Credentials(None, None, None)
transport = transport_class(credentials=creds, always_use_jwt_access=True)
use_jwt.assert_called_once_with(True)
with mock.patch.object(service_account.Credentials, 'with_always_use_jwt_access', create=True) as use_jwt:
creds = service_account.Credentials(None, None, None)
transport = transport_class(credentials=creds, always_use_jwt_access=False)
use_jwt.assert_not_called()
@pytest.mark.parametrize("client_class", [
StorageClient,
StorageAsyncClient,
])
def test_storage_client_from_service_account_file(client_class):
creds = ga_credentials.AnonymousCredentials()
with mock.patch.object(service_account.Credentials, 'from_service_account_file') as factory:
factory.return_value = creds
client = client_class.from_service_account_file("dummy/file/path.json")
assert client.transport._credentials == creds
assert isinstance(client, client_class)
client = client_class.from_service_account_json("dummy/file/path.json")
assert client.transport._credentials == creds
assert isinstance(client, client_class)
assert client.transport._host == 'storage.googleapis.com:443'
def test_storage_client_get_transport_class():
transport = StorageClient.get_transport_class()
available_transports = [
transports.StorageGrpcTransport,
]
assert transport in available_transports
transport = StorageClient.get_transport_class("grpc")
assert transport == transports.StorageGrpcTransport
@pytest.mark.parametrize("client_class,transport_class,transport_name", [
(StorageClient, transports.StorageGrpcTransport, "grpc"),
(StorageAsyncClient, transports.StorageGrpcAsyncIOTransport, "grpc_asyncio"),
])
@mock.patch.object(StorageClient, "DEFAULT_ENDPOINT", modify_default_endpoint(StorageClient))
@mock.patch.object(StorageAsyncClient, "DEFAULT_ENDPOINT", modify_default_endpoint(StorageAsyncClient))
def test_storage_client_client_options(client_class, transport_class, transport_name):
# Check that if channel is provided we won't create a new one.
with mock.patch.object(StorageClient, 'get_transport_class') as gtc:
transport = transport_class(
credentials=ga_credentials.AnonymousCredentials()
)
client = client_class(transport=transport)
gtc.assert_not_called()
# Check that if channel is provided via str we will create a new one.
with mock.patch.object(StorageClient, 'get_transport_class') as gtc:
client = client_class(transport=transport_name)
gtc.assert_called()
# Check the case api_endpoint is provided.
options = client_options.ClientOptions(api_endpoint="squid.clam.whelk")
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is
# "never".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}):
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is
# "always".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}):
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT has
# unsupported value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "Unsupported"}):
with pytest.raises(MutualTLSChannelError):
client = client_class()
# Check the case GOOGLE_API_USE_CLIENT_CERTIFICATE has unsupported value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "Unsupported"}):
with pytest.raises(ValueError):
client = client_class()
# Check the case quota_project_id is provided
options = client_options.ClientOptions(quota_project_id="octopus")
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id="octopus",
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize("client_class,transport_class,transport_name,use_client_cert_env", [
(StorageClient, transports.StorageGrpcTransport, "grpc", "true"),
(StorageAsyncClient, transports.StorageGrpcAsyncIOTransport, "grpc_asyncio", "true"),
(StorageClient, transports.StorageGrpcTransport, "grpc", "false"),
(StorageAsyncClient, transports.StorageGrpcAsyncIOTransport, "grpc_asyncio", "false"),
])
@mock.patch.object(StorageClient, "DEFAULT_ENDPOINT", modify_default_endpoint(StorageClient))
@mock.patch.object(StorageAsyncClient, "DEFAULT_ENDPOINT", modify_default_endpoint(StorageAsyncClient))
@mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "auto"})
def test_storage_client_mtls_env_auto(client_class, transport_class, transport_name, use_client_cert_env):
# This tests the endpoint autoswitch behavior. Endpoint is autoswitched to the default
# mtls endpoint, if GOOGLE_API_USE_CLIENT_CERTIFICATE is "true" and client cert exists.
# Check the case client_cert_source is provided. Whether client cert is used depends on
# GOOGLE_API_USE_CLIENT_CERTIFICATE value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}):
options = client_options.ClientOptions(client_cert_source=client_cert_source_callback)
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class(client_options=options)
if use_client_cert_env == "false":
expected_client_cert_source = None
expected_host = client.DEFAULT_ENDPOINT
else:
expected_client_cert_source = client_cert_source_callback
expected_host = client.DEFAULT_MTLS_ENDPOINT
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=expected_host,
scopes=None,
client_cert_source_for_mtls=expected_client_cert_source,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case ADC client cert is provided. Whether client cert is used depends on
# GOOGLE_API_USE_CLIENT_CERTIFICATE value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}):
with mock.patch.object(transport_class, '__init__') as patched:
with mock.patch('google.auth.transport.mtls.has_default_client_cert_source', return_value=True):
with mock.patch('google.auth.transport.mtls.default_client_cert_source', return_value=client_cert_source_callback):
if use_client_cert_env == "false":
expected_host = client.DEFAULT_ENDPOINT
expected_client_cert_source = None
else:
expected_host = client.DEFAULT_MTLS_ENDPOINT
expected_client_cert_source = client_cert_source_callback
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=expected_host,
scopes=None,
client_cert_source_for_mtls=expected_client_cert_source,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case client_cert_source and ADC client cert are not provided.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}):
with mock.patch.object(transport_class, '__init__') as patched:
with mock.patch("google.auth.transport.mtls.has_default_client_cert_source", return_value=False):
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize("client_class,transport_class,transport_name", [
(StorageClient, transports.StorageGrpcTransport, "grpc"),
(StorageAsyncClient, transports.StorageGrpcAsyncIOTransport, "grpc_asyncio"),
])
def test_storage_client_client_options_scopes(client_class, transport_class, transport_name):
# Check the case scopes are provided.
options = client_options.ClientOptions(
scopes=["1", "2"],
)
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=["1", "2"],
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize("client_class,transport_class,transport_name", [
(StorageClient, transports.StorageGrpcTransport, "grpc"),
(StorageAsyncClient, transports.StorageGrpcAsyncIOTransport, "grpc_asyncio"),
])
def test_storage_client_client_options_credentials_file(client_class, transport_class, transport_name):
# Check the case credentials file is provided.
options = client_options.ClientOptions(
credentials_file="credentials.json"
)
with mock.patch.object(transport_class, '__init__') as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file="credentials.json",
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
def test_storage_client_client_options_from_dict():
with mock.patch('google.storage_v1.services.storage.transports.StorageGrpcTransport.__init__') as grpc_transport:
grpc_transport.return_value = None
client = StorageClient(
client_options={'api_endpoint': 'squid.clam.whelk'}
)
grpc_transport.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
def test_delete_bucket_access_control(transport: str = 'grpc', request_type=storage.DeleteBucketAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_bucket_access_control_from_dict():
test_delete_bucket_access_control(request_type=dict)
def test_delete_bucket_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket_access_control),
'__call__') as call:
client.delete_bucket_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketAccessControlRequest()
@pytest.mark.asyncio
async def test_delete_bucket_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteBucketAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_bucket_access_control_async_from_dict():
await test_delete_bucket_access_control_async(request_type=dict)
def test_get_bucket_access_control(transport: str = 'grpc', request_type=storage.GetBucketAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.get_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_get_bucket_access_control_from_dict():
test_get_bucket_access_control(request_type=dict)
def test_get_bucket_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_access_control),
'__call__') as call:
client.get_bucket_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketAccessControlRequest()
@pytest.mark.asyncio
async def test_get_bucket_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.GetBucketAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.get_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_get_bucket_access_control_async_from_dict():
await test_get_bucket_access_control_async(request_type=dict)
def test_insert_bucket_access_control(transport: str = 'grpc', request_type=storage.InsertBucketAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.insert_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_insert_bucket_access_control_from_dict():
test_insert_bucket_access_control(request_type=dict)
def test_insert_bucket_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket_access_control),
'__call__') as call:
client.insert_bucket_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketAccessControlRequest()
@pytest.mark.asyncio
async def test_insert_bucket_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.InsertBucketAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.insert_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_insert_bucket_access_control_async_from_dict():
await test_insert_bucket_access_control_async(request_type=dict)
def test_list_bucket_access_controls(transport: str = 'grpc', request_type=storage.ListBucketAccessControlsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_bucket_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListBucketAccessControlsResponse(
)
response = client.list_bucket_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListBucketAccessControlsResponse)
def test_list_bucket_access_controls_from_dict():
test_list_bucket_access_controls(request_type=dict)
def test_list_bucket_access_controls_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_bucket_access_controls),
'__call__') as call:
client.list_bucket_access_controls()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketAccessControlsRequest()
@pytest.mark.asyncio
async def test_list_bucket_access_controls_async(transport: str = 'grpc_asyncio', request_type=storage.ListBucketAccessControlsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_bucket_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListBucketAccessControlsResponse(
))
response = await client.list_bucket_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListBucketAccessControlsResponse)
@pytest.mark.asyncio
async def test_list_bucket_access_controls_async_from_dict():
await test_list_bucket_access_controls_async(request_type=dict)
def test_update_bucket_access_control(transport: str = 'grpc', request_type=storage.UpdateBucketAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.update_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_update_bucket_access_control_from_dict():
test_update_bucket_access_control(request_type=dict)
def test_update_bucket_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket_access_control),
'__call__') as call:
client.update_bucket_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketAccessControlRequest()
@pytest.mark.asyncio
async def test_update_bucket_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateBucketAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.update_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_update_bucket_access_control_async_from_dict():
await test_update_bucket_access_control_async(request_type=dict)
def test_patch_bucket_access_control(transport: str = 'grpc', request_type=storage.PatchBucketAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.patch_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_patch_bucket_access_control_from_dict():
test_patch_bucket_access_control(request_type=dict)
def test_patch_bucket_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket_access_control),
'__call__') as call:
client.patch_bucket_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketAccessControlRequest()
@pytest.mark.asyncio
async def test_patch_bucket_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.PatchBucketAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.BucketAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.patch_bucket_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.BucketAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_patch_bucket_access_control_async_from_dict():
await test_patch_bucket_access_control_async(request_type=dict)
def test_delete_bucket(transport: str = 'grpc', request_type=storage.DeleteBucketRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_bucket_from_dict():
test_delete_bucket(request_type=dict)
def test_delete_bucket_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket),
'__call__') as call:
client.delete_bucket()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketRequest()
@pytest.mark.asyncio
async def test_delete_bucket_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteBucketRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteBucketRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_bucket_async_from_dict():
await test_delete_bucket_async(request_type=dict)
def test_get_bucket(transport: str = 'grpc', request_type=storage.GetBucketRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
)
response = client.get_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
def test_get_bucket_from_dict():
test_get_bucket(request_type=dict)
def test_get_bucket_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket),
'__call__') as call:
client.get_bucket()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketRequest()
@pytest.mark.asyncio
async def test_get_bucket_async(transport: str = 'grpc_asyncio', request_type=storage.GetBucketRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
))
response = await client.get_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
@pytest.mark.asyncio
async def test_get_bucket_async_from_dict():
await test_get_bucket_async(request_type=dict)
def test_insert_bucket(transport: str = 'grpc', request_type=storage.InsertBucketRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
)
response = client.insert_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
def test_insert_bucket_from_dict():
test_insert_bucket(request_type=dict)
def test_insert_bucket_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket),
'__call__') as call:
client.insert_bucket()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketRequest()
@pytest.mark.asyncio
async def test_insert_bucket_async(transport: str = 'grpc_asyncio', request_type=storage.InsertBucketRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
))
response = await client.insert_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
@pytest.mark.asyncio
async def test_insert_bucket_async_from_dict():
await test_insert_bucket_async(request_type=dict)
def test_list_channels(transport: str = 'grpc', request_type=storage.ListChannelsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_channels),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListChannelsResponse(
)
response = client.list_channels(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListChannelsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListChannelsResponse)
def test_list_channels_from_dict():
test_list_channels(request_type=dict)
def test_list_channels_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_channels),
'__call__') as call:
client.list_channels()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListChannelsRequest()
@pytest.mark.asyncio
async def test_list_channels_async(transport: str = 'grpc_asyncio', request_type=storage.ListChannelsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_channels),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListChannelsResponse(
))
response = await client.list_channels(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListChannelsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListChannelsResponse)
@pytest.mark.asyncio
async def test_list_channels_async_from_dict():
await test_list_channels_async(request_type=dict)
def test_list_buckets(transport: str = 'grpc', request_type=storage.ListBucketsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListBucketsResponse(
next_page_token='next_page_token_value',
)
response = client.list_buckets(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListBucketsPager)
assert response.next_page_token == 'next_page_token_value'
def test_list_buckets_from_dict():
test_list_buckets(request_type=dict)
def test_list_buckets_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__') as call:
client.list_buckets()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketsRequest()
@pytest.mark.asyncio
async def test_list_buckets_async(transport: str = 'grpc_asyncio', request_type=storage.ListBucketsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListBucketsResponse(
next_page_token='next_page_token_value',
))
response = await client.list_buckets(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListBucketsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListBucketsAsyncPager)
assert response.next_page_token == 'next_page_token_value'
@pytest.mark.asyncio
async def test_list_buckets_async_from_dict():
await test_list_buckets_async(request_type=dict)
def test_list_buckets_pager():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
storage_resources.Bucket(),
],
next_page_token='abc',
),
storage_resources.ListBucketsResponse(
items=[],
next_page_token='def',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
],
next_page_token='ghi',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
],
),
RuntimeError,
)
metadata = ()
pager = client.list_buckets(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, storage_resources.Bucket)
for i in results)
def test_list_buckets_pages():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
storage_resources.Bucket(),
],
next_page_token='abc',
),
storage_resources.ListBucketsResponse(
items=[],
next_page_token='def',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
],
next_page_token='ghi',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
],
),
RuntimeError,
)
pages = list(client.list_buckets(request={}).pages)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_buckets_async_pager():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
storage_resources.Bucket(),
],
next_page_token='abc',
),
storage_resources.ListBucketsResponse(
items=[],
next_page_token='def',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
],
next_page_token='ghi',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
],
),
RuntimeError,
)
async_pager = await client.list_buckets(request={},)
assert async_pager.next_page_token == 'abc'
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, storage_resources.Bucket)
for i in responses)
@pytest.mark.asyncio
async def test_list_buckets_async_pages():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_buckets),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
storage_resources.Bucket(),
],
next_page_token='abc',
),
storage_resources.ListBucketsResponse(
items=[],
next_page_token='def',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
],
next_page_token='ghi',
),
storage_resources.ListBucketsResponse(
items=[
storage_resources.Bucket(),
storage_resources.Bucket(),
],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_buckets(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
def test_lock_bucket_retention_policy(transport: str = 'grpc', request_type=storage.LockRetentionPolicyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.lock_bucket_retention_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
)
response = client.lock_bucket_retention_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.LockRetentionPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
def test_lock_bucket_retention_policy_from_dict():
test_lock_bucket_retention_policy(request_type=dict)
def test_lock_bucket_retention_policy_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.lock_bucket_retention_policy),
'__call__') as call:
client.lock_bucket_retention_policy()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.LockRetentionPolicyRequest()
@pytest.mark.asyncio
async def test_lock_bucket_retention_policy_async(transport: str = 'grpc_asyncio', request_type=storage.LockRetentionPolicyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.lock_bucket_retention_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
))
response = await client.lock_bucket_retention_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.LockRetentionPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
@pytest.mark.asyncio
async def test_lock_bucket_retention_policy_async_from_dict():
await test_lock_bucket_retention_policy_async(request_type=dict)
def test_get_bucket_iam_policy(transport: str = 'grpc', request_type=storage.GetIamPolicyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = policy_pb2.Policy(
version=774,
etag=b'etag_blob',
)
response = client.get_bucket_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
def test_get_bucket_iam_policy_from_dict():
test_get_bucket_iam_policy(request_type=dict)
def test_get_bucket_iam_policy_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_iam_policy),
'__call__') as call:
client.get_bucket_iam_policy()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
@pytest.mark.asyncio
async def test_get_bucket_iam_policy_async(transport: str = 'grpc_asyncio', request_type=storage.GetIamPolicyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_bucket_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy(
version=774,
etag=b'etag_blob',
))
response = await client.get_bucket_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
@pytest.mark.asyncio
async def test_get_bucket_iam_policy_async_from_dict():
await test_get_bucket_iam_policy_async(request_type=dict)
def test_set_bucket_iam_policy(transport: str = 'grpc', request_type=storage.SetIamPolicyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_bucket_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = policy_pb2.Policy(
version=774,
etag=b'etag_blob',
)
response = client.set_bucket_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
def test_set_bucket_iam_policy_from_dict():
test_set_bucket_iam_policy(request_type=dict)
def test_set_bucket_iam_policy_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_bucket_iam_policy),
'__call__') as call:
client.set_bucket_iam_policy()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
@pytest.mark.asyncio
async def test_set_bucket_iam_policy_async(transport: str = 'grpc_asyncio', request_type=storage.SetIamPolicyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_bucket_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy(
version=774,
etag=b'etag_blob',
))
response = await client.set_bucket_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
@pytest.mark.asyncio
async def test_set_bucket_iam_policy_async_from_dict():
await test_set_bucket_iam_policy_async(request_type=dict)
def test_test_bucket_iam_permissions(transport: str = 'grpc', request_type=storage.TestIamPermissionsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_bucket_iam_permissions),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = iam_policy_pb2.TestIamPermissionsResponse(
permissions=['permissions_value'],
)
response = client.test_bucket_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse)
assert response.permissions == ['permissions_value']
def test_test_bucket_iam_permissions_from_dict():
test_test_bucket_iam_permissions(request_type=dict)
def test_test_bucket_iam_permissions_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_bucket_iam_permissions),
'__call__') as call:
client.test_bucket_iam_permissions()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
@pytest.mark.asyncio
async def test_test_bucket_iam_permissions_async(transport: str = 'grpc_asyncio', request_type=storage.TestIamPermissionsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_bucket_iam_permissions),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(iam_policy_pb2.TestIamPermissionsResponse(
permissions=['permissions_value'],
))
response = await client.test_bucket_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse)
assert response.permissions == ['permissions_value']
@pytest.mark.asyncio
async def test_test_bucket_iam_permissions_async_from_dict():
await test_test_bucket_iam_permissions_async(request_type=dict)
def test_patch_bucket(transport: str = 'grpc', request_type=storage.PatchBucketRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
)
response = client.patch_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
def test_patch_bucket_from_dict():
test_patch_bucket(request_type=dict)
def test_patch_bucket_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket),
'__call__') as call:
client.patch_bucket()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketRequest()
@pytest.mark.asyncio
async def test_patch_bucket_async(transport: str = 'grpc_asyncio', request_type=storage.PatchBucketRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
))
response = await client.patch_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
@pytest.mark.asyncio
async def test_patch_bucket_async_from_dict():
await test_patch_bucket_async(request_type=dict)
def test_update_bucket(transport: str = 'grpc', request_type=storage.UpdateBucketRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
)
response = client.update_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
def test_update_bucket_from_dict():
test_update_bucket(request_type=dict)
def test_update_bucket_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket),
'__call__') as call:
client.update_bucket()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketRequest()
@pytest.mark.asyncio
async def test_update_bucket_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateBucketRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_bucket),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Bucket(
id='id_value',
name='name_value',
project_number=1503,
metageneration=1491,
location='location_value',
storage_class='storage_class_value',
etag='etag_value',
default_event_based_hold=True,
location_type='location_type_value',
zone_affinity=['zone_affinity_value'],
))
response = await client.update_bucket(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateBucketRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Bucket)
assert response.id == 'id_value'
assert response.name == 'name_value'
assert response.project_number == 1503
assert response.metageneration == 1491
assert response.location == 'location_value'
assert response.storage_class == 'storage_class_value'
assert response.etag == 'etag_value'
assert response.default_event_based_hold is True
assert response.location_type == 'location_type_value'
assert response.zone_affinity == ['zone_affinity_value']
@pytest.mark.asyncio
async def test_update_bucket_async_from_dict():
await test_update_bucket_async(request_type=dict)
def test_stop_channel(transport: str = 'grpc', request_type=storage.StopChannelRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.stop_channel),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.stop_channel(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StopChannelRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_stop_channel_from_dict():
test_stop_channel(request_type=dict)
def test_stop_channel_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.stop_channel),
'__call__') as call:
client.stop_channel()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StopChannelRequest()
@pytest.mark.asyncio
async def test_stop_channel_async(transport: str = 'grpc_asyncio', request_type=storage.StopChannelRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.stop_channel),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.stop_channel(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StopChannelRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_stop_channel_async_from_dict():
await test_stop_channel_async(request_type=dict)
def test_delete_default_object_access_control(transport: str = 'grpc', request_type=storage.DeleteDefaultObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_default_object_access_control_from_dict():
test_delete_default_object_access_control(request_type=dict)
def test_delete_default_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_default_object_access_control),
'__call__') as call:
client.delete_default_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteDefaultObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_delete_default_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteDefaultObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_default_object_access_control_async_from_dict():
await test_delete_default_object_access_control_async(request_type=dict)
def test_get_default_object_access_control(transport: str = 'grpc', request_type=storage.GetDefaultObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.get_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_get_default_object_access_control_from_dict():
test_get_default_object_access_control(request_type=dict)
def test_get_default_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_default_object_access_control),
'__call__') as call:
client.get_default_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetDefaultObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_get_default_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.GetDefaultObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.get_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_get_default_object_access_control_async_from_dict():
await test_get_default_object_access_control_async(request_type=dict)
def test_insert_default_object_access_control(transport: str = 'grpc', request_type=storage.InsertDefaultObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.insert_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_insert_default_object_access_control_from_dict():
test_insert_default_object_access_control(request_type=dict)
def test_insert_default_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_default_object_access_control),
'__call__') as call:
client.insert_default_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertDefaultObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_insert_default_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.InsertDefaultObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.insert_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_insert_default_object_access_control_async_from_dict():
await test_insert_default_object_access_control_async(request_type=dict)
def test_list_default_object_access_controls(transport: str = 'grpc', request_type=storage.ListDefaultObjectAccessControlsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_default_object_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListObjectAccessControlsResponse(
)
response = client.list_default_object_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListDefaultObjectAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListObjectAccessControlsResponse)
def test_list_default_object_access_controls_from_dict():
test_list_default_object_access_controls(request_type=dict)
def test_list_default_object_access_controls_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_default_object_access_controls),
'__call__') as call:
client.list_default_object_access_controls()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListDefaultObjectAccessControlsRequest()
@pytest.mark.asyncio
async def test_list_default_object_access_controls_async(transport: str = 'grpc_asyncio', request_type=storage.ListDefaultObjectAccessControlsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_default_object_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListObjectAccessControlsResponse(
))
response = await client.list_default_object_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListDefaultObjectAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListObjectAccessControlsResponse)
@pytest.mark.asyncio
async def test_list_default_object_access_controls_async_from_dict():
await test_list_default_object_access_controls_async(request_type=dict)
def test_patch_default_object_access_control(transport: str = 'grpc', request_type=storage.PatchDefaultObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.patch_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_patch_default_object_access_control_from_dict():
test_patch_default_object_access_control(request_type=dict)
def test_patch_default_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_default_object_access_control),
'__call__') as call:
client.patch_default_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchDefaultObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_patch_default_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.PatchDefaultObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.patch_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_patch_default_object_access_control_async_from_dict():
await test_patch_default_object_access_control_async(request_type=dict)
def test_update_default_object_access_control(transport: str = 'grpc', request_type=storage.UpdateDefaultObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.update_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_update_default_object_access_control_from_dict():
test_update_default_object_access_control(request_type=dict)
def test_update_default_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_default_object_access_control),
'__call__') as call:
client.update_default_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateDefaultObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_update_default_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateDefaultObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_default_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.update_default_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateDefaultObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_update_default_object_access_control_async_from_dict():
await test_update_default_object_access_control_async(request_type=dict)
def test_delete_notification(transport: str = 'grpc', request_type=storage.DeleteNotificationRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteNotificationRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_notification_from_dict():
test_delete_notification(request_type=dict)
def test_delete_notification_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_notification),
'__call__') as call:
client.delete_notification()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteNotificationRequest()
@pytest.mark.asyncio
async def test_delete_notification_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteNotificationRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteNotificationRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_notification_async_from_dict():
await test_delete_notification_async(request_type=dict)
def test_get_notification(transport: str = 'grpc', request_type=storage.GetNotificationRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Notification(
topic='topic_value',
event_types=['event_types_value'],
etag='etag_value',
object_name_prefix='object_name_prefix_value',
payload_format='payload_format_value',
id='id_value',
)
response = client.get_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetNotificationRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Notification)
assert response.topic == 'topic_value'
assert response.event_types == ['event_types_value']
assert response.etag == 'etag_value'
assert response.object_name_prefix == 'object_name_prefix_value'
assert response.payload_format == 'payload_format_value'
assert response.id == 'id_value'
def test_get_notification_from_dict():
test_get_notification(request_type=dict)
def test_get_notification_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_notification),
'__call__') as call:
client.get_notification()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetNotificationRequest()
@pytest.mark.asyncio
async def test_get_notification_async(transport: str = 'grpc_asyncio', request_type=storage.GetNotificationRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Notification(
topic='topic_value',
event_types=['event_types_value'],
etag='etag_value',
object_name_prefix='object_name_prefix_value',
payload_format='payload_format_value',
id='id_value',
))
response = await client.get_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetNotificationRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Notification)
assert response.topic == 'topic_value'
assert response.event_types == ['event_types_value']
assert response.etag == 'etag_value'
assert response.object_name_prefix == 'object_name_prefix_value'
assert response.payload_format == 'payload_format_value'
assert response.id == 'id_value'
@pytest.mark.asyncio
async def test_get_notification_async_from_dict():
await test_get_notification_async(request_type=dict)
def test_insert_notification(transport: str = 'grpc', request_type=storage.InsertNotificationRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Notification(
topic='topic_value',
event_types=['event_types_value'],
etag='etag_value',
object_name_prefix='object_name_prefix_value',
payload_format='payload_format_value',
id='id_value',
)
response = client.insert_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertNotificationRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Notification)
assert response.topic == 'topic_value'
assert response.event_types == ['event_types_value']
assert response.etag == 'etag_value'
assert response.object_name_prefix == 'object_name_prefix_value'
assert response.payload_format == 'payload_format_value'
assert response.id == 'id_value'
def test_insert_notification_from_dict():
test_insert_notification(request_type=dict)
def test_insert_notification_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_notification),
'__call__') as call:
client.insert_notification()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertNotificationRequest()
@pytest.mark.asyncio
async def test_insert_notification_async(transport: str = 'grpc_asyncio', request_type=storage.InsertNotificationRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_notification),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Notification(
topic='topic_value',
event_types=['event_types_value'],
etag='etag_value',
object_name_prefix='object_name_prefix_value',
payload_format='payload_format_value',
id='id_value',
))
response = await client.insert_notification(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertNotificationRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Notification)
assert response.topic == 'topic_value'
assert response.event_types == ['event_types_value']
assert response.etag == 'etag_value'
assert response.object_name_prefix == 'object_name_prefix_value'
assert response.payload_format == 'payload_format_value'
assert response.id == 'id_value'
@pytest.mark.asyncio
async def test_insert_notification_async_from_dict():
await test_insert_notification_async(request_type=dict)
def test_list_notifications(transport: str = 'grpc', request_type=storage.ListNotificationsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_notifications),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListNotificationsResponse(
)
response = client.list_notifications(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListNotificationsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListNotificationsResponse)
def test_list_notifications_from_dict():
test_list_notifications(request_type=dict)
def test_list_notifications_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_notifications),
'__call__') as call:
client.list_notifications()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListNotificationsRequest()
@pytest.mark.asyncio
async def test_list_notifications_async(transport: str = 'grpc_asyncio', request_type=storage.ListNotificationsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_notifications),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListNotificationsResponse(
))
response = await client.list_notifications(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListNotificationsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListNotificationsResponse)
@pytest.mark.asyncio
async def test_list_notifications_async_from_dict():
await test_list_notifications_async(request_type=dict)
def test_delete_object_access_control(transport: str = 'grpc', request_type=storage.DeleteObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_object_access_control_from_dict():
test_delete_object_access_control(request_type=dict)
def test_delete_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object_access_control),
'__call__') as call:
client.delete_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_delete_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_object_access_control_async_from_dict():
await test_delete_object_access_control_async(request_type=dict)
def test_get_object_access_control(transport: str = 'grpc', request_type=storage.GetObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.get_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_get_object_access_control_from_dict():
test_get_object_access_control(request_type=dict)
def test_get_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_access_control),
'__call__') as call:
client.get_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_get_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.GetObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.get_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_get_object_access_control_async_from_dict():
await test_get_object_access_control_async(request_type=dict)
def test_insert_object_access_control(transport: str = 'grpc', request_type=storage.InsertObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.insert_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_insert_object_access_control_from_dict():
test_insert_object_access_control(request_type=dict)
def test_insert_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_object_access_control),
'__call__') as call:
client.insert_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_insert_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.InsertObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.insert_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.InsertObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_insert_object_access_control_async_from_dict():
await test_insert_object_access_control_async(request_type=dict)
def test_list_object_access_controls(transport: str = 'grpc', request_type=storage.ListObjectAccessControlsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_object_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListObjectAccessControlsResponse(
)
response = client.list_object_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListObjectAccessControlsResponse)
def test_list_object_access_controls_from_dict():
test_list_object_access_controls(request_type=dict)
def test_list_object_access_controls_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_object_access_controls),
'__call__') as call:
client.list_object_access_controls()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectAccessControlsRequest()
@pytest.mark.asyncio
async def test_list_object_access_controls_async(transport: str = 'grpc_asyncio', request_type=storage.ListObjectAccessControlsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_object_access_controls),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListObjectAccessControlsResponse(
))
response = await client.list_object_access_controls(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectAccessControlsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ListObjectAccessControlsResponse)
@pytest.mark.asyncio
async def test_list_object_access_controls_async_from_dict():
await test_list_object_access_controls_async(request_type=dict)
def test_patch_object_access_control(transport: str = 'grpc', request_type=storage.PatchObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.patch_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_patch_object_access_control_from_dict():
test_patch_object_access_control(request_type=dict)
def test_patch_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object_access_control),
'__call__') as call:
client.patch_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_patch_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.PatchObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.patch_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_patch_object_access_control_async_from_dict():
await test_patch_object_access_control_async(request_type=dict)
def test_update_object_access_control(transport: str = 'grpc', request_type=storage.UpdateObjectAccessControlRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
)
response = client.update_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
def test_update_object_access_control_from_dict():
test_update_object_access_control(request_type=dict)
def test_update_object_access_control_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object_access_control),
'__call__') as call:
client.update_object_access_control()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectAccessControlRequest()
@pytest.mark.asyncio
async def test_update_object_access_control_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateObjectAccessControlRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object_access_control),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ObjectAccessControl(
role='role_value',
etag='etag_value',
id='id_value',
bucket='bucket_value',
object_='object__value',
generation=1068,
entity='entity_value',
entity_id='entity_id_value',
email='email_value',
domain='domain_value',
))
response = await client.update_object_access_control(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectAccessControlRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ObjectAccessControl)
assert response.role == 'role_value'
assert response.etag == 'etag_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.object_ == 'object__value'
assert response.generation == 1068
assert response.entity == 'entity_value'
assert response.entity_id == 'entity_id_value'
assert response.email == 'email_value'
assert response.domain == 'domain_value'
@pytest.mark.asyncio
async def test_update_object_access_control_async_from_dict():
await test_update_object_access_control_async(request_type=dict)
def test_compose_object(transport: str = 'grpc', request_type=storage.ComposeObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.compose_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.compose_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ComposeObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_compose_object_from_dict():
test_compose_object(request_type=dict)
def test_compose_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.compose_object),
'__call__') as call:
client.compose_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ComposeObjectRequest()
@pytest.mark.asyncio
async def test_compose_object_async(transport: str = 'grpc_asyncio', request_type=storage.ComposeObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.compose_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await client.compose_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ComposeObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_compose_object_async_from_dict():
await test_compose_object_async(request_type=dict)
def test_copy_object(transport: str = 'grpc', request_type=storage.CopyObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.copy_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.copy_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CopyObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_copy_object_from_dict():
test_copy_object(request_type=dict)
def test_copy_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.copy_object),
'__call__') as call:
client.copy_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CopyObjectRequest()
@pytest.mark.asyncio
async def test_copy_object_async(transport: str = 'grpc_asyncio', request_type=storage.CopyObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.copy_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await client.copy_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CopyObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_copy_object_async_from_dict():
await test_copy_object_async(request_type=dict)
def test_delete_object(transport: str = 'grpc', request_type=storage.DeleteObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_object_from_dict():
test_delete_object(request_type=dict)
def test_delete_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object),
'__call__') as call:
client.delete_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectRequest()
@pytest.mark.asyncio
async def test_delete_object_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteObjectRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_object_async_from_dict():
await test_delete_object_async(request_type=dict)
def test_get_object(transport: str = 'grpc', request_type=storage.GetObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.get_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_get_object_from_dict():
test_get_object(request_type=dict)
def test_get_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object),
'__call__') as call:
client.get_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectRequest()
@pytest.mark.asyncio
async def test_get_object_async(transport: str = 'grpc_asyncio', request_type=storage.GetObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await client.get_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_get_object_async_from_dict():
await test_get_object_async(request_type=dict)
def test_get_object_media(transport: str = 'grpc', request_type=storage.GetObjectMediaRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_media),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = iter([storage.GetObjectMediaResponse()])
response = client.get_object_media(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectMediaRequest()
# Establish that the response is the type that we expect.
for message in response:
assert isinstance(message, storage.GetObjectMediaResponse)
def test_get_object_media_from_dict():
test_get_object_media(request_type=dict)
def test_get_object_media_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_media),
'__call__') as call:
client.get_object_media()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectMediaRequest()
@pytest.mark.asyncio
async def test_get_object_media_async(transport: str = 'grpc_asyncio', request_type=storage.GetObjectMediaRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_media),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = mock.Mock(aio.UnaryStreamCall, autospec=True)
call.return_value.read = mock.AsyncMock(side_effect=[storage.GetObjectMediaResponse()])
response = await client.get_object_media(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetObjectMediaRequest()
# Establish that the response is the type that we expect.
message = await response.read()
assert isinstance(message, storage.GetObjectMediaResponse)
@pytest.mark.asyncio
async def test_get_object_media_async_from_dict():
await test_get_object_media_async(request_type=dict)
def test_insert_object(transport: str = 'grpc', request_type=storage.InsertObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
requests = [request]
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.insert_object(iter(requests))
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert next(args[0]) == request
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_insert_object_from_dict():
test_insert_object(request_type=dict)
@pytest.mark.asyncio
async def test_insert_object_async(transport: str = 'grpc_asyncio', request_type=storage.InsertObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
requests = [request]
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.insert_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeStreamUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await (await client.insert_object(iter(requests)))
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert next(args[0]) == request
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_insert_object_async_from_dict():
await test_insert_object_async(request_type=dict)
def test_list_objects(transport: str = 'grpc', request_type=storage.ListObjectsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ListObjectsResponse(
prefixes=['prefixes_value'],
next_page_token='next_page_token_value',
)
response = client.list_objects(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListObjectsPager)
assert response.prefixes == ['prefixes_value']
assert response.next_page_token == 'next_page_token_value'
def test_list_objects_from_dict():
test_list_objects(request_type=dict)
def test_list_objects_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__') as call:
client.list_objects()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectsRequest()
@pytest.mark.asyncio
async def test_list_objects_async(transport: str = 'grpc_asyncio', request_type=storage.ListObjectsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ListObjectsResponse(
prefixes=['prefixes_value'],
next_page_token='next_page_token_value',
))
response = await client.list_objects(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListObjectsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListObjectsAsyncPager)
assert response.prefixes == ['prefixes_value']
assert response.next_page_token == 'next_page_token_value'
@pytest.mark.asyncio
async def test_list_objects_async_from_dict():
await test_list_objects_async(request_type=dict)
def test_list_objects_pager():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
str(),
],
next_page_token='abc',
),
storage_resources.ListObjectsResponse(
prefixes=[],
next_page_token='def',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
],
next_page_token='ghi',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
],
),
RuntimeError,
)
metadata = ()
pager = client.list_objects(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, str)
for i in results)
def test_list_objects_pages():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
str(),
],
next_page_token='abc',
),
storage_resources.ListObjectsResponse(
prefixes=[],
next_page_token='def',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
],
next_page_token='ghi',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
],
),
RuntimeError,
)
pages = list(client.list_objects(request={}).pages)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_objects_async_pager():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
str(),
],
next_page_token='abc',
),
storage_resources.ListObjectsResponse(
prefixes=[],
next_page_token='def',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
],
next_page_token='ghi',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
],
),
RuntimeError,
)
async_pager = await client.list_objects(request={},)
assert async_pager.next_page_token == 'abc'
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, str)
for i in responses)
@pytest.mark.asyncio
async def test_list_objects_async_pages():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_objects),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
str(),
],
next_page_token='abc',
),
storage_resources.ListObjectsResponse(
prefixes=[],
next_page_token='def',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
],
next_page_token='ghi',
),
storage_resources.ListObjectsResponse(
prefixes=[
str(),
str(),
],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_objects(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
def test_rewrite_object(transport: str = 'grpc', request_type=storage.RewriteObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.rewrite_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage.RewriteResponse(
total_bytes_rewritten=2285,
object_size=1169,
done=True,
rewrite_token='rewrite_token_value',
)
response = client.rewrite_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.RewriteObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.RewriteResponse)
assert response.total_bytes_rewritten == 2285
assert response.object_size == 1169
assert response.done is True
assert response.rewrite_token == 'rewrite_token_value'
def test_rewrite_object_from_dict():
test_rewrite_object(request_type=dict)
def test_rewrite_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.rewrite_object),
'__call__') as call:
client.rewrite_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.RewriteObjectRequest()
@pytest.mark.asyncio
async def test_rewrite_object_async(transport: str = 'grpc_asyncio', request_type=storage.RewriteObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.rewrite_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage.RewriteResponse(
total_bytes_rewritten=2285,
object_size=1169,
done=True,
rewrite_token='rewrite_token_value',
))
response = await client.rewrite_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.RewriteObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.RewriteResponse)
assert response.total_bytes_rewritten == 2285
assert response.object_size == 1169
assert response.done is True
assert response.rewrite_token == 'rewrite_token_value'
@pytest.mark.asyncio
async def test_rewrite_object_async_from_dict():
await test_rewrite_object_async(request_type=dict)
def test_start_resumable_write(transport: str = 'grpc', request_type=storage.StartResumableWriteRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.start_resumable_write),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage.StartResumableWriteResponse(
upload_id='upload_id_value',
)
response = client.start_resumable_write(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StartResumableWriteRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.StartResumableWriteResponse)
assert response.upload_id == 'upload_id_value'
def test_start_resumable_write_from_dict():
test_start_resumable_write(request_type=dict)
def test_start_resumable_write_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.start_resumable_write),
'__call__') as call:
client.start_resumable_write()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StartResumableWriteRequest()
@pytest.mark.asyncio
async def test_start_resumable_write_async(transport: str = 'grpc_asyncio', request_type=storage.StartResumableWriteRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.start_resumable_write),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage.StartResumableWriteResponse(
upload_id='upload_id_value',
))
response = await client.start_resumable_write(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.StartResumableWriteRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.StartResumableWriteResponse)
assert response.upload_id == 'upload_id_value'
@pytest.mark.asyncio
async def test_start_resumable_write_async_from_dict():
await test_start_resumable_write_async(request_type=dict)
def test_query_write_status(transport: str = 'grpc', request_type=storage.QueryWriteStatusRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.query_write_status),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage.QueryWriteStatusResponse(
committed_size=1504,
complete=True,
)
response = client.query_write_status(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.QueryWriteStatusRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.QueryWriteStatusResponse)
assert response.committed_size == 1504
assert response.complete is True
def test_query_write_status_from_dict():
test_query_write_status(request_type=dict)
def test_query_write_status_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.query_write_status),
'__call__') as call:
client.query_write_status()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.QueryWriteStatusRequest()
@pytest.mark.asyncio
async def test_query_write_status_async(transport: str = 'grpc_asyncio', request_type=storage.QueryWriteStatusRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.query_write_status),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage.QueryWriteStatusResponse(
committed_size=1504,
complete=True,
))
response = await client.query_write_status(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.QueryWriteStatusRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.QueryWriteStatusResponse)
assert response.committed_size == 1504
assert response.complete is True
@pytest.mark.asyncio
async def test_query_write_status_async_from_dict():
await test_query_write_status_async(request_type=dict)
def test_patch_object(transport: str = 'grpc', request_type=storage.PatchObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.patch_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_patch_object_from_dict():
test_patch_object(request_type=dict)
def test_patch_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object),
'__call__') as call:
client.patch_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectRequest()
@pytest.mark.asyncio
async def test_patch_object_async(transport: str = 'grpc_asyncio', request_type=storage.PatchObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.patch_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await client.patch_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.PatchObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_patch_object_async_from_dict():
await test_patch_object_async(request_type=dict)
def test_update_object(transport: str = 'grpc', request_type=storage.UpdateObjectRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
)
response = client.update_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
def test_update_object_from_dict():
test_update_object(request_type=dict)
def test_update_object_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object),
'__call__') as call:
client.update_object()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectRequest()
@pytest.mark.asyncio
async def test_update_object_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateObjectRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_object),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Object(
content_encoding='content_encoding_value',
content_disposition='content_disposition_value',
cache_control='cache_control_value',
content_language='content_language_value',
metageneration=1491,
content_type='content_type_value',
size=443,
component_count=1627,
md5_hash='md5_hash_value',
etag='etag_value',
storage_class='storage_class_value',
kms_key_name='kms_key_name_value',
temporary_hold=True,
name='name_value',
id='id_value',
bucket='bucket_value',
generation=1068,
))
response = await client.update_object(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateObjectRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Object)
assert response.content_encoding == 'content_encoding_value'
assert response.content_disposition == 'content_disposition_value'
assert response.cache_control == 'cache_control_value'
assert response.content_language == 'content_language_value'
assert response.metageneration == 1491
assert response.content_type == 'content_type_value'
assert response.size == 443
assert response.component_count == 1627
assert response.md5_hash == 'md5_hash_value'
assert response.etag == 'etag_value'
assert response.storage_class == 'storage_class_value'
assert response.kms_key_name == 'kms_key_name_value'
assert response.temporary_hold is True
assert response.name == 'name_value'
assert response.id == 'id_value'
assert response.bucket == 'bucket_value'
assert response.generation == 1068
@pytest.mark.asyncio
async def test_update_object_async_from_dict():
await test_update_object_async(request_type=dict)
def test_get_object_iam_policy(transport: str = 'grpc', request_type=storage.GetIamPolicyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = policy_pb2.Policy(
version=774,
etag=b'etag_blob',
)
response = client.get_object_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
def test_get_object_iam_policy_from_dict():
test_get_object_iam_policy(request_type=dict)
def test_get_object_iam_policy_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_iam_policy),
'__call__') as call:
client.get_object_iam_policy()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
@pytest.mark.asyncio
async def test_get_object_iam_policy_async(transport: str = 'grpc_asyncio', request_type=storage.GetIamPolicyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_object_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy(
version=774,
etag=b'etag_blob',
))
response = await client.get_object_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
@pytest.mark.asyncio
async def test_get_object_iam_policy_async_from_dict():
await test_get_object_iam_policy_async(request_type=dict)
def test_set_object_iam_policy(transport: str = 'grpc', request_type=storage.SetIamPolicyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_object_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = policy_pb2.Policy(
version=774,
etag=b'etag_blob',
)
response = client.set_object_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
def test_set_object_iam_policy_from_dict():
test_set_object_iam_policy(request_type=dict)
def test_set_object_iam_policy_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_object_iam_policy),
'__call__') as call:
client.set_object_iam_policy()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
@pytest.mark.asyncio
async def test_set_object_iam_policy_async(transport: str = 'grpc_asyncio', request_type=storage.SetIamPolicyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.set_object_iam_policy),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy(
version=774,
etag=b'etag_blob',
))
response = await client.set_object_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.SetIamPolicyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, policy_pb2.Policy)
assert response.version == 774
assert response.etag == b'etag_blob'
@pytest.mark.asyncio
async def test_set_object_iam_policy_async_from_dict():
await test_set_object_iam_policy_async(request_type=dict)
def test_test_object_iam_permissions(transport: str = 'grpc', request_type=storage.TestIamPermissionsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_object_iam_permissions),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = iam_policy_pb2.TestIamPermissionsResponse(
permissions=['permissions_value'],
)
response = client.test_object_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse)
assert response.permissions == ['permissions_value']
def test_test_object_iam_permissions_from_dict():
test_test_object_iam_permissions(request_type=dict)
def test_test_object_iam_permissions_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_object_iam_permissions),
'__call__') as call:
client.test_object_iam_permissions()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
@pytest.mark.asyncio
async def test_test_object_iam_permissions_async(transport: str = 'grpc_asyncio', request_type=storage.TestIamPermissionsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.test_object_iam_permissions),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(iam_policy_pb2.TestIamPermissionsResponse(
permissions=['permissions_value'],
))
response = await client.test_object_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.TestIamPermissionsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse)
assert response.permissions == ['permissions_value']
@pytest.mark.asyncio
async def test_test_object_iam_permissions_async_from_dict():
await test_test_object_iam_permissions_async(request_type=dict)
def test_watch_all_objects(transport: str = 'grpc', request_type=storage.WatchAllObjectsRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.watch_all_objects),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.Channel(
id='id_value',
resource_id='resource_id_value',
resource_uri='resource_uri_value',
token='token_value',
type_='type__value',
address='address_value',
payload=True,
)
response = client.watch_all_objects(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.WatchAllObjectsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Channel)
assert response.id == 'id_value'
assert response.resource_id == 'resource_id_value'
assert response.resource_uri == 'resource_uri_value'
assert response.token == 'token_value'
assert response.type_ == 'type__value'
assert response.address == 'address_value'
assert response.payload is True
def test_watch_all_objects_from_dict():
test_watch_all_objects(request_type=dict)
def test_watch_all_objects_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.watch_all_objects),
'__call__') as call:
client.watch_all_objects()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.WatchAllObjectsRequest()
@pytest.mark.asyncio
async def test_watch_all_objects_async(transport: str = 'grpc_asyncio', request_type=storage.WatchAllObjectsRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.watch_all_objects),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.Channel(
id='id_value',
resource_id='resource_id_value',
resource_uri='resource_uri_value',
token='token_value',
type_='type__value',
address='address_value',
payload=True,
))
response = await client.watch_all_objects(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.WatchAllObjectsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.Channel)
assert response.id == 'id_value'
assert response.resource_id == 'resource_id_value'
assert response.resource_uri == 'resource_uri_value'
assert response.token == 'token_value'
assert response.type_ == 'type__value'
assert response.address == 'address_value'
assert response.payload is True
@pytest.mark.asyncio
async def test_watch_all_objects_async_from_dict():
await test_watch_all_objects_async(request_type=dict)
def test_get_service_account(transport: str = 'grpc', request_type=storage.GetProjectServiceAccountRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_service_account),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.ServiceAccount(
email_address='email_address_value',
)
response = client.get_service_account(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetProjectServiceAccountRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ServiceAccount)
assert response.email_address == 'email_address_value'
def test_get_service_account_from_dict():
test_get_service_account(request_type=dict)
def test_get_service_account_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_service_account),
'__call__') as call:
client.get_service_account()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetProjectServiceAccountRequest()
@pytest.mark.asyncio
async def test_get_service_account_async(transport: str = 'grpc_asyncio', request_type=storage.GetProjectServiceAccountRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_service_account),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.ServiceAccount(
email_address='email_address_value',
))
response = await client.get_service_account(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetProjectServiceAccountRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.ServiceAccount)
assert response.email_address == 'email_address_value'
@pytest.mark.asyncio
async def test_get_service_account_async_from_dict():
await test_get_service_account_async(request_type=dict)
def test_create_hmac_key(transport: str = 'grpc', request_type=storage.CreateHmacKeyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage.CreateHmacKeyResponse(
secret='secret_value',
)
response = client.create_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CreateHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.CreateHmacKeyResponse)
assert response.secret == 'secret_value'
def test_create_hmac_key_from_dict():
test_create_hmac_key(request_type=dict)
def test_create_hmac_key_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_hmac_key),
'__call__') as call:
client.create_hmac_key()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CreateHmacKeyRequest()
@pytest.mark.asyncio
async def test_create_hmac_key_async(transport: str = 'grpc_asyncio', request_type=storage.CreateHmacKeyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage.CreateHmacKeyResponse(
secret='secret_value',
))
response = await client.create_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.CreateHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage.CreateHmacKeyResponse)
assert response.secret == 'secret_value'
@pytest.mark.asyncio
async def test_create_hmac_key_async_from_dict():
await test_create_hmac_key_async(request_type=dict)
def test_delete_hmac_key(transport: str = 'grpc', request_type=storage.DeleteHmacKeyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteHmacKeyRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_hmac_key_from_dict():
test_delete_hmac_key(request_type=dict)
def test_delete_hmac_key_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_hmac_key),
'__call__') as call:
client.delete_hmac_key()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteHmacKeyRequest()
@pytest.mark.asyncio
async def test_delete_hmac_key_async(transport: str = 'grpc_asyncio', request_type=storage.DeleteHmacKeyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.DeleteHmacKeyRequest()
# Establish that the response is the type that we expect.
assert response is None
@pytest.mark.asyncio
async def test_delete_hmac_key_async_from_dict():
await test_delete_hmac_key_async(request_type=dict)
def test_get_hmac_key(transport: str = 'grpc', request_type=storage.GetHmacKeyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.HmacKeyMetadata(
id='id_value',
access_id='access_id_value',
project_id='project_id_value',
service_account_email='service_account_email_value',
state='state_value',
etag='etag_value',
)
response = client.get_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.HmacKeyMetadata)
assert response.id == 'id_value'
assert response.access_id == 'access_id_value'
assert response.project_id == 'project_id_value'
assert response.service_account_email == 'service_account_email_value'
assert response.state == 'state_value'
assert response.etag == 'etag_value'
def test_get_hmac_key_from_dict():
test_get_hmac_key(request_type=dict)
def test_get_hmac_key_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_hmac_key),
'__call__') as call:
client.get_hmac_key()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetHmacKeyRequest()
@pytest.mark.asyncio
async def test_get_hmac_key_async(transport: str = 'grpc_asyncio', request_type=storage.GetHmacKeyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.HmacKeyMetadata(
id='id_value',
access_id='access_id_value',
project_id='project_id_value',
service_account_email='service_account_email_value',
state='state_value',
etag='etag_value',
))
response = await client.get_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.GetHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.HmacKeyMetadata)
assert response.id == 'id_value'
assert response.access_id == 'access_id_value'
assert response.project_id == 'project_id_value'
assert response.service_account_email == 'service_account_email_value'
assert response.state == 'state_value'
assert response.etag == 'etag_value'
@pytest.mark.asyncio
async def test_get_hmac_key_async_from_dict():
await test_get_hmac_key_async(request_type=dict)
def test_list_hmac_keys(transport: str = 'grpc', request_type=storage.ListHmacKeysRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage.ListHmacKeysResponse(
next_page_token='next_page_token_value',
)
response = client.list_hmac_keys(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListHmacKeysRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListHmacKeysPager)
assert response.next_page_token == 'next_page_token_value'
def test_list_hmac_keys_from_dict():
test_list_hmac_keys(request_type=dict)
def test_list_hmac_keys_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__') as call:
client.list_hmac_keys()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListHmacKeysRequest()
@pytest.mark.asyncio
async def test_list_hmac_keys_async(transport: str = 'grpc_asyncio', request_type=storage.ListHmacKeysRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage.ListHmacKeysResponse(
next_page_token='next_page_token_value',
))
response = await client.list_hmac_keys(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.ListHmacKeysRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListHmacKeysAsyncPager)
assert response.next_page_token == 'next_page_token_value'
@pytest.mark.asyncio
async def test_list_hmac_keys_async_from_dict():
await test_list_hmac_keys_async(request_type=dict)
def test_list_hmac_keys_pager():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
next_page_token='abc',
),
storage.ListHmacKeysResponse(
items=[],
next_page_token='def',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
],
next_page_token='ghi',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
),
RuntimeError,
)
metadata = ()
pager = client.list_hmac_keys(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, storage_resources.HmacKeyMetadata)
for i in results)
def test_list_hmac_keys_pages():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__') as call:
# Set the response to a series of pages.
call.side_effect = (
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
next_page_token='abc',
),
storage.ListHmacKeysResponse(
items=[],
next_page_token='def',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
],
next_page_token='ghi',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
),
RuntimeError,
)
pages = list(client.list_hmac_keys(request={}).pages)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_hmac_keys_async_pager():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
next_page_token='abc',
),
storage.ListHmacKeysResponse(
items=[],
next_page_token='def',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
],
next_page_token='ghi',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
),
RuntimeError,
)
async_pager = await client.list_hmac_keys(request={},)
assert async_pager.next_page_token == 'abc'
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, storage_resources.HmacKeyMetadata)
for i in responses)
@pytest.mark.asyncio
async def test_list_hmac_keys_async_pages():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_hmac_keys),
'__call__', new_callable=mock.AsyncMock) as call:
# Set the response to a series of pages.
call.side_effect = (
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
next_page_token='abc',
),
storage.ListHmacKeysResponse(
items=[],
next_page_token='def',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
],
next_page_token='ghi',
),
storage.ListHmacKeysResponse(
items=[
storage_resources.HmacKeyMetadata(),
storage_resources.HmacKeyMetadata(),
],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_hmac_keys(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ['abc','def','ghi', '']):
assert page_.raw_page.next_page_token == token
def test_update_hmac_key(transport: str = 'grpc', request_type=storage.UpdateHmacKeyRequest):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value = storage_resources.HmacKeyMetadata(
id='id_value',
access_id='access_id_value',
project_id='project_id_value',
service_account_email='service_account_email_value',
state='state_value',
etag='etag_value',
)
response = client.update_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.HmacKeyMetadata)
assert response.id == 'id_value'
assert response.access_id == 'access_id_value'
assert response.project_id == 'project_id_value'
assert response.service_account_email == 'service_account_email_value'
assert response.state == 'state_value'
assert response.etag == 'etag_value'
def test_update_hmac_key_from_dict():
test_update_hmac_key(request_type=dict)
def test_update_hmac_key_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport='grpc',
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_hmac_key),
'__call__') as call:
client.update_hmac_key()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateHmacKeyRequest()
@pytest.mark.asyncio
async def test_update_hmac_key_async(transport: str = 'grpc_asyncio', request_type=storage.UpdateHmacKeyRequest):
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_hmac_key),
'__call__') as call:
# Designate an appropriate return value for the call.
call.return_value =grpc_helpers_async.FakeUnaryUnaryCall(storage_resources.HmacKeyMetadata(
id='id_value',
access_id='access_id_value',
project_id='project_id_value',
service_account_email='service_account_email_value',
state='state_value',
etag='etag_value',
))
response = await client.update_hmac_key(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == storage.UpdateHmacKeyRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, storage_resources.HmacKeyMetadata)
assert response.id == 'id_value'
assert response.access_id == 'access_id_value'
assert response.project_id == 'project_id_value'
assert response.service_account_email == 'service_account_email_value'
assert response.state == 'state_value'
assert response.etag == 'etag_value'
@pytest.mark.asyncio
async def test_update_hmac_key_async_from_dict():
await test_update_hmac_key_async(request_type=dict)
def test_credentials_transport_error():
# It is an error to provide credentials and a transport instance.
transport = transports.StorageGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport,
)
# It is an error to provide a credentials file and a transport instance.
transport = transports.StorageGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = StorageClient(
client_options={"credentials_file": "credentials.json"},
transport=transport,
)
# It is an error to provide scopes and a transport instance.
transport = transports.StorageGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = StorageClient(
client_options={"scopes": ["1", "2"]},
transport=transport,
)
def test_transport_instance():
# A client may be instantiated with a custom transport instance.
transport = transports.StorageGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
client = StorageClient(transport=transport)
assert client.transport is transport
def test_transport_get_channel():
# A client may be instantiated with a custom transport instance.
transport = transports.StorageGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
transport = transports.StorageGrpcAsyncIOTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
@pytest.mark.parametrize("transport_class", [
transports.StorageGrpcTransport,
transports.StorageGrpcAsyncIOTransport,
])
def test_transport_adc(transport_class):
# Test default credentials are used if not provided.
with mock.patch.object(google.auth, 'default') as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport_class()
adc.assert_called_once()
def test_transport_grpc_default():
# A client should use the gRPC transport by default.
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
)
assert isinstance(
client.transport,
transports.StorageGrpcTransport,
)
def test_storage_base_transport_error():
# Passing both a credentials object and credentials_file should raise an error
with pytest.raises(core_exceptions.DuplicateCredentialArgs):
transport = transports.StorageTransport(
credentials=ga_credentials.AnonymousCredentials(),
credentials_file="credentials.json"
)
def test_storage_base_transport():
# Instantiate the base transport.
with mock.patch('google.storage_v1.services.storage.transports.StorageTransport.__init__') as Transport:
Transport.return_value = None
transport = transports.StorageTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
# Every method on the transport should just blindly
# raise NotImplementedError.
methods = (
'delete_bucket_access_control',
'get_bucket_access_control',
'insert_bucket_access_control',
'list_bucket_access_controls',
'update_bucket_access_control',
'patch_bucket_access_control',
'delete_bucket',
'get_bucket',
'insert_bucket',
'list_channels',
'list_buckets',
'lock_bucket_retention_policy',
'get_bucket_iam_policy',
'set_bucket_iam_policy',
'test_bucket_iam_permissions',
'patch_bucket',
'update_bucket',
'stop_channel',
'delete_default_object_access_control',
'get_default_object_access_control',
'insert_default_object_access_control',
'list_default_object_access_controls',
'patch_default_object_access_control',
'update_default_object_access_control',
'delete_notification',
'get_notification',
'insert_notification',
'list_notifications',
'delete_object_access_control',
'get_object_access_control',
'insert_object_access_control',
'list_object_access_controls',
'patch_object_access_control',
'update_object_access_control',
'compose_object',
'copy_object',
'delete_object',
'get_object',
'get_object_media',
'insert_object',
'list_objects',
'rewrite_object',
'start_resumable_write',
'query_write_status',
'patch_object',
'update_object',
'get_object_iam_policy',
'set_object_iam_policy',
'test_object_iam_permissions',
'watch_all_objects',
'get_service_account',
'create_hmac_key',
'delete_hmac_key',
'get_hmac_key',
'list_hmac_keys',
'update_hmac_key',
)
for method in methods:
with pytest.raises(NotImplementedError):
getattr(transport, method)(request=object())
with pytest.raises(NotImplementedError):
transport.close()
@requires_google_auth_gte_1_25_0
def test_storage_base_transport_with_credentials_file():
# Instantiate the base transport with a credentials file
with mock.patch.object(google.auth, 'load_credentials_from_file', autospec=True) as load_creds, mock.patch('google.storage_v1.services.storage.transports.StorageTransport._prep_wrapped_messages') as Transport:
Transport.return_value = None
load_creds.return_value = (ga_credentials.AnonymousCredentials(), None)
transport = transports.StorageTransport(
credentials_file="credentials.json",
quota_project_id="octopus",
)
load_creds.assert_called_once_with("credentials.json",
scopes=None,
default_scopes=(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/devstorage.read_write',
),
quota_project_id="octopus",
)
@requires_google_auth_lt_1_25_0
def test_storage_base_transport_with_credentials_file_old_google_auth():
# Instantiate the base transport with a credentials file
with mock.patch.object(google.auth, 'load_credentials_from_file', autospec=True) as load_creds, mock.patch('google.storage_v1.services.storage.transports.StorageTransport._prep_wrapped_messages') as Transport:
Transport.return_value = None
load_creds.return_value = (ga_credentials.AnonymousCredentials(), None)
transport = transports.StorageTransport(
credentials_file="credentials.json",
quota_project_id="octopus",
)
load_creds.assert_called_once_with("credentials.json", scopes=(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/devstorage.read_write',
),
quota_project_id="octopus",
)
def test_storage_base_transport_with_adc():
# Test the default credentials are used if credentials and credentials_file are None.
with mock.patch.object(google.auth, 'default', autospec=True) as adc, mock.patch('google.storage_v1.services.storage.transports.StorageTransport._prep_wrapped_messages') as Transport:
Transport.return_value = None
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport = transports.StorageTransport()
adc.assert_called_once()
@requires_google_auth_gte_1_25_0
def test_storage_auth_adc():
# If no credentials are provided, we should use ADC credentials.
with mock.patch.object(google.auth, 'default', autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
StorageClient()
adc.assert_called_once_with(
scopes=None,
default_scopes=(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/devstorage.read_write',
),
quota_project_id=None,
)
@requires_google_auth_lt_1_25_0
def test_storage_auth_adc_old_google_auth():
# If no credentials are provided, we should use ADC credentials.
with mock.patch.object(google.auth, 'default', autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
StorageClient()
adc.assert_called_once_with(
scopes=( 'https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/cloud-platform.read-only', 'https://www.googleapis.com/auth/devstorage.full_control', 'https://www.googleapis.com/auth/devstorage.read_only', 'https://www.googleapis.com/auth/devstorage.read_write',),
quota_project_id=None,
)
@pytest.mark.parametrize(
"transport_class",
[
transports.StorageGrpcTransport,
transports.StorageGrpcAsyncIOTransport,
],
)
@requires_google_auth_gte_1_25_0
def test_storage_transport_auth_adc(transport_class):
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(google.auth, 'default', autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport_class(quota_project_id="octopus", scopes=["1", "2"])
adc.assert_called_once_with(
scopes=["1", "2"],
default_scopes=( 'https://www.googleapis.com/auth/cloud-platform', 'https://www.googleapis.com/auth/cloud-platform.read-only', 'https://www.googleapis.com/auth/devstorage.full_control', 'https://www.googleapis.com/auth/devstorage.read_only', 'https://www.googleapis.com/auth/devstorage.read_write',),
quota_project_id="octopus",
)
@pytest.mark.parametrize(
"transport_class",
[
transports.StorageGrpcTransport,
transports.StorageGrpcAsyncIOTransport,
],
)
@requires_google_auth_lt_1_25_0
def test_storage_transport_auth_adc_old_google_auth(transport_class):
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(google.auth, "default", autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport_class(quota_project_id="octopus")
adc.assert_called_once_with(scopes=(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/devstorage.read_write',
),
quota_project_id="octopus",
)
@pytest.mark.parametrize(
"transport_class,grpc_helpers",
[
(transports.StorageGrpcTransport, grpc_helpers),
(transports.StorageGrpcAsyncIOTransport, grpc_helpers_async)
],
)
def test_storage_transport_create_channel(transport_class, grpc_helpers):
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(google.auth, "default", autospec=True) as adc, mock.patch.object(
grpc_helpers, "create_channel", autospec=True
) as create_channel:
creds = ga_credentials.AnonymousCredentials()
adc.return_value = (creds, None)
transport_class(
quota_project_id="octopus",
scopes=["1", "2"]
)
create_channel.assert_called_with(
"storage.googleapis.com:443",
credentials=creds,
credentials_file=None,
quota_project_id="octopus",
default_scopes=(
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/cloud-platform.read-only',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/devstorage.read_write',
),
scopes=["1", "2"],
default_host="storage.googleapis.com",
ssl_credentials=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
@pytest.mark.parametrize("transport_class", [transports.StorageGrpcTransport, transports.StorageGrpcAsyncIOTransport])
def test_storage_grpc_transport_client_cert_source_for_mtls(
transport_class
):
cred = ga_credentials.AnonymousCredentials()
# Check ssl_channel_credentials is used if provided.
with mock.patch.object(transport_class, "create_channel") as mock_create_channel:
mock_ssl_channel_creds = mock.Mock()
transport_class(
host="squid.clam.whelk",
credentials=cred,
ssl_channel_credentials=mock_ssl_channel_creds
)
mock_create_channel.assert_called_once_with(
"squid.clam.whelk:443",
credentials=cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_channel_creds,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
# Check if ssl_channel_credentials is not provided, then client_cert_source_for_mtls
# is used.
with mock.patch.object(transport_class, "create_channel", return_value=mock.Mock()):
with mock.patch("grpc.ssl_channel_credentials") as mock_ssl_cred:
transport_class(
credentials=cred,
client_cert_source_for_mtls=client_cert_source_callback
)
expected_cert, expected_key = client_cert_source_callback()
mock_ssl_cred.assert_called_once_with(
certificate_chain=expected_cert,
private_key=expected_key
)
def test_storage_host_no_port():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(api_endpoint='storage.googleapis.com'),
)
assert client.transport._host == 'storage.googleapis.com:443'
def test_storage_host_with_port():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(api_endpoint='storage.googleapis.com:8000'),
)
assert client.transport._host == 'storage.googleapis.com:8000'
def test_storage_grpc_transport_channel():
channel = grpc.secure_channel('http://localhost/', grpc.local_channel_credentials())
# Check that channel is used if provided.
transport = transports.StorageGrpcTransport(
host="squid.clam.whelk",
channel=channel,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert transport._ssl_channel_credentials == None
def test_storage_grpc_asyncio_transport_channel():
channel = aio.secure_channel('http://localhost/', grpc.local_channel_credentials())
# Check that channel is used if provided.
transport = transports.StorageGrpcAsyncIOTransport(
host="squid.clam.whelk",
channel=channel,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert transport._ssl_channel_credentials == None
# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are
# removed from grpc/grpc_asyncio transport constructor.
@pytest.mark.parametrize("transport_class", [transports.StorageGrpcTransport, transports.StorageGrpcAsyncIOTransport])
def test_storage_transport_channel_mtls_with_client_cert_source(
transport_class
):
with mock.patch("grpc.ssl_channel_credentials", autospec=True) as grpc_ssl_channel_cred:
with mock.patch.object(transport_class, "create_channel") as grpc_create_channel:
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
cred = ga_credentials.AnonymousCredentials()
with pytest.warns(DeprecationWarning):
with mock.patch.object(google.auth, 'default') as adc:
adc.return_value = (cred, None)
transport = transport_class(
host="squid.clam.whelk",
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
adc.assert_called_once()
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are
# removed from grpc/grpc_asyncio transport constructor.
@pytest.mark.parametrize("transport_class", [transports.StorageGrpcTransport, transports.StorageGrpcAsyncIOTransport])
def test_storage_transport_channel_mtls_with_adc(
transport_class
):
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
with mock.patch.object(transport_class, "create_channel") as grpc_create_channel:
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
mock_cred = mock.Mock()
with pytest.warns(DeprecationWarning):
transport = transport_class(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
def test_common_billing_account_path():
billing_account = "squid"
expected = "billingAccounts/{billing_account}".format(billing_account=billing_account, )
actual = StorageClient.common_billing_account_path(billing_account)
assert expected == actual
def test_parse_common_billing_account_path():
expected = {
"billing_account": "clam",
}
path = StorageClient.common_billing_account_path(**expected)
# Check that the path construction is reversible.
actual = StorageClient.parse_common_billing_account_path(path)
assert expected == actual
def test_common_folder_path():
folder = "whelk"
expected = "folders/{folder}".format(folder=folder, )
actual = StorageClient.common_folder_path(folder)
assert expected == actual
def test_parse_common_folder_path():
expected = {
"folder": "octopus",
}
path = StorageClient.common_folder_path(**expected)
# Check that the path construction is reversible.
actual = StorageClient.parse_common_folder_path(path)
assert expected == actual
def test_common_organization_path():
organization = "oyster"
expected = "organizations/{organization}".format(organization=organization, )
actual = StorageClient.common_organization_path(organization)
assert expected == actual
def test_parse_common_organization_path():
expected = {
"organization": "nudibranch",
}
path = StorageClient.common_organization_path(**expected)
# Check that the path construction is reversible.
actual = StorageClient.parse_common_organization_path(path)
assert expected == actual
def test_common_project_path():
project = "cuttlefish"
expected = "projects/{project}".format(project=project, )
actual = StorageClient.common_project_path(project)
assert expected == actual
def test_parse_common_project_path():
expected = {
"project": "mussel",
}
path = StorageClient.common_project_path(**expected)
# Check that the path construction is reversible.
actual = StorageClient.parse_common_project_path(path)
assert expected == actual
def test_common_location_path():
project = "winkle"
location = "nautilus"
expected = "projects/{project}/locations/{location}".format(project=project, location=location, )
actual = StorageClient.common_location_path(project, location)
assert expected == actual
def test_parse_common_location_path():
expected = {
"project": "scallop",
"location": "abalone",
}
path = StorageClient.common_location_path(**expected)
# Check that the path construction is reversible.
actual = StorageClient.parse_common_location_path(path)
assert expected == actual
def test_client_withDEFAULT_CLIENT_INFO():
client_info = gapic_v1.client_info.ClientInfo()
with mock.patch.object(transports.StorageTransport, '_prep_wrapped_messages') as prep:
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
client_info=client_info,
)
prep.assert_called_once_with(client_info)
with mock.patch.object(transports.StorageTransport, '_prep_wrapped_messages') as prep:
transport_class = StorageClient.get_transport_class()
transport = transport_class(
credentials=ga_credentials.AnonymousCredentials(),
client_info=client_info,
)
prep.assert_called_once_with(client_info)
@pytest.mark.asyncio
async def test_transport_close_async():
client = StorageAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
transport="grpc_asyncio",
)
with mock.patch.object(type(getattr(client.transport, "grpc_channel")), "close") as close:
async with client:
close.assert_not_called()
close.assert_called_once()
def test_transport_close():
transports = {
"grpc": "_grpc_channel",
}
for transport, close_name in transports.items():
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport
)
with mock.patch.object(type(getattr(client.transport, close_name)), "close") as close:
with client:
close.assert_not_called()
close.assert_called_once()
def test_client_ctx():
transports = [
'grpc',
]
for transport in transports:
client = StorageClient(
credentials=ga_credentials.AnonymousCredentials(),
transport=transport
)
# Test client calls underlying transport.
with mock.patch.object(type(client.transport), "close") as close:
close.assert_not_called()
with client:
pass
close.assert_called()
| 39.190735
| 387
| 0.684349
| 34,291
| 295,263
| 5.637864
| 0.016039
| 0.047215
| 0.043439
| 0.020933
| 0.956209
| 0.928996
| 0.914244
| 0.892768
| 0.874845
| 0.847777
| 0
| 0.006497
| 0.235312
| 295,263
| 7,533
| 388
| 39.195938
| 0.849755
| 0.195717
| 0
| 0.768399
| 0
| 0
| 0.098695
| 0.021735
| 0
| 0
| 0
| 0.000133
| 0.220607
| 1
| 0.040991
| false
| 0.000186
| 0.005962
| 0.000373
| 0.047326
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8ac158938b75bde5bdf54ff94364daf44be89681
| 14,428
|
py
|
Python
|
pcc/python/antchain_sdk_pcc/client.py
|
alipay/antchain-openapi-prod-sdk
|
f78549e5135d91756093bd88d191ca260b28e083
|
[
"MIT"
] | 6
|
2020-06-28T06:40:50.000Z
|
2022-02-25T11:02:18.000Z
|
pcc/python/antchain_sdk_pcc/client.py
|
alipay/antchain-openapi-prod-sdk
|
f78549e5135d91756093bd88d191ca260b28e083
|
[
"MIT"
] | null | null | null |
pcc/python/antchain_sdk_pcc/client.py
|
alipay/antchain-openapi-prod-sdk
|
f78549e5135d91756093bd88d191ca260b28e083
|
[
"MIT"
] | 6
|
2020-06-30T09:29:03.000Z
|
2022-01-07T10:42:22.000Z
|
# -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from Tea.exceptions import TeaException, UnretryableException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.antchain_utils import AntchainUtils
from typing import Dict
from antchain_sdk_pcc import models as pcc_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_tea_util import models as util_models
from alibabacloud_rpc_util.client import Client as RPCUtilClient
class Client:
_endpoint: str = None
_region_id: str = None
_access_key_id: str = None
_access_key_secret: str = None
_protocol: str = None
_user_agent: str = None
_read_timeout: int = None
_connect_timeout: int = None
_http_proxy: str = None
_https_proxy: str = None
_socks_5proxy: str = None
_socks_5net_work: str = None
_no_proxy: str = None
_max_idle_conns: int = None
_security_token: str = None
_max_idle_time_millis: int = None
_keep_alive_duration_millis: int = None
_max_requests: int = None
_max_requests_per_host: int = None
def __init__(
self,
config: pcc_models.Config,
):
"""
Init client with Config
@param config: config contains the necessary information to create a client
"""
if UtilClient.is_unset(config):
raise TeaException({
'code': 'ParameterMissing',
'message': "'config' can not be unset"
})
self._access_key_id = config.access_key_id
self._access_key_secret = config.access_key_secret
self._security_token = config.security_token
self._endpoint = config.endpoint
self._protocol = config.protocol
self._user_agent = config.user_agent
self._read_timeout = UtilClient.default_number(config.read_timeout, 20000)
self._connect_timeout = UtilClient.default_number(config.connect_timeout, 20000)
self._http_proxy = config.http_proxy
self._https_proxy = config.https_proxy
self._no_proxy = config.no_proxy
self._socks_5proxy = config.socks_5proxy
self._socks_5net_work = config.socks_5net_work
self._max_idle_conns = UtilClient.default_number(config.max_idle_conns, 60000)
self._max_idle_time_millis = UtilClient.default_number(config.max_idle_time_millis, 5)
self._keep_alive_duration_millis = UtilClient.default_number(config.keep_alive_duration_millis, 5000)
self._max_requests = UtilClient.default_number(config.max_requests, 100)
self._max_requests_per_host = UtilClient.default_number(config.max_requests_per_host, 100)
def do_request(
self,
version: str,
action: str,
protocol: str,
method: str,
pathname: str,
request: dict,
headers: Dict[str, str],
runtime: util_models.RuntimeOptions,
) -> dict:
"""
Encapsulate the request and invoke the network
@param action: api name
@param protocol: http or https
@param method: e.g. GET
@param pathname: pathname of every api
@param request: which contains request params
@param runtime: which controls some details of call api, such as retry times
@return: the response
"""
runtime.validate()
_runtime = {
'timeouted': 'retry',
'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout),
'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout),
'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy),
'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy),
'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy),
'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns),
'maxIdleTimeMillis': self._max_idle_time_millis,
'keepAliveDurationMillis': self._keep_alive_duration_millis,
'maxRequests': self._max_requests,
'maxRequestsPerHost': self._max_requests_per_host,
'retry': {
'retryable': runtime.autoretry,
'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3)
},
'backoff': {
'policy': UtilClient.default_string(runtime.backoff_policy, 'no'),
'period': UtilClient.default_number(runtime.backoff_period, 1)
},
'ignoreSSL': runtime.ignore_ssl,
# Product基础信息,包含 code(产品码) ,name(产品名称),name_en(产品英文名)
}
_last_request = None
_last_exception = None
_now = time.time()
_retry_times = 0
while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now):
if _retry_times > 0:
_backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times)
if _backoff_time > 0:
TeaCore.sleep(_backoff_time)
_retry_times = _retry_times + 1
try:
_request = TeaRequest()
_request.protocol = UtilClient.default_string(self._protocol, protocol)
_request.method = method
_request.pathname = pathname
_request.query = {
'method': action,
'version': version,
'sign_type': 'HmacSHA1',
'req_time': AntchainUtils.get_timestamp(),
'req_msg_id': AntchainUtils.get_nonce(),
'access_key': self._access_key_id,
'base_sdk_version': 'TeaSDK-2.0',
'sdk_version': '1.1.1'
}
if not UtilClient.empty(self._security_token):
_request.query['security_token'] = self._security_token
_request.headers = TeaCore.merge({
'host': UtilClient.default_string(self._endpoint, 'openapi.antchain.antgroup.com'),
'user-agent': UtilClient.get_user_agent(self._user_agent)
}, headers)
tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request))
_request.body = UtilClient.to_form_string(tmp)
_request.headers['content-type'] = 'application/x-www-form-urlencoded'
signed_param = TeaCore.merge(_request.query,
RPCUtilClient.query(request))
_request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret)
_last_request = _request
_response = TeaCore.do_action(_request, _runtime)
raw = UtilClient.read_as_string(_response.body)
obj = UtilClient.parse_json(raw)
res = UtilClient.assert_as_map(obj)
resp = UtilClient.assert_as_map(res.get('response'))
if AntchainUtils.has_error(raw, self._access_key_secret):
raise TeaException({
'message': resp.get('result_msg'),
'data': resp,
'code': resp.get('result_code')
})
return resp
except Exception as e:
if TeaCore.is_retryable(e):
_last_exception = e
continue
raise e
raise UnretryableException(_last_request, _last_exception)
async def do_request_async(
self,
version: str,
action: str,
protocol: str,
method: str,
pathname: str,
request: dict,
headers: Dict[str, str],
runtime: util_models.RuntimeOptions,
) -> dict:
"""
Encapsulate the request and invoke the network
@param action: api name
@param protocol: http or https
@param method: e.g. GET
@param pathname: pathname of every api
@param request: which contains request params
@param runtime: which controls some details of call api, such as retry times
@return: the response
"""
runtime.validate()
_runtime = {
'timeouted': 'retry',
'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout),
'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout),
'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy),
'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy),
'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy),
'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns),
'maxIdleTimeMillis': self._max_idle_time_millis,
'keepAliveDurationMillis': self._keep_alive_duration_millis,
'maxRequests': self._max_requests,
'maxRequestsPerHost': self._max_requests_per_host,
'retry': {
'retryable': runtime.autoretry,
'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3)
},
'backoff': {
'policy': UtilClient.default_string(runtime.backoff_policy, 'no'),
'period': UtilClient.default_number(runtime.backoff_period, 1)
},
'ignoreSSL': runtime.ignore_ssl,
# Product基础信息,包含 code(产品码) ,name(产品名称),name_en(产品英文名)
}
_last_request = None
_last_exception = None
_now = time.time()
_retry_times = 0
while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now):
if _retry_times > 0:
_backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times)
if _backoff_time > 0:
TeaCore.sleep(_backoff_time)
_retry_times = _retry_times + 1
try:
_request = TeaRequest()
_request.protocol = UtilClient.default_string(self._protocol, protocol)
_request.method = method
_request.pathname = pathname
_request.query = {
'method': action,
'version': version,
'sign_type': 'HmacSHA1',
'req_time': AntchainUtils.get_timestamp(),
'req_msg_id': AntchainUtils.get_nonce(),
'access_key': self._access_key_id,
'base_sdk_version': 'TeaSDK-2.0',
'sdk_version': '1.1.1'
}
if not UtilClient.empty(self._security_token):
_request.query['security_token'] = self._security_token
_request.headers = TeaCore.merge({
'host': UtilClient.default_string(self._endpoint, 'openapi.antchain.antgroup.com'),
'user-agent': UtilClient.get_user_agent(self._user_agent)
}, headers)
tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request))
_request.body = UtilClient.to_form_string(tmp)
_request.headers['content-type'] = 'application/x-www-form-urlencoded'
signed_param = TeaCore.merge(_request.query,
RPCUtilClient.query(request))
_request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret)
_last_request = _request
_response = await TeaCore.async_do_action(_request, _runtime)
raw = await UtilClient.read_as_string_async(_response.body)
obj = UtilClient.parse_json(raw)
res = UtilClient.assert_as_map(obj)
resp = UtilClient.assert_as_map(res.get('response'))
if AntchainUtils.has_error(raw, self._access_key_secret):
raise TeaException({
'message': resp.get('result_msg'),
'data': resp,
'code': resp.get('result_code')
})
return resp
except Exception as e:
if TeaCore.is_retryable(e):
_last_exception = e
continue
raise e
raise UnretryableException(_last_request, _last_exception)
def query_product(
self,
request: pcc_models.QueryProductRequest,
) -> pcc_models.QueryProductResponse:
"""
Description: 产品列表查询接口
Summary: 产品列表查询接口
"""
runtime = util_models.RuntimeOptions()
headers = {}
return self.query_product_ex(request, headers, runtime)
async def query_product_async(
self,
request: pcc_models.QueryProductRequest,
) -> pcc_models.QueryProductResponse:
"""
Description: 产品列表查询接口
Summary: 产品列表查询接口
"""
runtime = util_models.RuntimeOptions()
headers = {}
return await self.query_product_ex_async(request, headers, runtime)
def query_product_ex(
self,
request: pcc_models.QueryProductRequest,
headers: Dict[str, str],
runtime: util_models.RuntimeOptions,
) -> pcc_models.QueryProductResponse:
"""
Description: 产品列表查询接口
Summary: 产品列表查询接口
"""
UtilClient.validate_model(request)
return pcc_models.QueryProductResponse().from_map(
self.do_request('1.0', 'antcloud.pcc.product.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
)
async def query_product_ex_async(
self,
request: pcc_models.QueryProductRequest,
headers: Dict[str, str],
runtime: util_models.RuntimeOptions,
) -> pcc_models.QueryProductResponse:
"""
Description: 产品列表查询接口
Summary: 产品列表查询接口
"""
UtilClient.validate_model(request)
return pcc_models.QueryProductResponse().from_map(
await self.do_request_async('1.0', 'antcloud.pcc.product.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
)
| 44.122324
| 152
| 0.606737
| 1,478
| 14,428
| 5.590663
| 0.156292
| 0.059664
| 0.047319
| 0.036306
| 0.798741
| 0.76183
| 0.742224
| 0.734842
| 0.734842
| 0.734842
| 0
| 0.006076
| 0.3042
| 14,428
| 326
| 153
| 44.257669
| 0.817014
| 0.046299
| 0
| 0.712177
| 1
| 0
| 0.082433
| 0.017008
| 0
| 0
| 0
| 0
| 0.01476
| 1
| 0.01476
| false
| 0
| 0.0369
| 0
| 0.147601
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
76d6f50e528ee21f9e9b434221869de1a64a18b0
| 51,362
|
py
|
Python
|
tests/constants.py
|
fossabot/easy_sast
|
1aa7dbbf340e3340fa2f70ec5bafb798294bfa7a
|
[
"BSD-3-Clause"
] | null | null | null |
tests/constants.py
|
fossabot/easy_sast
|
1aa7dbbf340e3340fa2f70ec5bafb798294bfa7a
|
[
"BSD-3-Clause"
] | null | null | null |
tests/constants.py
|
fossabot/easy_sast
|
1aa7dbbf340e3340fa2f70ec5bafb798294bfa7a
|
[
"BSD-3-Clause"
] | 1
|
2021-01-20T20:59:52.000Z
|
2021-01-20T20:59:52.000Z
|
#!/usr/bin/env python3
"""
Constants for use during tests
"""
# built-ins
import copy
import secrets
from pathlib import Path
from typing import Dict, List, Union
from xml.etree import ( # nosec (Used only when TYPE_CHECKING) # nosem: python.lang.security.use-defused-xml.use-defused-xml
ElementTree as InsecureElementTree,
)
# third party
from defusedxml import ElementTree
import yaml
# pylint: disable=too-many-lines
## Sample Results API environmental information
VALID_RESULTS_API: Dict[str, Union[str, bool, Dict[str, str]]] = {}
VALID_RESULTS_API["base_url"] = "https://analysiscenter.veracode.com/api/"
VALID_RESULTS_API["version"] = {
"detailedreport.do": "5.0",
"detailedreportpdf.do": "4.0",
"getaccountcustomfieldlist.do": "5.0",
"getappbuilds.do": "4.0",
"getcallstacks.do": "5.0",
"summaryreport.do": "4.0",
"summaryreportpdf.do": "4.0",
"thirdpartyreportpdf.do": "4.0",
}
VALID_RESULTS_API["app_id"] = "1337"
VALID_RESULTS_API["api_key_id"] = secrets.token_hex(16)
VALID_RESULTS_API["api_key_secret"] = secrets.token_hex(64) # nosec
VALID_RESULTS_API["ignore_compliance_status"] = False
VALID_RESULTS_API_DIFFERENT_APP_ID = copy.deepcopy(VALID_RESULTS_API)
VALID_RESULTS_API_DIFFERENT_APP_ID["app_id"] = "31337"
INVALID_RESULTS_API_MISSING_VERSION_KEY = copy.deepcopy(VALID_RESULTS_API)
del INVALID_RESULTS_API_MISSING_VERSION_KEY["version"]
INVALID_RESULTS_API_INCORRECT_APP_ID = copy.deepcopy(VALID_RESULTS_API)
INVALID_RESULTS_API_INCORRECT_APP_ID["app_id"] = 1337
INVALID_RESULTS_API_INCORRECT_VERSION_VALUES = copy.deepcopy(VALID_RESULTS_API)
for value in VALID_RESULTS_API["version"]:
INVALID_RESULTS_API_INCORRECT_VERSION_VALUES["version"][value] = float(
VALID_RESULTS_API["version"][value]
)
INVALID_RESULTS_API_MISSING_DOMAIN = copy.deepcopy(VALID_RESULTS_API)
INVALID_RESULTS_API_MISSING_DOMAIN["base_url"] = "https:///api/"
INVALID_RESULTS_API_INCORRECT_COMPLIANCE_STATUS = copy.deepcopy(VALID_RESULTS_API)
INVALID_RESULTS_API_INCORRECT_COMPLIANCE_STATUS["ignore_compliance_status"] = "True"
INVALID_RESULTS_API_INVALID_PORT = copy.deepcopy(VALID_RESULTS_API)
INVALID_RESULTS_API_INVALID_PORT[
"base_url"
] = "https://analysiscenter.veracode.com:65536/api/"
VALID_RESULTS_API_WITH_PORT_IN_URL = copy.deepcopy(VALID_RESULTS_API)
VALID_RESULTS_API_WITH_PORT_IN_URL[
"base_url"
] = "https://analysiscenter.veracode.com:443/api/"
# Valid Results API getappbuilds.do information, but no
# policy_compliance_status
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS: Dict[
str, Union[str, bytes, InsecureElementTree.Element]
] = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<applicationbuilds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds
https://analysiscenter.veracode.com/resource/2.0/applicationbuilds.xsd"
account_id="00000000001">
<application app_name="app name" app_id="1337" industry_vertical="Manufacturing" assurance_level="Very High"
business_criticality="Very High" origin="Not Specified" modified_date="2019-08-13T14:00:10-04:00"
cots="false" business_unit="Not Specified" tags="">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
<customfield name="Custom 6" value=""/>
<customfield name="Custom 7" value=""/>
<customfield name="Custom 8" value=""/>
<customfield name="Custom 9" value=""/>
<customfield name="Custom 10" value=""/>
</application>
</applicationbuilds>
<!-- Parameters: report_changed_since=08/25/2019 only_latest=true include_in_progress=false -->""" # pylint: disable=line-too-long
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS["bytes"] = bytes(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS["string"], "utf-8"
)
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS[
"Element"
] = ElementTree.fromstring(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS["bytes"]
)
# Valid Results API getappbuilds.do information, with a failing
# policy_compliance_status
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS = {}
# Variant of
# VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS to
# add a failing policy_compliance_status
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<applicationbuilds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds
https://analysiscenter.veracode.com/resource/2.0/applicationbuilds.xsd"
account_id="00000000001">
<application app_name="app name" app_id="1337" industry_vertical="Manufacturing" assurance_level="Very High"
business_criticality="Very High" origin="Not Specified" modified_date="2019-08-13T14:00:10-04:00"
cots="false" business_unit="Not Specified" tags="">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
<customfield name="Custom 6" value=""/>
<customfield name="Custom 7" value=""/>
<customfield name="Custom 8" value=""/>
<customfield name="Custom 9" value=""/>
<customfield name="Custom 10" value=""/>
<build version="2019-10 Testing" build_id="1234321" submitter="Jon Zeolla" platform="Not Specified" lifecycle_stage="Deployed (In production and actively developed)" results_ready="true" policy_name="Veracode Recommended Medium" policy_version="1" policy_compliance_status="Did Not Pass" rules_status="Did Not Pass" grace_period_expired="false" scan_overdue="false">
<analysis_unit analysis_type="Static" published_date="2019-10-13T16:20:30-04:00" published_date_sec="1570998030" status="Results Ready"/>
</build>
</application>
</applicationbuilds>
<!-- Parameters: report_changed_since=08/25/2019 only_latest=true include_in_progress=false -->""" # pylint: disable=line-too-long
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS[
"bytes"
] = bytes(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS[
"string"
],
"utf-8",
)
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS[
"Element"
] = ElementTree.fromstring(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_FAILING_POLICY_COMPLIANCE_STATUS[
"bytes"
]
)
# Valid Results API getappbuilds.do information, with a passing
# policy_compliance_status
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS = {}
# Variant of
# VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_NO_BUILDS to
# add a passing policy_compliance_status
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<applicationbuilds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/applicationbuilds
https://analysiscenter.veracode.com/resource/2.0/applicationbuilds.xsd"
account_id="00000000001">
<application app_name="app name" app_id="1337" industry_vertical="Manufacturing" assurance_level="Very High"
business_criticality="Very High" origin="Not Specified" modified_date="2019-08-13T14:00:10-04:00"
cots="false" business_unit="Not Specified" tags="">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
<customfield name="Custom 6" value=""/>
<customfield name="Custom 7" value=""/>
<customfield name="Custom 8" value=""/>
<customfield name="Custom 9" value=""/>
<customfield name="Custom 10" value=""/>
<build version="2019-10 Testing" build_id="1234321" submitter="Jon Zeolla" platform="Not Specified" lifecycle_stage="Deployed (In production and actively developed)" results_ready="true" policy_name="Veracode Recommended Medium" policy_version="1" policy_compliance_status="Pass" rules_status="Pass" grace_period_expired="false" scan_overdue="false">
<analysis_unit analysis_type="Static" published_date="2019-10-13T16:20:30-04:00" published_date_sec="1570998030" status="Results Ready"/>
</build>
</application>
</applicationbuilds>
<!-- Parameters: report_changed_since=08/25/2019 only_latest=true include_in_progress=false -->""" # pylint: disable=line-too-long
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS[
"bytes"
] = bytes(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS[
"string"
],
"utf-8",
)
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS[
"Element"
] = ElementTree.fromstring(
VALID_RESULTS_API_GETAPPBUILDS_RESPONSE_XML_PASSING_POLICY_COMPLIANCE_STATUS[
"bytes"
]
)
## Sample Upload API environmental information
VALID_UPLOAD_API: Dict[str, Union[str, Dict[str, str], Path, bool]] = {}
VALID_UPLOAD_API["base_url"] = "https://analysiscenter.veracode.com/api/"
VALID_UPLOAD_API["version"] = {
"beginprescan.do": "5.0",
"beginscan.do": "5.0",
"createapp.do": "5.0",
"createbuild.do": "5.0",
"deleteapp.do": "5.0",
"deletebuild.do": "5.0",
"getappinfo.do": "5.0",
"getapplist.do": "5.0",
"getbuildinfo.do": "5.0",
"getbuildlist.do": "5.0",
"getfilelist.do": "5.0",
"getpolicylist.do": "5.0",
"getprescanresults.do": "5.0",
"getvendorlist.do": "5.0",
"removefile.do": "5.0",
"updateapp.do": "5.0",
"updatebuild.do": "5.0",
"uploadfile.do": "5.0",
"uploadlargefile.do": "5.0",
}
VALID_UPLOAD_API["app_id"] = "1337"
VALID_UPLOAD_API["build_dir"] = Path("/usr/local/bin/").absolute()
VALID_UPLOAD_API["build_id"] = "v1.2.3"
VALID_UPLOAD_API["sandbox_id"] = "321"
VALID_UPLOAD_API["scan_all_nonfatal_top_level_modules"] = True
VALID_UPLOAD_API["auto_scan"] = True
VALID_UPLOAD_API["api_key_id"] = secrets.token_hex(16)
VALID_UPLOAD_API["api_key_secret"] = secrets.token_hex(64) # nosec
INVALID_UPLOAD_API_MISSING_BUILD_DIR = copy.deepcopy(VALID_UPLOAD_API)
del INVALID_UPLOAD_API_MISSING_BUILD_DIR["build_dir"]
INVALID_UPLOAD_API_BUILD_DIR = copy.deepcopy(VALID_UPLOAD_API)
INVALID_UPLOAD_API_BUILD_DIR["build_dir"] = "/usr/local/bin/"
INVALID_UPLOAD_API_MISSING_DOMAIN = copy.deepcopy(VALID_UPLOAD_API)
INVALID_UPLOAD_API_MISSING_DOMAIN["base_url"] = "https:///api/"
INVALID_UPLOAD_API_INCORRECT_VERSION_VALUES = copy.deepcopy(VALID_UPLOAD_API)
for value in VALID_UPLOAD_API["version"]:
INVALID_UPLOAD_API_INCORRECT_VERSION_VALUES["version"][value] = float(
VALID_UPLOAD_API["version"][value]
)
INVALID_UPLOAD_API_BUILD_ID = copy.deepcopy(VALID_UPLOAD_API)
INVALID_UPLOAD_API_BUILD_ID["build_id"] = "invalid(build_id)"
INVALID_UPLOAD_API_SCAN_ALL_NONFATAL_TOP_LEVEL_MODULES = copy.deepcopy(VALID_UPLOAD_API)
INVALID_UPLOAD_API_SCAN_ALL_NONFATAL_TOP_LEVEL_MODULES[
"scan_all_nonfatal_top_level_modules"
] = "True"
INVALID_UPLOAD_API_AUTO_SCAN = copy.deepcopy(VALID_UPLOAD_API)
INVALID_UPLOAD_API_AUTO_SCAN["auto_scan"] = "False"
# Valid Upload API uploadlargefile.do information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/lzZ1eON0Bkr8iYjNVD9tqw
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<filelist xmlns="https://analysiscenter.veracode.com/schema/2.0/filelist"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
account_id="00000000001" app_id="1337" build_id="3131313131" filelist_version="1.1"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/filelist
https://analysiscenter.veracode.com/resource/2.0/filelist.xsd">
<file file_id="-9223372036854775808" file_name="valid_file.pdb" file_status="Uploaded"/>
</filelist>"""
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_UPLOADLARGEFILE_RESPONSE_XML["bytes"]
)
# Valid Upload API beginprescan.do information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/PX5ReM5acqjM~IOVEg2~rA
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd"
buildinfo_version="1.4" account_id="00000000001" app_id="1337" build_id="3131313131">
<build version="v1" build_id="3131313131" submitter="JoeUser" platform="Not Specified"
lifecycle_stage="Not Specified" results_ready="false" policy_name="Veracode Transitional Very High"
policy_version="1" policy_compliance_status="Not Assessed" rules_status="Not Assessed"
grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Pre-Scan Submitted"/>
</build>
</buildinfo>"""
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_BEGINPRESCAN_RESPONSE_XML["bytes"]
)
# Valid Upload API createbuild.do information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/vhuQ5lMdxRNQWUK1br1mDg
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="00000000001" app_id="1337" sandbox_id="1122" build_id="3131313131"><build version="2019-10 Testing"
build_id="3131313131" submitter="JoeUser" platform="Not Specified" lifecycle_stage="Not Specified"
results_ready="false" policy_name="Veracode Transitional Very High" policy_version="1" policy_compliance_status="Not Assessed"
rules_status="Not Assessed" grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Incomplete"/>
</build>
</buildinfo>"""
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_CREATEBUILD_RESPONSE_XML["bytes"]
)
# Valid Upload API getappinfo.do information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/kb2SM9net26_L91VploQGw
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<appinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/appinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/appinfo
https://analysiscenter.veracode.com/resource/2.0/appinfo.xsd" appinfo_version="1.1"
account_id="00000000001">
<application app_id="1337" app_name="app name" description="app description" business_criticality="Very High"
policy="Veracode Transitional Very High" policy_updated_date="2019-08-13T14:02:08-04:00"
teams="Demo Team" origin="Not Specified" industry_vertical="Other" app_type="Other" deployment_method="Not Specified"
is_web_application="false" archer_app_name="archer app name" modified_date="2019-08-15T11:27:47-04:00"
cots="false" vast="false" business_unit="Not Specified" tags="">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
<customfield name="Custom 6" value=""/>
<customfield name="Custom 7" value=""/>
<customfield name="Custom 8" value=""/>
<customfield name="Custom 9" value=""/>
<customfield name="Custom 10" value="foo"/>
</application>
</appinfo>"""
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_GETAPPINFO_RESPONSE_XML["bytes"]
)
# Valid Upload API getappinfo.do information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/rERUQewXKGx2D_zaoi6wGw
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/buildlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/buildlist
https://analysiscenter.veracode.com/resource/2.0/buildlist.xsd" buildlist_version="1.3"
account_id="12345" app_id="54321" app_name="Application Name">
</buildlist>"""
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_DELETEBUILD_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildinfo.do information - build status is "vendor reviewing"
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="hunter2" app_id="1337" build_id="41414141">
<build version="13 Aug 2019 Static" build_id="41414141" submitter="Veracode" platform="Not Specified"
lifecycle_stage="Not Specified" results_ready="false" policy_name="Veracode Transitional Very High" policy_version="1"
policy_compliance_status="Not Assessed" policy_updated_date="2019-08-13T14:02:08-04:00"
rules_status="Not Assessed" grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Vendor Reviewing" engine_version="20190805180615"/>
</build>
</buildinfo> """
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildinfo.do information - new build ready - second scenario
# # https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="hunter2" app_id="1337" build_id="41414141">
<build version="13 Aug 2019 Static" build_id="41414141" submitter="Veracode" platform="Not Specified"
lifecycle_stage="Not Specified" results_ready="true" policy_name="Veracode Transitional Very High" policy_version="1"
policy_compliance_status="Not Assessed" policy_updated_date="2019-08-13T14:02:08-04:00"
rules_status="Not Assessed" grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Scan in Process" engine_version="20190805180615"/>
</build>
</buildinfo> """
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML["Element"] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDINFO_RESPONSE_READY_XML["bytes"]
)
# Valid Upload API getbuildinfo.do information - build in progress
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="hunter2" app_id="1337" build_id="41414141">
<build version="13 Aug 2019 Static" build_id="41414141" submitter="Veracode" platform="Not Specified"
lifecycle_stage="Not Specified" results_ready="false" policy_name="Veracode Transitional Very High" policy_version="1"
policy_compliance_status="Not Assessed" policy_updated_date="2019-08-13T14:02:08-04:00"
rules_status="Not Assessed" grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" status="Scan In Process" engine_version="20190805180615"/>
</build>
</buildinfo> """
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML[
"Element"
] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDINFO_IN_PROGRESS_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildinfo.do information - missing build tag
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="hunter2" app_id="1337" build_id="41414141">
</buildinfo> """
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML[
"Element"
] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDINFO_RESULTS_READY_ERROR_IN_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildlist.do information - build ID present
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/buildlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/buildlist
https://analysiscenter.veracode.com/resource/2.0/buildlist.xsd" buildlist_version="1.3"
account_id="12345" app_id="54321" sandbox_id="12345" app_name="Application Name">
<build build_id="7777"/>
</buildlist>"""
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML[
"Element"
] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDLIST_BUILDID_IN_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildlist.do information - no build ID
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/2.0/buildlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/2.0/buildlist
https://analysiscenter.veracode.com/resource/2.0/buildlist.xsd" buildlist_version="1.3"
account_id="12345" app_id="54321" sandbox_id="12345" app_name="Application Name">
</buildlist>"""
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML[
"Element"
] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDLIST_MISSING_BUILDID_IN_RESPONSE_XML["bytes"]
)
# Valid Upload API getbuildinfo.do information - missing analysis_unit status attribute
# https://help.veracode.com/reader/orRWez4I0tnZNaA_i0zn9g/Yjclv0XIfU1v_yqmkt18zA
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<buildinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/buildinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/buildinfo
https://analysiscenter.veracode.com/resource/4.0/buildinfo.xsd" buildinfo_version="1.4"
account_id="hunter2" app_id="1337" build_id="41414141">
<build version="13 Aug 2019 Static" build_id="41414141" submitter="Veracode" platform="Not Specified"
lifecycle_stage="Not Specified" results_ready="false" policy_name="Veracode Transitional Very High" policy_version="1"
policy_compliance_status="Not Assessed" policy_updated_date="2019-08-13T14:02:08-04:00"
rules_status="Not Assessed" grace_period_expired="false" scan_overdue="false" legacy_scan_engine="false">
<analysis_unit analysis_type="Static" engine_version="20190805180615"/>
</build>
</buildinfo> """
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML["bytes"] = bytes(
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML["string"], "utf-8"
)
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML[
"Element"
] = ElementTree.fromstring(
VALID_UPLOAD_API_GETBUILDINFO_STATUS_MISSING_IN_RESPONSE_XML["bytes"]
)
## Sample Sandbox API environmental information
VALID_SANDBOX_API: Dict[str, Union[str, Dict[str, str], Path, bool]] = {}
VALID_SANDBOX_API["base_url"] = "https://analysiscenter.veracode.com/api/"
VALID_SANDBOX_API["version"] = {
"createsandbox.do": "5.0",
"getsandboxlist.do": "5.0",
"promotesandbox.do": "5.0",
"updatesandbox.do": "5.0",
"deletesandbox.do": "5.0",
}
VALID_SANDBOX_API["app_id"] = "1337"
VALID_SANDBOX_API["build_id"] = "v1.2.3"
VALID_SANDBOX_API["sandbox_id"] = "321"
VALID_SANDBOX_API["sandbox_name"] = "fb/jonzeolla/add-sandbox_name"
VALID_SANDBOX_API["api_key_id"] = secrets.token_hex(16)
VALID_SANDBOX_API["api_key_secret"] = secrets.token_hex(64) # nosec
INVALID_SANDBOX_API_BUILD_ID = copy.deepcopy(VALID_SANDBOX_API)
INVALID_SANDBOX_API_BUILD_ID["build_id"] = "invalid(build_id)"
INVALID_SANDBOX_API_SANDBOX_NAME = copy.deepcopy(VALID_SANDBOX_API)
INVALID_SANDBOX_API_SANDBOX_NAME["sandbox_name"] = r"invalid\sandbox_name"
INVALID_SANDBOX_API_INCORRECT_VERSION_VALUES = copy.deepcopy(VALID_SANDBOX_API)
for value in VALID_SANDBOX_API["version"]:
INVALID_SANDBOX_API_INCORRECT_VERSION_VALUES["version"][value] = float(
VALID_SANDBOX_API["version"][value]
)
# Valid Sandbox API information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/twPT73YBy_iQvrsGEZamhQ
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<sandboxlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/sandboxlist"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/sandboxlist
https://analysiscenter.veracode.com/resource/4.0/sandboxlist.xsd"
sandboxlist_version="1.0" account_id="12345" app_id="31337">
<sandbox sandbox_id="111111111" sandbox_name="Project Security" owner="jon.zeolla@seisollc.com"
last_modified="2019-09-17T14:08:35-04:00">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
</sandbox>
<sandbox sandbox_id="22222222" sandbox_name="Project Refactor" owner="jon.zeolla@seisollc.com"
last_modified="2019-09-17T14:04:13-04:00">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
</sandbox>
</sandboxlist>"""
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML["bytes"] = bytes(
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML["string"], "utf-8"
)
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_SANDBOX_GETSANDBOXLIST_API_RESPONSE_XML["bytes"]
)
# Valid Sandbox API information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/jp8rPey8I5WsuWz7bY2SZg
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<sandboxinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/sandboxinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/sandboxinfo
https://analysiscenter.veracode.com/resource/4.0/sandboxinfo.xsd" sandboxinfo_version="1.2"
account_id="12345" app_id="31337">
<sandbox sandbox_id="1111111" sandbox_name="Project Security" sandbox_status="sandbox" owner="jon.zeolla@seisollc.com"
modified_date="2019-09-17T14:08:35-04:00" created_date="2019-09-17T14:08:35-04:00">
<customfield name="Custom 1" value=""/>
<customfield name="Custom 2" value=""/>
<customfield name="Custom 3" value=""/>
<customfield name="Custom 4" value=""/>
<customfield name="Custom 5" value=""/>
</sandbox>
</sandboxinfo>"""
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML["bytes"] = bytes(
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML["string"], "utf-8"
)
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML["Element"] = ElementTree.fromstring(
VALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML["bytes"]
)
# Invalid Sandbox API information
# https://help.veracode.com/reader/LMv_dtSHyb7iIxAQznC~9w/jp8rPey8I5WsuWz7bY2SZg
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX = {}
# Unfortunately, this varies slightly from the Veracode-provided example
# because (1) the xml library cannot parse the XML using a XSD file, and (2)
# the placeholders Veracode provided in its documentation result in invalid XML
# regardless.
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX[
"string"
] = """<?xml version="1.0" encoding="UTF-8"?>
<sandboxinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/4.0/sandboxinfo"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/4.0/sandboxinfo
https://analysiscenter.veracode.com/resource/4.0/sandboxinfo.xsd" sandboxinfo_version="1.2"
account_id="12345" app_id="31337">
</sandboxinfo>"""
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX["bytes"] = bytes(
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX["string"], "utf-8"
)
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX[
"Element"
] = ElementTree.fromstring(
INVALID_SANDBOX_CREATESANDBOX_API_RESPONSE_XML_NO_SANDBOX["bytes"]
)
INVALID_SANDBOX_API_INCORRECT_DOMAIN = copy.deepcopy(VALID_RESULTS_API)
INVALID_SANDBOX_API_INCORRECT_DOMAIN["base_url"] = "https:///api/"
## Example file info
VALID_FILE: Dict[str, Union[str, List[str], bytes, Path]] = {}
VALID_FILE["name"] = "valid_file.pdb"
VALID_FILE["names"] = [
"valid_file.exe",
"valid_file.pdb",
"valid_file.dll",
"valid_file.jar",
"valid_file.zip",
"valid_file.tar",
"valid_file.tgz",
"valid_file.war",
"valid_file.ear",
"valid_file.jar",
"valid_file.apk",
"valid_file.ipa",
"valid_file.tar.gz",
"this.is.a.valid.file.dll",
"this.is..also..valid.jar",
]
VALID_FILE["bytes"] = b"Seiso was here!\n"
VALID_FILE["Path"] = Path("/path/" + str(VALID_FILE["name"]))
INVALID_FILE: Dict[str, Union[str, List[str], bytes, Path]] = {}
INVALID_FILE["name"] = "invalid_file.tar.gz.bar"
INVALID_FILE["names"] = [
"invalid_file.thingy",
"invalid_file",
"invalid_file.tar.gz.bar",
"invalid_file.dll.gz",
"invalid_file.exe.docx",
]
INVALID_FILE["bytes"] = b"Seiso was here!\n"
INVALID_FILE["Path"] = Path("/path/" + str(INVALID_FILE["name"]))
## Veracode error responses
VERACODE_ERROR_RESPONSE_XML: Dict[str, bytes] = {}
VERACODE_ERROR_RESPONSE_XML[
"bytes"
] = b'<?xml version="1.0" encoding="UTF-8"?>\n\n<error>App not in state where new builds are allowed.</error>\n' # pylint: disable=line-too-long
VERACODE_ERROR_RESPONSE_XML["Element"] = ElementTree.fromstring(
VERACODE_ERROR_RESPONSE_XML["bytes"]
)
XML_API_VALID_RESPONSE_XML_ERROR: Dict[str, bytes] = {}
XML_API_VALID_RESPONSE_XML_ERROR[
"bytes"
] = b'<?xml version="1.0" encoding="UTF-8"?>\n\n<error>Access denied.</error>\n'
XML_API_VALID_RESPONSE_XML_ERROR["Element"] = ElementTree.fromstring(
XML_API_VALID_RESPONSE_XML_ERROR["bytes"]
)
XML_API_INVALID_RESPONSE_XML_ERROR: Dict[str, bytes] = {}
XML_API_INVALID_RESPONSE_XML_ERROR[
"bytes"
] = b'<?xml version="1.0" encoding="UTF-8"?>\n\n<Invalid Error Message.</error>\n'
# Configs
INVALID_CONFIG_DIRTY = {
"a": 1,
"b": {},
"c": {"hideme": None, "keepme": "KEEP", "list": ["a", {}, "b", None]},
"emptydict": {},
None: "hide",
}
INVALID_CONFIG_NO_NONE = {
"a": 1,
"b": {},
"c": {"keepme": "KEEP", "list": ["a", {}, "b"]},
"emptydict": {},
}
INVALID_CONFIG_NO_EMPTY_DICT = {
"a": 1,
"c": {"hideme": None, "keepme": "KEEP", "list": ["a", "b", None]},
None: "hide",
}
INVALID_CONFIG_CLEAN = {
"a": 1,
"c": {"keepme": "KEEP", "list": ["a", "b"]},
}
SIMPLE_CONFIG_FILE = {}
SIMPLE_CONFIG_FILE["name"] = "easy_sast.yml"
SIMPLE_CONFIG_FILE["Path"] = Path("/path/" + str(SIMPLE_CONFIG_FILE["name"]))
SIMPLE_CONFIG_FILE[
"string"
] = '''---
loglevel: "WARNING"'''
SIMPLE_CONFIG_FILE["bytes"] = bytes(SIMPLE_CONFIG_FILE["string"], "utf-8")
INVALID_CONFIG_FILES = [
Path("./easy_sast.yml.gz"),
Path("./config.txt.yml"),
Path("./thing.notyml"),
Path("./not_a_config.pdb"),
Path("./config.yalm"),
Path("./yaml.config"),
Path("./setup.cfg"),
Path("./config.ini"),
Path("./file.json"),
Path("./yaml"),
Path("./yml"),
Path("./config"),
]
VALID_CLEAN_FILE_CONFIG = {}
VALID_CLEAN_FILE_CONFIG[
"string"
] = '''---
apis:
results:
base_url: "https://analysiscenter.veracode.com/api/"
version: {
"detailedreport.do": "5.0",
"detailedreportpdf.do": "4.0",
"getaccountcustomfieldlist.do": "5.0",
"getappbuilds.do": "4.0",
"getcallstacks.do": "5.0",
"summaryreport.do": "4.0",
"summaryreportpdf.do": "4.0",
"thirdpartyreportpdf.do": "4.0",
}
app_id: "31337"
ignore_compliance_status: False
upload:
base_url: "https://analysiscenter.veracode.com/api/"
version: {
"beginprescan.do": "5.0",
"beginscan.do": "5.0",
"createapp.do": "5.0",
"createbuild.do": "5.0",
"deleteapp.do": "5.0",
"deletebuild.do": "5.0",
"getappinfo.do": "5.0",
"getapplist.do": "5.0",
"getbuildinfo.do": "5.0",
"getbuildlist.do": "5.0",
"getfilelist.do": "5.0",
"getpolicylist.do": "5.0",
"getprescanresults.do": "5.0",
"getvendorlist.do": "5.0",
"removefile.do": "5.0",
"updateapp.do": "5.0",
"updatebuild.do": "5.0",
"uploadfile.do": "5.0",
"uploadlargefile.do": "5.0"
}
app_id: "31337"
build_dir: "/build/"
build_id: "2037-03-13_03-14-15"
scan_all_nonfatal_top_level_modules: True
auto_scan: True
sandbox:
base_url: "https://analysiscenter.veracode.com/api/"
version: {
"createsandbox.do": "5.0",
"getsandboxlist.do": "5.0",
"promotesandbox.do": "5.0",
"updatesandbox.do": "5.0",
"deletesandbox.do": "5.0"
}
app_id: "31337"
sandbox_name: "fb/jonzeolla/name-of-branch"
loglevel: "warning"
workflow:
- "submit_artifacts"
- "check_compliance"'''
VALID_CLEAN_FILE_CONFIG["bytes"] = bytes(VALID_CLEAN_FILE_CONFIG["string"], "utf-8")
VALID_CLEAN_FILE_CONFIG["dict"] = yaml.safe_load(VALID_CLEAN_FILE_CONFIG["bytes"])
# VALID_CLEAN_FILE_CONFIG is already normalized, but separating it here in case
# in the future it isn't and we want to update the places where this is used to
# mock the response to normalized_file_config
VALID_CLEAN_FILE_CONFIG_NORMALIZED = copy.deepcopy(VALID_CLEAN_FILE_CONFIG)
CLEAN_DEFAULT_CONFIG = {
"workflow": ["submit_artifacts", "check_compliance"],
"loglevel": "WARNING",
"apis": {"upload": {}, "results": {}, "sandbox": {}},
}
CLEAN_FILE_CONFIG = {
"apis": {
"results": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"detailedreport.do": "5.0",
"detailedreportpdf.do": "4.0",
"getaccountcustomfieldlist.do": "5.0",
"getappbuilds.do": "4.0",
"getcallstacks.do": "5.0",
"summaryreport.do": "4.0",
"summaryreportpdf.do": "4.0",
"thirdpartyreportpdf.do": "4.0",
},
"app_id": "31337",
"ignore_compliance_status": False,
},
"upload": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"beginprescan.do": "5.0",
"beginscan.do": "5.0",
"createapp.do": "5.0",
"createbuild.do": "5.0",
"deleteapp.do": "5.0",
"deletebuild.do": "5.0",
"getappinfo.do": "5.0",
"getapplist.do": "5.0",
"getbuildinfo.do": "5.0",
"getbuildlist.do": "5.0",
"getfilelist.do": "5.0",
"getpolicylist.do": "5.0",
"getprescanresults.do": "5.0",
"getvendorlist.do": "5.0",
"removefile.do": "5.0",
"updateapp.do": "5.0",
"updatebuild.do": "5.0",
"uploadfile.do": "5.0",
"uploadlargefile.do": "5.0",
},
"app_id": "31337",
"build_dir": Path("/build/").absolute(),
"build_id": "2037-03-13_03-14-15",
"scan_all_nonfatal_top_level_modules": True,
"auto_scan": True,
},
"sandbox": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"createsandbox.do": "5.0",
"getsandboxlist.do": "5.0",
"promotesandbox.do": "5.0",
"updatesandbox.do": "5.0",
"deletesandbox.do": "5.0",
},
"app_id": "31337",
"sandbox_name": VALID_SANDBOX_API["sandbox_name"],
},
},
"loglevel": "WARNING",
"workflow": ["submit_artifacts", "check_compliance"],
}
CLEAN_ENV_CONFIG = {
"api_key_id": "95e637f1a25d453cdfdc30a338287ba8",
"api_key_secret": "f7bb8c01bce05290ac8939f1d27d90ab84d2e05bb4671ca2f88d609d07afa723265348d708bdd0a1707a499528f6aa5c83133f4c5aca06a528d30b61fd4b6b28",
}
CLEAN_ARGS_CONFIG = {
"config_file": Path("/easy_sast/easy_sast.yml"),
"apis": {
"results": {"ignore_compliance_status": False},
"upload": {"scan_all_nonfatal_top_level_modules": True, "auto_scan": True},
"sandbox": {"sandbox_name": VALID_SANDBOX_API["sandbox_name"]},
},
}
CLEAN_FILE_CONFIG_NO_RESULTS_API = copy.deepcopy(CLEAN_FILE_CONFIG)
CLEAN_FILE_CONFIG_NO_RESULTS_API["apis"] = {"upload": {}}
CLEAN_FILE_CONFIG_NO_UPLOAD_API = copy.deepcopy(CLEAN_FILE_CONFIG)
CLEAN_FILE_CONFIG_NO_UPLOAD_API["apis"] = {"results": {}}
CLEAN_EFFECTIVE_CONFIG = {
"workflow": ["submit_artifacts", "check_compliance"],
"loglevel": "WARNING",
"apis": {
"sandbox": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"createsandbox.do": "5.0",
"getsandboxlist.do": "5.0",
"promotesandbox.do": "5.0",
"updatesandbox.do": "5.0",
"deletesandbox.do": "5.0",
},
"app_id": "31337",
"sandbox_name": VALID_SANDBOX_API["sandbox_name"],
},
"upload": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"beginprescan.do": "5.0",
"beginscan.do": "5.0",
"createapp.do": "5.0",
"createbuild.do": "5.0",
"deleteapp.do": "5.0",
"deletebuild.do": "5.0",
"getappinfo.do": "5.0",
"getapplist.do": "5.0",
"getbuildinfo.do": "5.0",
"getbuildlist.do": "5.0",
"getfilelist.do": "5.0",
"getpolicylist.do": "5.0",
"getprescanresults.do": "5.0",
"getvendorlist.do": "5.0",
"removefile.do": "5.0",
"updateapp.do": "5.0",
"updatebuild.do": "5.0",
"uploadfile.do": "5.0",
"uploadlargefile.do": "5.0",
},
"app_id": "31337",
"build_dir": Path("/build/").absolute(),
"build_id": "2037-03-13_03-14-15",
"scan_all_nonfatal_top_level_modules": True,
"auto_scan": True,
},
"results": {
"base_url": "https://analysiscenter.veracode.com/api/",
"version": {
"detailedreport.do": "5.0",
"detailedreportpdf.do": "4.0",
"getaccountcustomfieldlist.do": "5.0",
"getappbuilds.do": "4.0",
"getcallstacks.do": "5.0",
"summaryreport.do": "4.0",
"summaryreportpdf.do": "4.0",
"thirdpartyreportpdf.do": "4.0",
},
"app_id": "31337",
"ignore_compliance_status": False,
},
},
"api_key_id": "95e637f1a25d453cdfdc30a338287ba8",
"api_key_secret": "f7bb8c01bce05290ac8939f1d27d90ab84d2e05bb4671ca2f88d609d07afa723265348d708bdd0a1707a499528f6aa5c83133f4c5aca06a528d30b61fd4b6b28",
"config_file": Path("/easy_sast/easy_sast.yml"),
}
| 46.650318
| 382
| 0.707527
| 6,652
| 51,362
| 5.218882
| 0.067949
| 0.031369
| 0.012444
| 0.020567
| 0.89947
| 0.865019
| 0.838979
| 0.79724
| 0.734647
| 0.668107
| 0
| 0.053985
| 0.143452
| 51,362
| 1,100
| 383
| 46.692727
| 0.735123
| 0.135742
| 0
| 0.547106
| 0
| 0.113507
| 0.610387
| 0.262221
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.009081
| 0.007946
| 0
| 0.007946
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
76ef39135461c90c89434ff1044c6aab1a43dc60
| 9,741
|
py
|
Python
|
test/test_phone_number_rate.py
|
karixtech/karix-python
|
e9162d41249a639fdb35cba1263416d76d7b79c9
|
[
"MIT"
] | 5
|
2019-02-27T07:22:40.000Z
|
2021-03-28T23:17:23.000Z
|
test/test_phone_number_rate.py
|
sendbee/karix-python
|
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
|
[
"MIT"
] | 2
|
2019-12-03T13:55:07.000Z
|
2020-03-31T03:44:40.000Z
|
test/test_phone_number_rate.py
|
sendbee/karix-python
|
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
|
[
"MIT"
] | 5
|
2019-04-22T17:33:29.000Z
|
2021-01-12T19:57:44.000Z
|
# coding: utf-8
"""
karix api
# Overview Karix API lets you interact with the Karix platform using an omnichannel messaging API. It also allows you to query your account, set up webhooks and buy phone numbers. # API and Clients Versioning Karix APIs are versioned using the format vX.Y where X is the major version number and Y is minor. All minor version releases are backwards compatible but major releases are not, please be careful when upgrading. Version header `api-version` is used by Karix platform to determine the version of the API request. To use Karix API v2 you can send `api-version` as `\"2.0\"`. If an API request does not contain `api-version` header then Karix platform uses the pinned API version of the account as the default verison. Your account defaults to the latest API version release at the time of signup. You can check the pinned API version form the [dashboard](https://cloud.karix.io/dashboard). Karix also provides Helper Libraries for all major languages. Release versions of these libraries correspond to their API Version supported. Client version vX.Y.Z supports API version vX.Y. Helper libraries are configured to send `api-version` header based on the library version. When using official Karix helper libraries, you dont need to concern yourself with pinned version. Using helper library of latest version will give you access to latest features. # Supported Channels Karix omnichannel messaging API supports the following channels: - sms - whatsapp ## SMS Channel To send a message to one or more destinations over SMS channel set `channel` to `sms` in the [Messaging API](#operation/sendMessage). In trial mode, your account can only send messages to numbers within the sandbox. ## Whatsapp Channel To send a message to a destination over WhatsApp channel set `channel` to `whatsapp` in the [Messaging API](#operation/sendMessage). Currently WhatsApp channel can only be used from within the sandbox. Contact [support](mailto:support@karix.io) for an early access outside the sandbox. Any messages you initiate over WhatsApp to end users must conform to a template configured in WhatsApp. These messages are called \"Notification Messages\". Currently only text messages can be sent as Notification Messages. Any responses you receive from end users and all replies you send within 24 hours of the last received response are called \"Conversation Messages\". When using the sandbox for testing and development purposes, we have provided for the following pre-approved templates for \"Notification Messages\": - Your order * has been dispatched. Please expect delivery by * - OTP requested by you on * is * - Thank you for your payment of * * on *. Your transaction ID is * You can replace `*` with any text of your choice. Both Notification and Conversation messages are priced differently, please refer to the [pricing page](http://karix.io/messaging/pricing/) for more details. # Common Request Structures All Karix APIs follow a common REST format with the following resources: - account - message - webhook - number ## Creating a resource To create a resource send a `POST` request with the desired parameters in a JSON object to `/<resource>/` url. A successful response will contain the details of the single resource created with HTTP status code `201 Created`. Note: An exception to this is the `Create Message` API which is a bulk API and returns a list of message records. ## Fetching a resource To fetch a resource by its Unique ID send a `GET` request to `/<resource>/<uid>/` where `uid` is the Alphanumeric Unique ID of the resource. A successful response will contain the details of the single resource fetched with HTTP status code `200 OK` ## Editing a resource To edit certain parameters of a resource send a `PATCH` request to `/<resource>/<uid>/` where `uid` is the Alphanumeric Unique ID of the resource, with a JSON object containing only the parameters which need to be updated. Edit resource APIs generally have no required parameters. A successful response will contain all the details of the single resource after editing. ## Deleting a resource To delete a resource send a `DELETE` request to `/<resource>/<uid>/` where `uid` is the Alphanumeric Unique ID of the resource. A successful response will return HTTP status code `204 No Content` with no body. ## Fetching a list of resources To fetch a list of resources send a `GET` request to `/<resource>/` with filters as GET parameters. A successful response will contain a list of filtered paginated objects with HTTP status code `200 OK`. ### Pagination Pagination for list APIs are controlled using GET parameters: - `limit`: Number of objects to be returned - `offset`: Number of objects to skip before collecting the output list. # Common Response Structures All Karix APIs follow a common respose structure. ## Success Responses ### Single Resource Response Responses returning a single object will have the following keys | Key | Child Key | Description | |:------------- |:------------- |:----------------------------------------- | | meta | | Meta Details about request and response | | | request_uuid | Unique request identifier | | data | | Details of the object | ### List Resource Response Responses returning a list of objects will have the following keys | Key | Child Key | Description | |:------------- |:------------- |:----------------------------------------- | | meta | | Meta Details about request and response | | | request_uuid | Unique request identifier | | | previous | Link to the previous page of the list | | | next | Link to the next page of the list | | | total | Total number of objects over all pages | | objects | | List of objects with details | ## Error Responses ### Validation Error Response Responses for requests which failed due to validation errors will have the follwing keys: | Key | Child Key | Description | |:------------- |:------------- |:------------------------------------------ | | meta | | Meta Details about request and response | | | request_uuid | Unique request identifier | | error | | Details for the error | | | message | Error message | | | param | (Optional) parameter this error relates to | Validation error responses will return HTTP Status Code `400 Bad Request` ### Insufficient Balance Response Some requests will require to consume account credits. In case of insufficient balance the following keys will be returned: | Key | Child Key | Description | |:------------- |:------------- |:----------------------------------------- | | meta | | Meta Details about request and response | | | request_uuid | Unique request identifier | | error | | Details for the error | | | message | `Insufficient Balance` | Insufficient balance response will return HTTP Status Code `402 Payment Required` # Events and Webhooks All asynchronous events generated by Karix platform follow a common structure: | Key | Child Key | Description | |:------------- |:------------- |:------------------------------------------- | | uid | | Alphanumeric unique ID of the event | | api_version | | 2.0 | | type | | Type of the event. | | data | | Details of the object attached to the event | Currently implemented event types are: - `message`: These events are generated when a message is created or its status is changed. When event `type` is `message` the `data` parameter contains the Message object (check out the response.data of [Get Message](#operation/getMessageById) API). - For outbound messages, `message` events are sent to `events_url` parameter of [Send Message](#operation/sendMessage) API - For inbound messages, `message` events are sent to the webhook attached to the phone number resource using [Edit Number](#tag/Number) API - For inbound messages to whatsapp sandbox, `message` events are sent to Webhook URL set on the [Dashboard](https://cloud.karix.io/dashboard/#whatsapp-demo). # noqa: E501
OpenAPI spec version: 2.0
Contact: support@karix.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import karix
from karix.models.phone_number_rate import PhoneNumberRate # noqa: E501
from karix.rest import ApiException
class TestPhoneNumberRate(unittest.TestCase):
"""PhoneNumberRate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPhoneNumberRate(self):
"""Test PhoneNumberRate"""
# FIXME: construct object with mandatory attributes with example values
# model = karix.models.phone_number_rate.PhoneNumberRate() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 237.585366
| 8,932
| 0.649728
| 1,223
| 9,741
| 5.156173
| 0.29027
| 0.011893
| 0.013321
| 0.018237
| 0.258484
| 0.220901
| 0.154297
| 0.131145
| 0.131145
| 0.131145
| 0
| 0.005118
| 0.257776
| 9,741
| 40
| 8,933
| 243.525
| 0.867082
| 0.951442
| 0
| 0.214286
| 0
| 0
| 0.018913
| 0
| 0
| 0
| 0
| 0.025
| 0
| 1
| 0.214286
| false
| 0.214286
| 0.357143
| 0
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
0a0b00ad25824ad2cfcfdb36b74b704732bceeca
| 36,538
|
py
|
Python
|
Models/Mean_Teacher/mean_teacher_model.py
|
Jincheng-Sun/Kylearn
|
ba6cd80c97e155d4bb4791b3ae74135bc1365064
|
[
"Apache-2.0"
] | null | null | null |
Models/Mean_Teacher/mean_teacher_model.py
|
Jincheng-Sun/Kylearn
|
ba6cd80c97e155d4bb4791b3ae74135bc1365064
|
[
"Apache-2.0"
] | null | null | null |
Models/Mean_Teacher/mean_teacher_model.py
|
Jincheng-Sun/Kylearn
|
ba6cd80c97e155d4bb4791b3ae74135bc1365064
|
[
"Apache-2.0"
] | 3
|
2019-07-07T06:37:52.000Z
|
2019-09-10T20:32:34.000Z
|
import numpy as np
import tensorflow as tf
from utils import utils
from Models.Mean_Teacher.mt_utils import getter_ema, model_vars
from framework.model import Model
import collections
import functools
from utils.log import log_down
class Mean_Teacher_model_1d(Model):
def __init__(self, ckpt_path, tsboard_path, network, input_shape, num_classes, feature_num, dev_num,
batch_size, lr, max_step=100000,
wd=0.02, ema_decay=0.999, warmup_pos=0.4, coefficient=50,
regression = False, threshold=0.99, patience=10):
super().__init__(ckpt_path, tsboard_path)
self.logger = log_down('train_log', 'a')
self.batch_size = batch_size
self.patience = 0
self.patience_max = patience
self.max_step = max_step
initializer = tf.contrib.layers.variance_scaling_initializer()
wd *= lr
self.warmup = tf.clip_by_value(tf.to_float(self.global_step * batch_size) / (warmup_pos * (2469001 * 1024)), 0, 1)
with tf.variable_scope("input"):
self.input_x = tf.placeholder(tf.float32, [None] + input_shape, name='features')
self.input_dev = tf.placeholder(tf.float32, [None,], name='dev_type')
self.input_y = tf.placeholder(tf.float32, [None,], name='alarm')
self.unlabel_x = tf.placeholder(tf.float32, [None] + input_shape, name='unlabeled_features')
self.unlabel_dev = tf.placeholder(tf.float32, [None,], name='unlabeled_dev_type')
self.is_training = tf.placeholder(dtype=tf.bool, shape=(), name='is_training')
with tf.variable_scope('scaling_attention'):
input_attn = tf.get_variable('input_attention', [dev_num, feature_num], trainable=True, initializer=tf.initializers.ones)
self.input_attention = tf.nn.leaky_relu(input_attn)
input_matrices = tf.gather(self.input_attention, tf.cast(self.input_dev, tf.int32))
input_matrices = tf.expand_dims(input_matrices, axis=-1)
input_matrices_un = tf.gather(self.input_attention, tf.cast(self.unlabel_dev, tf.int32))
input_matrices_un = tf.expand_dims(input_matrices_un, axis=-1)
with tf.variable_scope('bias_attention'):
output_attn = tf.get_variable('output_attention', [dev_num, num_classes], trainable=True, initializer=tf.initializers.zeros)
self.output_attention = tf.nn.leaky_relu(output_attn)
output_bias = tf.gather(self.output_attention, tf.cast(self.input_dev, tf.int32))
# apply attention matrix
scaled_input_x = tf.multiply(self.input_x, input_matrices)
scaled_unlabeled_x = tf.multiply(self.unlabel_x, input_matrices_un)
# #not applying attention matrix
# scaled_input_x = self.input_x
# scaled_unlabeled_x = self.unlabel_x
# Mean-Teacher
# Labeled part
logits = self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=self.is_training)
if regression:
self.logits = logits
else:
self.logits = logits + output_bias
# Update BN before here
post_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
# EMA
ema = tf.train.ExponentialMovingAverage(decay=ema_decay)
ema_op = ema.apply(model_vars())
ema_getter = functools.partial(getter_ema, ema)
# Unlabeled part: Consistency Loss
logits_t = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training, getter=ema_getter)
logits_teacher = tf.stop_gradient(logits_t)
logits_student = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training) # This part better use augmented `unlabeled_x`
if regression:
input_y = tf.expand_dims(self.input_y, axis = -1)
self.loss_c = tf.reduce_mean(tf.square(tf.nn.sigmoid(logits_teacher) - tf.nn.sigmoid(logits_student)))
with tf.variable_scope('error'):
self.proba = tf.nn.sigmoid(self.logits)
self.error = self.proba - input_y
self.loss = tf.reduce_mean(tf.square(self.error))
threshold = tf.constant(threshold)
condition = tf.greater_equal(self.proba, threshold)
self.prediction = tf.where(condition, tf.ones_like(self.proba), tf.zeros_like(self.proba),
name='prediction')
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, input_y), tf.float32))
else:
onehot_y = tf.cast(self.input_y, tf.int32)
self.onehot_y = tf.one_hot(onehot_y, num_classes)
with tf.variable_scope('error'):
loss_consistency = tf.reduce_mean(
(tf.nn.softmax(logits_teacher) - tf.nn.softmax(logits_student)) ** 2, -1)
self.loss_c = tf.reduce_mean(loss_consistency)
self.proba = tf.nn.sigmoid(self.logits)
self.loss = tf.reduce_mean(
# use `sparse`, no need to one-hot the `input_y`
tf.nn.softmax_cross_entropy_with_logits_v2(labels=self.onehot_y, logits=self.logits))
self.prediction = tf.nn.softmax(self.logits)
self.prediction = tf.argmax(self.prediction, 1)
self.real = tf.argmax(self.onehot_y, 1)
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, self.real), tf.float32))
tf.summary.scalar('losses/xe', self.loss)
tf.summary.scalar('losses/mt', self.loss_c)
self.best_loss = 100000
# operations
post_ops.append(ema_op)
post_ops.extend([tf.assign(v, v * (1 - wd)) for v in model_vars('logits') if 'kernel' in v.name])
train_op = tf.train.AdamOptimizer(lr).minimize(self.loss + self.loss_c * self.warmup * coefficient,
colocate_gradients_with_ops=True,
global_step=self.global_step)
with tf.control_dependencies([train_op]):
self.train_op = tf.group(*post_ops)
# Tuning op: only retrain batch norm.
skip_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=True)
self.train_bn = tf.group(*[v for v in tf.get_collection(tf.GraphKeys.UPDATE_OPS)
if v not in skip_ops])
self.saver = tf.train.Saver(max_to_keep=self.patience_max)
self.writer = tf.summary.FileWriter(self.tensorboard_path)
def classifier(self, network, input, num_classes, is_training, name='logits', getter=None):
with tf.variable_scope(name, reuse=tf.AUTO_REUSE, custom_getter=getter):
net = network.network(inputs=input, num_classes=num_classes, is_training=is_training)
return net
def initialize_variables(self, **kwargs):
init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())
self.run(init_op)
def run(self, *args, **kwargs):
return self.session.run(*args, **kwargs)
def train(self, dataset):
self.training_control = utils.training_control(self.global_step, print_span=10,
evaluation_span=100,
max_step=self.max_step) # batch*evaluation_span = dataset size = one epoch
for labeled, unlabeled in dataset.training_generator(batch_size=self.batch_size, portion= 0.5):
accuracy, loss, lossc, wm, _ = self.run([self.accuracy, self.loss,
self.loss_c, self.warmup,
self.train_op],
feed_dict={self.input_x: labeled['x'],
self.input_dev: labeled['dev'],
self.input_y: labeled['y'],
self.unlabel_x: unlabeled['x'],
self.unlabel_dev: unlabeled['dev'],
self.is_training: True})
step_control = self.run(self.training_control)
if step_control['time_to_print']:
print('train_loss = ' + str(loss) +
' consis_loss= '+str(lossc) +
' train_acc= '+str(accuracy) +
' step ' + str(step_control['step']) +
' warmup' + str(wm))
if step_control['time_to_stop']:
self.save_checkpoint()
break
if step_control['time_to_evaluate']:
self.evaluate(dataset.val_set)
self.save_checkpoint()
def evaluate(self, val_data):
step, loss, accuracy = self.run([self.global_step, self.loss, self.accuracy],
feed_dict={self.input_x: val_data['x'],
self.input_dev: val_data['dev'],
self.input_y: val_data['y'],
self.is_training: False})
self.logger.info('val_loss= ' + str(loss) + ' val_acc= '+str(accuracy)+' round: ' + str(step))
def tuning(self, real_data):
_, loss, accuracy = self.run([self.train_bn, self.loss, self.accuracy],
feed_dict={self.input_x: real_data['x'],
self.input_dev: real_data['dev'],
self.input_y: real_data['y'],
self.is_training: False})
def get_prediction(self, data, is_training=False):
prediction = self.run(self.prediction, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return prediction
def get_accuracy(self, data, is_training=False):
accuracy = self.run(self.accuracy, feed_dict = {
self.input_x: data['x'],
self.input_dev: data['dev'],
self.input_y: data['y'],
self.is_training: is_training
})
return accuracy
def get_logits(self, data, is_training=False):
logits = self.run([self.logits], feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return logits
def get_proba(self, data, is_training=False):
proba = self.run(self.proba, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return proba
def get_attn_matrix(self):
scaling_attention, bias_attention = self.run([self.input_attention, self.output_attention])
return scaling_attention, bias_attention
class Mean_Teacher_model_2d(Model):
def __init__(self, ckpt_path, tsboard_path, network, input_shape, num_classes, feature_num, dev_num,
batch_size, lr, max_step=100000,
wd=0.02, ema_decay=0.999, warmup_pos=0.4, coefficient=50, regression = False, threshold=0.9, patience=10):
super().__init__(ckpt_path, tsboard_path)
self.logger = log_down('train_log')
self.batch_size = batch_size
self.patience = 0
self.patience_max = patience
self.max_step = max_step
wd *= lr
self.warmup = tf.clip_by_value(tf.to_float(self.global_step * batch_size) / (warmup_pos * (2469001 * 1024)), 0, 1)
with tf.variable_scope("input"):
self.input_x = tf.placeholder(tf.float32, [None] + input_shape, name='features')
self.input_dev = tf.placeholder(tf.float32, [None,], name='dev_type')
self.input_y = tf.placeholder(tf.float32, [None,], name='alarm')
self.unlabel_x = tf.placeholder(tf.float32, [None] + input_shape, name='unlabeled_features')
self.unlabel_dev = tf.placeholder(tf.float32, [None,], name='unlabeled_dev_type')
self.is_training = tf.placeholder(dtype=tf.bool, shape=(), name='is_training')
m = input_shape[0]
with tf.variable_scope('scaling_attention'):
input_attn = tf.get_variable('input_attention', [dev_num, m, feature_num], trainable=True, initializer=tf.initializers.ones)
self.input_attention = tf.nn.leaky_relu(input_attn)
input_matrices = tf.gather(self.input_attention, tf.cast(self.input_dev, tf.int32))
input_matrices = tf.expand_dims(input_matrices, axis=-1)
input_matrices_un = tf.gather(self.input_attention, tf.cast(self.unlabel_dev, tf.int32))
input_matrices_un = tf.expand_dims(input_matrices_un, axis=-1)
with tf.variable_scope('bias_attention'):
output_attn = tf.get_variable('output_attention', [dev_num, num_classes], trainable=True,
initializer=tf.initializers.zeros)
self.output_attention = tf.nn.leaky_relu(output_attn)
output_bias = tf.gather(self.output_attention, tf.cast(self.input_dev, tf.int32))
# # apply attention matrix
scaled_input_x = tf.multiply(self.input_x, input_matrices)
scaled_unlabeled_x = tf.multiply(self.unlabel_x, input_matrices_un)
# #not applying attention matrix
# scaled_input_x = self.input_x
# scaled_unlabeled_x = self.unlabel_x
# Mean-Teacher
# Labeled part
logits = self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=self.is_training)
if regression:
self.logits = logits
else:
self.logits = logits + output_bias
# Update BN before here
post_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
# EMA
ema = tf.train.ExponentialMovingAverage(decay=ema_decay)
ema_op = ema.apply(model_vars())
ema_getter = functools.partial(getter_ema, ema)
# Unlabeled part: Consistency Loss
logits_t = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training, getter=ema_getter)
logits_teacher = tf.stop_gradient(logits_t)
logits_student = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training) # This part better use augmented `unlabeled_x`
if regression:
input_y = tf.expand_dims(self.input_y, axis=-1)
self.loss_c = tf.reduce_mean(tf.square(tf.nn.sigmoid(logits_teacher) - tf.nn.sigmoid(logits_student)))
with tf.variable_scope('error'):
# For a weighted loss, `x = logits`, `z = labels`, `q = pos_weight`.
# The loss is:
# qz * -log(sigmoid(x)) + (1 - z) * -log(1 - sigmoid(x))
# = qz * -log(1 / (1 + exp(-x))) + (1 - z) * -log(exp(-x) / (1 + exp(-x)))
# = qz * log(1 + exp(-x)) + (1 - z) * (-log(exp(-x)) + log(1 + exp(-x)))
# = qz * log(1 + exp(-x)) + (1 - z) * (x + log(1 + exp(-x))
# = (1 - z) * x + (qz + 1 - z) * log(1 + exp(-x))
# = (1 - z) * x + (1 + (q - 1) * z) * log(1 + exp(-x))
# self.loss = tf.nn.weighted_cross_entropy_with_logits(targets=input_y,logits=self.logits, pos_weight=2000)
# self.loss = tf.reduce_mean(self.loss)
# self.proba = tf.nn.sigmoid(self.logits)
self.proba = tf.nn.sigmoid(self.logits)
self.error = self.proba - input_y
self.loss = tf.reduce_mean(tf.square(self.error))
threshold = tf.constant(threshold)
condition = tf.greater_equal(self.proba, threshold)
self.prediction = tf.where(condition, tf.ones_like(self.proba), tf.zeros_like(self.proba),
name='prediction')
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, input_y), tf.float32))
else:
onehot_y = tf.cast(self.input_y, tf.int32)
self.onehot_y = tf.one_hot(onehot_y, num_classes)
with tf.variable_scope('error'):
loss_consistency = tf.reduce_mean(
(tf.nn.softmax(logits_teacher) - tf.nn.softmax(logits_student)) ** 2, -1)
self.loss_c = tf.reduce_mean(loss_consistency)
self.proba = tf.nn.sigmoid(self.logits)
self.loss = tf.reduce_mean(
# use `sparse`, no need to one-hot the `input_y`
tf.nn.softmax_cross_entropy_with_logits_v2(labels=self.onehot_y, logits=self.logits))
self.prediction = tf.nn.softmax(self.logits)
self.prediction = tf.argmax(self.prediction, 1)
self.real = tf.argmax(self.onehot_y, 1)
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, self.real), tf.float32))
tf.summary.scalar('losses/xe', self.loss)
tf.summary.scalar('losses/mt', self.loss_c)
self.best_loss = 100000
# operations
post_ops.append(ema_op)
post_ops.extend([tf.assign(v, v * (1 - wd)) for v in model_vars('logits') if 'kernel' in v.name])
train_op = tf.train.AdadeltaOptimizer(lr).minimize(self.loss + self.loss_c * self.warmup * coefficient,
colocate_gradients_with_ops=True,
global_step=self.global_step)
with tf.control_dependencies([train_op]):
self.train_op = tf.group(*post_ops)
# Tuning op: only retrain batch norm.
skip_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=True)
self.train_bn = tf.group(*[v for v in tf.get_collection(tf.GraphKeys.UPDATE_OPS)
if v not in skip_ops])
self.saver = tf.train.Saver(max_to_keep=self.patience_max)
self.writer = tf.summary.FileWriter(self.tensorboard_path)
def classifier(self, network, input, num_classes, is_training, name='logits', getter=None):
with tf.variable_scope(name, reuse=tf.AUTO_REUSE, custom_getter=getter):
net = network.network(inputs=input, num_classes=num_classes, is_training=is_training)
return net
def initialize_variables(self, **kwargs):
init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())
self.run(init_op)
def run(self, *args, **kwargs):
return self.session.run(*args, **kwargs)
def train(self, dataset):
self.training_control = utils.training_control(self.global_step, print_span=10,
evaluation_span=100,
max_step=self.max_step) # batch*evaluation_span = dataset size = one epoch
for labeled, unlabeled in dataset.training_generator(batch_size=self.batch_size, portion= 0.5):
accuracy, loss, lossc, wm, _ = self.run([self.accuracy, self.loss,
self.loss_c, self.warmup,
self.train_op],
feed_dict={self.input_x: labeled['x'],
self.input_dev: labeled['dev'],
self.input_y: labeled['y'],
self.unlabel_x: unlabeled['x'],
self.unlabel_dev: unlabeled['dev'],
self.is_training: True})
step_control = self.run(self.training_control)
if step_control['time_to_print']:
print('train_loss = ' + str(loss) +
' consis_loss= '+str(lossc) +
' train_acc= '+str(accuracy) +
' step ' + str(step_control['step']) +
' warmup' + str(wm))
if step_control['time_to_stop']:
self.save_checkpoint()
break
if step_control['time_to_evaluate']:
self.evaluate(dataset.val_set)
self.save_checkpoint()
def balance_train(self, dataset):
self.training_control = utils.training_control(self.global_step, print_span=10,
evaluation_span=100,
max_step=self.max_step) # batch*evaluation_span = dataset size = one epoch
for labeled, unlabeled in dataset.balance_training_generator(batch_size=self.batch_size, portion= 0.5):
accuracy, loss, lossc, wm, _ = self.run([self.accuracy, self.loss,
self.loss_c, self.warmup,
self.train_op],
feed_dict={self.input_x: labeled['x'],
self.input_dev: labeled['dev'],
self.input_y: labeled['y'],
self.unlabel_x: unlabeled['x'],
self.unlabel_dev: unlabeled['dev'],
self.is_training: True})
step_control = self.run(self.training_control)
if step_control['time_to_print']:
print('train_loss = ' + str(loss) +
' consis_loss= '+str(lossc) +
' train_acc= '+str(accuracy) +
' step ' + str(step_control['step']) +
' warmup' + str(wm))
if step_control['time_to_stop']:
self.save_checkpoint()
break
if step_control['time_to_evaluate']:
self.evaluate(dataset.val_set)
self.save_checkpoint()
def evaluate(self, val_data):
step, loss, accuracy = self.run([self.global_step, self.loss, self.accuracy],
feed_dict={self.input_x: val_data['x'],
self.input_dev: val_data['dev'],
self.input_y: val_data['y'],
self.is_training: False})
self.logger.info('val_loss= ' + str(loss) + ' val_acc= '+str(accuracy)+' round: ' + str(step))
def tuning(self, real_data):
_, loss, accuracy = self.run([self.train_bn, self.loss, self.accuracy],
feed_dict={self.input_x: real_data['x'],
self.input_dev: real_data['dev'],
self.input_y: real_data['y'],
self.is_training: False})
def get_prediction(self, data, is_training=False):
prediction = self.run(self.prediction, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return prediction
def get_accuracy(self, data, is_training=False):
accuracy = self.run(self.accuracy, feed_dict = {
self.input_x: data['x'],
self.input_dev: data['dev'],
self.input_y: data['y'],
self.is_training: is_training
})
return accuracy
def get_logits(self, data, is_training=False):
logits = self.run([self.logits], feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return logits
def get_proba(self, data, is_training=False):
proba = self.run(self.proba, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return proba
def get_attn_matrix(self):
scaling_attention, bias_attention = self.run([self.input_attention, self.output_attention])
return scaling_attention, bias_attention
class Mean_Teacher_model_1d_resample(Model):
def __init__(self, ckpt_path, tsboard_path, network, input_shape, num_classes, feature_num, dev_num,
batch_size, lr, max_step=100000,
wd=0.02, ema_decay=0.999, warmup_pos=0.4, coefficient=50,
regression = False, threshold=0.99, patience=30):
super().__init__(ckpt_path, tsboard_path)
self.logger = log_down('train_log')
self.batch_size = batch_size
self.patience = 0
self.patience_max = patience
self.max_step = max_step
initializer = tf.contrib.layers.variance_scaling_initializer()
wd *= lr
self.warmup = tf.clip_by_value(tf.to_float(self.global_step * batch_size) / (warmup_pos * (2469001 * 1024)), 0, 1)
with tf.variable_scope("input"):
self.input_x = tf.placeholder(tf.float32, [None] + input_shape, name='features')
self.input_dev = tf.placeholder(tf.float32, [None,], name='dev_type')
self.input_y = tf.placeholder(tf.float32, [None,], name='alarm')
self.unlabel_x = tf.placeholder(tf.float32, [None] + input_shape, name='unlabeled_features')
self.unlabel_dev = tf.placeholder(tf.float32, [None,], name='unlabeled_dev_type')
self.is_training = tf.placeholder(dtype=tf.bool, shape=(), name='is_training')
with tf.variable_scope('scaling_attention'):
input_attn = tf.get_variable('input_attention', [dev_num, feature_num], trainable=True, initializer=tf.initializers.ones)
self.input_attention = tf.nn.leaky_relu(input_attn)
input_matrices = tf.gather(self.input_attention, tf.cast(self.input_dev, tf.int32))
input_matrices = tf.expand_dims(input_matrices, axis=-1)
input_matrices_un = tf.gather(self.input_attention, tf.cast(self.unlabel_dev, tf.int32))
input_matrices_un = tf.expand_dims(input_matrices_un, axis=-1)
with tf.variable_scope('bias_attention'):
output_attn = tf.get_variable('output_attention', [dev_num, num_classes], trainable=True, initializer=tf.initializers.zeros)
self.output_attention = tf.nn.leaky_relu(output_attn)
output_bias = tf.gather(self.output_attention, tf.cast(self.input_dev, tf.int32))
# apply attention matrix
scaled_input_x = tf.multiply(self.input_x, input_matrices)
scaled_unlabeled_x = tf.multiply(self.unlabel_x, input_matrices_un)
# #not applying attention matrix
# scaled_input_x = self.input_x
# scaled_unlabeled_x = self.unlabel_x
# Mean-Teacher
# Labeled part
logits = self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=self.is_training)
if regression:
self.logits = logits
else:
self.logits = logits + output_bias
# Update BN before here
post_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
# EMA
ema = tf.train.ExponentialMovingAverage(decay=ema_decay)
ema_op = ema.apply(model_vars())
ema_getter = functools.partial(getter_ema, ema)
# Unlabeled part: Consistency Loss
logits_t = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training, getter=ema_getter)
logits_teacher = tf.stop_gradient(logits_t)
logits_student = self.classifier(network, scaled_unlabeled_x, num_classes=num_classes,
is_training=self.is_training) # This part better use augmented `unlabeled_x`
if regression:
input_y = tf.expand_dims(self.input_y, axis = -1)
self.loss_c = tf.reduce_mean(tf.square(tf.nn.sigmoid(logits_teacher) - tf.nn.sigmoid(logits_student)))
with tf.variable_scope('error'):
self.proba = tf.nn.sigmoid(self.logits)
self.error = self.proba - input_y
self.loss = tf.reduce_mean(tf.square(self.error))
threshold = tf.constant(threshold)
condition = tf.greater_equal(self.proba, threshold)
self.prediction = tf.where(condition, tf.ones_like(self.proba), tf.zeros_like(self.proba),
name='prediction')
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, input_y), tf.float32))
else:
onehot_y = tf.cast(self.input_y, tf.int32)
self.onehot_y = tf.one_hot(onehot_y, num_classes)
with tf.variable_scope('error'):
loss_consistency = tf.reduce_mean(
(tf.nn.softmax(logits_teacher) - tf.nn.softmax(logits_student)) ** 2, -1)
self.loss_c = tf.reduce_mean(loss_consistency)
self.proba = tf.nn.sigmoid(self.logits)
self.loss = tf.reduce_mean(
# use `sparse`, no need to one-hot the `input_y`
tf.nn.softmax_cross_entropy_with_logits_v2(labels=self.onehot_y, logits=self.logits))
self.prediction = tf.nn.softmax(self.logits)
self.prediction = tf.argmax(self.prediction, 1)
self.real = tf.argmax(self.onehot_y, 1)
self.accuracy = tf.reduce_mean(tf.cast(tf.equal(self.prediction, self.real), tf.float32))
tf.summary.scalar('losses/xe', self.loss)
tf.summary.scalar('losses/mt', self.loss_c)
self.best_loss = 100000
# operations
post_ops.append(ema_op)
post_ops.extend([tf.assign(v, v * (1 - wd)) for v in model_vars('logits') if 'kernel' in v.name])
train_op = tf.train.AdamOptimizer(lr).minimize(self.loss + self.loss_c * self.warmup * coefficient,
colocate_gradients_with_ops=True,
global_step=self.global_step)
with tf.control_dependencies([train_op]):
self.train_op = tf.group(*post_ops)
# Tuning op: only retrain batch norm.
skip_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
self.classifier(network, scaled_input_x, num_classes=num_classes,
is_training=True)
self.train_bn = tf.group(*[v for v in tf.get_collection(tf.GraphKeys.UPDATE_OPS)
if v not in skip_ops])
self.saver = tf.train.Saver(max_to_keep=self.patience_max)
self.writer = tf.summary.FileWriter(self.tensorboard_path)
def classifier(self, network, input, num_classes, is_training, name='logits', getter=None):
with tf.variable_scope(name, reuse=tf.AUTO_REUSE, custom_getter=getter):
net = network.network(inputs=input, num_classes=num_classes, is_training=is_training)
return net
def initialize_variables(self, **kwargs):
init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())
self.run(init_op)
def run(self, *args, **kwargs):
return self.session.run(*args, **kwargs)
def train(self, dataset):
self.training_control = utils.training_control(self.global_step, print_span=10,
evaluation_span=100,
max_step=self.max_step) # batch*evaluation_span = dataset size = one epoch
for labeled_pos, labeled_neg, unlabeled in dataset.training_generator(pos=round(self.batch_size*0.25),
neg=round(self.batch_size*0.25),
un=round(self.batch_size*0.5)):
labeled = np.concatenate([labeled_pos, labeled_neg], axis=0)
accuracy, loss, lossc, wm, _ = self.run([self.accuracy, self.loss,
self.loss_c, self.warmup,
self.train_op],
feed_dict={self.input_x: labeled['x'],
self.input_dev: labeled['dev'],
self.input_y: labeled['y'],
self.unlabel_x: unlabeled['x'],
self.unlabel_dev: unlabeled['dev'],
self.is_training: True})
step_control = self.run(self.training_control)
if step_control['time_to_print']:
print('train_loss = ' + str(loss) +
' consis_loss= '+str(lossc) +
' train_acc= '+str(accuracy) +
' step ' + str(step_control['step']) +
' warmup' + str(wm))
if step_control['time_to_stop']:
self.save_checkpoint()
break
if step_control['time_to_evaluate']:
self.evaluate(dataset.val_set)
self.save_checkpoint()
def evaluate(self, val_data):
step, loss, accuracy = self.run([self.global_step, self.loss, self.accuracy],
feed_dict={self.input_x: val_data['x'],
self.input_dev: val_data['dev'],
self.input_y: val_data['y'],
self.is_training: False})
self.logger.info('val_loss= ' + str(loss) + ' val_acc= '+str(accuracy)+' round: ' + str(step))
def tuning(self, real_data):
_, loss, accuracy = self.run([self.train_bn, self.loss, self.accuracy],
feed_dict={self.input_x: real_data['x'],
self.input_dev: real_data['dev'],
self.input_y: real_data['y'],
self.is_training: False})
def get_prediction(self, data, is_training=False):
prediction = self.run(self.prediction, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return prediction
def get_accuracy(self, data, is_training=False):
accuracy = self.run(self.accuracy, feed_dict = {
self.input_x: data['x'],
self.input_dev: data['dev'],
self.input_y: data['y'],
self.is_training: is_training
})
return accuracy
def get_logits(self, data, is_training=False):
logits = self.run([self.logits], feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return logits
def get_proba(self, data, is_training=False):
proba = self.run(self.proba, feed_dict={
self.input_x: data['x'],
self.input_dev: data['dev'],
self.is_training: is_training
})
return proba
def get_attn_matrix(self):
scaling_attention, bias_attention = self.run([self.input_attention, self.output_attention])
return scaling_attention, bias_attention
| 50.466851
| 136
| 0.562757
| 4,292
| 36,538
| 4.549161
| 0.06151
| 0.044251
| 0.024379
| 0.019155
| 0.974597
| 0.969373
| 0.966607
| 0.965429
| 0.962817
| 0.962817
| 0
| 0.011431
| 0.329629
| 36,538
| 724
| 137
| 50.466851
| 0.785703
| 0.051617
| 0
| 0.953321
| 0
| 0
| 0.03729
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066427
| false
| 0
| 0.014363
| 0.005386
| 0.123878
| 0.021544
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0a5b6aad9cad4a8d4c120d62010d54fb3f07e906
| 17,362
|
py
|
Python
|
koku/reporting/migrations/0210_ocpaws_partables.py
|
project-koku/koku
|
3464046e13dd25db69e2986e819593f97bf1ef5f
|
[
"Apache-2.0"
] | 157
|
2018-04-30T16:27:53.000Z
|
2022-03-31T08:17:21.000Z
|
koku/reporting/migrations/0210_ocpaws_partables.py
|
project-koku/koku
|
3464046e13dd25db69e2986e819593f97bf1ef5f
|
[
"Apache-2.0"
] | 3,250
|
2018-04-26T14:14:25.000Z
|
2022-03-31T23:49:15.000Z
|
koku/reporting/migrations/0210_ocpaws_partables.py
|
project-koku/koku
|
3464046e13dd25db69e2986e819593f97bf1ef5f
|
[
"Apache-2.0"
] | 65
|
2018-05-10T14:11:50.000Z
|
2022-03-18T19:22:58.000Z
|
# Generated by Django 3.1.13 on 2021-11-18 04:49
import django.db.models.deletion
from django.db import migrations
from django.db import models
from koku.database import set_partition_mode
from koku.database import unset_partition_mode
class Migration(migrations.Migration):
dependencies = [("api", "0050_exchangerates"), ("reporting", "0209_gcp_partables")]
operations = [
migrations.RunPython(code=set_partition_mode, reverse_code=unset_partition_mode),
migrations.CreateModel(
name="OCPAWSStorageSummaryP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("product_family", models.CharField(max_length=150, null=True)),
("usage_amount", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("unit", models.CharField(max_length=63, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_storage_summary_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_storage_summary_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSNetworkSummaryP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("product_code", models.CharField(max_length=50)),
("usage_amount", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("unit", models.CharField(max_length=63, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_network_summary_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_network_summary_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSDatabaseSummaryP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("product_code", models.CharField(max_length=50)),
("usage_amount", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("unit", models.CharField(max_length=63, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_database_summary_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_database_summary_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSCostSummaryP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_cost_summary_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_cost_summary_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSCostSummaryByServiceP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("product_code", models.CharField(max_length=50)),
("product_family", models.CharField(max_length=150, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_cost_summary_by_service_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_cost_summary_by_service_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSCostSummaryByRegionP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("region", models.CharField(max_length=50, null=True)),
("availability_zone", models.CharField(max_length=50, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_cost_summary_by_region_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_cost_summary_by_region_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSCostSummaryByAccountP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_cost_summary_by_account_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_cost_summary_by_account_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.CreateModel(
name="OCPAWSComputeSummaryP",
fields=[
("id", models.UUIDField(primary_key=True, serialize=False)),
("usage_start", models.DateField()),
("usage_end", models.DateField()),
("cluster_id", models.CharField(max_length=50, null=True)),
("cluster_alias", models.CharField(max_length=256, null=True)),
("usage_account_id", models.CharField(max_length=50)),
("instance_type", models.CharField(max_length=50, null=True)),
("resource_id", models.CharField(max_length=253, null=True)),
("usage_amount", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("unit", models.CharField(max_length=63, null=True)),
("unblended_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("markup_cost", models.DecimalField(decimal_places=15, max_digits=33, null=True)),
("currency_code", models.CharField(max_length=10)),
(
"account_alias",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.DO_NOTHING, to="reporting.awsaccountalias"
),
),
(
"source_uuid",
models.ForeignKey(
db_column="source_uuid",
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="api.provider",
),
),
],
options={"db_table": "reporting_ocpaws_compute_summary_p"},
),
migrations.RunSQL(
sql="ALTER TABLE reporting_ocpaws_compute_summary_p ALTER COLUMN id SET DEFAULT uuid_generate_v4()",
reverse_sql="select 1",
),
migrations.AddIndex(
model_name="ocpawsstoragesummaryp", index=models.Index(fields=["usage_start"], name="ocpawsstorsumm_usst")
),
migrations.AddIndex(
model_name="ocpawsstoragesummaryp",
index=models.Index(fields=["product_family"], name="ocpawsstorsumm_product_fam"),
),
migrations.AddIndex(
model_name="ocpawsnetworksummaryp", index=models.Index(fields=["usage_start"], name="ocpawsnetsumm_usst")
),
migrations.AddIndex(
model_name="ocpawsnetworksummaryp",
index=models.Index(fields=["product_code"], name="ocpawsnetsumm_product_cd"),
),
migrations.AddIndex(
model_name="ocpawsdatabasesummaryp", index=models.Index(fields=["usage_start"], name="ocpawsdbsumm_usst")
),
migrations.AddIndex(
model_name="ocpawsdatabasesummaryp",
index=models.Index(fields=["product_code"], name="ocpawsdbsumm_product_cd"),
),
migrations.AddIndex(
model_name="ocpawscostsummaryp", index=models.Index(fields=["usage_start"], name="ocpawscostsumm_usst")
),
migrations.AddIndex(
model_name="ocpawscostsummarybyservicep",
index=models.Index(fields=["usage_start"], name="ocpawscostsumm_svc_usst"),
),
migrations.AddIndex(
model_name="ocpawscostsummarybyservicep",
index=models.Index(fields=["product_code"], name="ocpawscostsumm_svc_prod_cd"),
),
migrations.AddIndex(
model_name="ocpawscostsummarybyregionp",
index=models.Index(fields=["usage_start"], name="ocpawscostsumm_reg_usst"),
),
migrations.AddIndex(
model_name="ocpawscostsummarybyregionp",
index=models.Index(fields=["region"], name="ocpawscostsumm_reg_region"),
),
migrations.AddIndex(
model_name="ocpawscostsummarybyregionp",
index=models.Index(fields=["availability_zone"], name="ocpawscostsumm_reg_zone"),
),
migrations.AddIndex(
model_name="ocpawscostsummarybyaccountp",
index=models.Index(fields=["usage_start"], name="ocpawscostsumm_acct_usst"),
),
migrations.AddIndex(
model_name="ocpawscomputesummaryp", index=models.Index(fields=["usage_start"], name="ocpawscompsumm_usst")
),
migrations.AddIndex(
model_name="ocpawscomputesummaryp",
index=models.Index(fields=["instance_type"], name="ocpawscompsumm_insttyp"),
),
migrations.RunPython(code=unset_partition_mode, reverse_code=set_partition_mode),
]
| 48.907042
| 120
| 0.549418
| 1,596
| 17,362
| 5.722431
| 0.085213
| 0.053433
| 0.086718
| 0.115625
| 0.889631
| 0.884047
| 0.872769
| 0.851418
| 0.829957
| 0.737436
| 0
| 0.018915
| 0.333141
| 17,362
| 354
| 121
| 49.045198
| 0.769908
| 0.002649
| 0
| 0.787356
| 1
| 0
| 0.21705
| 0.086289
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014368
| 0
| 0.022989
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0a629f9b47fd0e376f5f12ee6b5511834a8b28eb
| 11,964
|
py
|
Python
|
tests/test_filters.py
|
PrincetonUniversity/ASPIRE-Python
|
1bff8d3884183203bd77695a76bccb1efc909fd3
|
[
"MIT"
] | 7
|
2018-11-07T16:45:35.000Z
|
2020-01-10T16:54:26.000Z
|
tests/test_filters.py
|
PrincetonUniversity/ASPIRE-Python
|
1bff8d3884183203bd77695a76bccb1efc909fd3
|
[
"MIT"
] | 1
|
2019-04-05T18:41:39.000Z
|
2019-04-05T18:41:39.000Z
|
tests/test_filters.py
|
PrincetonUniversity/ASPIRE-Python
|
1bff8d3884183203bd77695a76bccb1efc909fd3
|
[
"MIT"
] | 2
|
2019-06-04T17:01:53.000Z
|
2019-07-08T19:01:40.000Z
|
import os.path
from unittest import TestCase
import numpy as np
from aspire.operators import (
CTFFilter,
FunctionFilter,
IdentityFilter,
PowerFilter,
RadialCTFFilter,
ScalarFilter,
ScaledFilter,
ZeroFilter,
)
from aspire.utils import utest_tolerance
DATA_DIR = os.path.join(os.path.dirname(__file__), "saved_test_data")
class SimTestCase(TestCase):
def setUp(self):
self.dtype = np.float32
# A 2 x 256 ndarray of spatial frequencies
self.omega = np.load(os.path.join(DATA_DIR, "omega_2_256.npy"))
def tearDown(self):
pass
def testFunctionFilter(self):
filt = FunctionFilter(lambda x, y: np.exp(-(x**2 + y**2) / 2))
result = filt.evaluate(self.omega)
self.assertEqual(result.shape, (256,))
self.assertTrue(
np.allclose(
result[:5],
[
5.17231862e-05,
1.64432545e-04,
4.48039823e-04,
1.04633750e-03,
2.09436945e-03,
],
)
)
def testZeroFilter(self):
result = ZeroFilter().evaluate(self.omega)
# For all filters, we should get a 1d ndarray back on evaluate
self.assertEqual(result.shape, (256,))
self.assertTrue(np.allclose(result, np.zeros(256)))
def testIdentityFilter(self):
result = IdentityFilter().evaluate(self.omega)
# For all filters, we should get a 1d ndarray back on evaluate
self.assertEqual(result.shape, (256,))
self.assertTrue(np.allclose(result, np.ones(256)))
def testScalarFilter(self):
result = ScalarFilter(value=1.5).evaluate(self.omega)
self.assertEqual(result.shape, (256,))
self.assertTrue(np.allclose(result, np.repeat(1.5, 256)))
def testPowerFilter(self):
filt = PowerFilter(
filter=FunctionFilter(lambda x, y: np.exp(-(x**2 + y**2) / 2)),
power=0.5,
)
result = filt.evaluate(self.omega)
self.assertEqual(result.shape, (256,))
self.assertTrue(
np.allclose(
result[:5],
np.array(
[
5.17231862e-05,
1.64432545e-04,
4.48039823e-04,
1.04633750e-03,
2.09436945e-03,
]
)
** 0.5,
)
)
def testCTFFilter(self):
filter = CTFFilter(defocus_u=1.5e4, defocus_v=1.5e4)
result = filter.evaluate(self.omega)
self.assertEqual(result.shape, (256,))
def testScaledFilter(self):
filt1 = CTFFilter(defocus_u=1.5e4, defocus_v=1.5e4)
scale_value = 2.5
result1 = filt1.evaluate(self.omega)
# ScaledFilter scales the pixel size which cancels out
# a corresponding scaling in omega
filt2 = ScaledFilter(filt1, scale_value)
result2 = filt2.evaluate(self.omega * scale_value)
self.assertTrue(np.allclose(result1, result2, atol=utest_tolerance(self.dtype)))
def testCTFScale(self):
filt = CTFFilter(defocus_u=1.5e4, defocus_v=1.5e4)
result1 = filt.evaluate(self.omega)
scale_value = 2.5
filt = filt.scale(scale_value)
# scaling a CTFFilter scales the pixel size which cancels out
# a corresponding scaling in omega
result2 = filt.evaluate(self.omega * scale_value)
self.assertTrue(np.allclose(result1, result2, atol=utest_tolerance(self.dtype)))
def testRadialCTFFilter(self):
filter = RadialCTFFilter(defocus=2.5e4)
result = filter.evaluate(self.omega)
self.assertEqual(result.shape, (256,))
def testRadialCTFFilterGrid(self):
filter = RadialCTFFilter(defocus=2.5e4)
result = filter.evaluate_grid(8, dtype=self.dtype)
self.assertEqual(result.shape, (8, 8))
self.assertTrue(
np.allclose(
result,
np.array(
[
[
0.461755701877834,
-0.995184514498978,
0.063120922443392,
0.833250206225063,
0.961464660252150,
0.833250206225063,
0.063120922443392,
-0.995184514498978,
],
[
-0.995184514498978,
0.626977423649552,
0.799934516166400,
0.004814348317439,
-0.298096205735759,
0.004814348317439,
0.799934516166400,
0.626977423649552,
],
[
0.063120922443392,
0.799934516166400,
-0.573061561512667,
-0.999286510416273,
-0.963805291282899,
-0.999286510416273,
-0.573061561512667,
0.799934516166400,
],
[
0.833250206225063,
0.004814348317439,
-0.999286510416273,
-0.633095739808868,
-0.368890743119366,
-0.633095739808868,
-0.999286510416273,
0.004814348317439,
],
[
0.961464660252150,
-0.298096205735759,
-0.963805291282899,
-0.368890743119366,
-0.070000000000000,
-0.368890743119366,
-0.963805291282899,
-0.298096205735759,
],
[
0.833250206225063,
0.004814348317439,
-0.999286510416273,
-0.633095739808868,
-0.368890743119366,
-0.633095739808868,
-0.999286510416273,
0.004814348317439,
],
[
0.063120922443392,
0.799934516166400,
-0.573061561512667,
-0.999286510416273,
-0.963805291282899,
-0.999286510416273,
-0.573061561512667,
0.799934516166400,
],
[
-0.995184514498978,
0.626977423649552,
0.799934516166400,
0.004814348317439,
-0.298096205735759,
0.004814348317439,
0.799934516166400,
0.626977423649552,
],
]
),
atol=utest_tolerance(self.dtype),
)
)
def testRadialCTFFilterMultiplierGrid(self):
filter = RadialCTFFilter(defocus=2.5e4) * RadialCTFFilter(defocus=2.5e4)
result = filter.evaluate_grid(8, dtype=self.dtype)
self.assertEqual(result.shape, (8, 8))
self.assertTrue(
np.allclose(
result,
np.array(
[
[
0.461755701877834,
-0.995184514498978,
0.063120922443392,
0.833250206225063,
0.961464660252150,
0.833250206225063,
0.063120922443392,
-0.995184514498978,
],
[
-0.995184514498978,
0.626977423649552,
0.799934516166400,
0.004814348317439,
-0.298096205735759,
0.004814348317439,
0.799934516166400,
0.626977423649552,
],
[
0.063120922443392,
0.799934516166400,
-0.573061561512667,
-0.999286510416273,
-0.963805291282899,
-0.999286510416273,
-0.573061561512667,
0.799934516166400,
],
[
0.833250206225063,
0.004814348317439,
-0.999286510416273,
-0.633095739808868,
-0.368890743119366,
-0.633095739808868,
-0.999286510416273,
0.004814348317439,
],
[
0.961464660252150,
-0.298096205735759,
-0.963805291282899,
-0.368890743119366,
-0.070000000000000,
-0.368890743119366,
-0.963805291282899,
-0.298096205735759,
],
[
0.833250206225063,
0.004814348317439,
-0.999286510416273,
-0.633095739808868,
-0.368890743119366,
-0.633095739808868,
-0.999286510416273,
0.004814348317439,
],
[
0.063120922443392,
0.799934516166400,
-0.573061561512667,
-0.999286510416273,
-0.963805291282899,
-0.999286510416273,
-0.573061561512667,
0.799934516166400,
],
[
-0.995184514498978,
0.626977423649552,
0.799934516166400,
0.004814348317439,
-0.298096205735759,
0.004814348317439,
0.799934516166400,
0.626977423649552,
],
]
)
** 2,
atol=utest_tolerance(self.dtype),
)
)
def testDualFilter(self):
ctf_filter = CTFFilter(defocus_u=1.5e4, defocus_v=1.5e4)
result = ctf_filter.evaluate(-self.omega)
dual_filter = ctf_filter.dual()
dual_result = dual_filter.evaluate(self.omega)
self.assertTrue(np.allclose(result, dual_result))
| 37.860759
| 88
| 0.408475
| 796
| 11,964
| 6.091709
| 0.173367
| 0.052794
| 0.056094
| 0.049495
| 0.785729
| 0.774799
| 0.747783
| 0.747783
| 0.747783
| 0.725304
| 0
| 0.393363
| 0.516382
| 11,964
| 315
| 89
| 37.980952
| 0.444694
| 0.028502
| 0
| 0.670139
| 0
| 0
| 0.002583
| 0
| 0
| 0
| 0
| 0
| 0.065972
| 1
| 0.048611
| false
| 0.003472
| 0.017361
| 0
| 0.069444
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0a6f273472c42273744ea02d10c26b06df37d69f
| 68,606
|
py
|
Python
|
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/SystemIPC/cmp_lu.ncont/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/SystemIPC/cmp_lu.ncont/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/SystemIPC/cmp_lu.ncont/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.124619,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.30057,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.665215,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.811948,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.406,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.806381,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 3.02433,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.70059,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 7.4811,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.125673,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0294337,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.259814,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.217681,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.385487,
'Execution Unit/Register Files/Runtime Dynamic': 0.247114,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.661958,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.92845,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 5.90584,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00431722,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00431722,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00373113,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00142843,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.003127,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0154926,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0424349,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.209262,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.154316,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.710748,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.13225,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.264007,
'L2/Runtime Dynamic': 0.0539234,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 7.71046,
'Load Store Unit/Data Cache/Runtime Dynamic': 3.11775,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.209428,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.209428,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 8.70345,
'Load Store Unit/Runtime Dynamic': 4.36,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.516414,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.03283,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.183277,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.187241,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0253017,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.875344,
'Memory Management Unit/Runtime Dynamic': 0.212543,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 30.8543,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.438446,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0467945,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.419444,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.904684,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 12.5692,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0393331,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.233583,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.210691,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.221723,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.35763,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.18052,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.759873,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.221284,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.62815,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0398041,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00930004,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0820465,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0687795,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.121851,
'Execution Unit/Register Files/Runtime Dynamic': 0.0780796,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.182685,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.534142,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.01105,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00149237,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00149237,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00132665,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000528227,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000988023,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00529942,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0133512,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0661195,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.20577,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0473511,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.224572,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 6.6284,
'Instruction Fetch Unit/Runtime Dynamic': 0.356693,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0854036,
'L2/Runtime Dynamic': 0.0186248,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.28524,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.988901,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0662617,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0662616,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.59815,
'Load Store Unit/Runtime Dynamic': 1.38194,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.16339,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.32678,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0579877,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0592699,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.261499,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00776373,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.517221,
'Memory Management Unit/Runtime Dynamic': 0.0670336,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.0468,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.104706,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0112778,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.112267,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.228251,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.0636,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0260857,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.223177,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.139144,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.15024,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.242331,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.122321,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.514892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.150498,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.36348,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0262874,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00630174,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0554057,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0466052,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0816931,
'Execution Unit/Register Files/Runtime Dynamic': 0.052907,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.123247,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.359889,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.55624,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00102105,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00102105,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000906716,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000360512,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000669488,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0036183,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00916862,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0448028,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.84984,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0365094,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.15217,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.20667,
'Instruction Fetch Unit/Runtime Dynamic': 0.24627,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0565014,
'L2/Runtime Dynamic': 0.0126034,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.62692,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.671465,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0449633,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0449634,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.83925,
'Load Store Unit/Runtime Dynamic': 0.938173,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.110872,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.221744,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0393488,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0401973,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.177193,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00598583,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.400896,
'Memory Management Unit/Runtime Dynamic': 0.0461831,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 16.4563,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0691504,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00761996,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0761073,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.152878,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.95235,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0213916,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.21949,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.114165,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123175,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.198677,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100286,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.422138,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.123373,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.26614,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0215683,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00516652,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.045424,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0382096,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0669923,
'Execution Unit/Register Files/Runtime Dynamic': 0.0433761,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.101045,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.295135,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.38552,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000836617,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000836617,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000742957,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000295413,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000548884,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00296508,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00751173,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0367319,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.33647,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0297895,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.124758,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 4.66837,
'Instruction Fetch Unit/Runtime Dynamic': 0.201756,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0461345,
'L2/Runtime Dynamic': 0.0100438,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.37672,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.550107,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0368687,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0368687,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.55082,
'Load Store Unit/Runtime Dynamic': 0.768799,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.090912,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.181824,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.032265,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0329574,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.145273,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00488501,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.356807,
'Memory Management Unit/Runtime Dynamic': 0.0378424,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 15.4777,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0567361,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0062478,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0623969,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.125381,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.52934,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 1.456706483031769,
'Runtime Dynamic': 1.456706483031769,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.139242,
'Runtime Dynamic': 0.0763125,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 81.9744,
'Peak Power': 115.087,
'Runtime Dynamic': 22.1909,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 81.8351,
'Total Cores/Runtime Dynamic': 22.1145,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.139242,
'Total L3s/Runtime Dynamic': 0.0763125,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
| 75.061269
| 124
| 0.682069
| 8,082
| 68,606
| 5.783964
| 0.067929
| 0.123561
| 0.112951
| 0.093441
| 0.939032
| 0.929855
| 0.917105
| 0.886065
| 0.861464
| 0.842254
| 0
| 0.131899
| 0.224339
| 68,606
| 914
| 125
| 75.061269
| 0.746538
| 0
| 0
| 0.642232
| 0
| 0
| 0.65744
| 0.0481
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6a57a2a2018a13977c8dc7022a4a862cbaea977b
| 2,411
|
py
|
Python
|
ve/unit/test_attr_enum.py
|
aneels3/pyvsc
|
692fa2baa9cc0251411b3a8ace2854b7e65c288a
|
[
"Apache-2.0"
] | null | null | null |
ve/unit/test_attr_enum.py
|
aneels3/pyvsc
|
692fa2baa9cc0251411b3a8ace2854b7e65c288a
|
[
"Apache-2.0"
] | null | null | null |
ve/unit/test_attr_enum.py
|
aneels3/pyvsc
|
692fa2baa9cc0251411b3a8ace2854b7e65c288a
|
[
"Apache-2.0"
] | null | null | null |
'''
Created on Jun 24, 2020
@author: ballance
'''
from enum import Enum, auto, IntEnum
import vsc
from vsc_test_case import VscTestCase
class TestAttrEnum(VscTestCase):
def test_rand_plain_enum(self):
class my_e(Enum):
A = auto()
B = auto()
@vsc.randobj
class my_s(object):
def __init__(self):
self.a = vsc.rand_enum_t(my_e)
self.b = vsc.enum_t(my_e)
inst = my_s()
for i in range(100):
inst.randomize()
def test_rand_plain_enum_hist(self):
class my_e(Enum):
A = auto()
B = auto()
@vsc.randobj
class my_s(object):
def __init__(self):
self.a = vsc.rand_enum_t(my_e)
self.b = vsc.enum_t(my_e)
inst = my_s()
for i in range(100):
inst.randomize()
def test_rand_int_enum(self):
class my_e(IntEnum):
A = auto()
B = auto()
@vsc.randobj
class my_s(object):
def __init__(self):
self.a = vsc.rand_enum_t(my_e)
self.b = vsc.enum_t(my_e)
self.c = vsc.rand_uint8_t()
a_hist = [0]*2
inst = my_s()
for i in range(100):
if inst.a == my_e.A:
a_hist[0] += 1
else:
a_hist[1] += 1
inst.randomize()
print("hist: " + str(a_hist))
delta = abs(a_hist[0] - a_hist[1])
self.assertLess(delta, 25)
def test_rand_int_enum_hist(self):
class my_e(IntEnum):
A = auto()
B = auto()
@vsc.randobj
class my_s(object):
def __init__(self):
self.a = vsc.rand_enum_t(my_e)
self.b = vsc.enum_t(my_e)
self.c = vsc.rand_uint8_t()
a_hist = [0]*2
inst = my_s()
for i in range(100):
inst.randomize()
if inst.a == my_e.A:
a_hist[0] += 1
else:
a_hist[1] += 1
print("a_hist: " + str(a_hist))
delta = abs(a_hist[0] - a_hist[1])
self.assertLess(delta, 25)
| 22.53271
| 46
| 0.436333
| 303
| 2,411
| 3.19802
| 0.174917
| 0.043344
| 0.057792
| 0.066047
| 0.841073
| 0.793602
| 0.77709
| 0.77709
| 0.77709
| 0.77709
| 0
| 0.030581
| 0.457487
| 2,411
| 107
| 47
| 22.53271
| 0.710245
| 0.01742
| 0
| 0.857143
| 0
| 0
| 0.005927
| 0
| 0
| 0
| 0
| 0
| 0.028571
| 1
| 0.114286
| false
| 0
| 0.042857
| 0
| 0.285714
| 0.028571
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6a8da75a9301c2dc28e019085fcbd4e7256fe883
| 125
|
py
|
Python
|
contents/tts/content/TensorflowTTS/tensorflow_tts/losses/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 2
|
2020-06-01T07:39:25.000Z
|
2021-11-08T09:31:33.000Z
|
contents/tts/content/TensorflowTTS/tensorflow_tts/losses/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 1
|
2021-02-26T04:10:19.000Z
|
2021-02-26T04:10:19.000Z
|
contents/tts/content/TensorflowTTS/tensorflow_tts/losses/__init__.py
|
PIN-devel/inside-kids
|
554e4a0a5654c9a0f5237b904bb2ca6db88a55cb
|
[
"MIT"
] | 4
|
2021-04-14T03:06:58.000Z
|
2022-03-07T05:45:01.000Z
|
from tensorflow_tts.losses.stft import TFMultiResolutionSTFT
from tensorflow_tts.losses.spectrogram import TFMelSpectrogram
| 31.25
| 62
| 0.896
| 14
| 125
| 7.857143
| 0.642857
| 0.254545
| 0.309091
| 0.418182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072
| 125
| 3
| 63
| 41.666667
| 0.948276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
6a98d5acab0ce7b3e86d8a51d49d7218b08cf5a5
| 27,256
|
py
|
Python
|
pynetdicom/tests/encoded_pdu_items.py
|
jogerh/pynetdicom
|
3ca25f67c32d7cc0d1fe6afe3f3ef333a37bfe72
|
[
"MIT"
] | null | null | null |
pynetdicom/tests/encoded_pdu_items.py
|
jogerh/pynetdicom
|
3ca25f67c32d7cc0d1fe6afe3f3ef333a37bfe72
|
[
"MIT"
] | null | null | null |
pynetdicom/tests/encoded_pdu_items.py
|
jogerh/pynetdicom
|
3ca25f67c32d7cc0d1fe6afe3f3ef333a37bfe72
|
[
"MIT"
] | 1
|
2021-08-09T03:47:41.000Z
|
2021-08-09T03:47:41.000Z
|
"""Encoding PDUs for use in testing."""
############################# A-ASSOCIATE-RQ PDU #############################
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
a_associate_rq = (
b"\x01\x00\x00\x00\x00\xd1\x00\x01\x00\x00\x41\x4e\x59\x2d"
b"\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43"
b"\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34"
b"\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e"
b"\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31"
b"\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31"
b"\x2e\x31\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e"
b"\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x3e\x51"
b"\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32"
b"\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30"
b"\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e"
b"\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f"
b"\x4d\x5f\x30\x39\x30"
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# User Identity
# Type: 1
# Response requested: 1
# Primary field: pynetdicom
# Secondary field: (none)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
a_associate_rq_user_async = (
b'\x01\x00\x00\x00\x00\xed\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31'
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32\x50\x00\x00\x5a\x51\x00\x00\x04\x00\x00\x3f'
b'\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31'
b'\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e'
b'\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49'
b'\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01\x01\x00\x0a\x70'
b'\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53\x00\x00\x04\x00'
b'\x05\x00\x05'
)
# Called AET: ANY-SCP
# Calling AET: GETSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# SCP/SCU Role Selection
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# SCU Role: 0
# SCP Role: 1
a_associate_rq_role = (
b'\x01\x00\x00\x00\x00\xfc\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x47\x45\x54\x53\x43\x55'
b'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x38\x01\x00\x00\x00\x30\x00\x00\x19\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31'
b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x50'
b'\x00\x00\x5f\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31'
b'\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30'
b'\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55'
b'\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39'
b'\x30\x54\x00\x00\x1d\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31'
b'\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32'
b'\x00\x01'
)
# Called AET: ANY-SCP
# Calling AET: STORESCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# Transfer Syntax: 1.2.840.10008.1.2.2 Explicit VR Big Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
# User Identity
# Type: w
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: p4ssw0rd
a_associate_rq_user_id_user_pass = (
b'\x01\x00\x00\x00\x01\x1f\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x53\x54\x4f\x52\x45\x53'
b'\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x64\x01\x00\xff\x00\x30\x00\x00\x19\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31'
b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x40'
b'\x00\x00\x13\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38'
b'\x2e\x31\x2e\x32\x2e\x32\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34'
b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x56\x51'
b'\x00\x00\x04\x00\x00\x40\x00\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32'
b'\x37\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30'
b'\x2e\x33\x2e\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f'
b'\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30\x58\x00\x00\x18\x02\x00\x00'
b'\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x08\x70\x34\x73'
b'\x73\x77\x30\x72\x64'
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Item:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Presentation Context Item:
# Presentation Context ID: 3
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Presentation Context Item:
# Presentation Context ID: 5
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# User Identity
# Type: 1
# Response requested: 1
# Primary field: pynetdicom
# Secondary field: (none)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
# SOP Class Extended Negotiation Item
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
# SOP Class Extended Negotiation Item
# SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
a_associate_rq_user_id_ext_neg = (
b'\x01\x00\x00\x00\x01\xab\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31'
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32\x20\x00\x00\x36\x03\x00\x00\x00\x30\x00\x00'
b'\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35'
b'\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x11\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x20'
b'\x00\x00\x36\x05\x00\x00\x00\x30\x00\x00\x19\x31\x2e\x32\x2e\x38'
b'\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31'
b'\x2e\x31\x2e\x34\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e'
b'\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\xa4\x51\x00\x00'
b'\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36'
b'\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33'
b'\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e'
b'\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01'
b'\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53'
b'\x00\x00\x04\x00\x05\x00\x05\x56\x00\x00\x21\x00\x19\x31\x2e\x32'
b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34'
b'\x2e\x31\x2e\x31\x2e\x32\x02\x00\x03\x00\x01\x00\x56\x00\x00\x21'
b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x02\x00\x03\x00\x01'
b'\x00'
)
# Needs to be updated - no presentation context items?
a_associate_rq_com_ext_neg = (
b'\x02\x00\x00\x00\x01\x49\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
b'\x21\x00\x00\x19\x03\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x21\x00\x00'
b'\x19\x05\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30'
b'\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x91\x51\x00'
b'\x00\x04\x00\x00\x40\x00\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32'
b'\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e'
b'\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59'
b'\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x57\x00\x00\x4f'
b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00\x11\x31\x2e\x32'
b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34\x2e\x32\x00\x1f'
b'\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38\x2e\x32\x32'
)
############################# A-ASSOCIATE-AC PDU #############################
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
a_associate_ac = (
b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00\x41\x4e\x59\x2d'
b'\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43'
b'\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34'
b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e'
b'\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31'
b'\x2e\x32\x50\x00\x00\x3a\x51\x00\x00\x04\x00\x00\x40\x00'
b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37\x36\x2e\x30\x2e'
b'\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30\x2e\x33\x2e'
b'\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f\x44'
b'\x43\x4d\x54\x4b\x5f\x33\x36\x30'
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
# User Identity AC
# Server response: b'Accepted'
a_associate_ac_user = (
b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00'
b'\x41\x4e\x59\x2d\x53\x43\x50\x20\x20\x20'
b'\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f'
b'\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20'
b'\x20\x20\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31\x21'
b'\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31'
b'\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00'
b'\x00\x48\x51\x00\x00\x04\x00\x00\x40\x00'
b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37'
b'\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31'
b'\x30\x2e\x33\x2e\x30\x2e\x33\x2e\x36\x2e'
b'\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53'
b'\x5f\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30'
b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65'
b'\x70\x74\x65\x64'
)
# Issue 342
# Called AET: ANY-SCP
# Calling AET: PYNETDICOM
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: Verification SOP Class
# SCP/SCU Role: Default
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# Presentation Context ID: 3
# Abstract Syntax: Basic Grayscale Print Management Meta SOP Class
# SCP/SCU Role: Default
# Result: Abstract Syntax Not Supported
# Transfer Syntax: None
# User Information
# Max Length Received: 28672
# Implementation Class UID: 2.16.840.1
# Implementation Version Name: MergeCOM3_390IB2
# Extended Negotiation
# SOP Extended: None
# Async Ops: None
# User ID: None
a_associate_ac_zero_ts = (
b'\x02\x00\x00\x00\x00\xb6\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44'
b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x1b\x01\x00\x00\x00\x40\x00\x00\x13\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
b'\x2e\x31\x21\x00\x00\x08\x03\x00\x03\x00\x40\x00\x00\x00\x50\x00'
b'\x00\x2a\x51\x00\x00\x04\x00\x00\x70\x00\x52\x00\x00\x0a\x32\x2e'
b'\x31\x36\x2e\x38\x34\x30\x2e\x31\x55\x00\x00\x10\x4d\x65\x72\x67'
b'\x65\x43\x4f\x4d\x33\x5f\x33\x39\x30\x49\x42\x32'
)
# Issue 361
# Called AET: ANY-SCP
# Calling AET: PYNETDICOM
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: Verification SOP Class
# SCP/SCU Role: Default
# Result: Reject
# Transfer Syntax: (no Transfer Syntax Sub-Item)
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.1.4.0
# Implementation Version Name: PYNETDICOM_140
# Extended Negotiation
# SOP Extended: None
# Async Ops: None
# User ID: None
a_associate_ac_no_ts = (
b'\x02\x00\x00\x00\x00\xa7\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44'
b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x04\x01\x00\x03\x00'
b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20'
b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30'
b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x31\x2e\x34\x2e\x30'
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x31'
b'\x34\x30'
)
############################# A-ASSOCIATE-RJ PDU #############################
# Result: Rejected (Permanent)
# Source: DUL service-user
# Reason: No reason given
a_associate_rj = b"\x03\x00\x00\x00\x00\x04\x00\x01\x01\x01"
############################## A-RELEASE-RJ PDU ##############################
a_release_rq = b"\x05\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################## A-RELEASE-RP PDU ##############################
a_release_rp = b"\x06\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################### A-ABORT-RQ PDU ###############################
# Source: DUL service-user
# Reason: No reason given
a_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################## A-P-ABORT-RQ PDU ##############################
# Source: DUL service-provider`
# Reason: Unrecognised PDU parameter
a_p_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x02\x04"
################################ P-DATA-TF PDU ###############################
# Contains a C-ECHO message
# Context ID: 1
# Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00
# \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38
# \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00
# \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01
# \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00
# P-DATA
# PDU type: 04
# Reserved: 00
# PDU Length: 00 00 00 54 (84)
# PDU Items:
# Item length: 00 00 00 50 (80)
# Context ID: 01
# PDV:
# 03 - Command information, last fragment
# 00 00 00 00 | 04 00 00 00 | 42 00 - Command Group Length (66)
# 00 00 02 00 | 12 00 00 00 | 31 2e ... 31 00- Affected SOP Class UID
# 00 00 00 01 | 02 00 00 00 | 30 80 - Command Field (32816)
# 00 00 20 01 | 02 00 00 00 | - MessageIDBeingRespondedTo (1)
# 00 00 00 08 | | - Command Data Set Type (257)
# 00 00 00 09 | - Status (0)
p_data_tf = (
b"\x04\x00\x00\x00\x00\x54\x00\x00\x00\x50\x01\x03\x00\x00\x00"
b"\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00\x12\x00"
b"\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38"
b"\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80"
b"\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02"
b"\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00"
)
# C-ECHO RQ
p_data_tf_rq = (
b"\x04\x00\x00\x00\x00\x4a" # P-DATA
b"\x00\x00\x00\x46\x01" # PDV Item
b"\x03"
b"\x00\x00\x00\x00\x04\x00\x00\x00\x3a\x00" # Command Group Length
b"\x00\x00\x00\x00\x02\x00\x12\x00\x00\x00" # Affected SOP Class UID
b"\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x00"
b"\x00\x00\x00\x01\x02\x00\x00\x00\x30\x00" # Command Field
b"\x00\x00\x10\x01\x02\x00\x00\x00\x01\x00" # Message ID
b"\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01" # Command Data Set Type
)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
asynchronous_window_ops = b'\x53\x00\x00\x04\x00\x05\x00\x05'
############################## User Identity Sub Item ########################
# -RQ
# Type: 1
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: (none)
user_identity_rq_user_nopw = (
b'\x58\x00\x00\x10\x01\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63'
b'\x6f\x6d\x00\x00'
)
# -RQ
# Type: 1
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: p4ssw0rd
user_identity_rq_user_pass = (
b'\x58\x00\x00\x18\x02\x00\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63'
b'\x6f\x6d\x00\x08\x70\x34\x73\x73\x77\x30\x72\x64'
)
# -AC
# Server response: b'Accepted'
user_identity_ac = (
b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65\x70\x74\x65\x64'
)
########################### Application Context Item #########################
# Application Context Name: 1.2.840.10008.3.1.1.1
application_context = (
b"\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31"
b"\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31"
)
########################## Presentation Context Items #######################
# -RQ
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
presentation_context_rq = (
b'\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x40\x00\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31'
b'\x2e\x32'
)
# -AC
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
presentation_context_ac = (
b'\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
)
############################ Abstract Syntax Sub Item ########################
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
abstract_syntax = (
b'\x30\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x31'
)
############################ Transfer Syntax Sub Item ########################
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
transfer_syntax = (
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32'
)
######################## Presentation Data Value Sub Item ####################
presentation_data = (
b'\x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02'
b'\x00\x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30'
b'\x30\x38\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30'
b'\x80\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02'
b'\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00'
)
# Context ID: 1
# Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00
# \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38
# \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00
# \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01
# \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00
presentation_data_value = b'\x00\x00\x00\x50\x01' + presentation_data
######################## Maximum Length Received Sub Item ####################
# Max Length Received: 16382
maximum_length_received = b'\x51\x00\x00\x04\x00\x00\x3f\xfe'
######################## Implementaion Class UID Sub Item ####################
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
implementation_class_uid = (
b'\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e'
b'\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30'
b'\x2e\x39\x2e\x30'
)
##################### Implementation Version Name Sub Item ###################
# Implementation Version Name: PYNETDICOM_090
implementation_version_name = (
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f'
b'\x30\x39\x30'
)
########################### Role Selection Sub Item ##########################
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# SCU Role: 0
# SCP Role: 1
role_selection = (
b'\x54\x00\x00\x1e'
b'\x00\x1a'
b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e'
b'\x34\x2e\x31\x2e\x31\x2e\x32\x31'
b'\x00\x01'
)
role_selection_odd = (
b'\x54\x00\x00\x1d'
b'\x00\x19'
b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e'
b'\x34\x2e\x31\x2e\x31\x2e\x32'
b'\x00\x01'
)
############################ User Information Item ###########################
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
user_information = (
b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20'
b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30'
b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30'
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30'
b'\x39\x30'
)
######################## Extended Negotiation Sub Item #######################
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
extended_negotiation = (
b'\x56\x00\x00\x21\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x02'
b'\x00\x03\x00\x01\x00'
)
#################### Common Extended Negotiation Sub Item ####################
# SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Service Class: 1.2.840.10008.4.2 Storage Service Class
# Related general SOP Class ID(s):
# 1.2.840.10008.5.1.4.1.1.88.22 Enhanced SR Storage
common_extended_negotiation = (
b'\x57\x00\x00\x4f\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34'
b'\x2e\x32\x00\x1f\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38'
b'\x2e\x32\x32'
)
| 45.200663
| 79
| 0.65692
| 5,351
| 27,256
| 3.326855
| 0.054195
| 0.224469
| 0.199191
| 0.184024
| 0.865914
| 0.839175
| 0.818784
| 0.802157
| 0.791877
| 0.765757
| 0
| 0.311204
| 0.116855
| 27,256
| 602
| 80
| 45.275748
| 0.428358
| 0.338421
| 0
| 0.199346
| 0
| 0.617647
| 0.807579
| 0.787911
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.006536
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 14
|
6aaea1de372e37ec87760da2db8ba72830f1fade
| 420,529
|
py
|
Python
|
rl_agents/a3c_agent_v5-60_deterministic.py
|
IsaiahPressman/Kaggle_Santa_2020
|
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
|
[
"MIT"
] | null | null | null |
rl_agents/a3c_agent_v5-60_deterministic.py
|
IsaiahPressman/Kaggle_Santa_2020
|
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
|
[
"MIT"
] | null | null | null |
rl_agents/a3c_agent_v5-60_deterministic.py
|
IsaiahPressman/Kaggle_Santa_2020
|
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
|
[
"MIT"
] | null | null | null |
serialized_string = b'gAN9cQBYEAAAAG1vZGVsX3N0YXRlX2RpY3RxAWNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxAilScQMoWCEAAABiYXNlLmxheWVycy4wLm1lc3NhZ2VfcGFzc2luZ19tYXRxBGN0b3JjaC5fdXRpbHMKX3JlYnVpbGRfdGVuc29yX3YyCnEFKGN0b3JjaC5zdG9yYWd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EsBc1gWAAAAY3JpdGljLmFjdGl2YXRpb25fZnVuY3J9AQAAfXJ+AQAAakYBAABLAXNYGQAAAGNyaXRpYy50cmFuc2Zvcm1fZmVhdHVyZXNyfwEAAH1ygAEAAGpGAQAASwFzWBkAAABjcml0aWMucmVjb21iaW5lX2ZlYXR1cmVzcoEBAAB9coIBAABqRgEAAEsBc3VzYnMu'
import base64
import pickle
import torch
from torch import distributions, nn
import torch.nn.functional as F
class SmallFullyConnectedGNNLayer(nn.Module):
def __init__(self, n_nodes, in_features, out_features, activation_func=nn.ReLU(), squeeze_out=False):
super().__init__()
self.n_nodes = n_nodes
self.activation_func = activation_func
self.message_passing_mat = nn.Parameter(
(torch.ones((n_nodes, n_nodes)) - torch.eye(n_nodes)) / (n_nodes - 1),
requires_grad=False
)
self.recombine_features = nn.Linear(in_features * 2, out_features)
self.squeeze_out = squeeze_out
# Initialize linear layer weights
nn.init.normal_(self.recombine_features.weight, mean=0., std=0.2)
nn.init.constant_(self.recombine_features.bias, 0.)
def forward(self, features):
messages = torch.matmul(self.message_passing_mat, features)
features_messages_combined = self.activation_func(
self.recombine_features(torch.cat([features, messages], dim=-1))
)
if self.squeeze_out:
return features_messages_combined.squeeze(dim=-1)
else:
return features_messages_combined
class FullyConnectedGNNLayer(nn.Module):
def __init__(self, n_nodes, in_features, out_features, activation_func=nn.ReLU(), squeeze_out=False):
super().__init__()
self.n_nodes = n_nodes
self.activation_func = activation_func
self.transform_features = nn.Linear(in_features, out_features)
self.message_passing_mat = nn.Parameter(
(torch.ones((n_nodes, n_nodes)) - torch.eye(n_nodes)) / (n_nodes - 1),
requires_grad=False
)
self.recombine_features = nn.Linear(out_features*2, out_features)
self.squeeze_out = squeeze_out
# Initialize linear layer weights
nn.init.normal_(self.transform_features.weight, mean=0., std=0.2)
nn.init.normal_(self.recombine_features.weight, mean=0., std=0.2)
nn.init.constant_(self.transform_features.bias, 0.)
nn.init.constant_(self.recombine_features.bias, 0.)
def forward(self, features):
features_transformed = self.activation_func(
self.transform_features(features)
)
messages = torch.matmul(self.message_passing_mat, features_transformed)
features_messages_combined = self.activation_func(
self.recombine_features(torch.cat([features_transformed, messages], dim=-1))
)
if self.squeeze_out:
return features_messages_combined.squeeze(dim=-1)
else:
return features_messages_combined
class GraphNNResidualBase(nn.Module):
def __init__(self, layers, skip_connection_n):
super().__init__()
assert skip_connection_n >= 1
self.layers = nn.ModuleList(layers)
self.skip_connection_n = skip_connection_n
def forward(self, x):
identity = None
for layer_num, layer in enumerate(self.layers):
if (len(self.layers) - layer_num - 1) % self.skip_connection_n == 0:
x = layer(x)
if identity is not None:
x += identity
identity = x
else:
x = layer(x)
return x
class GraphNNA3C(nn.Module):
def __init__(self, in_features, n_nodes, n_hidden_layers, layer_sizes, layer_class,
activation_func=nn.ReLU(), skip_connection_n=1):
super().__init__()
# Define network
if type(layer_sizes) == int:
layer_sizes = [layer_sizes] * (n_hidden_layers + 1)
if len(layer_sizes) != n_hidden_layers + 1:
raise ValueError(f'len(layer_sizes) must equal n_hidden_layers + 1, '
f'was {len(layer_sizes)} but should have been {n_hidden_layers+1}')
layers = [layer_class(n_nodes, in_features, layer_sizes[0], activation_func=activation_func)]
for i in range(n_hidden_layers):
layers.append(layer_class(n_nodes, layer_sizes[i], layer_sizes[i+1],
activation_func=activation_func))
if skip_connection_n == 0:
self.base = nn.Sequential(*layers)
else:
self.base = GraphNNResidualBase(layers, skip_connection_n)
self.actor = layer_class(n_nodes, layer_sizes[-1], 1,
activation_func=nn.Identity(), squeeze_out=True)
self.critic = layer_class(n_nodes, layer_sizes[-1], 1,
activation_func=nn.Identity(), squeeze_out=True)
def forward(self, states):
base_out = self.base(states)
return self.actor(base_out), self.critic(base_out).mean(dim=-1)
def sample_action(self, states):
with torch.no_grad():
logits, _ = self.forward(states)
probs = F.softmax(logits, dim=-1)
batch_size, n_envs, n_players, n_bandits = probs.shape
m = distributions.Categorical(probs.view(batch_size * n_envs * n_players, n_bandits))
return m.sample().view(batch_size, n_envs, n_players)
def choose_best_action(self, states):
with torch.no_grad():
logits, _ = self.forward(states)
return logits.argmax(dim=-1)
def loss_func(self, states, actions, v_t):
#print(f'states.shape: {states.shape}, actions.shape: {actions.shape}, v_t.shape: {v_t.shape}')
logits, values = self.forward(states)
#print(f'logits.shape: {logits.shape}, values.shape: {values.shape}')
td = v_t - values
#critic_loss = td.pow(2).view(-1)
# Huber loss
critic_loss = F.smooth_l1_loss(v_t, values, reduction='none').view(-1)
probs = F.softmax(logits, dim=-1)
batch_size, n_envs, n_players, n_bandits = probs.shape
m = distributions.Categorical(probs.view(batch_size * n_envs * n_players, n_bandits))
#print(f'm.log_prob(actions.view(batch_size * n_envs * n_players)).shape: {m.log_prob(actions.view(batch_size * n_envs * n_players)).shape}, td.shape: {td.shape}')
actor_loss = -(m.log_prob(actions.view(-1)) * td.detach().view(-1))
total_loss = (critic_loss + actor_loss).mean()
return total_loss
class A3C_Agent():
def __init__(self, configuration, serialized_string):
self.n_bandits = configuration.banditCount
self.n_steps = 1999 # TODO: Get this info from configuration somehow?
self.total_reward = 0
self.pull_rewards = torch.zeros((self.n_bandits, 1), dtype=torch.float)
self.player_n_pulls = torch.zeros((self.n_bandits, 2), dtype=torch.float)
state_dict_bytes = base64.b64decode(serialized_string)
state_dicts = pickle.loads(state_dict_bytes)
self.model = GraphNNA3C(
in_features=3,
n_nodes=100,
n_hidden_layers=4,
layer_sizes=16,
layer_class=FullyConnectedGNNLayer,
skip_connection_n=1
)
self.model.load_state_dict(state_dicts['model_state_dict'])
self.model.eval()
def get_obs(self):
# Obs must be of shape (n_batches, n_envs, n_players, n_bandits, n_features
# Since we are only selecting an action for a single agent, this translates to: (1, 1, 1, n_bandits, -1)
return torch.cat([
self.player_n_pulls,
self.pull_rewards
], dim=-1).view(1, 1, 1, self.n_bandits, -1) * self.n_bandits / self.n_steps
def get_action(self, observation):
if observation.step > 0:
# Get r
r = observation.reward - self.total_reward
self.total_reward = observation.reward
# Update pull_rewards and player_n_pulls
opp_last_act = observation.lastActions[not observation.agentIndex]
self.pull_rewards[self.last_act] += r
self.player_n_pulls[self.last_act, 0] += 1
self.player_n_pulls[opp_last_act, 1] += 1
self.last_act = self.model.choose_best_action(self.get_obs()).item()
return self.last_act
curr_agent = None
def agent(observation, configuration):
global curr_agent
if curr_agent is None:
curr_agent = A3C_Agent(configuration, serialized_string)
return curr_agent.get_action(observation)
| 2,071.571429
| 412,003
| 0.934314
| 25,459
| 420,529
| 15.420755
| 0.056365
| 1.659259
| 2.409456
| 3.106697
| 0.897788
| 0.897144
| 0.89679
| 0.896724
| 0.896724
| 0.896398
| 0
| 0.179604
| 0.005453
| 420,529
| 202
| 412,004
| 2,081.826733
| 0.759093
| 0.0017
| 0
| 0.316456
| 0
| 0.006329
| 0.981687
| 0.981372
| 0
| 1
| 0
| 0.004951
| 0.006329
| 1
| 0.094937
| false
| 0.025316
| 0.031646
| 0.006329
| 0.234177
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 15
|
6ab8068bbf081a4824aa5ebdecbc04f1ce7b600e
| 32,187
|
py
|
Python
|
utils/cloud/cloud_client/api/recognize_api.py
|
alexfdo/asr_eval
|
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
|
[
"MIT"
] | 3
|
2020-03-06T17:20:34.000Z
|
2021-09-09T09:18:48.000Z
|
utils/cloud/cloud_client/api/recognize_api.py
|
alexfdo/asr_eval
|
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
|
[
"MIT"
] | 1
|
2020-02-03T18:25:08.000Z
|
2020-02-03T18:25:08.000Z
|
utils/cloud/cloud_client/api/recognize_api.py
|
alexfdo/asr_eval
|
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
|
[
"MIT"
] | 1
|
2020-01-29T19:47:54.000Z
|
2020-01-29T19:47:54.000Z
|
# coding: utf-8
"""
ASR documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from cloud_client.cloud_api_client import CloudApiClient
class RecognizeApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = CloudApiClient()
self.api_client = api_client
def close(self, x_session_id, x_transaction_id, **kwargs): # noqa: E501
"""Close transaction # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.close(x_session_id, x_transaction_id, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param str x_transaction_id: Session identifier (required)
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.close_with_http_info(x_session_id, x_transaction_id, **kwargs) # noqa: E501
else:
(data) = self.close_with_http_info(x_session_id, x_transaction_id, **kwargs) # noqa: E501
return data
def close_with_http_info(self, x_session_id, x_transaction_id, **kwargs): # noqa: E501
"""Close transaction # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.close_with_http_info(x_session_id, x_transaction_id, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param str x_transaction_id: Session identifier (required)
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_session_id', 'x_transaction_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method close" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'x_session_id' is set
if ('x_session_id' not in params or
params['x_session_id'] is None):
raise ValueError("Missing the required parameter `x_session_id` when calling `close`") # noqa: E501
# verify the required parameter 'x_transaction_id' is set
if ('x_transaction_id' not in params or
params['x_transaction_id'] is None):
raise ValueError("Missing the required parameter `x_transaction_id` when calling `close`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_session_id' in params:
header_params['X-Session-ID'] = params['x_session_id'] # noqa: E501
if 'x_transaction_id' in params:
header_params['X-Transaction-Id'] = params['x_transaction_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/stream', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ASRResultDto', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def recognize(self, x_session_id, body, **kwargs): # noqa: E501
"""Get speech recognition result # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param RecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.recognize_with_http_info(x_session_id, body, **kwargs) # noqa: E501
else:
(data) = self.recognize_with_http_info(x_session_id, body, **kwargs) # noqa: E501
return data
def recognize_with_http_info(self, x_session_id, body, **kwargs): # noqa: E501
"""Get speech recognition result # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_with_http_info(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param RecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_session_id', 'body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method recognize" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'x_session_id' is set
if ('x_session_id' not in params or
params['x_session_id'] is None):
raise ValueError("Missing the required parameter `x_session_id` when calling `recognize`") # noqa: E501
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `recognize`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_session_id' in params:
header_params['X-Session-ID'] = params['x_session_id'] # noqa: E501
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ASRResultDto', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def recognize_advanced(self, x_session_id, body, **kwargs): # noqa: E501
"""Recognize speech with advanced options # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_advanced(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param AdvancedRecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: list[ASRAdvancedResultDto]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.recognize_advanced_with_http_info(x_session_id, body, **kwargs) # noqa: E501
else:
(data) = self.recognize_advanced_with_http_info(x_session_id, body, **kwargs) # noqa: E501
return data
def recognize_advanced_with_http_info(self, x_session_id, body, **kwargs): # noqa: E501
"""Recognize speech with advanced options # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_advanced_with_http_info(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param AdvancedRecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: list[ASRAdvancedResultDto]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_session_id', 'body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method recognize_advanced" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'x_session_id' is set
if ('x_session_id' not in params or
params['x_session_id'] is None):
raise ValueError("Missing the required parameter `x_session_id` when calling `recognize_advanced`") # noqa: E501
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `recognize_advanced`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_session_id' in params:
header_params['X-Session-ID'] = params['x_session_id'] # noqa: E501
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/advanced', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[ASRAdvancedResultDto]', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def recognize_sessionless(self, body, **kwargs): # noqa: E501
"""Get speech recognition result # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_sessionless(body, async=True)
>>> result = thread.get()
:param async bool
:param SessionlessRecognitionRequestDto body: Request with user login data and recognition request (required)
:param str x_request_id: Request identifier
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.recognize_sessionless_with_http_info(body, **kwargs) # noqa: E501
else:
(data) = self.recognize_sessionless_with_http_info(body, **kwargs) # noqa: E501
return data
def recognize_sessionless_with_http_info(self, body, **kwargs): # noqa: E501
"""Get speech recognition result # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_sessionless_with_http_info(body, async=True)
>>> result = thread.get()
:param async bool
:param SessionlessRecognitionRequestDto body: Request with user login data and recognition request (required)
:param str x_request_id: Request identifier
:return: ASRResultDto
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method recognize_sessionless" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `recognize_sessionless`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/sessionless', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ASRResultDto', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def recognize_words(self, x_session_id, body, **kwargs): # noqa: E501
"""Recognize speech and return word list # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_words(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param RecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: list[WordDto]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.recognize_words_with_http_info(x_session_id, body, **kwargs) # noqa: E501
else:
(data) = self.recognize_words_with_http_info(x_session_id, body, **kwargs) # noqa: E501
return data
def recognize_words_with_http_info(self, x_session_id, body, **kwargs): # noqa: E501
"""Recognize speech and return word list # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_words_with_http_info(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param RecognitionRequestDto body: Recognition request with audio file, mime type and package ID (required)
:param str x_request_id: Request identifier
:return: list[WordDto]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_session_id', 'body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method recognize_words" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'x_session_id' is set
if ('x_session_id' not in params or
params['x_session_id'] is None):
raise ValueError("Missing the required parameter `x_session_id` when calling `recognize_words`") # noqa: E501
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `recognize_words`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_session_id' in params:
header_params['X-Session-ID'] = params['x_session_id'] # noqa: E501
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/words', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[WordDto]', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def recognize_words_sessionless(self, body, **kwargs): # noqa: E501
"""Recognize speech without session and return word list # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_words_sessionless(body, async=True)
>>> result = thread.get()
:param async bool
:param SessionlessRecognitionRequestDto body: Request with user login data and recognition request (required)
:param str x_request_id: Request identifier
:return: list[WordDto]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.recognize_words_sessionless_with_http_info(body, **kwargs) # noqa: E501
else:
(data) = self.recognize_words_sessionless_with_http_info(body, **kwargs) # noqa: E501
return data
def recognize_words_sessionless_with_http_info(self, body, **kwargs): # noqa: E501
"""Recognize speech without session and return word list # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.recognize_words_sessionless_with_http_info(body, async=True)
>>> result = thread.get()
:param async bool
:param SessionlessRecognitionRequestDto body: Request with user login data and recognition request (required)
:param str x_request_id: Request identifier
:return: list[WordDto]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method recognize_words_sessionless" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `recognize_words_sessionless`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/sessionless/words', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[WordDto]', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def start(self, x_session_id, body, **kwargs): # noqa: E501
"""Start recognition stream # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.start(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param StreamRequestDto body: Transaction parameters (required)
:param str x_request_id: Request identifier
:return: StreamResponseDto
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.start_with_http_info(x_session_id, body, **kwargs) # noqa: E501
else:
(data) = self.start_with_http_info(x_session_id, body, **kwargs) # noqa: E501
return data
def start_with_http_info(self, x_session_id, body, **kwargs): # noqa: E501
"""Start recognition stream # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.start_with_http_info(x_session_id, body, async=True)
>>> result = thread.get()
:param async bool
:param str x_session_id: Session identifier (required)
:param StreamRequestDto body: Transaction parameters (required)
:param str x_request_id: Request identifier
:return: StreamResponseDto
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_session_id', 'body', 'x_request_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method start" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'x_session_id' is set
if ('x_session_id' not in params or
params['x_session_id'] is None):
raise ValueError("Missing the required parameter `x_session_id` when calling `start`") # noqa: E501
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `start`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_session_id' in params:
header_params['X-Session-ID'] = params['x_session_id'] # noqa: E501
if 'x_request_id' in params:
header_params['X-Request-Id'] = params['x_request_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json;charset=UTF-8']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/vkasr/rest/v1/recognize/stream', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='StreamResponseDto', # noqa: E501
auth_settings=auth_settings,
async_=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 40.640152
| 126
| 0.614627
| 3,721
| 32,187
| 5.080892
| 0.048374
| 0.052047
| 0.042315
| 0.026658
| 0.968052
| 0.966043
| 0.956469
| 0.948641
| 0.948641
| 0.945679
| 0
| 0.017513
| 0.293939
| 32,187
| 791
| 127
| 40.69153
| 0.814398
| 0.332184
| 0
| 0.818396
| 1
| 0
| 0.209855
| 0.062286
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035377
| false
| 0
| 0.009434
| 0
| 0.096698
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6ab9f5ebba018327e12715a7f95c4049cde6b995
| 14,602
|
py
|
Python
|
torpeewee/query.py
|
snower/torpeewee
|
1d2d73090972ab33bb4a0980bfed63ff74961a1a
|
[
"MIT"
] | 31
|
2016-07-08T14:16:43.000Z
|
2021-12-25T08:41:55.000Z
|
torpeewee/query.py
|
snower/torpeewee
|
1d2d73090972ab33bb4a0980bfed63ff74961a1a
|
[
"MIT"
] | 2
|
2016-11-07T06:04:36.000Z
|
2021-05-25T10:23:10.000Z
|
torpeewee/query.py
|
snower/torpeewee
|
1d2d73090972ab33bb4a0980bfed63ff74961a1a
|
[
"MIT"
] | 10
|
2017-03-15T11:27:04.000Z
|
2019-08-26T23:16:41.000Z
|
# -*- coding: utf-8 -*-
# 16/6/28
# create by: snower
from peewee import database_required, SQL, fn, Select as BaseSelect
from peewee import ModelSelect as BaseModelSelect, NoopModelSelect as BaseNoopModelSelect, ModelUpdate as BaseModelUpdate, \
ModelInsert as BaseModelInsert, ModelDelete as BaseModelDelete, ModelRaw as BaseModelRaw
class AsyncQueryIter(object):
def __init__(self, query):
self._query = query
self._cursor_wrapper_iter = None
def __aiter__(self):
return self
async def __anext__(self):
if self._cursor_wrapper_iter is None:
await self._query._ensure_execution()
self._cursor_wrapper_iter = iter(self._query._cursor_wrapper)
try:
value = next(self._cursor_wrapper_iter)
except StopIteration:
self._cursor_wrapper_iter = None
raise StopAsyncIteration
return value
class Select(BaseSelect):
async def _execute(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
@database_required
async def peek(self, database, n=1):
rows = (await self._execute(database))[:n]
if rows:
return rows[0] if n == 1 else rows
@database_required
def first(self, database, n=1):
if self._limit != n:
self._limit = n
self._cursor_wrapper = None
return self.peek(database, n=n)
@database_required
async def scalar(self, database, as_tuple=False):
row = await self.tuples().peek(database)
return row[0] if row and not as_tuple else row
@database_required
def count(self, database, clear_limit=False):
clone = self.order_by().alias('_wrapped')
if clear_limit:
clone._limit = clone._offset = None
try:
if clone._having is None and clone._group_by is None and \
clone._windows is None and clone._distinct is None and \
clone._simple_distinct is not True:
clone = clone.select(SQL('1'))
except AttributeError:
pass
return Select([clone], [fn.COUNT(SQL('1'))]).scalar(database)
@database_required
async def exists(self, database):
clone = self.columns(SQL('1'))
clone._limit = 1
clone._offset = None
return bool((await clone.scalar()))
@database_required
async def get(self, database):
self._cursor_wrapper = None
try:
return (await self.execute(database))[0]
except IndexError:
pass
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
def __iter__(self):
if not self._cursor_wrapper:
raise NotImplementedError()
return iter(self._cursor_wrapper)
def __getitem__(self, value):
async def _():
await self._ensure_execution()
if isinstance(value, slice):
index = value.stop
else:
index = value
if index is not None:
index = index + 1 if index >= 0 else 0
self._cursor_wrapper.fill_cache(index)
return self._cursor_wrapper.row_cache[value]
return _()
def __len__(self):
async def _():
await self._ensure_execution()
return len(self._cursor_wrapper)
return _
async def len(self):
await self._ensure_execution()
return len(self._cursor_wrapper)
def __aiter__(self):
return AsyncQueryIter(self)
def __await__(self):
coroutine = self._ensure_execution()
return coroutine.__await__()
class ModelSelect(BaseModelSelect):
async def _execute(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
@database_required
async def peek(self, database, n=1):
rows = (await self._execute(database))[:n]
if rows:
return rows[0] if n == 1 else rows
@database_required
def first(self, database, n=1):
if self._limit != n:
self._limit = n
self._cursor_wrapper = None
return self.peek(database, n=n)
@database_required
async def scalar(self, database, as_tuple=False):
row = await self.tuples().peek(database)
return row[0] if row and not as_tuple else row
@database_required
def count(self, database, clear_limit=False):
clone = self.order_by().alias('_wrapped')
if clear_limit:
clone._limit = clone._offset = None
try:
if clone._having is None and clone._group_by is None and \
clone._windows is None and clone._distinct is None and \
clone._simple_distinct is not True:
clone = clone.select(SQL('1'))
except AttributeError:
pass
return Select([clone], [fn.COUNT(SQL('1'))]).scalar(database)
@database_required
async def exists(self, database):
clone = self.columns(SQL('1'))
clone._limit = 1
clone._offset = None
return bool((await clone.scalar()))
async def get(self, database=None):
clone = self.paginate(1, 1)
clone._cursor_wrapper = None
try:
return await clone.execute(database)[0]
except IndexError:
sql, params = clone.sql()
raise self.model.DoesNotExist('%s instance matching query does '
'not exist:\nSQL: %s\nParams: %s' %
(clone.model, sql, params))
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
def __iter__(self):
if not self._cursor_wrapper:
raise NotImplementedError()
return iter(self._cursor_wrapper)
def __getitem__(self, value):
async def _():
await self._ensure_execution()
if isinstance(value, slice):
index = value.stop
else:
index = value
if index is not None:
index = index + 1 if index >= 0 else 0
self._cursor_wrapper.fill_cache(index)
return self._cursor_wrapper.row_cache[value]
return _()
def __len__(self):
async def _():
await self._ensure_execution()
return len(self._cursor_wrapper)
return _
async def len(self):
await self._ensure_execution()
return len(self._cursor_wrapper)
def __aiter__(self):
return AsyncQueryIter(self)
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
class NoopModelSelect(BaseNoopModelSelect):
async def _execute(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
@database_required
async def peek(self, database, n=1):
rows = (await self._execute(database))[:n]
if rows:
return rows[0] if n == 1 else rows
@database_required
def first(self, database, n=1):
if self._limit != n:
self._limit = n
self._cursor_wrapper = None
return self.peek(database, n=n)
@database_required
async def scalar(self, database, as_tuple=False):
row = await self.tuples().peek(database)
return row[0] if row and not as_tuple else row
@database_required
def count(self, database, clear_limit=False):
clone = self.order_by().alias('_wrapped')
if clear_limit:
clone._limit = clone._offset = None
try:
if clone._having is None and clone._group_by is None and \
clone._windows is None and clone._distinct is None and \
clone._simple_distinct is not True:
clone = clone.select(SQL('1'))
except AttributeError:
pass
return Select([clone], [fn.COUNT(SQL('1'))]).scalar(database)
@database_required
async def exists(self, database):
clone = self.columns(SQL('1'))
clone._limit = 1
clone._offset = None
return bool((await clone.scalar()))
async def get(self, database=None):
clone = self.paginate(1, 1)
clone._cursor_wrapper = None
try:
return (await clone.execute(database))[0]
except IndexError:
sql, params = clone.sql()
raise self.model.DoesNotExist('%s instance matching query does '
'not exist:\nSQL: %s\nParams: %s' %
(clone.model, sql, params))
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
def __iter__(self):
if not self._cursor_wrapper:
raise NotImplementedError()
return iter(self._cursor_wrapper)
def __getitem__(self, value):
async def _():
await self._ensure_execution()
if isinstance(value, slice):
index = value.stop
else:
index = value
if index is not None:
index = index + 1 if index >= 0 else 0
self._cursor_wrapper.fill_cache(index)
return self._cursor_wrapper.row_cache[value]
return _()
def __len__(self):
async def _():
await self._ensure_execution()
return len(self._cursor_wrapper)
return _
async def len(self):
await self._ensure_execution()
return len(self._cursor_wrapper)
def __aiter__(self):
return AsyncQueryIter(self)
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
class ModelUpdate(BaseModelUpdate):
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
async def _execute(self, database):
if self._returning:
cursor = await self.execute_returning(database)
else:
cursor = await database.execute(self)
return self.handle_result(database, cursor)
async def execute_returning(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
def __iter__(self):
raise NotImplementedError()
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
class ModelInsert(BaseModelInsert):
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
async def _execute(self, database):
if self._returning:
cursor = await self.execute_returning(database)
else:
cursor = await database.execute(self)
return self.handle_result(database, cursor)
async def execute_returning(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
def __iter__(self):
raise NotImplementedError()
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
class ModelDelete(BaseModelDelete):
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
async def _execute(self, database):
if self._returning:
cursor = await self.execute_returning(database)
else:
cursor = await database.execute(self)
return self.handle_result(database, cursor)
async def execute_returning(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
def __iter__(self):
raise NotImplementedError()
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
class ModelRaw(BaseModelRaw):
async def _ensure_execution(self):
if not self._cursor_wrapper:
if not self._database:
raise ValueError('Query has not been executed.')
await self.execute()
async def _execute(self, database):
if self._cursor_wrapper is None:
cursor = await database.execute(self)
self._cursor_wrapper = self._get_cursor_wrapper(cursor)
return self._cursor_wrapper
async def iterator(self, database=None):
return iter((await self.execute(database)).iterator())
def __iter__(self):
raise NotImplementedError()
def __await__(self):
coroutine = self.execute()
return coroutine.__await__()
| 32.521158
| 124
| 0.609095
| 1,654
| 14,602
| 5.114873
| 0.074365
| 0.099882
| 0.11052
| 0.019858
| 0.905201
| 0.89279
| 0.889125
| 0.889125
| 0.889125
| 0.889125
| 0
| 0.004817
| 0.303383
| 14,602
| 448
| 125
| 32.59375
| 0.826878
| 0.003219
| 0
| 0.925824
| 0
| 0
| 0.024397
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.085165
| false
| 0.010989
| 0.005495
| 0.010989
| 0.291209
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6aee58f24c41359a8c034a3e0e5858fa8247d6b9
| 48
|
py
|
Python
|
test/regression/features/assignment/assign_multi.py
|
ppelleti/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 137
|
2015-02-13T21:03:23.000Z
|
2021-11-24T03:53:55.000Z
|
test/regression/features/assignment/assign_multi.py
|
ppelleti/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 4
|
2015-04-01T13:49:13.000Z
|
2019-07-09T19:28:56.000Z
|
test/regression/features/assignment/assign_multi.py
|
bjpop/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 8
|
2015-04-25T03:47:52.000Z
|
2019-07-27T06:33:56.000Z
|
x = y = 1
print(x,y)
x = y = z = 1
print(x,y,z)
| 9.6
| 13
| 0.458333
| 14
| 48
| 1.571429
| 0.357143
| 0.363636
| 0.636364
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.291667
| 48
| 4
| 14
| 12
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
0a768b4b1407a9778e542827cbb874581c442224
| 150
|
py
|
Python
|
src/distdl/nn/mixins/__init__.py
|
BuildJet/distdl
|
28b0dcf2c0a762de924cc310398a2eab9c35297f
|
[
"BSD-2-Clause"
] | 25
|
2020-06-25T21:11:55.000Z
|
2022-03-24T04:56:23.000Z
|
src/distdl/nn/mixins/__init__.py
|
BuildJet/distdl
|
28b0dcf2c0a762de924cc310398a2eab9c35297f
|
[
"BSD-2-Clause"
] | 97
|
2020-06-08T17:09:59.000Z
|
2022-03-26T00:47:11.000Z
|
src/distdl/nn/mixins/__init__.py
|
BuildJet/distdl
|
28b0dcf2c0a762de924cc310398a2eab9c35297f
|
[
"BSD-2-Clause"
] | 8
|
2020-06-08T17:00:54.000Z
|
2022-03-20T20:20:24.000Z
|
from .conv_mixin import ConvMixin # noqa: F401
from .halo_mixin import HaloMixin # noqa: F401
from .pooling_mixin import PoolingMixin # noqa: F401
| 37.5
| 53
| 0.78
| 21
| 150
| 5.428571
| 0.52381
| 0.289474
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.16
| 150
| 3
| 54
| 50
| 0.833333
| 0.213333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0a7ebdb5bf0dbf07edf0e2c8989e063f7ddb6601
| 4,479
|
py
|
Python
|
test/unit/test_terracoind_data_shims.py
|
cryptainer/terracoin-sentinel
|
fdc53bd4632dfda3e2fb1c7a10b029ff19ae9c08
|
[
"MIT"
] | null | null | null |
test/unit/test_terracoind_data_shims.py
|
cryptainer/terracoin-sentinel
|
fdc53bd4632dfda3e2fb1c7a10b029ff19ae9c08
|
[
"MIT"
] | null | null | null |
test/unit/test_terracoind_data_shims.py
|
cryptainer/terracoin-sentinel
|
fdc53bd4632dfda3e2fb1c7a10b029ff19ae9c08
|
[
"MIT"
] | null | null | null |
import pytest
import sys
import os
os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../test_sentinel.conf'))
sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../lib')))
import terracoinlib
@pytest.fixture
def sentinel_proposal_hex():
return '5b2270726f706f73616c222c207b22656e645f65706f6368223a20313439313032323830302c20226e616d65223a2022626565722d7265696d62757273656d656e742d37222c20227061796d656e745f61646472657373223a2022795965384b77796155753559737753596d4233713372797838585455753979375569222c20227061796d656e745f616d6f756e74223a20372e30303030303030302c202273746172745f65706f6368223a20313438333235303430302c202275726c223a202268747470733a2f2f6461736863656e7472616c2e636f6d2f626565722d7265696d62757273656d656e742d37227d5d'
@pytest.fixture
def sentinel_superblock_hex():
return '5b227375706572626c6f636b222c207b226576656e745f626c6f636b5f686569676874223a2036323530302c20227061796d656e745f616464726573736573223a2022795965384b77796155753559737753596d42337133727978385854557539793755697c795443363268755234595145506e39414a486a6e517878726548536267416f617456222c20227061796d656e745f616d6f756e7473223a2022357c33227d5d'
@pytest.fixture
def terracoind_proposal_hex():
return '5b5b2270726f706f73616c222c207b22656e645f65706f6368223a20313439313336383430302c20226e616d65223a2022626565722d7265696d62757273656d656e742d39222c20227061796d656e745f61646472657373223a2022795965384b77796155753559737753596d4233713372797838585455753979375569222c20227061796d656e745f616d6f756e74223a2034392e30303030303030302c202273746172745f65706f6368223a20313438333235303430302c202274797065223a20312c202275726c223a202268747470733a2f2f7777772e6461736863656e7472616c2e6f72672f702f626565722d7265696d62757273656d656e742d39227d5d5d'
@pytest.fixture
def terracoind_superblock_hex():
return '5b5b2274726967676572222c207b226576656e745f626c6f636b5f686569676874223a2036323530302c20227061796d656e745f616464726573736573223a2022795965384b77796155753559737753596d42337133727978385854557539793755697c795443363268755234595145506e39414a486a6e517878726548536267416f617456222c20227061796d656e745f616d6f756e7473223a2022357c33222c202274797065223a20327d5d5d'
# ========================================================================
def test_SHIM_deserialise_from_terracoind(terracoind_proposal_hex, terracoind_superblock_hex):
assert terracoinlib.SHIM_deserialise_from_terracoind(terracoind_proposal_hex) == '5b2270726f706f73616c222c207b22656e645f65706f6368223a20313439313336383430302c20226e616d65223a2022626565722d7265696d62757273656d656e742d39222c20227061796d656e745f61646472657373223a2022795965384b77796155753559737753596d4233713372797838585455753979375569222c20227061796d656e745f616d6f756e74223a2034392e30303030303030302c202273746172745f65706f6368223a20313438333235303430302c202275726c223a202268747470733a2f2f7777772e6461736863656e7472616c2e6f72672f702f626565722d7265696d62757273656d656e742d39227d5d'
assert terracoinlib.SHIM_deserialise_from_terracoind(terracoind_superblock_hex) == '5b227375706572626c6f636b222c207b226576656e745f626c6f636b5f686569676874223a2036323530302c20227061796d656e745f616464726573736573223a2022795965384b77796155753559737753596d42337133727978385854557539793755697c795443363268755234595145506e39414a486a6e517878726548536267416f617456222c20227061796d656e745f616d6f756e7473223a2022357c33227d5d'
def test_SHIM_serialise_for_terracoind(sentinel_proposal_hex, sentinel_superblock_hex):
assert terracoinlib.SHIM_serialise_for_terracoind(sentinel_proposal_hex) == '5b5b2270726f706f73616c222c207b22656e645f65706f6368223a20313439313032323830302c20226e616d65223a2022626565722d7265696d62757273656d656e742d37222c20227061796d656e745f61646472657373223a2022795965384b77796155753559737753596d4233713372797838585455753979375569222c20227061796d656e745f616d6f756e74223a20372e30303030303030302c202273746172745f65706f6368223a20313438333235303430302c202274797065223a20312c202275726c223a202268747470733a2f2f6461736863656e7472616c2e636f6d2f626565722d7265696d62757273656d656e742d37227d5d5d'
assert terracoinlib.SHIM_serialise_for_terracoind(sentinel_superblock_hex) == '5b5b2274726967676572222c207b226576656e745f626c6f636b5f686569676874223a2036323530302c20227061796d656e745f616464726573736573223a2022795965384b77796155753559737753596d42337133727978385854557539793755697c795443363268755234595145506e39414a486a6e517878726548536267416f617456222c20227061796d656e745f616d6f756e7473223a2022357c33222c202274797065223a20327d5d5d'
| 114.846154
| 588
| 0.935253
| 135
| 4,479
| 30.62963
| 0.266667
| 0.008706
| 0.015478
| 0.02104
| 0.107134
| 0.100846
| 0.100846
| 0.019831
| 0.019831
| 0.019831
| 0
| 0.678245
| 0.022996
| 4,479
| 38
| 589
| 117.868421
| 0.266682
| 0.016075
| 0
| 0.166667
| 0
| 0
| 0.772985
| 0.767537
| 0
| 1
| 0
| 0
| 0.166667
| 1
| 0.25
| false
| 0
| 0.166667
| 0.166667
| 0.583333
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 10
|
0a87a37d777eb8e70a10dcc868c55d19f0561423
| 34,439
|
py
|
Python
|
python_modules/dagster/dagster/core/definitions/decorators/schedule.py
|
soyelherein/dagster
|
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
|
[
"Apache-2.0"
] | null | null | null |
python_modules/dagster/dagster/core/definitions/decorators/schedule.py
|
soyelherein/dagster
|
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
|
[
"Apache-2.0"
] | null | null | null |
python_modules/dagster/dagster/core/definitions/decorators/schedule.py
|
soyelherein/dagster
|
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
|
[
"Apache-2.0"
] | null | null | null |
import datetime
import warnings
from functools import update_wrapper
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, cast
from dagster import check
from dagster.core.definitions.partition import (
PartitionScheduleDefinition,
PartitionSetDefinition,
ScheduleType,
TimeBasedPartitionParams,
)
from dagster.core.definitions.pipeline import PipelineDefinition
from dagster.core.errors import DagsterInvalidDefinitionError
from dagster.utils.partitions import (
DEFAULT_DATE_FORMAT,
DEFAULT_HOURLY_FORMAT_WITHOUT_TIMEZONE,
DEFAULT_HOURLY_FORMAT_WITH_TIMEZONE,
DEFAULT_MONTHLY_FORMAT,
create_offset_partition_selector,
)
from ..mode import DEFAULT_MODE_NAME
from ..schedule import ScheduleDefinition
if TYPE_CHECKING:
from dagster import ScheduleExecutionContext, Partition
# Error messages are long
# pylint: disable=C0301
def schedule(
cron_schedule: str,
pipeline_name: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Dict[str, Any]] = None,
tags_fn: Optional[Callable[["ScheduleExecutionContext"], Optional[Dict[str, str]]]] = None,
solid_selection: Optional[List[str]] = None,
mode: Optional[str] = "default",
should_execute: Optional[Callable[["ScheduleExecutionContext"], bool]] = None,
environment_vars: Optional[Dict[str, str]] = None,
execution_timezone: Optional[str] = None,
description: Optional[str] = None,
job: Optional[PipelineDefinition] = None,
) -> Callable[[Callable[["ScheduleExecutionContext"], Dict[str, Any]]], ScheduleDefinition]:
"""Create a schedule.
The decorated function will be called as the ``run_config_fn`` of the underlying
:py:class:`~dagster.ScheduleDefinition` and should take a
:py:class:`~dagster.ScheduleExecutionContext` as its only argument, returning the run config
for the scheduled execution.
Args:
cron_schedule (str): A valid cron string specifying when the schedule will run, e.g.,
``'45 23 * * 6'`` for a schedule that runs at 11:45 PM every Saturday.
pipeline_name (str): The name of the pipeline to execute when the schedule runs.
name (Optional[str]): The name of the schedule to create.
tags (Optional[Dict[str, str]]): A dictionary of tags (string key-value pairs) to attach
to the scheduled runs.
tags_fn (Optional[Callable[[ScheduleExecutionContext], Optional[Dict[str, str]]]]): A function
that generates tags to attach to the schedules runs. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a dictionary of tags (string
key-value pairs). You may set only one of ``tags`` and ``tags_fn``.
solid_selection (Optional[List[str]]): A list of solid subselection (including single
solid names) to execute when the schedule runs. e.g. ``['*some_solid+', 'other_solid']``
mode (Optional[str]): The pipeline mode in which to execute this schedule.
(Default: 'default')
should_execute (Optional[Callable[[ScheduleExecutionContext], bool]]): A function that runs at
schedule execution tie to determine whether a schedule should execute or skip. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a boolean (``True`` if the
schedule should execute). Defaults to a function that always returns ``True``.
environment_vars (Optional[Dict[str, str]]): Any environment variables to set when executing
the schedule.
execution_timezone (Optional[str]): Timezone in which the schedule should run. Only works
with DagsterDaemonScheduler, and must be set when using that scheduler.
description (Optional[str]): A human-readable description of the schedule.
job (Optional[PipelineDefinition]): Experimental
"""
def inner(fn: Callable[["ScheduleExecutionContext"], Dict[str, Any]]) -> ScheduleDefinition:
check.callable_param(fn, "fn")
schedule_name = name or fn.__name__
schedule_def = ScheduleDefinition(
name=schedule_name,
cron_schedule=cron_schedule,
pipeline_name=pipeline_name,
run_config_fn=fn,
tags=tags,
tags_fn=tags_fn,
solid_selection=solid_selection,
mode=mode,
should_execute=should_execute,
environment_vars=environment_vars,
execution_timezone=execution_timezone,
description=description,
job=job,
)
update_wrapper(schedule_def, wrapped=fn)
return schedule_def
return inner
def monthly_schedule(
pipeline_name: Optional[str],
start_date: datetime.datetime,
name: Optional[str] = None,
execution_day_of_month: int = 1,
execution_time: datetime.time = datetime.time(0, 0),
tags_fn_for_date: Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]] = None,
solid_selection: Optional[List[str]] = None,
mode: Optional[str] = "default",
should_execute: Optional[Callable[["ScheduleExecutionContext"], bool]] = None,
environment_vars: Optional[Dict[str, str]] = None,
end_date: Optional[datetime.datetime] = None,
execution_timezone: Optional[str] = None,
partition_months_offset: Optional[int] = 1,
description: Optional[str] = None,
job: Optional[PipelineDefinition] = None,
) -> Callable[[Callable[[datetime.datetime], Dict[str, Any]]], PartitionScheduleDefinition]:
"""Create a partitioned schedule that runs monthly.
The decorated function should accept a datetime object as its only argument. The datetime
represents the date partition that it's meant to run on.
The decorated function should return a run configuration dictionary, which will be used as
configuration for the scheduled run.
The decorator produces a :py:class:`~dagster.PartitionScheduleDefinition`.
Args:
pipeline_name (str): The name of the pipeline to execute when the schedule runs.
start_date (datetime.datetime): The date from which to run the schedule.
name (Optional[str]): The name of the schedule to create.
execution_day_of_month (int): The day of the month on which to run the schedule (must be
between 1 and 31).
execution_time (datetime.time): The time at which to execute the schedule.
tags_fn_for_date (Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]]): A
function that generates tags to attach to the schedules runs. Takes the date of the
schedule run and returns a dictionary of tags (string key-value pairs).
solid_selection (Optional[List[str]]): A list of solid subselection (including single
solid names) to execute when the schedule runs. e.g. ``['*some_solid+', 'other_solid']``
mode (Optional[str]): The pipeline mode in which to execute this schedule.
(Default: 'default')
should_execute (Optional[Callable[ScheduleExecutionContext, bool]]): A function that runs at
schedule execution tie to determine whether a schedule should execute or skip. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a boolean (``True`` if the
schedule should execute). Defaults to a function that always returns ``True``.
environment_vars (Optional[Dict[str, str]]): Any environment variables to set when executing
the schedule.
end_date (Optional[datetime.datetime]): The last time to run the schedule to, defaults to
current time.
execution_timezone (Optional[str]): Timezone in which the schedule should run. Only works
with DagsterDaemonScheduler, and must be set when using that scheduler.
partition_months_offset (Optional[int]): How many months back to go when choosing the partition
for a given schedule execution. For example, when partition_months_offset=1, the schedule
that executes during month N will fill in the partition for month N-1.
(Default: 1)
description (Optional[str]): A human-readable description of the schedule.
job (Optional[PipelineDefinition]): Experimental
"""
check.opt_str_param(name, "name")
check.inst_param(start_date, "start_date", datetime.datetime)
check.opt_inst_param(end_date, "end_date", datetime.datetime)
check.opt_callable_param(tags_fn_for_date, "tags_fn_for_date")
check.opt_nullable_list_param(solid_selection, "solid_selection", of_type=str)
mode = check.opt_str_param(mode, "mode", DEFAULT_MODE_NAME)
check.opt_callable_param(should_execute, "should_execute")
check.opt_dict_param(environment_vars, "environment_vars", key_type=str, value_type=str)
check.opt_str_param(pipeline_name, "pipeline_name")
check.int_param(execution_day_of_month, "execution_day")
check.inst_param(execution_time, "execution_time", datetime.time)
check.opt_str_param(execution_timezone, "execution_timezone")
check.opt_int_param(partition_months_offset, "partition_months_offset")
check.opt_str_param(description, "description")
if (
start_date.day != 1
or start_date.hour != 0
or start_date.minute != 0
or start_date.second != 0
):
warnings.warn(
"`start_date` must be at the beginning of the first day of the month for a monthly "
"schedule. Use `execution_day_of_month` and `execution_time` to execute the schedule "
"at a specific time within the month. For example, to run the schedule at 3AM on the "
"23rd of each month starting in October, your schedule definition would look like:"
"""
@monthly_schedule(
start_date=datetime.datetime(2020, 10, 1),
execution_day_of_month=23,
execution_time=datetime.time(3, 0)
):
def my_schedule_definition(_):
...
"""
)
if execution_day_of_month <= 0 or execution_day_of_month > 31:
raise DagsterInvalidDefinitionError(
"`execution_day_of_month={}` is not valid for monthly schedule. Execution day must be "
"between 1 and 31".format(execution_day_of_month)
)
def inner(fn: Callable[[datetime.datetime], Dict[str, Any]]) -> PartitionScheduleDefinition:
check.callable_param(fn, "fn")
schedule_name = name or fn.__name__
tags_fn_for_partition_value: Callable[
["Partition"], Optional[Dict[str, str]]
] = lambda partition: {}
if tags_fn_for_date:
tags_fn = cast(
Callable[[datetime.datetime], Optional[Dict[str, str]]], tags_fn_for_date
)
tags_fn_for_partition_value = lambda partition: tags_fn(partition.value)
fmt = DEFAULT_MONTHLY_FORMAT
partition_params = TimeBasedPartitionParams(
schedule_type=ScheduleType.MONTHLY,
start=start_date,
execution_day=execution_day_of_month,
execution_time=execution_time,
end=end_date,
fmt=fmt,
timezone=execution_timezone,
offset=partition_months_offset,
)
partition_set = PartitionSetDefinition(
name="{}_partitions".format(schedule_name),
pipeline_name=pipeline_name,
run_config_fn_for_partition=lambda partition: fn(partition.value),
solid_selection=solid_selection,
tags_fn_for_partition=tags_fn_for_partition_value,
mode=mode,
partition_params=partition_params,
)
schedule_def = partition_set.create_schedule_definition(
schedule_name,
partition_params.get_cron_schedule(),
should_execute=should_execute,
environment_vars=environment_vars,
partition_selector=create_offset_partition_selector(
execution_time_to_partition_fn=partition_params.get_execution_time_to_partition_fn()
),
execution_timezone=execution_timezone,
description=description,
decorated_fn=fn,
job=job,
)
update_wrapper(schedule_def, wrapped=fn)
return schedule_def
return inner
def weekly_schedule(
pipeline_name: Optional[str],
start_date: datetime.datetime,
name: Optional[str] = None,
execution_day_of_week: int = 0,
execution_time: datetime.time = datetime.time(0, 0),
tags_fn_for_date: Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]] = None,
solid_selection: Optional[List[str]] = None,
mode: Optional[str] = "default",
should_execute: Optional[Callable[["ScheduleExecutionContext"], bool]] = None,
environment_vars: Optional[Dict[str, str]] = None,
end_date: Optional[datetime.datetime] = None,
execution_timezone: Optional[str] = None,
partition_weeks_offset: Optional[int] = 1,
description: Optional[str] = None,
job: Optional[PipelineDefinition] = None,
) -> Callable[[Callable[[datetime.datetime], Dict[str, Any]]], PartitionScheduleDefinition]:
"""Create a partitioned schedule that runs daily.
The decorated function should accept a datetime object as its only argument. The datetime
represents the date partition that it's meant to run on.
The decorated function should return a run configuration dictionary, which will be used as
configuration for the scheduled run.
The decorator produces a :py:class:`~dagster.PartitionScheduleDefinition`.
Args:
pipeline_name (str): The name of the pipeline to execute when the schedule runs.
start_date (datetime.datetime): The date from which to run the schedule.
name (Optional[str]): The name of the schedule to create.
execution_day_of_week (int): The day of the week on which to run the schedule. Must be
between 0 (Sunday) and 6 (Saturday).
execution_time (datetime.time): The time at which to execute the schedule.
tags_fn_for_date (Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]]): A
function that generates tags to attach to the schedules runs. Takes the date of the
schedule run and returns a dictionary of tags (string key-value pairs).
solid_selection (Optional[List[str]]): A list of solid subselection (including single
solid names) to execute when the schedule runs. e.g. ``['*some_solid+', 'other_solid']``
mode (Optional[str]): The pipeline mode in which to execute this schedule.
(Default: 'default')
should_execute (Optional[Callable[ScheduleExecutionContext, bool]]): A function that runs at
schedule execution tie to determine whether a schedule should execute or skip. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a boolean (``True`` if the
schedule should execute). Defaults to a function that always returns ``True``.
environment_vars (Optional[Dict[str, str]]): Any environment variables to set when executing
the schedule.
end_date (Optional[datetime.datetime]): The last time to run the schedule to, defaults to
current time.
execution_timezone (Optional[str]): Timezone in which the schedule should run. Only works
with DagsterDaemonScheduler, and must be set when using that scheduler.
partition_weeks_offset (Optional[int]): How many weeks back to go when choosing the partition
for a given schedule execution. For example, when partition_weeks_offset=1, the schedule
that executes during week N will fill in the partition for week N-1.
(Default: 1)
description (Optional[str]): A human-readable description of the schedule.
job (Optional[PipelineDefinition]): Experimental
"""
check.opt_str_param(name, "name")
check.inst_param(start_date, "start_date", datetime.datetime)
check.opt_inst_param(end_date, "end_date", datetime.datetime)
check.opt_callable_param(tags_fn_for_date, "tags_fn_for_date")
check.opt_nullable_list_param(solid_selection, "solid_selection", of_type=str)
mode = check.opt_str_param(mode, "mode", DEFAULT_MODE_NAME)
check.opt_callable_param(should_execute, "should_execute")
check.opt_dict_param(environment_vars, "environment_vars", key_type=str, value_type=str)
check.opt_str_param(pipeline_name, "pipeline_name")
check.int_param(execution_day_of_week, "execution_day_of_week")
check.inst_param(execution_time, "execution_time", datetime.time)
check.opt_str_param(execution_timezone, "execution_timezone")
check.opt_int_param(partition_weeks_offset, "partition_weeks_offset")
check.opt_str_param(description, "description")
if start_date.hour != 0 or start_date.minute != 0 or start_date.second != 0:
warnings.warn(
"`start_date` must be at the beginning of a day for a weekly schedule. "
"Use `execution_time` to execute the schedule at a specific time of day. For example, "
"to run the schedule at 3AM each Tuesday starting on 10/20/2020, your schedule "
"definition would look like:"
"""
@weekly_schedule(
start_date=datetime.datetime(2020, 10, 20),
execution_day_of_week=1,
execution_time=datetime.time(3, 0)
):
def my_schedule_definition(_):
...
"""
)
if execution_day_of_week < 0 or execution_day_of_week >= 7:
raise DagsterInvalidDefinitionError(
"`execution_day_of_week={}` is not valid for weekly schedule. Execution day must be "
"between 0 [Sunday] and 6 [Saturday]".format(execution_day_of_week)
)
def inner(fn: Callable[[datetime.datetime], Dict[str, Any]]) -> PartitionScheduleDefinition:
check.callable_param(fn, "fn")
schedule_name = name or fn.__name__
tags_fn_for_partition_value: Callable[
["Partition"], Optional[Dict[str, str]]
] = lambda partition: {}
if tags_fn_for_date:
tags_fn = cast(
Callable[[datetime.datetime], Optional[Dict[str, str]]], tags_fn_for_date
)
tags_fn_for_partition_value = lambda partition: tags_fn(partition.value)
fmt = DEFAULT_DATE_FORMAT
partition_params = TimeBasedPartitionParams(
schedule_type=ScheduleType.WEEKLY,
start=start_date,
execution_time=execution_time,
execution_day=execution_day_of_week,
end=end_date,
fmt=fmt,
timezone=execution_timezone,
offset=partition_weeks_offset,
)
partition_set = PartitionSetDefinition(
name="{}_partitions".format(schedule_name),
pipeline_name=pipeline_name,
run_config_fn_for_partition=lambda partition: fn(partition.value),
solid_selection=solid_selection,
tags_fn_for_partition=tags_fn_for_partition_value,
mode=mode,
partition_params=partition_params,
)
schedule_def = partition_set.create_schedule_definition(
schedule_name,
partition_params.get_cron_schedule(),
should_execute=should_execute,
environment_vars=environment_vars,
partition_selector=create_offset_partition_selector(
execution_time_to_partition_fn=partition_params.get_execution_time_to_partition_fn(),
),
execution_timezone=execution_timezone,
description=description,
decorated_fn=fn,
job=job,
)
update_wrapper(schedule_def, wrapped=fn)
return schedule_def
return inner
def daily_schedule(
pipeline_name: Optional[str],
start_date: datetime.datetime,
name: Optional[str] = None,
execution_time: datetime.time = datetime.time(0, 0),
tags_fn_for_date: Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]] = None,
solid_selection: Optional[List[str]] = None,
mode: Optional[str] = "default",
should_execute: Optional[Callable[["ScheduleExecutionContext"], bool]] = None,
environment_vars: Optional[Dict[str, str]] = None,
end_date: Optional[datetime.datetime] = None,
execution_timezone: Optional[str] = None,
partition_days_offset: Optional[int] = 1,
description: Optional[str] = None,
job: Optional[PipelineDefinition] = None,
) -> Callable[[Callable[[datetime.datetime], Dict[str, Any]]], PartitionScheduleDefinition]:
"""Create a partitioned schedule that runs daily.
The decorated function should accept a datetime object as its only argument. The datetime
represents the date partition that it's meant to run on.
The decorated function should return a run configuration dictionary, which will be used as
configuration for the scheduled run.
The decorator produces a :py:class:`~dagster.PartitionScheduleDefinition`.
Args:
pipeline_name (str): The name of the pipeline to execute when the schedule runs.
start_date (datetime.datetime): The date from which to run the schedule.
name (Optional[str]): The name of the schedule to create.
execution_time (datetime.time): The time at which to execute the schedule.
tags_fn_for_date (Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]]): A
function that generates tags to attach to the schedules runs. Takes the date of the
schedule run and returns a dictionary of tags (string key-value pairs).
solid_selection (Optional[List[str]]): A list of solid subselection (including single
solid names) to execute when the schedule runs. e.g. ``['*some_solid+', 'other_solid']``
mode (Optional[str]): The pipeline mode in which to execute this schedule.
(Default: 'default')
should_execute (Optional[Callable[ScheduleExecutionContext, bool]]): A function that runs at
schedule execution tie to determine whether a schedule should execute or skip. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a boolean (``True`` if the
schedule should execute). Defaults to a function that always returns ``True``.
environment_vars (Optional[Dict[str, str]]): Any environment variables to set when executing
the schedule.
end_date (Optional[datetime.datetime]): The last time to run the schedule to, defaults to
current time.
execution_timezone (Optional[str]): Timezone in which the schedule should run. Only works
with DagsterDaemonScheduler, and must be set when using that scheduler.
partition_days_offset (Optional[int]): How many days back to go when choosing the partition
for a given schedule execution. For example, when partition_days_offset=1, the schedule
that executes during day N will fill in the partition for day N-1.
(Default: 1)
description (Optional[str]): A human-readable description of the schedule.
job (Optional[PipelineDefinition]): Experimental
"""
check.opt_str_param(pipeline_name, "pipeline_name")
check.inst_param(start_date, "start_date", datetime.datetime)
check.opt_str_param(name, "name")
check.inst_param(execution_time, "execution_time", datetime.time)
check.opt_inst_param(end_date, "end_date", datetime.datetime)
check.opt_callable_param(tags_fn_for_date, "tags_fn_for_date")
check.opt_nullable_list_param(solid_selection, "solid_selection", of_type=str)
mode = check.opt_str_param(mode, "mode", DEFAULT_MODE_NAME)
check.opt_callable_param(should_execute, "should_execute")
check.opt_dict_param(environment_vars, "environment_vars", key_type=str, value_type=str)
check.opt_str_param(execution_timezone, "execution_timezone")
check.opt_int_param(partition_days_offset, "partition_days_offset")
check.opt_str_param(description, "description")
if start_date.hour != 0 or start_date.minute != 0 or start_date.second != 0:
warnings.warn(
"`start_date` must be at the beginning of a day for a daily schedule. "
"Use `execution_time` to execute the schedule at a specific time of day. For example, "
"to run the schedule at 3AM each day starting on 10/20/2020, your schedule "
"definition would look like:"
"""
@daily_schedule(
start_date=datetime.datetime(2020, 10, 20),
execution_time=datetime.time(3, 0)
):
def my_schedule_definition(_):
...
"""
)
fmt = DEFAULT_DATE_FORMAT
def inner(fn: Callable[[datetime.datetime], Dict[str, Any]]) -> PartitionScheduleDefinition:
check.callable_param(fn, "fn")
schedule_name = name or fn.__name__
tags_fn_for_partition_value: Callable[
["Partition"], Optional[Dict[str, str]]
] = lambda partition: {}
if tags_fn_for_date:
tags_fn = cast(
Callable[[datetime.datetime], Optional[Dict[str, str]]], tags_fn_for_date
)
tags_fn_for_partition_value = lambda partition: tags_fn(partition.value)
partition_params = TimeBasedPartitionParams(
schedule_type=ScheduleType.DAILY,
start=start_date,
execution_time=execution_time,
end=end_date,
fmt=fmt,
timezone=execution_timezone,
offset=partition_days_offset,
)
partition_set = PartitionSetDefinition(
name="{}_partitions".format(schedule_name),
pipeline_name=pipeline_name,
run_config_fn_for_partition=lambda partition: fn(partition.value),
solid_selection=solid_selection,
tags_fn_for_partition=tags_fn_for_partition_value,
mode=mode,
partition_params=partition_params,
)
schedule_def = partition_set.create_schedule_definition(
schedule_name,
partition_params.get_cron_schedule(),
should_execute=should_execute,
environment_vars=environment_vars,
partition_selector=create_offset_partition_selector(
execution_time_to_partition_fn=partition_params.get_execution_time_to_partition_fn(),
),
execution_timezone=execution_timezone,
description=description,
decorated_fn=fn,
job=job,
)
update_wrapper(schedule_def, wrapped=fn)
return schedule_def
return inner
def hourly_schedule(
pipeline_name: Optional[str],
start_date: datetime.datetime,
name: Optional[str] = None,
execution_time: datetime.time = datetime.time(0, 0),
tags_fn_for_date: Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]] = None,
solid_selection: Optional[List[str]] = None,
mode: Optional[str] = "default",
should_execute: Optional[Callable[["ScheduleExecutionContext"], bool]] = None,
environment_vars: Optional[Dict[str, str]] = None,
end_date: Optional[datetime.datetime] = None,
execution_timezone: Optional[str] = None,
partition_hours_offset: Optional[int] = 1,
description: Optional[str] = None,
job: Optional[PipelineDefinition] = None,
) -> Callable[[Callable[[datetime.datetime], Dict[str, Any]]], PartitionScheduleDefinition]:
"""Create a partitioned schedule that runs hourly.
The decorated function should accept a datetime object as its only argument. The datetime
represents the date partition that it's meant to run on.
The decorated function should return a run configuration dictionary, which will be used as
configuration for the scheduled run.
The decorator produces a :py:class:`~dagster.PartitionScheduleDefinition`.
Args:
pipeline_name (str): The name of the pipeline to execute when the schedule runs.
start_date (datetime.datetime): The date from which to run the schedule.
name (Optional[str]): The name of the schedule to create. By default, this will be the name
of the decorated function.
execution_time (datetime.time): The time at which to execute the schedule. Only the minutes
component will be respected -- the hour should be 0, and will be ignored if it is not 0.
tags_fn_for_date (Optional[Callable[[datetime.datetime], Optional[Dict[str, str]]]]): A
function that generates tags to attach to the schedules runs. Takes the date of the
schedule run and returns a dictionary of tags (string key-value pairs).
solid_selection (Optional[List[str]]): A list of solid subselection (including single
solid names) to execute when the schedule runs. e.g. ``['*some_solid+', 'other_solid']``
mode (Optional[str]): The pipeline mode in which to execute this schedule.
(Default: 'default')
should_execute (Optional[Callable[ScheduleExecutionContext, bool]]): A function that runs at
schedule execution tie to determine whether a schedule should execute or skip. Takes a
:py:class:`~dagster.ScheduleExecutionContext` and returns a boolean (``True`` if the
schedule should execute). Defaults to a function that always returns ``True``.
environment_vars (Optional[Dict[str, str]]): Any environment variables to set when executing
the schedule.
end_date (Optional[datetime.datetime]): The last time to run the schedule to, defaults to
current time.
execution_timezone (Optional[str]): Timezone in which the schedule should run. Only works
with DagsterDaemonScheduler, and must be set when using that scheduler.
partition_hours_offset (Optional[int]): How many hours back to go when choosing the partition
for a given schedule execution. For example, when partition_hours_offset=1, the schedule
that executes during hour N will fill in the partition for hour N-1.
(Default: 1)
description (Optional[str]): A human-readable description of the schedule.
job (Optional[PipelineDefinition]): Experimental
"""
check.opt_str_param(name, "name")
check.inst_param(start_date, "start_date", datetime.datetime)
check.opt_inst_param(end_date, "end_date", datetime.datetime)
check.opt_callable_param(tags_fn_for_date, "tags_fn_for_date")
check.opt_nullable_list_param(solid_selection, "solid_selection", of_type=str)
mode = check.opt_str_param(mode, "mode", DEFAULT_MODE_NAME)
check.opt_callable_param(should_execute, "should_execute")
check.opt_dict_param(environment_vars, "environment_vars", key_type=str, value_type=str)
check.opt_str_param(pipeline_name, "pipeline_name")
check.inst_param(execution_time, "execution_time", datetime.time)
check.opt_str_param(execution_timezone, "execution_timezone")
check.opt_int_param(partition_hours_offset, "partition_hours_offset")
check.opt_str_param(description, "description")
if start_date.minute != 0 or start_date.second != 0:
warnings.warn(
"`start_date` must be at the beginning of the hour for an hourly schedule. "
"Use `execution_time` to execute the schedule at a specific time within the hour. For "
"example, to run the schedule each hour at 15 minutes past the hour starting at 3AM "
"on 10/20/2020, your schedule definition would look like:"
"""
@hourly_schedule(
start_date=datetime.datetime(2020, 10, 20, 3),
execution_time=datetime.time(0, 15)
):
def my_schedule_definition(_):
...
"""
)
if execution_time.hour != 0:
warnings.warn(
"Hourly schedule {schedule_name} created with:\n"
"\tschedule_time=datetime.time(hour={hour}, minute={minute}, ...)."
"Since this is an hourly schedule, the hour parameter will be ignored and the schedule "
"will run on the {minute} mark for the previous hour interval. Replace "
"datetime.time(hour={hour}, minute={minute}, ...) with "
"datetime.time(minute={minute}, ...) to fix this warning."
)
def inner(fn: Callable[[datetime.datetime], Dict[str, Any]]) -> PartitionScheduleDefinition:
check.callable_param(fn, "fn")
schedule_name = name or fn.__name__
tags_fn_for_partition_value: Callable[
["Partition"], Optional[Dict[str, str]]
] = lambda partition: {}
if tags_fn_for_date:
tags_fn = cast(
Callable[[datetime.datetime], Optional[Dict[str, str]]], tags_fn_for_date
)
tags_fn_for_partition_value = lambda partition: tags_fn(partition.value)
fmt = (
DEFAULT_HOURLY_FORMAT_WITH_TIMEZONE
if execution_timezone
else DEFAULT_HOURLY_FORMAT_WITHOUT_TIMEZONE
)
partition_params = TimeBasedPartitionParams(
schedule_type=ScheduleType.HOURLY,
start=start_date,
execution_time=execution_time,
end=end_date,
fmt=fmt,
timezone=execution_timezone,
offset=partition_hours_offset,
)
partition_set = PartitionSetDefinition(
name="{}_partitions".format(schedule_name),
pipeline_name=pipeline_name,
run_config_fn_for_partition=lambda partition: fn(partition.value),
solid_selection=solid_selection,
tags_fn_for_partition=tags_fn_for_partition_value,
mode=mode,
partition_params=partition_params,
)
schedule_def = partition_set.create_schedule_definition(
schedule_name,
partition_params.get_cron_schedule(),
should_execute=should_execute,
environment_vars=environment_vars,
partition_selector=create_offset_partition_selector(
execution_time_to_partition_fn=partition_params.get_execution_time_to_partition_fn(),
),
execution_timezone=execution_timezone,
description=description,
decorated_fn=fn,
job=job,
)
update_wrapper(schedule_def, wrapped=fn)
return schedule_def
return inner
| 48.233894
| 103
| 0.687505
| 4,234
| 34,439
| 5.385923
| 0.059991
| 0.032319
| 0.015787
| 0.022891
| 0.89629
| 0.871251
| 0.847132
| 0.825206
| 0.815778
| 0.802359
| 0
| 0.005455
| 0.228113
| 34,439
| 713
| 104
| 48.301543
| 0.852387
| 0.364354
| 0
| 0.700713
| 0
| 0
| 0.134687
| 0.023229
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023753
| false
| 0
| 0.028504
| 0
| 0.07601
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0a882137a9078a60adbef7e7191c3e6fea2f774a
| 20
|
py
|
Python
|
python/tempCodeRunnerFile.py
|
entroy0421/main
|
1e1f51a4b63adaaaf21f8fda58daec3fc06b8b1e
|
[
"Apache-2.0"
] | null | null | null |
python/tempCodeRunnerFile.py
|
entroy0421/main
|
1e1f51a4b63adaaaf21f8fda58daec3fc06b8b1e
|
[
"Apache-2.0"
] | null | null | null |
python/tempCodeRunnerFile.py
|
entroy0421/main
|
1e1f51a4b63adaaaf21f8fda58daec3fc06b8b1e
|
[
"Apache-2.0"
] | null | null | null |
,[[0,0]*13]
print(S)
| 10
| 11
| 0.5
| 5
| 20
| 2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0.05
| 20
| 2
| 12
| 10
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
0adb78f59f43075ee26d5d8dfab928511280f42f
| 99,321
|
py
|
Python
|
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/chardet/langturkishmodel.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | 227
|
2021-01-20T05:34:32.000Z
|
2022-03-29T12:43:05.000Z
|
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/chardet/langturkishmodel.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | 55
|
2020-09-07T02:12:51.000Z
|
2022-03-23T02:37:42.000Z
|
TimeWrapper_JE/venv/Lib/site-packages/pip/_vendor/chardet/langturkishmodel.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | 239
|
2021-01-28T02:59:53.000Z
|
2022-03-29T08:02:17.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
# 3: Positive
# 2: Likely
# 1: Unlikely
# 0: Negative
TURKISH_LANG_MODEL = {
23: { # 'A'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 1, # 'i'
24: 0, # 'j'
10: 2, # 'k'
5: 1, # 'l'
13: 1, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 1, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
37: { # 'B'
23: 0, # 'A'
37: 0, # 'B'
47: 2, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
47: { # 'C'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 1, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 2, # 'l'
13: 2, # 'm'
4: 2, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 2, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 1, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
39: { # 'D'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 1, # 'l'
13: 3, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 1, # 'Ş'
19: 0, # 'ş'
},
29: { # 'E'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 1, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 0, # 'h'
3: 1, # 'i'
24: 1, # 'j'
10: 0, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 1, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
52: { # 'F'
23: 0, # 'A'
37: 1, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 1, # 'E'
52: 2, # 'F'
36: 0, # 'G'
45: 2, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 1, # 'b'
28: 1, # 'c'
12: 1, # 'd'
2: 0, # 'e'
18: 1, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 2, # 'i'
24: 1, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 2, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 2, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 1, # 'Ö'
55: 2, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 2, # 'ş'
},
36: { # 'G'
23: 1, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 2, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 2, # 'N'
42: 1, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 1, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 1, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 0, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 1, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 2, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
45: { # 'H'
23: 0, # 'A'
37: 1, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 2, # 'G'
45: 1, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 1, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 2, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 2, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 1, # 'p'
7: 1, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 2, # 'ğ'
41: 1, # 'İ'
6: 0, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
53: { # 'I'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 2, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
60: { # 'J'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 0, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 1, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 1, # 's'
9: 0, # 't'
14: 0, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
16: { # 'K'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 1, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 0, # 'u'
32: 3, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 1, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
49: { # 'L'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 2, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 2, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 0, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 2, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 2, # 'n'
15: 1, # 'o'
26: 1, # 'p'
7: 1, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 0, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 2, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 1, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
20: { # 'M'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 2, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 0, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
46: { # 'N'
23: 0, # 'A'
37: 1, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 1, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 1, # 'o'
26: 1, # 'p'
7: 1, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 1, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 1, # 'İ'
6: 2, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
42: { # 'O'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 1, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 2, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 2, # 'İ'
6: 1, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
48: { # 'P'
23: 0, # 'A'
37: 0, # 'B'
47: 2, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 2, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 0, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
44: { # 'R'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 1, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 2, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 1, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
35: { # 'S'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 1, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 1, # 'l'
13: 2, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 1, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 2, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
31: { # 'T'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 3, # 'e'
18: 2, # 'f'
27: 2, # 'g'
25: 0, # 'h'
3: 1, # 'i'
24: 1, # 'j'
10: 2, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 2, # 'r'
8: 0, # 's'
9: 2, # 't'
14: 2, # 'u'
32: 1, # 'v'
57: 1, # 'w'
58: 1, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
51: { # 'U'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 1, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 1, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
38: { # 'V'
23: 1, # 'A'
37: 1, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 2, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 1, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 1, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 3, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
62: { # 'W'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 0, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 0, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 0, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
43: { # 'Y'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 0, # 'G'
45: 1, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 2, # 'N'
42: 0, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 1, # 'j'
10: 1, # 'k'
5: 1, # 'l'
13: 3, # 'm'
4: 0, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 1, # 'Ü'
59: 1, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 0, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
56: { # 'Z'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 2, # 'Z'
1: 2, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 2, # 'i'
24: 1, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 1, # 'r'
8: 1, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
1: { # 'a'
23: 3, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 3, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 2, # 'Z'
1: 2, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 2, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 3, # 'v'
57: 2, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 1, # 'î'
34: 1, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
21: { # 'b'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 3, # 'g'
25: 1, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 3, # 'p'
7: 1, # 'r'
8: 2, # 's'
9: 2, # 't'
14: 2, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
28: { # 'c'
23: 0, # 'A'
37: 1, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 2, # 'E'
52: 0, # 'F'
36: 2, # 'G'
45: 2, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 2, # 'T'
51: 2, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 3, # 'Y'
56: 0, # 'Z'
1: 1, # 'a'
21: 1, # 'b'
28: 2, # 'c'
12: 2, # 'd'
2: 1, # 'e'
18: 1, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 1, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 2, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 1, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 1, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 1, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 1, # 'î'
34: 2, # 'ö'
17: 2, # 'ü'
30: 2, # 'ğ'
41: 1, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 2, # 'ş'
},
12: { # 'd'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 2, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 1, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 2, # 'i'
24: 3, # 'j'
10: 2, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 2, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 1, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
2: { # 'e'
23: 2, # 'A'
37: 0, # 'B'
47: 2, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 3, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 2, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 3, # 'v'
57: 2, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 1, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
18: { # 'f'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 2, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 1, # 'i'
24: 1, # 'j'
10: 1, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 1, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 1, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
27: { # 'g'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 1, # 'h'
3: 2, # 'i'
24: 3, # 'j'
10: 2, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 2, # 'r'
8: 2, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
25: { # 'h'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 2, # 'h'
3: 2, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 1, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
3: { # 'i'
23: 2, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 1, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 2, # 'f'
27: 3, # 'g'
25: 1, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 1, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 1, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 1, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 1, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
24: { # 'j'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 2, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 1, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 2, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 2, # 'i'
24: 1, # 'j'
10: 2, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 2, # 'r'
8: 3, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 2, # 'x'
11: 1, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
10: { # 'k'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 3, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 3, # 'e'
18: 1, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 2, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 3, # 'p'
7: 2, # 'r'
8: 2, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 3, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
5: { # 'l'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 1, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 1, # 'l'
13: 1, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 2, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
13: { # 'm'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 3, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 2, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 2, # 'u'
32: 2, # 'v'
57: 1, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
4: { # 'n'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 2, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 1, # 'f'
27: 2, # 'g'
25: 3, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 3, # 'p'
7: 2, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 2, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
15: { # 'o'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 2, # 'L'
20: 0, # 'M'
46: 2, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 1, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 1, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 2, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 2, # 'ğ'
41: 2, # 'İ'
6: 3, # 'ı'
40: 2, # 'Ş'
19: 2, # 'ş'
},
26: { # 'p'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 2, # 'i'
24: 3, # 'j'
10: 1, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 2, # 'r'
8: 1, # 's'
9: 1, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 1, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
7: { # 'r'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 1, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 2, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 1, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 3, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
8: { # 's'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 2, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 2, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
9: { # 't'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 2, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 3, # 'v'
57: 0, # 'w'
58: 2, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
14: { # 'u'
23: 3, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 2, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 3, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 2, # 'Z'
1: 2, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 2, # 'e'
18: 2, # 'f'
27: 3, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 2, # 'v'
57: 2, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 3, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
32: { # 'v'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 1, # 'j'
10: 1, # 'k'
5: 3, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 1, # 'r'
8: 2, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
57: { # 'w'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 1, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 1, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 1, # 's'
9: 0, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 2, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
58: { # 'x'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 1, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 1, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 2, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 1, # 'r'
8: 2, # 's'
9: 1, # 't'
14: 0, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
11: { # 'y'
23: 1, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 2, # 'i'
24: 1, # 'j'
10: 2, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 2, # 'r'
8: 1, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 3, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
22: { # 'z'
23: 2, # 'A'
37: 2, # 'B'
47: 1, # 'C'
39: 2, # 'D'
29: 3, # 'E'
52: 1, # 'F'
36: 2, # 'G'
45: 2, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 2, # 'N'
42: 2, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 3, # 'T'
51: 2, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 1, # 'Z'
1: 1, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 2, # 'd'
2: 2, # 'e'
18: 3, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 2, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 0, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 3, # 'y'
22: 2, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 2, # 'Ü'
59: 1, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 2, # 'ü'
30: 2, # 'ğ'
41: 1, # 'İ'
6: 3, # 'ı'
40: 1, # 'Ş'
19: 2, # 'ş'
},
63: { # '·'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 1, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
54: { # 'Ç'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 1, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 1, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 0, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 0, # 'h'
3: 3, # 'i'
24: 0, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 2, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 2, # 'r'
8: 0, # 's'
9: 1, # 't'
14: 0, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 2, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
50: { # 'Ö'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 2, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 2, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 1, # 'N'
42: 2, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 2, # 'd'
2: 0, # 'e'
18: 1, # 'f'
27: 1, # 'g'
25: 1, # 'h'
3: 2, # 'i'
24: 0, # 'j'
10: 2, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 3, # 'n'
15: 2, # 'o'
26: 2, # 'p'
7: 3, # 'r'
8: 1, # 's'
9: 2, # 't'
14: 0, # 'u'
32: 1, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 2, # 'ü'
30: 1, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
55: { # 'Ü'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 1, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 1, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 1, # 'l'
13: 1, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 1, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 1, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 0, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
59: { # 'â'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 0, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 2, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 2, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 1, # 'Ş'
19: 0, # 'ş'
},
33: { # 'ç'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 3, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 0, # 'Z'
1: 0, # 'a'
21: 3, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 0, # 'e'
18: 2, # 'f'
27: 1, # 'g'
25: 3, # 'h'
3: 3, # 'i'
24: 0, # 'j'
10: 3, # 'k'
5: 0, # 'l'
13: 0, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 2, # 's'
9: 3, # 't'
14: 0, # 'u'
32: 2, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 1, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
61: { # 'î'
23: 0, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 0, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 0, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 2, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 1, # 'j'
10: 0, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 1, # 'n'
15: 0, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 1, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 1, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 1, # 'î'
34: 0, # 'ö'
17: 0, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 1, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
34: { # 'ö'
23: 0, # 'A'
37: 1, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 1, # 'G'
45: 1, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 1, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 2, # 'c'
12: 1, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 2, # 'h'
3: 1, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 2, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 0, # 'r'
8: 3, # 's'
9: 1, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 1, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 0, # 'ü'
30: 2, # 'ğ'
41: 1, # 'İ'
6: 1, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
17: { # 'ü'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 0, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 1, # 'J'
16: 1, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 0, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 0, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 0, # 'c'
12: 1, # 'd'
2: 3, # 'e'
18: 1, # 'f'
27: 2, # 'g'
25: 0, # 'h'
3: 1, # 'i'
24: 1, # 'j'
10: 2, # 'k'
5: 3, # 'l'
13: 2, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 2, # 'p'
7: 2, # 'r'
8: 3, # 's'
9: 2, # 't'
14: 3, # 'u'
32: 1, # 'v'
57: 1, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 2, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
30: { # 'ğ'
23: 0, # 'A'
37: 2, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 1, # 'M'
46: 2, # 'N'
42: 2, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 0, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 2, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 0, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 2, # 'e'
18: 0, # 'f'
27: 0, # 'g'
25: 0, # 'h'
3: 0, # 'i'
24: 3, # 'j'
10: 1, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 0, # 'n'
15: 1, # 'o'
26: 0, # 'p'
7: 1, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 2, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 2, # 'İ'
6: 2, # 'ı'
40: 2, # 'Ş'
19: 1, # 'ş'
},
41: { # 'İ'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 1, # 'E'
52: 0, # 'F'
36: 2, # 'G'
45: 2, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 0, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 0, # 'Z'
1: 1, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 2, # 'd'
2: 1, # 'e'
18: 0, # 'f'
27: 3, # 'g'
25: 2, # 'h'
3: 2, # 'i'
24: 2, # 'j'
10: 2, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 3, # 'n'
15: 1, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 2, # 't'
14: 0, # 'u'
32: 0, # 'v'
57: 1, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 1, # 'Ü'
59: 1, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 1, # 'ö'
17: 1, # 'ü'
30: 2, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 1, # 'ş'
},
6: { # 'ı'
23: 2, # 'A'
37: 0, # 'B'
47: 0, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 2, # 'J'
16: 3, # 'K'
49: 0, # 'L'
20: 3, # 'M'
46: 1, # 'N'
42: 0, # 'O'
48: 0, # 'P'
44: 0, # 'R'
35: 0, # 'S'
31: 2, # 'T'
51: 0, # 'U'
38: 0, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 1, # 'Z'
1: 3, # 'a'
21: 2, # 'b'
28: 1, # 'c'
12: 3, # 'd'
2: 3, # 'e'
18: 3, # 'f'
27: 3, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 3, # 'j'
10: 3, # 'k'
5: 3, # 'l'
13: 3, # 'm'
4: 3, # 'n'
15: 0, # 'o'
26: 3, # 'p'
7: 3, # 'r'
8: 3, # 's'
9: 3, # 't'
14: 3, # 'u'
32: 3, # 'v'
57: 1, # 'w'
58: 1, # 'x'
11: 3, # 'y'
22: 0, # 'z'
63: 1, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 2, # 'ç'
61: 0, # 'î'
34: 0, # 'ö'
17: 3, # 'ü'
30: 0, # 'ğ'
41: 0, # 'İ'
6: 3, # 'ı'
40: 0, # 'Ş'
19: 0, # 'ş'
},
40: { # 'Ş'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 1, # 'D'
29: 1, # 'E'
52: 0, # 'F'
36: 1, # 'G'
45: 2, # 'H'
53: 1, # 'I'
60: 0, # 'J'
16: 0, # 'K'
49: 0, # 'L'
20: 2, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 2, # 'P'
44: 2, # 'R'
35: 1, # 'S'
31: 1, # 'T'
51: 0, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 2, # 'Y'
56: 1, # 'Z'
1: 0, # 'a'
21: 2, # 'b'
28: 0, # 'c'
12: 2, # 'd'
2: 0, # 'e'
18: 3, # 'f'
27: 0, # 'g'
25: 2, # 'h'
3: 3, # 'i'
24: 2, # 'j'
10: 1, # 'k'
5: 0, # 'l'
13: 1, # 'm'
4: 3, # 'n'
15: 2, # 'o'
26: 0, # 'p'
7: 3, # 'r'
8: 2, # 's'
9: 2, # 't'
14: 1, # 'u'
32: 3, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 2, # 'y'
22: 0, # 'z'
63: 0, # '·'
54: 0, # 'Ç'
50: 0, # 'Ö'
55: 1, # 'Ü'
59: 0, # 'â'
33: 0, # 'ç'
61: 0, # 'î'
34: 2, # 'ö'
17: 1, # 'ü'
30: 2, # 'ğ'
41: 0, # 'İ'
6: 2, # 'ı'
40: 1, # 'Ş'
19: 2, # 'ş'
},
19: { # 'ş'
23: 0, # 'A'
37: 0, # 'B'
47: 1, # 'C'
39: 0, # 'D'
29: 0, # 'E'
52: 2, # 'F'
36: 1, # 'G'
45: 0, # 'H'
53: 0, # 'I'
60: 0, # 'J'
16: 3, # 'K'
49: 2, # 'L'
20: 0, # 'M'
46: 1, # 'N'
42: 1, # 'O'
48: 1, # 'P'
44: 1, # 'R'
35: 1, # 'S'
31: 0, # 'T'
51: 1, # 'U'
38: 1, # 'V'
62: 0, # 'W'
43: 1, # 'Y'
56: 0, # 'Z'
1: 3, # 'a'
21: 1, # 'b'
28: 2, # 'c'
12: 0, # 'd'
2: 3, # 'e'
18: 0, # 'f'
27: 2, # 'g'
25: 1, # 'h'
3: 1, # 'i'
24: 0, # 'j'
10: 2, # 'k'
5: 2, # 'l'
13: 3, # 'm'
4: 0, # 'n'
15: 0, # 'o'
26: 1, # 'p'
7: 3, # 'r'
8: 0, # 's'
9: 0, # 't'
14: 3, # 'u'
32: 0, # 'v'
57: 0, # 'w'
58: 0, # 'x'
11: 0, # 'y'
22: 2, # 'z'
63: 0, # '·'
54: 1, # 'Ç'
50: 2, # 'Ö'
55: 0, # 'Ü'
59: 0, # 'â'
33: 1, # 'ç'
61: 1, # 'î'
34: 2, # 'ö'
17: 0, # 'ü'
30: 1, # 'ğ'
41: 1, # 'İ'
6: 1, # 'ı'
40: 1, # 'Ş'
19: 1, # 'ş'
},
}
# 255: Undefined characters that did not exist in training text
# 254: Carriage/Return
# 253: symbol (punctuation) that does not belong to word
# 252: 0 - 9
# 251: Control characters
# Character Mapping Table(s):
ISO_8859_9_TURKISH_CHAR_TO_ORDER = {
0: 255, # '\x00'
1: 255, # '\x01'
2: 255, # '\x02'
3: 255, # '\x03'
4: 255, # '\x04'
5: 255, # '\x05'
6: 255, # '\x06'
7: 255, # '\x07'
8: 255, # '\x08'
9: 255, # '\t'
10: 255, # '\n'
11: 255, # '\x0b'
12: 255, # '\x0c'
13: 255, # '\r'
14: 255, # '\x0e'
15: 255, # '\x0f'
16: 255, # '\x10'
17: 255, # '\x11'
18: 255, # '\x12'
19: 255, # '\x13'
20: 255, # '\x14'
21: 255, # '\x15'
22: 255, # '\x16'
23: 255, # '\x17'
24: 255, # '\x18'
25: 255, # '\x19'
26: 255, # '\x1a'
27: 255, # '\x1b'
28: 255, # '\x1c'
29: 255, # '\x1d'
30: 255, # '\x1e'
31: 255, # '\x1f'
32: 255, # ' '
33: 255, # '!'
34: 255, # '"'
35: 255, # '#'
36: 255, # '$'
37: 255, # '%'
38: 255, # '&'
39: 255, # "'"
40: 255, # '('
41: 255, # ')'
42: 255, # '*'
43: 255, # '+'
44: 255, # ','
45: 255, # '-'
46: 255, # '.'
47: 255, # '/'
48: 255, # '0'
49: 255, # '1'
50: 255, # '2'
51: 255, # '3'
52: 255, # '4'
53: 255, # '5'
54: 255, # '6'
55: 255, # '7'
56: 255, # '8'
57: 255, # '9'
58: 255, # ':'
59: 255, # ';'
60: 255, # '<'
61: 255, # '='
62: 255, # '>'
63: 255, # '?'
64: 255, # '@'
65: 23, # 'A'
66: 37, # 'B'
67: 47, # 'C'
68: 39, # 'D'
69: 29, # 'E'
70: 52, # 'F'
71: 36, # 'G'
72: 45, # 'H'
73: 53, # 'I'
74: 60, # 'J'
75: 16, # 'K'
76: 49, # 'L'
77: 20, # 'M'
78: 46, # 'N'
79: 42, # 'O'
80: 48, # 'P'
81: 69, # 'Q'
82: 44, # 'R'
83: 35, # 'S'
84: 31, # 'T'
85: 51, # 'U'
86: 38, # 'V'
87: 62, # 'W'
88: 65, # 'X'
89: 43, # 'Y'
90: 56, # 'Z'
91: 255, # '['
92: 255, # '\\'
93: 255, # ']'
94: 255, # '^'
95: 255, # '_'
96: 255, # '`'
97: 1, # 'a'
98: 21, # 'b'
99: 28, # 'c'
100: 12, # 'd'
101: 2, # 'e'
102: 18, # 'f'
103: 27, # 'g'
104: 25, # 'h'
105: 3, # 'i'
106: 24, # 'j'
107: 10, # 'k'
108: 5, # 'l'
109: 13, # 'm'
110: 4, # 'n'
111: 15, # 'o'
112: 26, # 'p'
113: 64, # 'q'
114: 7, # 'r'
115: 8, # 's'
116: 9, # 't'
117: 14, # 'u'
118: 32, # 'v'
119: 57, # 'w'
120: 58, # 'x'
121: 11, # 'y'
122: 22, # 'z'
123: 255, # '{'
124: 255, # '|'
125: 255, # '}'
126: 255, # '~'
127: 255, # '\x7f'
128: 180, # '\x80'
129: 179, # '\x81'
130: 178, # '\x82'
131: 177, # '\x83'
132: 176, # '\x84'
133: 175, # '\x85'
134: 174, # '\x86'
135: 173, # '\x87'
136: 172, # '\x88'
137: 171, # '\x89'
138: 170, # '\x8a'
139: 169, # '\x8b'
140: 168, # '\x8c'
141: 167, # '\x8d'
142: 166, # '\x8e'
143: 165, # '\x8f'
144: 164, # '\x90'
145: 163, # '\x91'
146: 162, # '\x92'
147: 161, # '\x93'
148: 160, # '\x94'
149: 159, # '\x95'
150: 101, # '\x96'
151: 158, # '\x97'
152: 157, # '\x98'
153: 156, # '\x99'
154: 155, # '\x9a'
155: 154, # '\x9b'
156: 153, # '\x9c'
157: 152, # '\x9d'
158: 151, # '\x9e'
159: 106, # '\x9f'
160: 150, # '\xa0'
161: 149, # '¡'
162: 148, # '¢'
163: 147, # '£'
164: 146, # '¤'
165: 145, # '¥'
166: 144, # '¦'
167: 100, # '§'
168: 143, # '¨'
169: 142, # '©'
170: 141, # 'ª'
171: 140, # '«'
172: 139, # '¬'
173: 138, # '\xad'
174: 137, # '®'
175: 136, # '¯'
176: 94, # '°'
177: 80, # '±'
178: 93, # '²'
179: 135, # '³'
180: 105, # '´'
181: 134, # 'µ'
182: 133, # '¶'
183: 63, # '·'
184: 132, # '¸'
185: 131, # '¹'
186: 130, # 'º'
187: 129, # '»'
188: 128, # '¼'
189: 127, # '½'
190: 126, # '¾'
191: 125, # '¿'
192: 124, # 'À'
193: 104, # 'Á'
194: 73, # 'Â'
195: 99, # 'Ã'
196: 79, # 'Ä'
197: 85, # 'Å'
198: 123, # 'Æ'
199: 54, # 'Ç'
200: 122, # 'È'
201: 98, # 'É'
202: 92, # 'Ê'
203: 121, # 'Ë'
204: 120, # 'Ì'
205: 91, # 'Í'
206: 103, # 'Î'
207: 119, # 'Ï'
208: 68, # 'Ğ'
209: 118, # 'Ñ'
210: 117, # 'Ò'
211: 97, # 'Ó'
212: 116, # 'Ô'
213: 115, # 'Õ'
214: 50, # 'Ö'
215: 90, # '×'
216: 114, # 'Ø'
217: 113, # 'Ù'
218: 112, # 'Ú'
219: 111, # 'Û'
220: 55, # 'Ü'
221: 41, # 'İ'
222: 40, # 'Ş'
223: 86, # 'ß'
224: 89, # 'à'
225: 70, # 'á'
226: 59, # 'â'
227: 78, # 'ã'
228: 71, # 'ä'
229: 82, # 'å'
230: 88, # 'æ'
231: 33, # 'ç'
232: 77, # 'è'
233: 66, # 'é'
234: 84, # 'ê'
235: 83, # 'ë'
236: 110, # 'ì'
237: 75, # 'í'
238: 61, # 'î'
239: 96, # 'ï'
240: 30, # 'ğ'
241: 67, # 'ñ'
242: 109, # 'ò'
243: 74, # 'ó'
244: 87, # 'ô'
245: 102, # 'õ'
246: 34, # 'ö'
247: 95, # '÷'
248: 81, # 'ø'
249: 108, # 'ù'
250: 76, # 'ú'
251: 72, # 'û'
252: 17, # 'ü'
253: 6, # 'ı'
254: 19, # 'ş'
255: 107, # 'ÿ'
}
ISO_8859_9_TURKISH_MODEL = SingleByteCharSetModel(charset_name='ISO-8859-9',
language='Turkish',
char_to_order_map=ISO_8859_9_TURKISH_CHAR_TO_ORDER,
language_model=TURKISH_LANG_MODEL,
typical_positive_ratio=0.97029,
keep_ascii_letters=True,
alphabet='ABCDEFGHIJKLMNOPRSTUVYZabcdefghijklmnoprstuvyzÂÇÎÖÛÜâçîöûüĞğİıŞş')
| 22.655338
| 127
| 0.178079
| 12,945
| 99,321
| 1.376207
| 0.035767
| 0.01336
| 0.014145
| 0.017682
| 0.866854
| 0.865563
| 0.865507
| 0.860791
| 0.851417
| 0.850351
| 0
| 0.327437
| 0.602169
| 99,321
| 4,383
| 128
| 22.660507
| 0.119328
| 0.177566
| 0
| 0.908778
| 0
| 0
| 0.00111
| 0.000877
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.000229
| 0
| 0.000229
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
7c5c224c3c21a4ac1920e51096f4f848c122e3cd
| 58,378
|
py
|
Python
|
wflow/wflow/reservoir_Su.py
|
quanpands/wflow
|
b454a55e4a63556eaac3fbabd97f8a0b80901e5a
|
[
"MIT"
] | null | null | null |
wflow/wflow/reservoir_Su.py
|
quanpands/wflow
|
b454a55e4a63556eaac3fbabd97f8a0b80901e5a
|
[
"MIT"
] | null | null | null |
wflow/wflow/reservoir_Su.py
|
quanpands/wflow
|
b454a55e4a63556eaac3fbabd97f8a0b80901e5a
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 03 16:31:35 2014
@author: TEuser
List all function versions
"""
try:
from wflow.wf_DynamicFramework import *
except ImportError:
from .wf_DynamicFramework import *
from . import JarvisCoefficients
def selectSuR(i):
"""
not all functions are still in this file, the older functions can be found
(with the same numbering) in h:\My Documents\memo's\python scripts\wflow\
"""
if i == 1:
name = "unsatZone_LP_beta"
elif i == 2:
name = "unsatZone_LP"
elif i == 3:
name = "unsatZone_SF"
elif i == 4:
name = "unsatZone_EisEp"
elif i == 5:
name = "unsatZone_drain"
elif i == 6:
name = "unsatZone_drain_split"
elif i == 7:
name = "unsatZone_drain_Sumin"
elif i == 8:
name = "unsatZone_drain_DZ"
elif i == 9:
name = "unsatZone_drain_split_DZ"
elif i == 10:
name = "unsatZone_withAgri"
elif i == 11:
name = "unsatZone_withAgri_oldBeta"
elif i == 12:
name = "unsatZone_LP_beta_Jarvis"
elif i == 13:
name = "unsatZone_LP_beta_Ep"
elif i == 14:
name = "unsatZone_withAgri_Ep"
elif i == 15:
name = "unsatZone_withAgri_Jarvis"
elif i == 16:
name = "unsatZone_forAgri_Jarvis"
elif i == 17:
name = "unsatZone_forAgri_Ep"
elif i == 18:
name = "unsatZone_forAgri_Jarvis_cropG"
elif i == 19:
name = "unsatZone_forAgri_Ep_cropG"
elif i == 20:
name = "unsatZone_LP_beta_Ep_cropG"
return name
def unsatZone_no_reservoir(self, k):
"""
This function is used when no unsaturated zone reservoir is used and only
passes fluxes from the upper reservoirs to the lower
Qu = Pe
Eu = 0.
Perc = 0.
Cap = 0.
Storage in unsaturated zone = 0.
"""
self.Qu_[k] = pcr.max(self.Pe_[k], 0)
self.Eu_[k] = 0.0
self.Perc_[k] = 0.0
self.Su[k] = 0.0
self.Cap_[k] = 0.0
self.wbSu_[k] = (
self.Pe - self.Eu - self.Qu - self.Perc + self.Cap - self.Su[k] + self.Su_t[k]
)
def unsatZone_LP_beta(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 1
"""
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax[k] * self.LP[k]), 1
)
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Quadd
def unsatZone_LP_beta_Jarvis(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on Jarvis stress functions
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 12
"""
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
JarvisCoefficients.calcEu(
self, k, 1
) # calculation of Eu based on Jarvis stress functions
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(self.Qu1 + self.Perc1 > 0, self.Qu1 + self.Perc1, 1)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(self.Qu1 + self.Perc1 > 0, self.Qu1 + self.Perc1, 1)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Quadd
def unsatZone_LP_beta_Ep(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 13
"""
# pdb.set_trace()
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax[k] * self.LP[k]), 1
)
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Quadd
self.Epot_[k] = self.PotEvaporation
def unsatZone_LP_beta_Ep_Ei(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 13
"""
# pdb.set_trace()
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.ifthenelse(
self.SiN == 1,
0,
pcr.max((self.PotEvaporation), 0)
* pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]), 1),
)
# self.Eu1 = pcr.max((self.PotEvaporation),0) * pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]),1)
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Quadd
self.Epot_[k] = self.PotEvaporation
def unsatZone_LP_beta_Ep_percD(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 13
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax[k] * self.LP[k]), 1
)
self.percDeep = self.percD[-1]
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN + self.percDeep
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
self.Epot_[k] = self.PotEvaporation
def unsatZone_LP_beta_Ep_percD(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 13
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax[k] * self.LP[k]), 1
)
self.percDeep = self.percD[-1]
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN + self.percDeep
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
self.Epot_[k] = self.PotEvaporation
def unsatZone_LP_beta_Ep_percDvar(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 13
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax[k],
self.Su_t[k] + self.Pe - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.drought = pcr.ifthenelse(
self.SuN < self.LP[k],
self.TopoId,
pcr.ifthenelse(
pcr.pcrand(self.SuN < 0.8, self.drought),
self.TopoId,
pcr.boolean(pcr.scalar(self.TopoId) * 0),
),
)
self.stijg = pcr.max(
pcr.min(
pcr.scalar(
pcr.ifthenelse(
self.drought == 1, self.stijg + self.Su_t[k] - self.Su_t2[k], 0
)
),
self.sumax[k] * 100,
),
0,
)
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax[k] * self.LP[k]), 1
)
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
# self.percDeep = pcr.max(10 * (1 - self.Ss / 30) * self.perc[k], 0)
self.percDeep = 0.8 * self.stijg * self.perc[k]
self.Perc1 = self.perc[k] * self.SuN + self.percDeep
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
self.Epot_[k] = self.PotEvaporation
self.percDeep_[k] = self.percDeep
def unsatZone_LP_beta_Ep_cropG(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- root zone storage for crop land is decreased in autumn and winter
- Code for ini-file: 20
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.cropG_scal = pcr.pcr2numpy(self.cropG, np.nan)
if any(self.cropG_scal == 1):
self.sumax2 = self.sumax[k]
elif any(self.cropG_scal > 0):
self.sumax2 = self.sumax[k] * (
1 - numpy.max(self.cropG_scal[self.cropG_scal >= 0]) * (1 - self.redsu[k])
)
else:
self.sumax2 = self.sumax[k] * self.redsu[k]
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax2, self.sumax2, self.Su_t[k] + self.Pe
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Pe > self.sumax2, self.Su_t[k] + self.Pe - self.sumax2, 0
)
self.SuN = self.Su[k] / self.sumax2
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax2 * self.LP[k]), 1
)
self.Qu1 = (self.Pe - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = (
self.Su_t[k] + (self.Pe - self.Quadd) - self.Qu1 - self.Eu1 - self.Perc1
)
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Pe - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax2), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Pe
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Quadd
def unsatZone_forAgri_Jarvis(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on Jarvis stress functions
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 16
"""
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k],
self.Su_t[k] + self.Fa - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
JarvisCoefficients.calcEu(
self, k, 2
) # calculation of Eu based on Jarvis stress functions
self.Eu1 = self.Eu
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_Ep(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on beta/LP
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 17
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k],
self.Su_t[k] + self.Fa - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.ifthenelse(
self.Ft_[k] == 1,
pcr.max((self.PotEvaporation - self.Ei - self.Ea), 0)
* pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]), 1),
0,
) # no transpiration in case of frozen soil. Added on 22 feb 2016
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_Ep_percD(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on beta/LP
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 17
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k],
self.Su_t[k] + self.Fa - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.ifthenelse(
self.Ft_[k] == 1,
pcr.max((self.PotEvaporation - self.Ei - self.Ea), 0)
* pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]), 1),
0,
) # no transpiration in case of frozen soil. Added on 22 feb 2016
self.percDeep = self.percD[-1]
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN + self.percDeep
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_Ep_percDvar(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on beta/LP
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 17
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k],
self.Su_t[k] + self.Fa - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.drought = pcr.ifthenelse(
self.SuN < self.LP[k],
self.TopoId,
pcr.ifthenelse(
pcr.pcrand(self.SuN < 0.8, self.drought),
self.TopoId,
pcr.boolean(pcr.scalar(self.TopoId) * 0),
),
)
self.stijg = pcr.max(
pcr.min(
pcr.scalar(
pcr.ifthenelse(
self.drought == 1, self.stijg + self.Su_t[k] - self.Su_t2[k], 0
)
),
self.sumax[k] * 100,
),
0,
)
# self.stijg = pcr.max(self.Su_t[k] - self.Su_t2[k], 0)
self.Eu1 = pcr.ifthenelse(
self.Ft_[k] == 1,
pcr.max((self.PotEvaporation - self.Ei - self.Ea), 0)
* pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]), 1),
0,
) # no transpiration in case of frozen soil. Added on 22 feb 2016
self.percDeep = 0.8 * self.stijg * self.perc[k]
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN + self.percDeep
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_hourlyEp(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on beta/LP
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 25
"""
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k], self.sumax[k], self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax[k],
self.Su_t[k] + self.Fa - self.sumax[k],
0,
)
self.SuN = self.Su[k] / self.sumax[k]
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.ifthenelse(
self.Ft_[k] == 1,
pcr.max((self.PotEvaporation - self.Ei - self.Ea), 0)
* pcr.min(self.Su[k] / (self.sumax[k] * self.LP[k]), 1),
0,
) # no transpiration in case of frozen soil. Added on 31 mrt 2016
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax[k]), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_Jarvis_cropG(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on Jarvis stress functions
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 18
"""
self.cropG_scal = pcr.pcr2numpy(self.cropG, np.nan)
if any(self.cropG_scal == 1):
self.sumax2 = self.sumax[k]
else:
self.sumax2 = self.sumax[k] * self.redsu[k]
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax2, self.sumax2, self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax2, self.Su_t[k] + self.Fa - self.sumax2, 0
)
self.SuN = self.Su[k] / self.sumax2
self.SiN = self.Si[k] / self.imax[k]
JarvisCoefficients.calcEu(
self, k, 2
) # calculation of Eu based on Jarvis stress functions
self.Eu1 = self.Eu
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax2), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_forAgri_Ep_cropG(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation based on beta/LP
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato --> Eu is
no longer taken into account for this correction
- Qu is determined with a beta function (same as in HBV?)
- inflow is infiltration from agriculture reservoir
- Code for ini-file: 19
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.cropG_scal = pcr.pcr2numpy(self.cropG, np.nan)
if any(self.cropG_scal == 1):
self.sumax2 = self.sumax[k]
else:
self.sumax2 = self.sumax[k] * self.redsu[k]
self.Su[k] = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax2, self.sumax2, self.Su_t[k] + self.Fa
)
self.Quadd = pcr.ifthenelse(
self.Su_t[k] + self.Fa > self.sumax2, self.Su_t[k] + self.Fa - self.sumax2, 0
)
self.SuN = self.Su[k] / self.sumax2
self.SiN = self.Si[k] / self.imax[k]
self.Eu1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Su[k] / (self.sumax2 * self.LP[k]), 1
)
self.Qu1 = (self.Fa - self.Quadd) * (1 - (1 - self.SuN) ** self.beta[k])
self.Perc1 = self.perc[k] * self.SuN
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Qu1 - self.Eu - self.Perc1
self.Su_diff = pcr.ifthenelse(self.Su[k] < 0, self.Su[k], 0)
self.Eu = (
self.Eu1
+ (
self.Eu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Qu = (
self.Qu1
+ (
self.Qu1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff
)
self.Perc = pcr.ifthenelse(
self.Perc1 > 0,
self.Perc1
+ (
self.Perc1
/ pcr.ifthenelse(
self.Qu1 + self.Eu1 + self.Perc1 > 0,
self.Qu1 + self.Eu1 + self.Perc1,
1,
)
)
* self.Su_diff,
self.Perc1,
)
self.Su[k] = self.Su_t[k] + (self.Fa - self.Quadd) - self.Eu - self.Qu - self.Perc
self.Su[k] = pcr.ifthenelse(self.Su[k] < 0, 0, self.Su[k])
self.Su_diff2 = pcr.ifthen(self.Su[k] < 0, self.Su[k])
self.Cap = pcr.min(self.cap[k] * (1 - self.Su[k] / self.sumax2), self.Ss)
self.Su[k] = self.Su[k] + self.Cap
self.wbSu_[k] = (
self.Fa
- self.Eu
- self.Qu
- self.Quadd
- self.Perc
+ self.Cap
- self.Su[k]
+ self.Su_t[k]
)
self.Eu_[k] = self.Eu
self.Qu_[k] = self.Qu + self.Quadd
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
def unsatZone_withAgri(self, k):
"""
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 10
"""
self.Sa[k] = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k], self.samax[k], self.Sa_t[k] + self.Pe
)
self.Qaadd = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k],
self.Sa_t[k] + self.Pe - self.samax[k],
0,
)
self.SaN = self.Sa[k] / self.samax[k]
self.Ea1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Sa[k] / (self.samax[k] * self.LP[k]), 1
)
self.Qa1 = (self.Pe - self.Qaadd) * (1 - (1 - self.SaN) ** self.beta[k])
self.Fa1 = self.famax[k] * (self.sumax[k] - self.Su[k]) / self.sumax[k]
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Qa1 - self.Ea1 - self.Fa1
self.Sa_diff = pcr.ifthenelse(self.Sa[k] < 0, self.Sa[k], 0)
self.Ea = (
self.Ea1
+ (
self.Ea1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff
)
self.Qa = (
self.Qa1
+ (
self.Qa1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff
)
self.Fa = pcr.ifthenelse(
self.Fa1 > 0,
self.Fa1
+ (
self.Fa1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff,
self.Fa1,
)
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Ea - self.Qa - self.Fa
self.Sa[k] = pcr.ifthenelse(self.Sa[k] < 0, 0, self.Sa[k])
self.Sa_diff2 = pcr.ifthen(self.Sa[k] < 0, self.Sa[k])
self.Capa = pcr.min(self.cap[k] * (1 - self.Sa[k] / self.samax[k]), self.Su[k])
self.Sa[k] = self.Sa[k] + self.Capa
self.Su[k] = self.Su_t[k] + self.Fa - self.Capa
self.Perc = self.perc[k] * (self.Su[k] / self.sumax[k])
self.Su[k] = self.Su[k] - self.Perc
self.wbSa_[k] = (
self.Pe
- self.Ea
- self.Qa
- self.Qaadd
- self.Fa
+ self.Capa
- self.Sa[k]
+ self.Sa_t[k]
)
self.wbSu_[k] = self.Fa - self.Perc - self.Capa - self.Su[k] + self.Su_t[k]
self.Eu_[k] = self.Ea
self.Qu_[k] = self.Qa + self.Qaadd
self.Fa_[k] = self.Fa
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Qaadd
def unsatZone_withAgri_Ep(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 14
"""
JarvisCoefficients.calcEp(self, k)
self.PotEvaporation = pcr.cover(pcr.ifthenelse(self.EpHour >= 0, self.EpHour, 0), 0)
self.Sa[k] = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k], self.samax[k], self.Sa_t[k] + self.Pe
)
self.Qaadd = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k],
self.Sa_t[k] + self.Pe - self.samax[k],
0,
)
self.SaN = self.Sa[k] / self.samax[k]
self.Ea1 = pcr.max((self.PotEvaporation - self.Ei), 0) * pcr.min(
self.Sa[k] / (self.samax[k] * self.LP[k]), 1
)
self.Qa1 = (self.Pe - self.Qaadd) * (1 - (1 - self.SaN) ** self.beta[k])
self.Fa1 = self.famax[k] * (self.sumax[k] - self.Su[k]) / self.sumax[k]
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Qa1 - self.Ea1 - self.Fa1
self.Sa_diff = pcr.ifthenelse(self.Sa[k] < 0, self.Sa[k], 0)
self.Ea = (
self.Ea1
+ (
self.Ea1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff
)
self.Qa = (
self.Qa1
+ (
self.Qa1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff
)
self.Fa = pcr.ifthenelse(
self.Fa1 > 0,
self.Fa1
+ (
self.Fa1
/ pcr.ifthenelse(
self.Qa1 + self.Ea1 + self.Fa1 > 0, self.Qa1 + self.Ea1 + self.Fa1, 1
)
)
* self.Sa_diff,
self.Fa1,
)
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Ea - self.Qa - self.Fa
self.Sa[k] = pcr.ifthenelse(self.Sa[k] < 0, 0, self.Sa[k])
self.Sa_diff2 = pcr.ifthen(self.Sa[k] < 0, self.Sa[k])
self.Capa = pcr.min(self.cap[k] * (1 - self.Sa[k] / self.samax[k]), self.Su[k])
self.Sa[k] = self.Sa[k] + self.Capa
self.Su[k] = self.Su_t[k] + self.Fa - self.Capa
self.Perc = self.perc[k] * (self.Su[k] / self.sumax[k])
self.Su[k] = self.Su[k] - self.Perc
self.wbSa_[k] = (
self.Pe
- self.Ea
- self.Qa
- self.Qaadd
- self.Fa
+ self.Capa
- self.Sa[k]
+ self.Sa_t[k]
)
self.wbSu_[k] = self.Fa - self.Perc - self.Capa - self.Su[k] + self.Su_t[k]
self.Eu_[k] = self.Ea
self.Qu_[k] = self.Qa + self.Qaadd
self.Fa_[k] = self.Fa
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
# self.Su_diff_[k] = self.Su_diff
# self.Quadd_[k] = self.Qaadd
def unsatZone_withAgri_Jarvis(self, k):
"""
- Potential evaporation is calculated with formula in 'JarvisCoefficients', but without
using the Jarvis stress functions
- Potential evaporation is decreased by energy used for interception evaporation
- Formula for evaporation linear until LP, from than with potential rate
- Outgoing fluxes are determined based on (value in previous timestep + inflow)
and if this leads to negative storage, the outgoing fluxes are corrected to rato
- Qu is determined with a beta function (same as in HBV?)
- Code for ini-file: 15
"""
self.Sa[k] = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k], self.samax[k], self.Sa_t[k] + self.Pe
)
self.Qaadd = pcr.ifthenelse(
self.Sa_t[k] + self.Pe > self.samax[k],
self.Sa_t[k] + self.Pe - self.samax[k],
0,
)
self.SaN = self.Sa[k] / self.samax[k]
JarvisCoefficients.calcEu(
self, k, 1
) # calculation of Eu based on Jarvis stress functions
self.Ea = self.Eu
self.Qa1 = (self.Pe - self.Qaadd) * (1 - (1 - self.SaN) ** self.beta[k])
self.Fa1 = self.famax[k] * (self.sumax[k] - self.Su[k]) / self.sumax[k]
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Qa1 - self.Ea - self.Fa1
self.Sa_diff = pcr.ifthenelse(self.Sa[k] < 0, self.Sa[k], 0)
self.Qa = (
self.Qa1
+ (self.Qa1 / pcr.ifthenelse(self.Qa1 + self.Fa1 > 0, self.Qa1 + self.Fa1, 1))
* self.Sa_diff
)
self.Fa = pcr.ifthenelse(
self.Fa1 > 0,
self.Fa1
+ (self.Fa1 / pcr.ifthenelse(self.Qa1 + self.Fa1 > 0, self.Qa1 + self.Fa1, 1))
* self.Sa_diff,
self.Fa1,
)
self.Sa[k] = self.Sa_t[k] + (self.Pe - self.Qaadd) - self.Ea - self.Qa - self.Fa
self.Sa[k] = pcr.ifthenelse(self.Sa[k] < 0, 0, self.Sa[k])
self.Sa_diff2 = pcr.ifthen(self.Sa[k] < 0, self.Sa[k])
self.Capa = pcr.min(self.cap[k] * (1 - self.Sa[k] / self.samax[k]), self.Su[k])
self.Sa[k] = self.Sa[k] + self.Capa
self.Su[k] = self.Su_t[k] + self.Fa - self.Capa
self.Perc = self.perc[k] * (self.Su[k] / self.sumax[k])
self.Su[k] = self.Su[k] - self.Perc
self.wbSa_[k] = (
self.Pe
- self.Ea
- self.Qa
- self.Qaadd
- self.Fa
+ self.Capa
- self.Sa[k]
+ self.Sa_t[k]
)
self.wbSu_[k] = self.Fa - self.Perc - self.Capa - self.Su[k] + self.Su_t[k]
self.Eu_[k] = self.Ea
self.Qu_[k] = self.Qa + self.Qaadd
self.Fa_[k] = self.Fa
self.Cap_[k] = self.Cap
self.Perc_[k] = self.Perc
| 30.936937
| 107
| 0.533951
| 8,371
| 58,378
| 3.666945
| 0.028193
| 0.103271
| 0.059519
| 0.06092
| 0.955792
| 0.952665
| 0.95185
| 0.950938
| 0.950645
| 0.950124
| 0
| 0.02809
| 0.323718
| 58,378
| 1,886
| 108
| 30.95334
| 0.749417
| 0.180959
| 0
| 0.783491
| 0
| 0
| 0.008836
| 0.005706
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013532
| false
| 0
| 0.002706
| 0
| 0.016915
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6b20b08da55e656cab73229f6904ef49825d1d05
| 88
|
py
|
Python
|
StreamAudioOverNetwork/network/networkutility.py
|
TheDigitalPhoenixX/Stream-Audio-Over-Network
|
5d1c5e1f4fadf0dfb9cf13355376a657c483d8c9
|
[
"MIT"
] | null | null | null |
StreamAudioOverNetwork/network/networkutility.py
|
TheDigitalPhoenixX/Stream-Audio-Over-Network
|
5d1c5e1f4fadf0dfb9cf13355376a657c483d8c9
|
[
"MIT"
] | null | null | null |
StreamAudioOverNetwork/network/networkutility.py
|
TheDigitalPhoenixX/Stream-Audio-Over-Network
|
5d1c5e1f4fadf0dfb9cf13355376a657c483d8c9
|
[
"MIT"
] | null | null | null |
import socket
def getLocalIP():
return socket.gethostbyname(socket.gethostname())
| 14.666667
| 53
| 0.761364
| 9
| 88
| 7.444444
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 88
| 5
| 54
| 17.6
| 0.881579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
6b22f8c26754bf4622a3d047250fcdefebeabec8
| 137,581
|
py
|
Python
|
apps/oozie/src/oozie/models2_tests.py
|
sandeepreddy3647/hue-1
|
03981c392ef35ae52052fb94549ec3a7b7074b8d
|
[
"Apache-2.0"
] | 1
|
2020-05-17T06:40:33.000Z
|
2020-05-17T06:40:33.000Z
|
apps/oozie/src/oozie/models2_tests.py
|
sandeepreddy3647/hue-1
|
03981c392ef35ae52052fb94549ec3a7b7074b8d
|
[
"Apache-2.0"
] | 3
|
2020-04-06T07:09:33.000Z
|
2021-05-10T17:02:07.000Z
|
apps/oozie/src/oozie/models2_tests.py
|
sandeepreddy3647/hue-1
|
03981c392ef35ae52052fb94549ec3a7b7074b8d
|
[
"Apache-2.0"
] | 1
|
2020-07-25T19:38:10.000Z
|
2020-07-25T19:38:10.000Z
|
#!/usr/bin/env python
## -*- coding: utf-8 -*-
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from builtins import str
from builtins import object
import json
import logging
import re
from django.contrib.auth.models import User
from django.urls import reverse
from django.db.models import Q
from nose.plugins.attrib import attr
from nose.tools import assert_true, assert_false, assert_equal, assert_not_equal, assert_raises
from desktop.conf import USE_DEFAULT_CONFIGURATION, USE_NEW_EDITOR
from desktop.lib.django_test_util import make_logged_in_client
from desktop.lib.test_utils import add_permission, add_to_group, grant_access, remove_from_group
from desktop.models import DefaultConfiguration, Document, Document2
from notebook.models import make_notebook, make_notebook2
from notebook.api import _save_notebook
from oozie.conf import ENABLE_V2
from oozie.importlib.workflows import generate_v2_graph_nodes
from oozie.models2 import Node, Workflow, WorkflowConfiguration, find_dollar_variables, find_dollar_braced_variables, \
_create_graph_adjaceny_list, _get_hierarchy_from_adj_list, WorkflowBuilder, WorkflowDepthReached
from oozie.tests import OozieMockBase, save_temp_workflow, MockOozieApi
LOG = logging.getLogger(__name__)
class TestEditor(OozieMockBase):
def setUp(self):
super(TestEditor, self).setUp()
self.wf = Workflow()
self.client_not_me = make_logged_in_client(username="not_perm_user", groupname="default", recreate=True,
is_superuser=False)
self.user_not_me = User.objects.get(username="not_perm_user")
@attr('integration')
def test_create_new_workflow(self):
response = self.c.get(reverse('oozie:new_workflow'))
assert_equal(200, response.status_code)
def test_create_new_coordinator(self):
response = self.c.get(reverse('oozie:new_coordinator'))
assert_equal(200, response.status_code)
def test_create_new_bundle(self):
response = self.c.get(reverse('oozie:new_bundle'))
assert_equal(200, response.status_code)
def test_parsing(self):
assert_equal(['input', 'LIMIT', 'out'], find_dollar_variables("""
data = '$input';
$out = LIMIT data $LIMIT; -- ${nah}
$output = STORE "$out";
"""))
assert_equal(['max_salary', 'limit'], find_dollar_variables("""
SELECT sample_07.description, sample_07.salary
FROM
sample_07
WHERE
( sample_07.salary > $max_salary)
ORDER BY sample_07.salary DESC
LIMIT $limit"""))
def test_hive_script_parsing(self):
assert_equal(['field', 'tablename', 'LIMIT'], find_dollar_braced_variables("""
SELECT ${field}
FROM ${hivevar:tablename}
LIMIT ${hiveconf:LIMIT}
"""))
assert_equal(['field', 'tablename', 'LIMIT'], find_dollar_braced_variables("SELECT ${field} FROM ${hivevar:tablename} LIMIT ${hiveconf:LIMIT}"))
def test_workflow_gen_xml(self):
assert_equal([
u'<workflow-app', u'name="My', u'Workflow"', u'xmlns="uri:oozie:workflow:0.5">', u'<start', u'to="End"/>', u'<kill', u'name="Kill">', u'<message>Action', u'failed,',
u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>', u'</kill>', u'<end', u'name="End"/>', u'</workflow-app>'],
self.wf.to_xml({'output': '/path'}).split()
)
def test_workflow_map_reduce_gen_xml(self):
wf = Workflow(data="{\"layout\": [{\"oozieRows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"MapReduce job\", \"widgetType\": \"mapreduce-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"size\": 12}], \"id\": \"e2caca14-8afc-d7e0-287c-88accd0b4253\", \"columns\": []}], \"rows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"ff63ee3f-df54-2fa3-477b-65f5e0f0632c\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"MapReduce job\", \"widgetType\": \"mapreduce-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"size\": 12}], \"id\": \"e2caca14-8afc-d7e0-287c-88accd0b4253\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"6a13d869-d04c-8431-6c5c-dbe67ea33889\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"e3b56553-7a4f-43d2-b1e2-4dc433280095\", \"columns\": []}], \"oozieEndRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"6a13d869-d04c-8431-6c5c-dbe67ea33889\", \"columns\": []}, \"oozieKillRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"e3b56553-7a4f-43d2-b1e2-4dc433280095\", \"columns\": []}, \"enableOozieDropOnAfter\": true, \"oozieStartRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"ff63ee3f-df54-2fa3-477b-65f5e0f0632c\", \"columns\": []}, \"klass\": \"card card-home card-column span12\", \"enableOozieDropOnBefore\": true, \"drops\": [\"temp\"], \"id\": \"0c1908e7-0096-46e7-a16b-b17b1142a730\", \"size\": 12}], \"workflow\": {\"properties\": {\"job_xml\": \"\", \"description\": \"\", \"wf1_id\": null, \"sla_enabled\": false, \"deployment_dir\": \"/user/hue/oozie/workspaces/hue-oozie-1430228904.58\", \"schema_version\": \"uri:oozie:workflow:0.5\", \"sla\": [{\"key\": \"enabled\", \"value\": false}, {\"key\": \"nominal-time\", \"value\": \"${nominal_time}\"}, {\"key\": \"should-start\", \"value\": \"\"}, {\"key\": \"should-end\", \"value\": \"${30 * MINUTES}\"}, {\"key\": \"max-duration\", \"value\": \"\"}, {\"key\": \"alert-events\", \"value\": \"\"}, {\"key\": \"alert-contact\", \"value\": \"\"}, {\"key\": \"notification-msg\", \"value\": \"\"}, {\"key\": \"upstream-apps\", \"value\": \"\"}], \"show_arrows\": true, \"parameters\": [{\"name\": \"oozie.use.system.libpath\", \"value\": true}], \"properties\": []}, \"name\": \"My Workflow\", \"versions\": [\"uri:oozie:workflow:0.4\", \"uri:oozie:workflow:0.4.5\", \"uri:oozie:workflow:0.5\"], \"isDirty\": true, \"movedNode\": null, \"linkMapping\": {\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\": [\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"], \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": [], \"3f107997-04cc-8733-60a9-a4bb62cebffc\": [\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"], \"17c9c895-5a16-7443-bb81-f34b30b21548\": []}, \"nodeIds\": [\"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"], \"nodes\": [{\"properties\": {}, \"name\": \"Start\", \"children\": [{\"to\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"}], \"actionParametersFetched\": false, \"type\": \"start-widget\", \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"actionParameters\": []}, {\"properties\": {}, \"name\": \"End\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"end-widget\", \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"actionParameters\": []}, {\"properties\": {\"message\": \"Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]\"}, \"name\": \"Kill\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"kill-widget\", \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"actionParameters\": []}, {\"properties\": {\"retry_max\": [{\"value\": \"5\"}], \"files\": [], \"job_xml\": \"\", \"jar_path\": \"my_jar\", \"job_properties\": [{\"name\": \"prop_1_name\", \"value\": \"prop_1_value\"}], \"archives\": [], \"prepares\": [], \"credentials\": [], \"sla\": [{\"key\": \"enabled\", \"value\": false}, {\"key\": \"nominal-time\", \"value\": \"${nominal_time}\"}, {\"key\": \"should-start\", \"value\": \"\"}, {\"key\": \"should-end\", \"value\": \"${30 * MINUTES}\"}, {\"key\": \"max-duration\", \"value\": \"\"}, {\"key\": \"alert-events\", \"value\": \"\"}, {\"key\": \"alert-contact\", \"value\": \"\"}, {\"key\": \"notification-msg\", \"value\": \"\"}, {\"key\": \"upstream-apps\", \"value\": \"\"}]}, \"name\": \"mapreduce-0cf2\", \"children\": [{\"to\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"}, {\"error\": \"17c9c895-5a16-7443-bb81-f34b30b21548\"}], \"actionParametersFetched\": false, \"type\": \"mapreduce-widget\", \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"actionParameters\": []}], \"id\": 50019, \"nodeNamesMapping\": {\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\": \"mapreduce-0cf2\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": \"End\", \"3f107997-04cc-8733-60a9-a4bb62cebffc\": \"Start\", \"17c9c895-5a16-7443-bb81-f34b30b21548\": \"Kill\"}, \"uuid\": \"084f4d4c-00f1-62d2-e27e-e153c1f9acfb\"}}")
assert_equal([
u'<workflow-app', u'name="My', u'Workflow"', u'xmlns="uri:oozie:workflow:0.5">',
u'<start', u'to="mapreduce-0cf2"/>',
u'<kill', u'name="Kill">', u'<message>Action', u'failed,', u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>', u'</kill>',
u'<action', u'name="mapreduce-0cf2"', 'retry-max="5">',
u'<map-reduce>',
u'<job-tracker>${jobTracker}</job-tracker>',
u'<name-node>${nameNode}</name-node>',
u'<configuration>',
u'<property>',
u'<name>prop_1_name</name>',
u'<value>prop_1_value</value>',
u'</property>',
u'</configuration>',
u'</map-reduce>',
u'<ok', u'to="End"/>',
u'<error', u'to="Kill"/>',
u'</action>',
u'<end', u'name="End"/>',
u'</workflow-app>'
],
wf.to_xml({'output': '/path'}).split()
)
def test_workflow_java_gen_xml(self):
wf = Workflow(data="{\"layout\": [{\"oozieRows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Java program\", \"widgetType\": \"java-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": true, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"6ddafdc4-c070-95f0-4211-328e9f31daf6\", \"size\": 12}], \"id\": \"badb3c81-78d6-8099-38fc-87a9904ba78c\", \"columns\": []}], \"rows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"adc3fe69-36eb-20f8-09ac-38fada1582b2\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Java program\", \"widgetType\": \"java-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": true, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"6ddafdc4-c070-95f0-4211-328e9f31daf6\", \"size\": 12}], \"id\": \"badb3c81-78d6-8099-38fc-87a9904ba78c\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"107bdacf-a37a-d69e-98dd-5801407cb57e\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"81e1869c-a2c3-66d2-c703-719335ea45cb\", \"columns\": []}], \"oozieEndRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"107bdacf-a37a-d69e-98dd-5801407cb57e\", \"columns\": []}, \"oozieKillRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"81e1869c-a2c3-66d2-c703-719335ea45cb\", \"columns\": []}, \"enableOozieDropOnAfter\": true, \"oozieStartRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"adc3fe69-36eb-20f8-09ac-38fada1582b2\", \"columns\": []}, \"klass\": \"card card-home card-column span12\", \"enableOozieDropOnBefore\": true, \"drops\": [\"temp\"], \"id\": \"8e0f37a5-2dfb-7329-be44-78e60b2cf62b\", \"size\": 12}], \"workflow\": {\"properties\": {\"job_xml\": \"\", \"description\": \"\", \"wf1_id\": null, \"sla_enabled\": false, \"deployment_dir\": \"/user/hue/oozie/workspaces/hue-oozie-1449080135.8\", \"schema_version\": \"uri:oozie:workflow:0.5\", \"properties\": [], \"show_arrows\": true, \"parameters\": [{\"name\": \"oozie.use.system.libpath\", \"value\": true}], \"sla\": [{\"value\": false, \"key\": \"enabled\"}, {\"value\": \"${nominal_time}\", \"key\": \"nominal-time\"}, {\"value\": \"\", \"key\": \"should-start\"}, {\"value\": \"${30 * MINUTES}\", \"key\": \"should-end\"}, {\"value\": \"\", \"key\": \"max-duration\"}, {\"value\": \"\", \"key\": \"alert-events\"}, {\"value\": \"\", \"key\": \"alert-contact\"}, {\"value\": \"\", \"key\": \"notification-msg\"}, {\"value\": \"\", \"key\": \"upstream-apps\"}]}, \"name\": \"My Workflow\", \"versions\": [\"uri:oozie:workflow:0.4\", \"uri:oozie:workflow:0.4.5\", \"uri:oozie:workflow:0.5\"], \"isDirty\": false, \"movedNode\": null, \"linkMapping\": {\"6ddafdc4-c070-95f0-4211-328e9f31daf6\": [\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"], \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": [], \"3f107997-04cc-8733-60a9-a4bb62cebffc\": [\"6ddafdc4-c070-95f0-4211-328e9f31daf6\"], \"17c9c895-5a16-7443-bb81-f34b30b21548\": []}, \"nodeIds\": [\"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"6ddafdc4-c070-95f0-4211-328e9f31daf6\"], \"nodes\": [{\"properties\": {}, \"name\": \"Start\", \"children\": [{\"to\": \"6ddafdc4-c070-95f0-4211-328e9f31daf6\"}], \"actionParametersFetched\": false, \"type\": \"start-widget\", \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"actionParameters\": []}, {\"properties\": {}, \"name\": \"End\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"end-widget\", \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"actionParameters\": []}, {\"properties\": {\"body\": \"\", \"cc\": \"\", \"to\": \"\", \"enableMail\": false, \"message\": \"Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]\", \"subject\": \"\"}, \"name\": \"Kill\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"kill-widget\", \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"actionParameters\": []}, {\"properties\": {\"files\": [{\"value\": \"/my_file\"}], \"job_xml\": [], \"jar_path\": \"/my/jar\", \"java_opts\": [{\"value\": \"-Dsun.security.jgss.debug=true\"}], \"retry_max\": [], \"retry_interval\": [], \"job_properties\": [], \"capture_output\": false, \"main_class\": \"MyClass\", \"arguments\": [{\"value\": \"my_arg\"}], \"prepares\": [], \"credentials\": [], \"sla\": [{\"value\": false, \"key\": \"enabled\"}, {\"value\": \"${nominal_time}\", \"key\": \"nominal-time\"}, {\"value\": \"\", \"key\": \"should-start\"}, {\"value\": \"${30 * MINUTES}\", \"key\": \"should-end\"}, {\"value\": \"\", \"key\": \"max-duration\"}, {\"value\": \"\", \"key\": \"alert-events\"}, {\"value\": \"\", \"key\": \"alert-contact\"}, {\"value\": \"\", \"key\": \"notification-msg\"}, {\"value\": \"\", \"key\": \"upstream-apps\"}], \"archives\": []}, \"name\": \"java-6dda\", \"children\": [{\"to\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"}, {\"error\": \"17c9c895-5a16-7443-bb81-f34b30b21548\"}], \"actionParametersFetched\": false, \"type\": \"java-widget\", \"id\": \"6ddafdc4-c070-95f0-4211-328e9f31daf6\", \"actionParameters\": []}], \"id\": 50247, \"nodeNamesMapping\": {\"6ddafdc4-c070-95f0-4211-328e9f31daf6\": \"java-6dda\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": \"End\", \"3f107997-04cc-8733-60a9-a4bb62cebffc\": \"Start\", \"17c9c895-5a16-7443-bb81-f34b30b21548\": \"Kill\"}, \"uuid\": \"2667d60e-d894-c27b-6e6f-0333704c0989\"}}")
assert_equal([
u'<workflow-app', u'name="My', u'Workflow"', u'xmlns="uri:oozie:workflow:0.5">',
u'<start', u'to="java-6dda"/>',
u'<kill', u'name="Kill">',
u'<message>Action', u'failed,',
u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>',
u'</kill>',
u'<action', u'name="java-6dda">',
u'<java>',
u'<job-tracker>${jobTracker}</job-tracker>',
u'<name-node>${nameNode}</name-node>',
u'<main-class>MyClass</main-class>',
u'<java-opts>-Dsun.security.jgss.debug=true</java-opts>',
u'<arg>my_arg</arg>',
u'<file>/my_file#my_file</file>',
u'</java>',
u'<ok', u'to="End"/>',
u'<error', u'to="Kill"/>',
u'</action>',
u'<end', u'name="End"/>',
u'</workflow-app>'
],
wf.to_xml({'output': '/path'}).split()
)
def test_workflow_generic_gen_xml(self):
workflow = """{"layout": [{"oozieRows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Generic", "widgetType": "generic-widget", "oozieMovable": true, "ooziePropertiesExpanded": true, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "e96bb09b-84d1-6864-5782-42942bab97cb", "size": 12}], "id": "ed10631a-f264-9a3b-aa09-b04cb76f5c32", "columns": []}], "rows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "68d83128-2c08-28f6-e9d1-a912d20f8af5", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Generic", "widgetType": "generic-widget", "oozieMovable": true, "ooziePropertiesExpanded": true, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "e96bb09b-84d1-6864-5782-42942bab97cb", "size": 12}], "id": "ed10631a-f264-9a3b-aa09-b04cb76f5c32", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "7bf3cdc7-f79b-ff36-b152-e37217c40ccb", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "07c4f1bd-8f58-ea51-fc3d-50acf74d6747", "columns": []}], "oozieEndRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "7bf3cdc7-f79b-ff36-b152-e37217c40ccb", "columns": []}, "oozieKillRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "07c4f1bd-8f58-ea51-fc3d-50acf74d6747", "columns": []}, "enableOozieDropOnAfter": true, "oozieStartRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "68d83128-2c08-28f6-e9d1-a912d20f8af5", "columns": []}, "klass": "card card-home card-column span12", "enableOozieDropOnBefore": true, "drops": ["temp"], "id": "0e8b5e24-4f78-0f76-fe91-0c8e7f0d290a", "size": 12}], "workflow": {"properties": {"job_xml": "", "description": "", "wf1_id": null, "sla_enabled": false, "deployment_dir": "/user/hue/oozie/workspaces/hue-oozie-1446487280.19", "schema_version": "uri:oozie:workflow:0.5", "properties": [], "show_arrows": true, "parameters": [{"name": "oozie.use.system.libpath", "value": true}], "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}]}, "name": "My Workflow 3", "versions": ["uri:oozie:workflow:0.4", "uri:oozie:workflow:0.4.5", "uri:oozie:workflow:0.5"], "isDirty": false, "movedNode": null, "linkMapping": {"17c9c895-5a16-7443-bb81-f34b30b21548": [], "33430f0f-ebfa-c3ec-f237-3e77efa03d0a": [], "3f107997-04cc-8733-60a9-a4bb62cebffc": ["e96bb09b-84d1-6864-5782-42942bab97cb"], "e96bb09b-84d1-6864-5782-42942bab97cb": ["33430f0f-ebfa-c3ec-f237-3e77efa03d0a"]}, "nodeIds": ["3f107997-04cc-8733-60a9-a4bb62cebffc", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "17c9c895-5a16-7443-bb81-f34b30b21548", "e96bb09b-84d1-6864-5782-42942bab97cb"], "nodes": [{"properties": {}, "name": "Start", "children": [{"to": "e96bb09b-84d1-6864-5782-42942bab97cb"}], "actionParametersFetched": false, "type": "start-widget", "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "actionParameters": []}, {"properties": {}, "name": "End", "children": [], "actionParametersFetched": false, "type": "end-widget", "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "actionParameters": []}, {"properties": {"message": "Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]"}, "name": "Kill", "children": [], "actionParametersFetched": false, "type": "kill-widget", "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "actionParameters": []}, {"properties": {"xml": "<my_action xmlns=\\"uri:oozie:my_action-action:0.1\\">\\n</my_action>", "credentials": [], "retry_max": [], "sla": [{"key": "enabled", "value": false}, {"key": "nominal-time", "value": "${nominal_time}"}, {"key": "should-start", "value": ""}, {"key": "should-end", "value": "${30 * MINUTES}"}, {"key": "max-duration", "value": ""}, {"key": "alert-events", "value": ""}, {"key": "alert-contact", "value": ""}, {"key": "notification-msg", "value": ""}, {"key": "upstream-apps", "value": ""}], "retry_interval": []}, "name": "generic-e96b", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}, {"error": "17c9c895-5a16-7443-bb81-f34b30b21548"}], "actionParametersFetched": false, "type": "generic-widget", "id": "e96bb09b-84d1-6864-5782-42942bab97cb", "actionParameters": []}], "id": 50027, "nodeNamesMapping": {"17c9c895-5a16-7443-bb81-f34b30b21548": "Kill", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a": "End", "3f107997-04cc-8733-60a9-a4bb62cebffc": "Start", "e96bb09b-84d1-6864-5782-42942bab97cb": "generic-e96b"}, "uuid": "83fb9dc4-8687-e369-9220-c8501a93d446"}}"""
wf = Workflow(data=workflow)
assert_equal([
u'<workflow-app', u'name="My', u'Workflow', u'3"', u'xmlns="uri:oozie:workflow:0.5">',
u'<start', u'to="generic-e96b"/>',
u'<kill', u'name="Kill">', u'<message>Action', u'failed,', u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>', u'</kill>',
u'<action', u'name="generic-e96b">', u'<my_action', u'xmlns="uri:oozie:my_action-action:0.1">', u'</my_action>',
u'<ok', u'to="End"/>', u'<error', u'to="Kill"/>',
u'</action>',
u'<end', u'name="End"/>',
u'</workflow-app>'],
wf.to_xml({'output': '/path'}).split()
)
def test_workflow_email_on_kill_node_xml(self):
workflow = """{"history": {"oozie_id": "0000013-151015155856463-oozie-oozi-W", "properties": {"oozie.use.system.libpath": "True", "security_enabled": false, "dryrun": false, "jobTracker": "localhost:8032", "oozie.wf.application.path": "hdfs://localhost:8020/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "hue-id-w": 6, "nameNode": "hdfs://localhost:8020"}}, "layout": [{"oozieRows": [], "rows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}], "oozieEndRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, "oozieKillRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}, "enableOozieDropOnAfter": true, "oozieStartRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, "klass": "card card-home card-column span12", "enableOozieDropOnBefore": true, "drops": ["temp"], "id": "1920900a-a735-7e66-61d4-23de384e8f62", "size": 12}], "workflow": {"properties": {"job_xml": "", "description": "", "wf1_id": null, "sla_enabled": false, "deployment_dir": "/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "schema_version": "uri:oozie:workflow:0.5", "properties": [], "show_arrows": true, "parameters": [{"name": "oozie.use.system.libpath", "value": true}], "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}]}, "name": "My real Workflow 1", "versions": ["uri:oozie:workflow:0.4", "uri:oozie:workflow:0.4.5", "uri:oozie:workflow:0.5"], "isDirty": false, "movedNode": null, "linkMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": [], "3f107997-04cc-8733-60a9-a4bb62cebffc": ["33430f0f-ebfa-c3ec-f237-3e77efa03d0a"], "17c9c895-5a16-7443-bb81-f34b30b21548": []}, "nodeIds": ["3f107997-04cc-8733-60a9-a4bb62cebffc", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "17c9c895-5a16-7443-bb81-f34b30b21548"], "nodes": [{"properties": {}, "name": "Start", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}], "actionParametersFetched": false, "type": "start-widget", "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "actionParameters": []}, {"properties": {}, "name": "End", "children": [], "actionParametersFetched": false, "type": "end-widget", "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "actionParameters": []}, {"properties": {"body": "", "cc": "", "to": "hue@gethue.com", "enableMail": true, "message": "Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]", "subject": "Error on workflow"}, "name": "Kill", "children": [], "actionParametersFetched": false, "type": "kill-widget", "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "actionParameters": []}], "id": 50020, "nodeNamesMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": "End", "3f107997-04cc-8733-60a9-a4bb62cebffc": "Start", "17c9c895-5a16-7443-bb81-f34b30b21548": "Kill"}, "uuid": "330c70c8-33fb-16e1-68fb-c42582c7d178"}}"""
wf = Workflow(data=workflow)
assert_equal([
u'<workflow-app', u'name="My', u'real', u'Workflow', u'1"', u'xmlns="uri:oozie:workflow:0.5">',
u'<start', u'to="End"/>',
u'<action', u'name="Kill">',
u'<email', u'xmlns="uri:oozie:email-action:0.2">', u'<to>hue@gethue.com</to>', u'<subject>Error', u'on', u'workflow</subject>', u'<body></body>', u'</email>',
u'<ok', u'to="Kill-kill"/>', u'<error', u'to="Kill-kill"/>',
u'</action>',
u'<kill', u'name="Kill-kill">',
u'<message>Action', u'failed,', u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>',
u'</kill>',
u'<end', u'name="End"/>',
u'</workflow-app>'],
wf.to_xml({'output': '/path'}).split()
)
def test_workflow_submission_on_email_notification(self):
workflow = """{"history": {"oozie_id": "0000013-151015155856463-oozie-oozi-W", "properties": {"oozie.use.system.libpath": "True", "security_enabled": false, "dryrun": false, "jobTracker": "localhost:8032", "oozie.wf.application.path": "hdfs://localhost:8020/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "email_checkbox": "True", "hue-id-w": 6, "nameNode": "hdfs://localhost:8020"}}, "layout": [{"oozieRows": [], "rows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}], "oozieEndRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, "oozieKillRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}, "enableOozieDropOnAfter": true, "oozieStartRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, "klass": "card card-home card-column span12", "enableOozieDropOnBefore": true, "drops": ["temp"], "id": "1920900a-a735-7e66-61d4-23de384e8f62", "size": 12}], "workflow": {"properties": {"job_xml": "", "description": "", "wf1_id": null, "sla_enabled": false, "deployment_dir": "/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "schema_version": "uri:oozie:workflow:0.5", "properties": [], "show_arrows": true, "parameters": [{"name": "oozie.use.system.libpath", "value": true}], "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}]}, "name": "My real Workflow 1", "versions": ["uri:oozie:workflow:0.4", "uri:oozie:workflow:0.4.5", "uri:oozie:workflow:0.5"], "isDirty": false, "movedNode": null, "linkMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": [], "3f107997-04cc-8733-60a9-a4bb62cebffc": ["33430f0f-ebfa-c3ec-f237-3e77efa03d0a"], "17c9c895-5a16-7443-bb81-f34b30b21548": []}, "nodeIds": ["3f107997-04cc-8733-60a9-a4bb62cebffc", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "17c9c895-5a16-7443-bb81-f34b30b21548"], "nodes": [{"properties": {}, "name": "Start", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}], "actionParametersFetched": false, "type": "start-widget", "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "actionParameters": []}, {"properties": {}, "name": "End", "children": [], "actionParametersFetched": false, "type": "end-widget", "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "actionParameters": []}, {"properties": {"body": "", "cc": "", "to": "hue@gethue.com", "enableMail": true, "message": "Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]", "subject": "Error on workflow"}, "name": "Kill", "children": [], "actionParametersFetched": false, "type": "kill-widget", "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "actionParameters": []}], "id": 50020, "nodeNamesMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": "End", "3f107997-04cc-8733-60a9-a4bb62cebffc": "Start", "17c9c895-5a16-7443-bb81-f34b30b21548": "Kill"}, "uuid": "330c70c8-33fb-16e1-68fb-c42582c7d178"}}"""
wf = Workflow(data=workflow, user=self.user)
assert_equal([
u'<workflow-app', u'name="My', u'real', u'Workflow', u'1"', u'xmlns="uri:oozie:workflow:0.5">',
u'<start', u'to="End"/>',
u'<action', u'name="Kill">',
u'<email', u'xmlns="uri:oozie:email-action:0.2">',
u'<to>hue@gethue.com</to>', u'<subject>Error', u'on', u'workflow</subject>', u'<body></body>',
u'</email>',
u'<ok', u'to="Kill-kill"/>',
u'<error', u'to="Kill-kill"/>',
u'</action>',
u'<kill', u'name="Kill-kill">',
u'<message>Action', u'failed,', u'error', u'message[${wf:errorMessage(wf:lastErrorNode())}]</message>',
u'</kill>',
u'<action', u'name="End">',
u'<email', u'xmlns="uri:oozie:email-action:0.2">',
u'<to>test@localhost</to>', u'<subject>${wf:name()}', u'execution', u'successful</subject>', u'<body></body>', u'<content_type>text/plain</content_type>',
u'</email>',
u'<ok', u'to="End-kill"/>',
u'<error', u'to="End-kill"/>',
u'</action>',
u'<end', u'name="End-kill"/>',
u'</workflow-app>'],
wf.to_xml({'output': '/path', 'send_email': 'True'}).split()
)
def test_workflow_email_gen_xml(self):
self.maxDiff = None
workflow = """{"history": {"oozie_id": "0000013-151015155856463-oozie-oozi-W", "properties": {"oozie.use.system.libpath": "True", "security_enabled": false, "dryrun": false, "jobTracker": "localhost:8032", "oozie.wf.application.path": "hdfs://localhost:8020/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "hue-id-w": 6, "nameNode": "hdfs://localhost:8020"}}, "layout": [{"oozieRows": [], "rows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}], "oozieEndRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "f8f22c81-a9eb-5138-64cf-014ae588d0ca", "columns": []}, "oozieKillRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "31f194ff-cd4f-faef-652d-0c5f66a80f97", "columns": []}, "enableOozieDropOnAfter": true, "oozieStartRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "9cf57679-292c-d980-8053-1180a84eaa54", "columns": []}, "klass": "card card-home card-column span12", "enableOozieDropOnBefore": true, "drops": ["temp"], "id": "1920900a-a735-7e66-61d4-23de384e8f62", "size": 12}], "workflow": {"properties": {"job_xml": "", "description": "", "wf1_id": null, "sla_enabled": false, "deployment_dir": "/user/hue/oozie/workspaces/hue-oozie-1445431078.26", "schema_version": "uri:oozie:workflow:0.5", "properties": [], "show_arrows": true, "parameters": [{"name": "oozie.use.system.libpath", "value": true}], "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}]}, "name": "My real Workflow 1", "versions": ["uri:oozie:workflow:0.4", "uri:oozie:workflow:0.4.5", "uri:oozie:workflow:0.5"], "isDirty": false, "movedNode": null, "linkMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": [], "3f107997-04cc-8733-60a9-a4bb62cebffc": ["33430f0f-ebfa-c3ec-f237-3e77efa03d0a"], "17c9c895-5a16-7443-bb81-f34b30b21548": []}, "nodeIds": ["3f107997-04cc-8733-60a9-a4bb62cebffc", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "17c9c895-5a16-7443-bb81-f34b30b21548"], "nodes": [{"properties": {}, "name": "Start", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}], "actionParametersFetched": false, "type": "start-widget", "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "actionParameters": []}, {"properties": {}, "name": "End", "children": [], "actionParametersFetched": false, "type": "end-widget", "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "actionParameters": []}, {"properties": {"body": "This\\n\\ncontains\\n\\n\\nnew lines.", "bcc": "example@bcc.com", "content_type": "text/plain", "cc": "", "to": "hue@gethue.com", "enableMail": true, "message": "Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]", "subject": "Error on workflow"}, "name": "Kill", "children": [], "actionParametersFetched": false, "type": "kill-widget", "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "actionParameters": []}], "id": 50020, "nodeNamesMapping": {"33430f0f-ebfa-c3ec-f237-3e77efa03d0a": "End", "3f107997-04cc-8733-60a9-a4bb62cebffc": "Start", "17c9c895-5a16-7443-bb81-f34b30b21548": "Kill"}, "uuid": "330c70c8-33fb-16e1-68fb-c42582c7d178"}}"""
wf = Workflow(data=workflow)
assert_equal(u'<workflow-app name="My real Workflow 1" xmlns="uri:oozie:workflow:0.5">\n <start to="End"/>\n <action name="Kill">\n <email xmlns="uri:oozie:email-action:0.2">\n <to>hue@gethue.com</to>\n <subject>Error on workflow</subject>\n <body>This\n\ncontains\n\n\nnew lines.</body>\n </email>\n <ok to="Kill-kill"/>\n <error to="Kill-kill"/>\n </action>\n <kill name="Kill-kill">\n <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>\n </kill>\n <end name="End"/>\n</workflow-app>', wf.to_xml({'output': '/path'}))
def test_job_validate_xml_name(self):
job = Workflow()
job.update_name('a')
assert_equal('a', job.validated_name)
job.update_name('aa')
assert_equal('aa', job.validated_name)
job.update_name('%a')
assert_equal('%a', job.validated_name)
job.update_name(u'你好')
assert_equal(u'你好', job.validated_name)
job.update_name('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz')
assert_equal(len('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), len(job.validated_name))
job.update_name('My <...> 1st W$rkflow [With] (Bad) letter$')
assert_equal('My <...> 1st W$rkflow [With] (Bad) lette', job.validated_name)
def test_ignore_dead_fork_link(self):
data = {'id': 1, 'type': 'fork', 'children': [{'to': 1, 'id': 1}, {'to': 2, 'id': 2}], 'properties': {}, 'name': 'my-fork'} # to --> 2 does not exist
fork = Node(data)
node_mapping = {1: fork} # Point to ourself
assert_equal(['<fork', 'name="my-fork">', '<path', 'start="my-fork"', '/>', '</fork>'], fork.to_xml(node_mapping=node_mapping).split())
def test_action_gen_xml_prepare(self):
# Prepare has a value
data = {
u'properties': {
u'files': [], u'job_xml': [], u'parameters': [], u'retry_interval': [], u'retry_max': [], u'job_properties': [], u'arguments': [],
u'prepares': [{u'type': u'mkdir', u'value': u'/my_dir'}],
u'credentials': [], u'script_path': u'my_pig.pig',
u'sla': [{u'key': u'enabled', u'value': False}, {u'key': u'nominal-time', u'value': u'${nominal_time}'}, {u'key': u'should-start', u'value': u''}, {u'key': u'should-end', u'value': u'${30 * MINUTES}'}, {u'key': u'max-duration', u'value': u''}, {u'key': u'alert-events', u'value': u''}, {u'key': u'alert-contact', u'value': u''}, {u'key': u'notification-msg', u'value': u''}, {u'key': u'upstream-apps', u'value': u''}],
u'archives': []
},
u'type': u'pig-widget',
u'id': u'c59d1947-7ce0-ef34-22b2-d64b9fc5bf9a',
u'name': u'pig-c59d',
"children":[{"to": "c59d1947-7ce0-ef34-22b2-d64b9fc5bf9a"}, {"error": "c59d1947-7ce0-ef34-22b2-d64b9fc5bf9a"}]
}
pig_node = Node(data)
node_mapping = {"c59d1947-7ce0-ef34-22b2-d64b9fc5bf9a": pig_node}
xml = pig_node.to_xml(node_mapping=node_mapping)
xml = [row.strip() for row in xml.split()]
assert_true(u'<prepare>' in xml, xml)
assert_true(u'<mkdir' in xml, xml)
assert_true(u'path="${nameNode}/my_dir"/>' in xml, xml)
# Prepare has empty value and is skipped
pig_node.data['properties']['prepares'] = [{u'type': u'mkdir', u'value': u''}]
xml = pig_node.to_xml(node_mapping=node_mapping)
xml = [row.strip() for row in xml.split()]
assert_false(u'<prepare>' in xml, xml)
assert_false(u'<mkdir' in xml, xml)
# Prepare has a value and an empty value
pig_node.data['properties']['prepares'] = [{u'type': u'mkdir', u'value': u'/my_dir'}, {u'type': u'rm', u'value': u''}]
xml = pig_node.to_xml(node_mapping=node_mapping)
xml = [row.strip() for row in xml.split()]
assert_true(u'<prepare>' in xml, xml)
assert_true(u'<mkdir' in xml, xml)
assert_true(u'path="${nameNode}/my_dir"/>' in xml, xml)
assert_false(u'<rm' in xml, xml)
def test_upgrade_nodes_in_workflow(self):
wf = Workflow(data="{\"layout\": [{\"oozieRows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Sqoop 1\", \"widgetType\": \"sqoop-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"79774a62-94e3-2ddb-554f-b83640fa5b03\", \"size\": 12}], \"id\": \"0f54ae72-7122-ad7c-fb31-aa715e15a707\", \"columns\": []}], \"rows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"371cf19e-0c45-1e40-2887-5de4033c2a01\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Sqoop 1\", \"widgetType\": \"sqoop-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"79774a62-94e3-2ddb-554f-b83640fa5b03\", \"size\": 12}], \"id\": \"0f54ae72-7122-ad7c-fb31-aa715e15a707\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"40cfacb5-0622-4305-1473-8f70e287668b\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"373c9cc8-c64a-f1ef-5486-f18ec52620e3\", \"columns\": []}], \"oozieEndRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"40cfacb5-0622-4305-1473-8f70e287668b\", \"columns\": []}, \"oozieKillRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"373c9cc8-c64a-f1ef-5486-f18ec52620e3\", \"columns\": []}, \"enableOozieDropOnAfter\": true, \"oozieStartRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"371cf19e-0c45-1e40-2887-5de4033c2a01\", \"columns\": []}, \"klass\": \"card card-home card-column span12\", \"enableOozieDropOnBefore\": true, \"drops\": [\"temp\"], \"id\": \"a8549012-ec27-4686-d71a-c6ff95785ff9\", \"size\": 12}], \"workflow\": {\"properties\": {\"job_xml\": \"\", \"description\": \"\", \"wf1_id\": null, \"sla_enabled\": false, \"deployment_dir\": \"/user/hue/oozie/workspaces/hue-oozie-1438808722.99\", \"schema_version\": \"uri:oozie:workflow:0.5\", \"properties\": [], \"show_arrows\": true, \"parameters\": [{\"name\": \"oozie.use.system.libpath\", \"value\": true}], \"sla\": [{\"value\": false, \"key\": \"enabled\"}, {\"value\": \"${nominal_time}\", \"key\": \"nominal-time\"}, {\"value\": \"\", \"key\": \"should-start\"}, {\"value\": \"${30 * MINUTES}\", \"key\": \"should-end\"}, {\"value\": \"\", \"key\": \"max-duration\"}, {\"value\": \"\", \"key\": \"alert-events\"}, {\"value\": \"\", \"key\": \"alert-contact\"}, {\"value\": \"\", \"key\": \"notification-msg\"}, {\"value\": \"\", \"key\": \"upstream-apps\"}]}, \"name\": \"My Workflow\", \"versions\": [\"uri:oozie:workflow:0.4\", \"uri:oozie:workflow:0.4.5\", \"uri:oozie:workflow:0.5\"], \"isDirty\": true, \"movedNode\": null, \"linkMapping\": {\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": [], \"3f107997-04cc-8733-60a9-a4bb62cebffc\": [\"79774a62-94e3-2ddb-554f-b83640fa5b03\"], \"79774a62-94e3-2ddb-554f-b83640fa5b03\": [\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"], \"17c9c895-5a16-7443-bb81-f34b30b21548\": []}, \"nodeIds\": [\"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"79774a62-94e3-2ddb-554f-b83640fa5b03\"], \"nodes\": [{\"properties\": {}, \"name\": \"Start\", \"children\": [{\"to\": \"79774a62-94e3-2ddb-554f-b83640fa5b03\"}], \"actionParametersFetched\": false, \"type\": \"start-widget\", \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"actionParameters\": []}, {\"properties\": {}, \"name\": \"End\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"end-widget\", \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"actionParameters\": []}, {\"properties\": {\"message\": \"Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]\"}, \"name\": \"Kill\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"kill-widget\", \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"actionParameters\": []}, {\"name\": \"sqoop-7977\", \"actionParametersUI\": [], \"children\": [{\"to\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"}, {\"error\": \"17c9c895-5a16-7443-bb81-f34b30b21548\"}], \"properties\": {\"files\": [], \"job_xml\": \"\", \"parameters\": [], \"job_properties\": [], \"command\": \"import --connect jdbc:hsqldb:file:db.hsqldb --table TT --target-dir hdfs://localhost:8020/user/foo -m 1\", \"archives\": [], \"prepares\": [], \"credentials\": [], \"sla\": [{\"value\": false, \"key\": \"enabled\"}, {\"value\": \"${nominal_time}\", \"key\": \"nominal-time\"}, {\"value\": \"\", \"key\": \"should-start\"}, {\"value\": \"${30 * MINUTES}\", \"key\": \"should-end\"}, {\"value\": \"\", \"key\": \"max-duration\"}, {\"value\": \"\", \"key\": \"alert-events\"}, {\"value\": \"\", \"key\": \"alert-contact\"}, {\"value\": \"\", \"key\": \"notification-msg\"}, {\"value\": \"\", \"key\": \"upstream-apps\"}]}, \"actionParametersFetched\": true, \"type\": \"sqoop-widget\", \"id\": \"79774a62-94e3-2ddb-554f-b83640fa5b03\", \"actionParameters\": []}], \"id\": null, \"nodeNamesMapping\": {\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": \"End\", \"3f107997-04cc-8733-60a9-a4bb62cebffc\": \"Start\", \"79774a62-94e3-2ddb-554f-b83640fa5b03\": \"sqoop-7977\", \"17c9c895-5a16-7443-bb81-f34b30b21548\": \"Kill\"}, \"uuid\": \"b5511e29-c9cc-7f40-0d3a-6dd768f3b1e9\"}}")
assert_true('parameters' in json.loads(wf.data)['workflow']['nodes'][3]['properties'], wf.data)
assert_false('arguments' in json.loads(wf.data)['workflow']['nodes'][3]['properties'], wf.data) # Does not exist yet
data = wf.get_data()
assert_true('parameters' in data['workflow']['nodes'][3]['properties'], wf.data)
assert_true('arguments' in data['workflow']['nodes'][3]['properties'], wf.data) # New field transparently added
def test_action_gen_xml_java_opts(self):
# Contains java_opts
data = {u'name': u'java-fc05', u'properties': {u'files': [], u'job_xml': [], u'jar_path': u'/user/romain/hadoop-mapreduce-examples.jar', u'java_opts': [{u'value': u'-debug -Da -Db=1'}], u'retry_max': [], u'retry_interval': [], u'job_properties': [], u'capture_output': False, u'main_class': u'MyClass', u'arguments': [], u'prepares': [], u'credentials': [], u'sla': [{u'value': False, u'key': u'enabled'}, {u'value': u'${nominal_time}', u'key': u'nominal-time'}, {u'value': u'', u'key': u'should-start'}, {u'value': u'${30 * MINUTES}', u'key': u'should-end'}, {u'value': u'', u'key': u'max-duration'}, {u'value': u'', u'key': u'alert-events'}, {u'value': u'', u'key': u'alert-contact'}, {u'value': u'', u'key': u'notification-msg'}, {u'value': u'', u'key': u'upstream-apps'}], u'archives': []}, u'actionParametersFetched': False, u'id': u'fc05d86f-9f07-7a8d-6256-e6abfa87cf77', u'type': u'java-widget', u'children': [{u'to': u'33430f0f-ebfa-c3ec-f237-3e77efa03d0a'}, {u'error': u'17c9c895-5a16-7443-bb81-f34b30b21548'}], u'actionParameters': []}
java_node = Node(data)
node_mapping = {"fc05d86f-9f07-7a8d-6256-e6abfa87cf77": java_node, "33430f0f-ebfa-c3ec-f237-3e77efa03d0a": java_node, "17c9c895-5a16-7443-bb81-f34b30b21548": java_node} # Last 2 are actually kill and ok nodes
xml = java_node.to_xml(node_mapping=node_mapping)
xml = [row.strip() for row in xml.split('\n')]
assert_false("<java-opts>[{u'value': u'-debug -Da -Db=1'}]</java-opts>" in xml, xml)
assert_true("<java-opts>-debug -Da -Db=1</java-opts>" in xml, xml)
def test_workflow_create_single_action_data(self):
workflow = Workflow(data="{\"layout\": [{\"oozieRows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"MapReduce job\", \"widgetType\": \"mapreduce-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"size\": 12}], \"id\": \"e2caca14-8afc-d7e0-287c-88accd0b4253\", \"columns\": []}], \"rows\": [{\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"ff63ee3f-df54-2fa3-477b-65f5e0f0632c\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"MapReduce job\", \"widgetType\": \"mapreduce-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"size\": 12}], \"id\": \"e2caca14-8afc-d7e0-287c-88accd0b4253\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"6a13d869-d04c-8431-6c5c-dbe67ea33889\", \"columns\": []}, {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"e3b56553-7a4f-43d2-b1e2-4dc433280095\", \"columns\": []}], \"oozieEndRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"End\", \"widgetType\": \"end-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"size\": 12}], \"id\": \"6a13d869-d04c-8431-6c5c-dbe67ea33889\", \"columns\": []}, \"oozieKillRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Kill\", \"widgetType\": \"kill-widget\", \"oozieMovable\": true, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"size\": 12}], \"id\": \"e3b56553-7a4f-43d2-b1e2-4dc433280095\", \"columns\": []}, \"enableOozieDropOnAfter\": true, \"oozieStartRow\": {\"enableOozieDropOnBefore\": true, \"enableOozieDropOnSide\": true, \"enableOozieDrop\": false, \"widgets\": [{\"status\": \"\", \"logsURL\": \"\", \"name\": \"Start\", \"widgetType\": \"start-widget\", \"oozieMovable\": false, \"ooziePropertiesExpanded\": false, \"properties\": {}, \"isLoading\": true, \"offset\": 0, \"actionURL\": \"\", \"progress\": 0, \"klass\": \"card card-widget span12\", \"oozieExpanded\": false, \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"size\": 12}], \"id\": \"ff63ee3f-df54-2fa3-477b-65f5e0f0632c\", \"columns\": []}, \"klass\": \"card card-home card-column span12\", \"enableOozieDropOnBefore\": true, \"drops\": [\"temp\"], \"id\": \"0c1908e7-0096-46e7-a16b-b17b1142a730\", \"size\": 12}], \"workflow\": {\"properties\": {\"job_xml\": \"\", \"description\": \"\", \"wf1_id\": null, \"sla_enabled\": false, \"deployment_dir\": \"/user/hue/oozie/workspaces/hue-oozie-1430228904.58\", \"schema_version\": \"uri:oozie:workflow:0.5\", \"sla\": [{\"key\": \"enabled\", \"value\": false}, {\"key\": \"nominal-time\", \"value\": \"${nominal_time}\"}, {\"key\": \"should-start\", \"value\": \"\"}, {\"key\": \"should-end\", \"value\": \"${30 * MINUTES}\"}, {\"key\": \"max-duration\", \"value\": \"\"}, {\"key\": \"alert-events\", \"value\": \"\"}, {\"key\": \"alert-contact\", \"value\": \"\"}, {\"key\": \"notification-msg\", \"value\": \"\"}, {\"key\": \"upstream-apps\", \"value\": \"\"}], \"show_arrows\": true, \"parameters\": [{\"name\": \"oozie.use.system.libpath\", \"value\": true}], \"properties\": []}, \"name\": \"My Workflow\", \"versions\": [\"uri:oozie:workflow:0.4\", \"uri:oozie:workflow:0.4.5\", \"uri:oozie:workflow:0.5\"], \"isDirty\": true, \"movedNode\": null, \"linkMapping\": {\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\": [\"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"], \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": [], \"3f107997-04cc-8733-60a9-a4bb62cebffc\": [\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"], \"17c9c895-5a16-7443-bb81-f34b30b21548\": []}, \"nodeIds\": [\"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"], \"nodes\": [{\"properties\": {}, \"name\": \"Start\", \"children\": [{\"to\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\"}], \"actionParametersFetched\": false, \"type\": \"start-widget\", \"id\": \"3f107997-04cc-8733-60a9-a4bb62cebffc\", \"actionParameters\": []}, {\"properties\": {}, \"name\": \"End\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"end-widget\", \"id\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\", \"actionParameters\": []}, {\"properties\": {\"message\": \"Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]\"}, \"name\": \"Kill\", \"children\": [], \"actionParametersFetched\": false, \"type\": \"kill-widget\", \"id\": \"17c9c895-5a16-7443-bb81-f34b30b21548\", \"actionParameters\": []}, {\"properties\": {\"retry_max\": [{\"value\": \"5\"}], \"files\": [], \"job_xml\": \"\", \"jar_path\": \"my_jar\", \"job_properties\": [{\"name\": \"prop_1_name\", \"value\": \"prop_1_value\"}], \"archives\": [], \"prepares\": [], \"credentials\": [], \"sla\": [{\"key\": \"enabled\", \"value\": false}, {\"key\": \"nominal-time\", \"value\": \"${nominal_time}\"}, {\"key\": \"should-start\", \"value\": \"\"}, {\"key\": \"should-end\", \"value\": \"${30 * MINUTES}\"}, {\"key\": \"max-duration\", \"value\": \"\"}, {\"key\": \"alert-events\", \"value\": \"\"}, {\"key\": \"alert-contact\", \"value\": \"\"}, {\"key\": \"notification-msg\", \"value\": \"\"}, {\"key\": \"upstream-apps\", \"value\": \"\"}]}, \"name\": \"mapreduce-0cf2\", \"children\": [{\"to\": \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\"}, {\"error\": \"17c9c895-5a16-7443-bb81-f34b30b21548\"}], \"actionParametersFetched\": false, \"type\": \"mapreduce-widget\", \"id\": \"0cf2d5d5-2315-0bda-bd53-0eec257e943f\", \"actionParameters\": []}], \"id\": 50019, \"nodeNamesMapping\": {\"0cf2d5d5-2315-0bda-bd53-0eec257e943f\": \"mapreduce-0cf2\", \"33430f0f-ebfa-c3ec-f237-3e77efa03d0a\": \"End\", \"3f107997-04cc-8733-60a9-a4bb62cebffc\": \"Start\", \"17c9c895-5a16-7443-bb81-f34b30b21548\": \"Kill\"}, \"uuid\": \"084f4d4c-00f1-62d2-e27e-e153c1f9acfb\"}}")
single_action_wf_data = workflow.create_single_action_workflow_data('0cf2d5d5-2315-0bda-bd53-0eec257e943f')
single_action_wf = Workflow(data=single_action_wf_data)
assert_true(len(single_action_wf.nodes) == 4)
# Validating DAG: Start -> node -> Kill/End
_data = json.loads(single_action_wf_data)
start_node = [node for node in _data['workflow']['nodes'] if node['name'] == 'Start'][0]
submit_node = [node for node in _data['workflow']['nodes'] if node['id'] == '0cf2d5d5-2315-0bda-bd53-0eec257e943f'][0]
end_node = [node for node in _data['workflow']['nodes'] if node['name'] == 'End'][0]
kill_node = [node for node in _data['workflow']['nodes'] if node['name'] == 'Kill'][0]
assert_true(submit_node['id'] in str(start_node['children']))
assert_true(end_node['id'] in str(submit_node['children']))
assert_true(kill_node['id'] in str(submit_node['children']))
def test_submit_single_action(self):
wf_doc = save_temp_workflow(MockOozieApi.JSON_WORKFLOW_LIST[5], self.user)
reset = ENABLE_V2.set_for_testing(True)
try:
response = self.c.get(reverse('oozie:submit_single_action', args=[wf_doc.id, '3f107997-04cc-8733-60a9-a4bb62cebabc']))
assert_equal([{'name':'Dryrun', 'value': False}, {'name':'ls_arg', 'value': '-l'}], response.context[0]._data['params_form'].initial)
except Exception as ex:
logging.exception(ex)
finally:
reset()
wf_doc.delete()
def test_list_bundles_page(self):
response = self.c.get(reverse('oozie:list_editor_bundles'))
assert_true('bundles_json' in response.context[0]._data, response.context)
def test_workflow_dependencies(self):
wf_data = """{"layout": [{"oozieRows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Sub workflow", "widgetType": "subworkflow-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "9a24c7b1-b031-15d6-4086-e8af63be7ed4", "size": 12}], "id": "a566315f-e0e0-f408-fabd-c4576cc4041d", "columns": []}], "rows": [{"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "ec1fbd7f-ff6c-95eb-a865-ed3a3a00fc59", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Sub workflow", "widgetType": "subworkflow-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "9a24c7b1-b031-15d6-4086-e8af63be7ed4", "size": 12}], "id": "a566315f-e0e0-f408-fabd-c4576cc4041d", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "cd1a181a-9db0-c295-78e4-4d67ecedd057", "columns": []}, {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "caf2a089-c5d2-4a55-5b90-2a691be25884", "columns": []}], "oozieEndRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "End", "widgetType": "end-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "size": 12}], "id": "cd1a181a-9db0-c295-78e4-4d67ecedd057", "columns": []}, "oozieKillRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Kill", "widgetType": "kill-widget", "oozieMovable": true, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "size": 12}], "id": "caf2a089-c5d2-4a55-5b90-2a691be25884", "columns": []}, "enableOozieDropOnAfter": true, "oozieStartRow": {"enableOozieDropOnBefore": true, "enableOozieDropOnSide": true, "enableOozieDrop": false, "widgets": [{"status": "", "logsURL": "", "name": "Start", "widgetType": "start-widget", "oozieMovable": false, "ooziePropertiesExpanded": false, "externalIdUrl": "", "properties": {}, "isLoading": true, "offset": 0, "actionURL": "", "progress": 0, "klass": "card card-widget span12", "oozieExpanded": false, "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "size": 12}], "id": "ec1fbd7f-ff6c-95eb-a865-ed3a3a00fc59", "columns": []}, "klass": "card card-home card-column span12", "enableOozieDropOnBefore": true, "drops": ["temp"], "id": "f162ea58-e396-9703-c2b4-329bad4c9fa9", "size": 12}], "workflow": {"properties": {"job_xml": "", "description": "", "parameters": [{"name": "oozie.use.system.libpath", "value": true}], "sla_enabled": false, "deployment_dir": "/user/hue/oozie/workspaces/hue-oozie-1462236042.61", "schema_version": "uri:oozie:workflow:0.5", "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}], "show_arrows": true, "wf1_id": null, "properties": []}, "name": "test-sub", "versions": ["uri:oozie:workflow:0.4", "uri:oozie:workflow:0.4.5", "uri:oozie:workflow:0.5"], "isDirty": true, "movedNode": null, "linkMapping": {"17c9c895-5a16-7443-bb81-f34b30b21548": [], "33430f0f-ebfa-c3ec-f237-3e77efa03d0a": [], "9a24c7b1-b031-15d6-4086-e8af63be7ed4": ["33430f0f-ebfa-c3ec-f237-3e77efa03d0a"], "3f107997-04cc-8733-60a9-a4bb62cebffc": ["9a24c7b1-b031-15d6-4086-e8af63be7ed4"]}, "nodeIds": ["3f107997-04cc-8733-60a9-a4bb62cebffc", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "17c9c895-5a16-7443-bb81-f34b30b21548", "9a24c7b1-b031-15d6-4086-e8af63be7ed4"], "nodes": [{"properties": {"uuid": "7705a9dd-164e-67eb-8758-2573800c86e1", "workflow": "7705a9dd-164e-67eb-8758-2573800c86e6", "retry_interval": [], "retry_max": [], "job_properties": [], "credentials": [], "propagate_configuration": true, "sla": [{"key": "enabled", "value": false}, {"key": "nominal-time", "value": "${nominal_time}"}, {"key": "should-start", "value": ""}, {"key": "should-end", "value": "${30 * MINUTES}"}, {"key": "max-duration", "value": ""}, {"key": "alert-events", "value": ""}, {"key": "alert-contact", "value": ""}, {"key": "notification-msg", "value": ""}, {"key": "upstream-apps", "value": ""}]}, "name": "hive-sql", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}, {"error": "17c9c895-5a16-7443-bb81-f34b30b21548"}], "actionParametersFetched": false, "type": "hive-document-widget", "id": "9a24c7b1-b031-15d6-4086-e8af63be7ed3", "actionParameters": []}, {"properties": {}, "name": "Start", "children": [{"to": "9a24c7b1-b031-15d6-4086-e8af63be7ed4"}], "actionParametersFetched": false, "type": "start-widget", "id": "3f107997-04cc-8733-60a9-a4bb62cebffc", "actionParameters": []}, {"properties": {}, "name": "End", "children": [], "actionParametersFetched": false, "type": "end-widget", "id": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a", "actionParameters": []}, {"properties": {"body": "", "cc": "", "to": "", "enableMail": false, "message": "Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]", "subject": ""}, "name": "Kill", "children": [], "actionParametersFetched": false, "type": "kill-widget", "id": "17c9c895-5a16-7443-bb81-f34b30b21548", "actionParameters": []}, {"properties": {"workflow": "7705a9dd-164e-67eb-8758-2573800c86e5", "retry_interval": [], "retry_max": [], "job_properties": [], "credentials": [], "propagate_configuration": true, "sla": [{"value": false, "key": "enabled"}, {"value": "${nominal_time}", "key": "nominal-time"}, {"value": "", "key": "should-start"}, {"value": "${30 * MINUTES}", "key": "should-end"}, {"value": "", "key": "max-duration"}, {"value": "", "key": "alert-events"}, {"value": "", "key": "alert-contact"}, {"value": "", "key": "notification-msg"}, {"value": "", "key": "upstream-apps"}]}, "name": "subworkflow-9a24", "children": [{"to": "33430f0f-ebfa-c3ec-f237-3e77efa03d0a"}, {"error": "17c9c895-5a16-7443-bb81-f34b30b21548"}], "actionParametersFetched": false, "type": "subworkflow-widget", "id": "9a24c7b1-b031-15d6-4086-e8af63be7ed4", "actionParameters": []}], "id": null, "nodeNamesMapping": {"17c9c895-5a16-7443-bb81-f34b30b21548": "Kill", "33430f0f-ebfa-c3ec-f237-3e77efa03d0a": "End", "9a24c7b1-b031-15d6-4086-e8af63be7ed4": "subworkflow-9a24", "3f107997-04cc-8733-60a9-a4bb62cebffc": "Start"}, "uuid": "73c6219d-272f-db98-3cd9-d413ea2625ac"}}"""
wf_doc1 = Document2.objects.create(name='test', type='oozie-workflow2', owner=self.user, data=wf_data)
Document.objects.link(wf_doc1, owner=wf_doc1.owner, name=wf_doc1.name, description=wf_doc1.description, extra='workflow2')
# Add history dependency
wf_doc1.is_history = True
wf_doc1.dependencies.add(wf_doc1)
# Add coordinator dependency
coord_data = {
'id': None,
'uuid': None,
'name': 'My Schedule',
'variables': [], # Aka workflow parameters
'properties': {
'description': '',
'deployment_dir': '',
'schema_version': 'uri:oozie:coordinator:0.2',
'frequency_number': 1,
'frequency_unit': 'days',
'cron_frequency': '0 0 * * *',
'cron_advanced': False,
'timezone': '',
'start': '${start_date}',
'end': '${end_date}',
'workflow': None,
'timeout': None,
'concurrency': None,
'execution': None,
'throttle': None,
'job_xml': '',
'credentials': [],
'parameters': [
{'name': 'oozie.use.system.libpath', 'value': True},
{'name': 'start_date', 'value': ''},
{'name': 'end_date', 'value': ''}
],
'sla': WorkflowConfiguration.SLA_DEFAULT
}
}
wf_doc2 = Document2.objects.create(name='test', type='oozie-coordinator2', owner=wf_doc1.owner, data=coord_data)
wf_doc1.dependencies.add(wf_doc2)
wf_doc1.save()
workflow_data = json.loads(wf_data)['workflow']
layout_data = json.loads(wf_data)['layout']
# Add query doc to Doc2
hive_node_props = [node['properties'] for node in workflow_data['nodes'] if node['type'] == 'hive-document-widget'][0]
query_doc = Document2.objects.create(name='test', uuid=hive_node_props['uuid'], type='query-hive', owner=wf_doc1.owner, description='test')
# Add subworkflow doc to Doc2
subworkflow_node_props = [node['properties'] for node in workflow_data['nodes'] if node['type'] == 'subworkflow-widget'][0]
subworkflow_doc = Document2.objects.create(name='test', uuid=subworkflow_node_props['workflow'], type='oozie-workflow2', owner=wf_doc1.owner, description='test')
workflow_data['id'] = wf_doc1.id
response = self.c.post(reverse('oozie:save_workflow'), {'workflow': json.dumps(workflow_data), 'layout': json.dumps(layout_data)})
response = json.loads(response.content)
assert_true(response['status'] == 0)
workflow_doc = Document2.objects.get(id=response['id'])
# Validating dependencies after saving the workflow
assert_equal(workflow_doc.dependencies.all().count(), 4)
assert_equal(workflow_doc.dependencies.filter(type='oozie-coordinator2').count(), 1)
assert_equal(workflow_doc.dependencies.filter(type='query-hive').count(), 1)
assert_equal((workflow_doc.dependencies.filter(Q(is_history=False) & Q(type='oozie-workflow2'))).count(), 1)
assert_equal((workflow_doc.dependencies.filter(Q(is_history=True) & Q(type='oozie-workflow2'))).count(), 1)
wf_doc1.delete()
wf_doc2.delete()
workflow_doc.delete()
subworkflow_doc.delete()
query_doc.delete()
def test_editor_access_permissions(self):
group = 'no_editor'
try:
# Block editor section
response = self.c.get(reverse('oozie:list_editor_workflows'))
assert_equal(response.status_code, 200)
response = self.c.get(reverse('oozie:list_workflows'))
assert_equal(response.status_code, 200)
add_permission('test', 'no_editor', 'disable_editor_access', 'oozie')
response = self.c.get(reverse('oozie:list_editor_workflows'))
assert_equal(response.status_code, 401)
response = self.c.get(reverse('oozie:list_workflows'))
assert_equal(response.status_code, 200)
# Admin are not affected
admin = make_logged_in_client('admin', 'admin', is_superuser=True, recreate=True, groupname=group)
response = admin.get(reverse('oozie:list_editor_workflows'))
assert_equal(response.status_code, 200)
response = admin.get(reverse('oozie:list_workflows'))
assert_equal(response.status_code, 200)
finally:
remove_from_group("test", group)
def test_share_workflow(self):
try:
wf_doc = save_temp_workflow(MockOozieApi.JSON_WORKFLOW_LIST[5], self.user)
# other user cannot view document
response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'uuid': wf_doc.uuid})
assert_equal(response.status_code, 401)
# Share write perm by user
if USE_NEW_EDITOR.get():
wf_doc.share(wf_doc.owner, name='write', users=[self.user_not_me])
else:
wf_doc.doc.get().sync_permissions({'write': {'user_ids': [self.user_not_me.id], 'group_ids': []}})
# other user can access document
response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'workflow': wf_doc.uuid})
assert_false('Document does not exist or you don't have the permission to access it.' in response.content, response.content)
finally:
wf_doc.delete()
def test_list_editor_workflows(self):
wf_doc = save_temp_workflow(MockOozieApi.JSON_WORKFLOW_LIST[5], self.user)
reset = ENABLE_V2.set_for_testing(True)
try:
response = self.c.get(reverse('oozie:list_editor_workflows'))
assert_equal(response.status_code, 200)
data = json.loads(response.context[0]['workflows_json'])
uuids = [doc['uuid'] for doc in data]
assert_true(wf_doc.uuid in uuids, data)
# Trash workflow and verify it no longer appears in list
response = self.c.post('/desktop/api2/doc/delete', {'uuid': json.dumps(wf_doc.uuid)})
response = self.c.get(reverse('oozie:list_editor_workflows'))
assert_equal(response.status_code, 200)
data = json.loads(response.context[0]['workflows_json'])
uuids = [doc['uuid'] for doc in data]
assert_false(wf_doc.uuid in uuids, data)
finally:
reset()
wf_doc.delete()
def test_workflow_properties(self):
reset = USE_DEFAULT_CONFIGURATION.set_for_testing(True)
try:
# Test that a new workflow will be initialized with default properties if no saved configs exist
wf = Workflow(user=self.user)
data = json.loads(wf.data)
assert_equal(data['workflow']['properties'], Workflow.get_workflow_properties_for_user(self.user))
# Setup a test Default configuration, NOTE: this is an invalid format for testing only
properties = [
{
'multiple': False,
'value': '/user/test/oozie',
'nice_name': 'Workspace',
'key': 'deployment_dir',
'help_text': 'Specify the deployment directory.',
'type': 'hdfs-file'
}, {
'multiple': True,
'value': [
{
'value': 'test',
'key': 'mapred.queue.name'
}
],
'nice_name': 'Hadoop Properties',
'key': 'properties',
'help_text': 'Hadoop configuration properties.',
'type': 'settings'
}
]
wf_props = Workflow.get_properties()
config = DefaultConfiguration(app=WorkflowConfiguration.APP_NAME, properties=json.dumps(properties), is_default=True)
config.save()
wf_props.update(config.properties_dict)
wf_props.update({'wf1_id': None, 'description': ''})
# Test that a new workflow will be initialized with Default saved config if it exists
wf = Workflow(user=self.user)
data = json.loads(wf.data)
assert_equal(data['workflow']['properties'], wf_props)
# Test that a new workflow will be initialized with Group saved config if it exists
properties = [
{
'multiple': True,
'value': [
{
'value': 'org.myorg.WordCount.Map',
'key': 'mapred.mapper.class'
},
{
'value': 'org.myorg.WordCount.Reduce',
'key': 'mapred.reducer.class'
}
],
'nice_name': 'Hadoop Properties',
'key': 'properties',
'help_text': 'Hadoop configuration properties.',
'type': 'settings'
}
]
wf_props = Workflow.get_properties()
config = DefaultConfiguration.objects.create(app=WorkflowConfiguration.APP_NAME,
properties=json.dumps(properties),
is_default=False)
config.groups.add(self.user.groups.first())
config.save()
wf_props.update(config.properties_dict)
wf_props.update({'wf1_id': None, 'description': ''})
# Test that a new workflow will be initialized with Default saved config if it exists
wf = Workflow(user=self.user)
data = json.loads(wf.data)
assert_equal(data['workflow']['properties'], wf_props)
finally:
reset()
class TestExternalWorkflowGraph(object):
def setUp(self):
self.wf = Workflow()
self.c = make_logged_in_client(is_superuser=False)
grant_access("test", "test", "oozie")
add_to_group("test")
self.user = User.objects.get(username='test')
def test_graph_generation_from_xml(self):
f = open('apps/oozie/src/oozie/test_data/xslt2/test-workflow.xml')
self.wf.definition = f.read()
self.node_list = [{u'node_type': u'start', u'ok_to': u'fork-68d4', u'name': u''}, {u'node_type': u'kill', u'ok_to': u'', u'name': u'Kill'}, {u'path2': u'shell-0f44', u'node_type': u'fork', u'ok_to': u'', u'name': u'fork-68d4', u'path1': u'subworkflow-a13f'}, {u'node_type': u'join', u'ok_to': u'End', u'name': u'join-775e'}, {u'node_type': u'end', u'ok_to': u'', u'name': u'End'}, {u'subworkflow': {u'app-path': u'${nameNode}/user/hue/oozie/deployments/_admin_-oozie-50001-1427488969.48'}, u'node_type': u'sub-workflow', u'ok_to': u'join-775e', u'name': u'subworkflow-a13f', u'error_to': u'Kill'}, {u'shell': {u'command': u'ls'}, u'node_type': u'shell', u'ok_to': u'join-775e', u'name': u'shell-0f44', u'error_to': u'Kill'}]
assert_equal(self.node_list, generate_v2_graph_nodes(self.wf.definition))
def test_get_graph_adjacency_list(self):
self.node_list = [{u'node_type': u'start', u'ok_to': u'fork-68d4', u'name': u''}, {u'node_type': u'kill', u'ok_to': u'', u'name': u'kill'}, {u'path2': u'shell-0f44', u'node_type': u'fork', u'ok_to': u'', u'name': u'fork-68d4', u'path1': u'subworkflow-a13f'}, {u'node_type': u'join', u'ok_to': u'end', u'name': u'join-775e'}, {u'node_type': u'end', u'ok_to': u'', u'name': u'end'}, {u'node_type': u'sub-workflow', u'ok_to': u'join-775e', u'sub-workflow': {u'app-path': u'${nameNode}/user/hue/oozie/deployments/_admin_-oozie-50001-1427488969.48'}, u'name': u'subworkflow-a13f', u'error_to': u'kill'}, {u'shell': {u'command': u'ls'}, u'node_type': u'shell', u'ok_to': u'join-775e', u'name': u'shell-0f44', u'error_to': u'kill'}]
adj_list = _create_graph_adjaceny_list(self.node_list)
assert_true(len(adj_list) == 7)
assert_true('subworkflow-a13f' in list(adj_list.keys()))
assert_true(adj_list['shell-0f44']['shell']['command'] == 'ls')
assert_equal(adj_list['fork-68d4'], {u'path2': u'shell-0f44', u'node_type': u'fork', u'ok_to': u'', u'name': u'fork-68d4', u'path1': u'subworkflow-a13f'})
def test_get_hierarchy_from_adj_list(self):
self.wf.definition = """<workflow-app name="ls-4thread" xmlns="uri:oozie:workflow:0.5">
<start to="fork-fe93"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="shell-5429">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-7f80"/>
<error to="Kill"/>
</action>
<action name="shell-bd90">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-7f80"/>
<error to="Kill"/>
</action>
<fork name="fork-fe93">
<path start="shell-5429" />
<path start="shell-bd90" />
<path start="shell-d64c" />
<path start="shell-d8cc" />
</fork>
<join name="join-7f80" to="End"/>
<action name="shell-d64c">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-7f80"/>
<error to="Kill"/>
</action>
<action name="shell-d8cc">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-7f80"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>"""
node_list = generate_v2_graph_nodes(self.wf.definition)
adj_list = _create_graph_adjaceny_list(node_list)
node_hierarchy = ['start']
_get_hierarchy_from_adj_list(adj_list, adj_list['start']['ok_to'], node_hierarchy)
assert_equal(node_hierarchy, ['start', [u'fork-fe93', [[u'shell-bd90'], [u'shell-d64c'], [u'shell-5429'], [u'shell-d8cc']], u'join-7f80'], ['Kill'], ['End']])
def test_gen_workflow_data_from_xml(self):
self.wf.definition = """<workflow-app name="fork-fork-test" xmlns="uri:oozie:workflow:0.5">
<start to="fork-949d"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="shell-eadd">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-1a0f"/>
<error to="Kill"/>
</action>
<action name="shell-f4c1">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-3bba"/>
<error to="Kill"/>
</action>
<fork name="fork-949d">
<path start="fork-e5fa" />
<path start="shell-3dd5" />
</fork>
<join name="join-ca1a" to="End"/>
<action name="shell-ef70">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-1a0f"/>
<error to="Kill"/>
</action>
<fork name="fork-37d7">
<path start="shell-eadd" />
<path start="shell-ef70" />
</fork>
<join name="join-1a0f" to="join-ca1a"/>
<action name="shell-3dd5">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="fork-37d7"/>
<error to="Kill"/>
</action>
<action name="shell-2ba8">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-3bba"/>
<error to="Kill"/>
</action>
<fork name="fork-e5fa">
<path start="shell-f4c1" />
<path start="shell-2ba8" />
</fork>
<join name="join-3bba" to="join-ca1a"/>
<end name="End"/>
</workflow-app>"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 6)
assert_true(len(workflow_data['workflow']['nodes']) == 14)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'fork-widget')
assert_equal(workflow_data['workflow']['nodes'][0]['name'], 'start-3f10')
def test_gen_workflow_data_from_xml_for_email(self):
self.wf.definition = """<workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5">
<start to="email-0377"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="email-0377">
<email xmlns="uri:oozie:email-action:0.2">
<to>example@example.com</to>
<subject>sub</subject>
<bcc>example@bcc.com</bcc>
<body>bod</body>
<content_type>text/plain</content_type>
</email>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 4)
assert_true(len(workflow_data['workflow']['nodes']) == 4)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'email-widget')
assert_equal(workflow_data['workflow']['nodes'][0]['name'], 'start-3f10')
def test_gen_workflow_data_from_xml_for_fs(self):
self.wf.definition = """<workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5">
<start to="fs-d2ff"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="fs-d2ff">
<fs>
<delete path='${nameNode}/user/admin/y'/>
<delete path='${nameNode}/user/admin/a'/>
<mkdir path='${nameNode}/user/admin/sai'/>
<mkdir path='${nameNode}/user/admin/sai1'/>
<move source='${nameNode}/user/admin/sai/test' target='${nameNode}/user/admin/sai/test1'/>
<move source='${nameNode}/user/admin/b' target='${nameNode}/user/admin/c'/>
<touchz path='${nameNode}/user/admin/sai/test'/>
<touchz path='${nameNode}/user/admin/temp1'/>
</fs>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 4)
assert_true(len(workflow_data['workflow']['nodes']) == 4)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'fs-widget')
assert_true(len(workflow_data['workflow']['nodes'][1]['properties']['deletes']), 2)
assert_equal(workflow_data['workflow']['nodes'][1]['properties']['deletes'][0]['value'], u'${nameNode}/user/admin/y')
def test_gen_workflow_data_from_xml_for_decision_node(self):
self.wf.definition = """<workflow-app xmlns="uri:oozie:workflow:0.5" name="capture-output-wf">
<credentials>
<credential name="hive2" type="hive2">
<property>
<name>hive2.jdbc.url</name>
<value>jdbc:hive2://huetest-1.gce.cloudera.com:10000/default</value>
</property>
<property>
<name>hive2.server.principal</name>
<value>hive/huetest-1.gce.cloudera.com@GCE.CLOUDERA.COM</value>
</property>
</credential>
</credentials>
<start to="fork1"/>
<fork name="fork1">
<path start="capture-shell"/>
<path start="hive-node"/>
</fork>
<action name="capture-shell">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>capture-shell.sh</exec>
<file>capture-shell.sh#capture-shell.sh</file>
<capture-output/>
</shell>
<ok to="join1"/>
<error to="fail"/>
</action>
<action name="hive-node" cred="hive2">
<hive2 xmlns="uri:oozie:hive2-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<jdbc-url>jdbc:hive2://huetest-1.gce.cloudera.com:10000/default</jdbc-url>
<script>/user/cconner/chris1.sql</script>
</hive2>
<ok to="join1"/>
<error to="fail"/>
</action>
<join name="join1" to="email1"/>
<action name="email1">
<email xmlns="uri:oozie:email-action:0.1">
<to>oozie@admin1.sec.cloudera.com</to>
<subject>capture output workflow</subject>
<body>yay</body>
</email>
<ok to="java-decision"/>
<error to="fail"/>
</action>
<action name='java-decision'>
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<main-class>com.test.CurrentTime</main-class>
<capture-output/>
</java>
<ok to="java-decision1" />
<error to="fail" />
</action>
<decision name="java-decision1">
<switch>
<case to="end">${(wf:actionData('java-decision')['key1'] == "true")}</case>
<default to="fail" />
</switch>
</decision>
<kill name="fail">
<message>Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>
</workflow-app>
"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 10)
assert_true(len(workflow_data['workflow']['nodes']) == 10)
assert_equal(workflow_data['layout'][0]['rows'][6]['widgets'][0]['widgetType'], 'decision-widget')
assert_equal(workflow_data['workflow']['nodes'][7]['type'], 'decision-widget')
assert_true(len(workflow_data['workflow']['nodes'][7]['children']) == 2)
def test_gen_workflow_data_from_xml_for_oozie_old_schemas(self):
common_wf_definition = """<workflow-app name="My Workflow" xmlns="uri:oozie:workflow:%s">
<start to="fork-b429"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="hive-ee32" cred="hive2">
<hive2 xmlns="uri:oozie:hive2-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<jdbc-url>jdbc:hive2://nightly-unsecure-1.gce.cloudera.com:10000/default</jdbc-url>
<script>${wf:appPath()}/hive-ee32.sql</script>
</hive2>
<ok to="join-508b"/>
<error to="Kill"/>
</action>
<action name="hive-97a4" cred="hcat">
<hive xmlns="uri:oozie:hive-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<job-xml>test.xml</job-xml>
<script>test.sql</script>
</hive>
<ok to="streaming-5fab"/>
<error to="Kill"/>
</action>
<fork name="fork-b429">
<path start="hive-97a4" />
<path start="pig-2bcf" />
</fork>
<join name="join-508b" to="spark-017b"/>
<action name="hive2-d643" cred="hive2">
<hive2 xmlns="uri:oozie:hive2-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<jdbc-url>jdbc:hive2://nightly-unsecure-1.gce.cloudera.com:10000/default</jdbc-url>
<script>test.sql</script>
</hive2>
<ok to="decision-aac9"/>
<error to="Kill"/>
</action>
<action name="impala-58ee">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>impala-58ee.sh</exec>
<file>impala-58ee.sh#impala-58ee.sh</file>
<file>test.impala#test.impala</file>
</shell>
<ok to="join-508b"/>
<error to="Kill"/>
</action>
<decision name="decision-aac9">
<switch>
<case to="hive-ee32">
${ 1 gt 0 }
</case>
<case to="impala-58ee">
${ 1 gt 0 }
</case>
<default to="join-508b"/>
</switch>
</decision>
<action name="pig-2bcf">
<pig>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<script>test.pig</script>
</pig>
<ok to="hive2-d643"/>
<error to="Kill"/>
</action>
<action name="spark-d71c">
<spark xmlns="uri:oozie:spark-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<master>yarn</master>
<mode>client</mode>
<name>MySpark</name>
<jar>/user/admin/test.jar</jar>
<file>test.spark#test.spark</file>
</spark>
<ok to="mapreduce-3787"/>
<error to="Kill"/>
</action>
<action name="spark-017b">
<spark xmlns="uri:oozie:spark-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<master>yarn</master>
<mode>client</mode>
<name>MySpark</name>
<jar>/user/admin/test.jar</jar>
<file>test.spark#test.spark</file>
</spark>
<ok to="fork-1576"/>
<error to="Kill"/>
</action>
<action name="sqoop-c419">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<command>import --connect jdbc:hsqldb:file:db.hsqldb --table TT --target-dir hdfs://localhost:8020/user/foo -m 1</command>
</sqoop>
<ok to="join-ebde"/>
<error to="Kill"/>
</action>
<action name="mapreduce-3787">
<map-reduce>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
</map-reduce>
<ok to="join-508b"/>
<error to="Kill"/>
</action>
<action name="shell-1c31">
<shell xmlns="uri:oozie:shell-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<exec>ls</exec>
<capture-output/>
</shell>
<ok to="join-ebde"/>
<error to="Kill"/>
</action>
<fork name="fork-1576">
<path start="sqoop-c419" />
<path start="shell-1c31" />
</fork>
<join name="join-ebde" to="End"/>
<action name="ssh-8ab6">
<ssh xmlns="uri:oozie:ssh-action:0.1">
<host>user@host.com</host>
<command>ls</command>
<capture-output/>
</ssh>
<ok to="spark-d71c"/>
<error to="Kill"/>
</action>
<action name="email-d815">
<email xmlns="uri:oozie:email-action:0.2">
<to>test</to>
<subject>test</subject>
<body>test</body>
<content_type>text/plain</content_type>
</email>
<ok to="ssh-8ab6"/>
<error to="Kill"/>
</action>
<action name="streaming-5fab">
<map-reduce>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<streaming>
<mapper>test</mapper>
<reducer>test</reducer>
</streaming>
</map-reduce>
<ok to="distcp-daa7"/>
<error to="Kill"/>
</action>
<action name="distcp-daa7">
<distcp xmlns="uri:oozie:distcp-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<arg>test</arg>
<arg>test</arg>
</distcp>
<ok to="email-d815"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>
"""
self.wf.definition = common_wf_definition % 0.4
workflow_data_04 = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
self.wf.definition = common_wf_definition % 0.3
workflow_data_03 = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
self.wf.definition = common_wf_definition % 0.2
workflow_data_02 = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
self.wf.definition = common_wf_definition % 0.1
workflow_data_01 = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data_01['layout'][0]['rows']) ==
len(workflow_data_02['layout'][0]['rows']) ==
len(workflow_data_03['layout'][0]['rows']) ==
len(workflow_data_04['layout'][0]['rows']) ==
10)
assert_true(len(workflow_data_01['workflow']['nodes']) ==
len(workflow_data_02['workflow']['nodes']) ==
len(workflow_data_03['workflow']['nodes']) ==
len(workflow_data_04['workflow']['nodes']) ==
22)
assert_true(workflow_data_01['layout'][0]['rows'][5]['widgets'][0]['widgetType'] ==
workflow_data_02['layout'][0]['rows'][5]['widgets'][0]['widgetType'] ==
workflow_data_03['layout'][0]['rows'][5]['widgets'][0]['widgetType'] ==
workflow_data_04['layout'][0]['rows'][5]['widgets'][0]['widgetType'] ==
'fork-widget')
assert_true(workflow_data_01['workflow']['nodes'][7]['type'] ==
workflow_data_02['workflow']['nodes'][7]['type'] ==
workflow_data_03['workflow']['nodes'][7]['type'] ==
workflow_data_04['workflow']['nodes'][7]['type'] ==
'hive-widget')
assert_true(len(workflow_data_01['workflow']['nodes'][7]['children']) ==
len(workflow_data_02['workflow']['nodes'][7]['children']) ==
len(workflow_data_03['workflow']['nodes'][7]['children']) ==
len(workflow_data_04['workflow']['nodes'][7]['children']) ==
2)
def test_gen_workflow_data_from_xml_for_spark_schema02(self):
self.wf.definition = """<workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5">
<start to="spark-fa35"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="spark-fa35">
<spark xmlns="uri:oozie:spark-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<master>local[*]</master>
<mode>client</mode>
<name>MySpark</name>
<jar>wordcount.py</jar>
<file>/user/admin/wordcount.py#wordcount.py</file>
</spark>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>
"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 4)
assert_true(len(workflow_data['workflow']['nodes']) == 4)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'spark-widget')
assert_true(len(workflow_data['workflow']['nodes'][1]['children']) == 2)
def test_gen_workflow_data_for_xml_with_generic_nodes(self):
self.wf.definition = """<workflow-app name="Test" xmlns="uri:oozie:workflow:0.5" xmlns:sla="uri:oozie:sla:0.2">
<start to="email-0aaa"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="email-0aaa">
<generic_action xmlns="uri:oozie:email-action:0.2">
<to>test</to>
<subject>test</subject>
<body>test</body>
<content_type>text/plain</content_type>
</generic_action>
<ok to="End"/>
<error to="Kill"/>
<sla:info>
<sla:nominal-time>${nominal_time}</sla:nominal-time>
<sla:should-start>10</sla:should-start>
<sla:should-end>${30 * MINUTES}</sla:should-end>
</sla:info>
</action>
<end name="End"/>
</workflow-app>
"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 4)
assert_true(len(workflow_data['workflow']['nodes']) == 4)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'generic-widget')
assert_true(len(workflow_data['workflow']['nodes'][1]['children']) == 2)
def test_gen_workflow_data_for_xml_with_multiple_generic_nodes(self):
self.wf.definition = """<workflow-app name="Test" xmlns="uri:oozie:workflow:0.5" xmlns:sla="uri:oozie:sla:0.2">
<start to="email-1"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="email-1">
<generic_action xmlns="uri:oozie:email-action:0.2">
<to>test</to>
<subject>test</subject>
<body>test</body>
<content_type>text/plain</content_type>
</generic_action>
<ok to="email-2"/>
<error to="Kill"/>
<sla:info>
<sla:nominal-time>${nominal_time}</sla:nominal-time>
<sla:should-start>10</sla:should-start>
<sla:should-end>${30 * MINUTES}</sla:should-end>
</sla:info>
</action>
<action name="email-2">
<generic_action2 xmlns="uri:oozie:email-action:0.2">
<to>test</to>
<subject>test</subject>
<body>test</body>
<content_type>text/plain</content_type>
</generic_action2>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>
"""
workflow_data = Workflow.gen_workflow_data_from_xml(self.user, self.wf)
assert_true(len(workflow_data['layout'][0]['rows']) == 5)
assert_true(len(workflow_data['workflow']['nodes']) == 5)
assert_equal(workflow_data['layout'][0]['rows'][1]['widgets'][0]['widgetType'], 'generic-widget')
assert_true(len(workflow_data['workflow']['nodes'][1]['children']) == 2)
def test_get_hierarchy_from_adj_list_throws_exception(self):
self.wf.definition = """<workflow-app
name="${Payer} ${Project_Name} Sub Workflow Group7_8 ${YYYYMMDDHHMM}"
xmlns="uri:oozie:workflow:0.5">
<global>
<job-tracker>${JobTracker}</job-tracker>
<name-node>${NameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${QueueName}</value>
</property>
<property>
<name>oozie.launcher.mapred.map.child.java.opts</name>
<value>-Xmx2048m</value>
</property>
<property>
<name>mapred.map.child.java.opts</name>
<value>-Xmx8192m</value>
</property>
<property>
<name>mapred.reduce.child.java.opts</name>
<value>-Xmx6144m</value>
</property>
</configuration>
</global>
<start to="AAA_Check"/>
<decision name="AAA_Check">
<switch>
<case to="Sqoop_AAA_Sub_WF1a">${fs:dirSize(AAA_WC_Path) eq 6 }</case>
<case to="Sqoop_AAA_Sub_WF1b">${fs:dirSize(AAA_WC_Path) gt 0 }</case>
<default to="BBB_Check"/>
</switch>
</decision>
<action name="Sqoop_AAA_Sub_WF1a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="BBB_Check" />
<error to="kill" />
</action>
<action name="Sqoop_AAA_Sub_WF1b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="BBB_Check" />
<error to="kill" />
</action>
<decision name="BBB_Check">
<switch>
<case to="Sqoop_BBB_Sub_WF2a">${fs:dirSize(BBB_WC_Path) eq 6 }</case>
<case to="Sqoop_BBB_Sub_WF2b">${fs:dirSize(BBB_WC_Path) gt 0 }</case>
<default to="CCC_Check"/>
</switch>
</decision>
<action name="Sqoop_BBB_Sub_WF2a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="CCC_Check" />
<error to="kill" />
</action>
<action name="Sqoop_BBB_Sub_WF2b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="CCC_Check" />
<error to="kill" />
</action>
<decision name="CCC_Check">
<switch>
<case to="Sqoop_CCC_Sub_WF3a">${fs:dirSize(CCC_WC_Path) eq 6 }</case>
<case to="Sqoop_CCC_Sub_WF3b">${fs:dirSize(CCC_WC_Path) gt 0 }</case>
<default to="DDD_Check"/>
</switch>
</decision>
<action name="Sqoop_CCC_Sub_WF3a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="DDD_Check" />
<error to="kill" />
</action>
<action name="Sqoop_CCC_Sub_WF3b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="DDD_Check" />
<error to="kill" />
</action>
<decision name="DDD_Check">
<switch>
<case to="Sqoop_DDD_Sub_WF4a">${fs:dirSize(DDD_WC_Path) eq 6 }</case>
<case to="Sqoop_DDD_Sub_WF4b">${fs:dirSize(DDD_WC_Path) gt 0 }</case>
<default to="EEE_Check"/>
</switch>
</decision>
<action name="Sqoop_DDD_Sub_WF4a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="EEE_Check" />
<error to="kill" />
</action>
<action name="Sqoop_DDD_Sub_WF4b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="EEE_Check" />
<error to="kill" />
</action>
<decision name="EEE_Check">
<switch>
<case to="Sqoop_EEE_Sub_WF5a">${fs:dirSize(EEE_WC_Path) eq 6 }</case>
<case to="Sqoop_EEE_Sub_WF5b">${fs:dirSize(EEE_WC_Path) gt 0 }</case>
<default to="FFF_Check"/>
</switch>
</decision>
<action name="Sqoop_EEE_Sub_WF5a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="FFF_Check" />
<error to="kill" />
</action>
<action name="Sqoop_EEE_Sub_WF5b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="FFF_Check" />
<error to="kill" />
</action>
<decision name="FFF_Check">
<switch>
<case to="Sqoop_FFF_Sub_WF6a">${fs:dirSize(FFF_WC_Path) eq 6 }</case>
<case to="Sqoop_FFF_Sub_WF6b">${fs:dirSize(FFF_WC_Path) gt 0 }</case>
<default to="GGG_Check"/>
</switch>
</decision>
<action name="Sqoop_FFF_Sub_WF6a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="GGG_Check" />
<error to="kill" />
</action>
<action name="Sqoop_FFF_Sub_WF6b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="GGG_Check" />
<error to="kill" />
</action>
<decision name="GGG_Check">
<switch>
<case to="Sqoop_GGG_Sub_WF7a">${fs:dirSize(GGG_WC_Path) eq 6 }</case>
<case to="Sqoop_GGG_Sub_WF7b">${fs:dirSize(GGG_WC_Path) gt 0 }</case>
<default to="HHH_Check"/>
</switch>
</decision>
<action name="Sqoop_GGG_Sub_WF7a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="HHH_Check" />
<error to="kill" />
</action>
<action name="Sqoop_GGG_Sub_WF7b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="HHH_Check" />
<error to="kill" />
</action>
<decision name="HHH_Check">
<switch>
<case to="Sqoop_HHH_Sub_WF8a">${fs:dirSize(HHH_WC_Path) eq 6 }</case>
<case to="Sqoop_HHH_Sub_WF8b">${fs:dirSize(HHH_WC_Path) gt 0 }</case>
<default to="IIII_Check"/>
</switch>
</decision>
<action name="Sqoop_HHH_Sub_WF8a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="IIII_Check" />
<error to="kill" />
</action>
<action name="Sqoop_HHH_Sub_WF8b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="IIII_Check" />
<error to="kill" />
</action>
<decision name="IIII_Check">
<switch>
<case to="Sqoop_IIII_Sub_WF9a">${fs:dirSize(IIII_WC_Path) eq 6 }</case>
<case to="Sqoop_IIII_Sub_WF9b">${fs:dirSize(IIII_WC_Path) gt 0 }</case>
<default to="JJJ_Check"/>
</switch>
</decision>
<action name="Sqoop_IIII_Sub_WF9a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="JJJ_Check" />
<error to="kill" />
</action>
<action name="Sqoop_IIII_Sub_WF9b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="JJJ_Check" />
<error to="kill" />
</action>
<decision name="JJJ_Check">
<switch>
<case to="Sqoop_JJJ_Sub_WF10a">${fs:dirSize(JJJ_WC_Path) eq 6 }</case>
<case to="Sqoop_JJJ_Sub_WF10b">${fs:dirSize(JJJ_WC_Path) gt 0 }</case>
<default to="KKK_Check"/>
</switch>
</decision>
<action name="Sqoop_JJJ_Sub_WF10a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="KKK_Check" />
<error to="kill" />
</action>
<action name="Sqoop_JJJ_Sub_WF10b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="KKK_Check" />
<error to="kill" />
</action>
<decision name="KKK_Check">
<switch>
<case to="Sqoop_KKK_Sub_WF11a">${fs:dirSize(KKK_WC_Path) eq 6 }</case>
<case to="Sqoop_KKK_Sub_WF11b">${fs:dirSize(KKK_WC_Path) gt 0 }</case>
<default to="LLL_Check"/>
</switch>
</decision>
<action name="Sqoop_KKK_Sub_WF11a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="LLL_Check" />
<error to="kill" />
</action>
<action name="Sqoop_KKK_Sub_WF11b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="LLL_Check" />
<error to="kill" />
</action>
<decision name="LLL_Check">
<switch>
<case to="Sqoop_LLL_Sub_WF12a">${fs:dirSize(LLL_WC_Path) eq 6 }</case>
<case to="Sqoop_LLL_Sub_WF12b">${fs:dirSize(LLL_WC_Path) gt 0 }</case>
<default to="MMM_Check"/>
</switch>
</decision>
<action name="Sqoop_LLL_Sub_WF12a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="MMM_Check" />
<error to="kill" />
</action>
<action name="Sqoop_LLL_Sub_WF12b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="MMM_Check" />
<error to="kill" />
</action>
<decision name="MMM_Check">
<switch>
<case to="Sqoop_MMM_Sub_WF13a">${fs:dirSize(MMM_WC_Path) eq 6 }</case>
<case to="Sqoop_MMM_Sub_WF13b">${fs:dirSize(MMM_WC_Path) gt 0 }</case>
<default to="MMMDxcd_Check"/>
</switch>
</decision>
<action name="Sqoop_MMM_Sub_WF13a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="MMMDxcd_Check" />
<error to="kill" />
</action>
<action name="Sqoop_MMM_Sub_WF13b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="MMMDxcd_Check" />
<error to="kill" />
</action>
<decision name="MMMDxcd_Check">
<switch>
<case to="Sqoop_MMMDxcd_Sub_WF14a">${fs:dirSize(MMMDxcd_WC_Path) eq 6 }</case>
<case to="Sqoop_MMMDxcd_Sub_WF14b">${fs:dirSize(MMMDxcd_WC_Path) gt 0 }</case>
<default to="NNN_Check"/>
</switch>
</decision>
<action name="Sqoop_MMMDxcd_Sub_WF14a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="NNN_Check" />
<error to="kill" />
</action>
<action name="Sqoop_MMMDxcd_Sub_WF14b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="NNN_Check" />
<error to="kill" />
</action>
<decision name="NNN_Check">
<switch>
<case to="Sqoop_NNN_Sub_WF15a">${fs:dirSize(NNN_WC_Path) eq 6 }</case>
<case to="Sqoop_NNN_Sub_WF15b">${fs:dirSize(NNN_WC_Path) gt 0 }</case>
<default to="VCHI_HomeHealthMedicare_Check"/>
</switch>
</decision>
<action name="Sqoop_NNN_Sub_WF15a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="OOO_Check" />
<error to="kill" />
</action>
<action name="Sqoop_NNN_Sub_WF15b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="OOO_Check" />
<error to="kill" />
</action>
<decision name="OOO_Check">
<switch>
<case to="Sqoop_OOO_Sub_WF18a">${fs:dirSize(OOO_WC_Path) eq 6 }</case>
<case to="Sqoop_OOO_Sub_WF18b">${fs:dirSize(OOO_WC_Path) gt 0 }</case>
<default to="end"/>
</switch>
</decision>
<action name="Sqoop_OOO_Sub_WF18a">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="end" />
<error to="kill" />
</action>
<action name="Sqoop_OOO_Sub_WF18b">
<sub-workflow>
<app-path>${APP_PATH}/ABC_Sqoop_Sub_WF.xml</app-path>
<propagate-configuration/>
<configuration/>
</sub-workflow>
<ok to="end" />
<error to="kill" />
</action>
<kill name="kill">
<message>"Killed job due to error: ${wf:errorMessage(wf:lastErrorNode())}"</message>
</kill>
<end name="end" />
</workflow-app>
"""
self.node_list = generate_v2_graph_nodes(self.wf.definition)
adj_list = _create_graph_adjaceny_list(self.node_list)
node_hierarchy = ['start']
assert_raises(WorkflowDepthReached, _get_hierarchy_from_adj_list, adj_list, adj_list['start']['ok_to'],
node_hierarchy)
class TestModelAPI(OozieMockBase):
def setUp(self):
super(TestModelAPI, self).setUp()
self.wf = Workflow()
self.client_not_me = make_logged_in_client(username="not_perm_user", groupname="default", recreate=True, is_superuser=False)
self.user_not_me = User.objects.get(username="not_perm_user")
def test_gen_workflow_from_document(self):
notebook = make_notebook(name='Browse', editor_type='hive', statement='SHOW TABLES', status='ready')
notebook_doc, save_as = _save_notebook(notebook.get_data(), self.user)
workflow_doc = WorkflowBuilder().create_workflow(document=notebook_doc, user=self.user, managed=True)
workflow = Workflow(document=workflow_doc, user=self.user)
_data = workflow.get_data()
assert_equal(len(_data['workflow']['nodes']), 4)
def test_gen_pig_document(self):
notebook = make_notebook(name='Browse', editor_type='pig', statement='ls', status='ready')
notebook_doc, save_as = _save_notebook(notebook.get_data(), self.user)
workflow_doc = WorkflowBuilder().create_workflow(document=notebook_doc, user=self.user, managed=True)
workflow = Workflow(document=workflow_doc, user=self.user)
_data = workflow.get_data()
assert_equal(len(_data['workflow']['nodes']), 4)
def test_find_all_parameters_check_validity(self):
wf_data = Workflow.get_default_workflow()
wf_data['properties'] = Workflow.get_properties()
wf_data['nodes'] = [{
u'name': u'Start',
u'properties': {'parameters': [{'value': 'a=1'}, {'value': 'b'}, {'value': ''}, {'value':'c=d=1'}]},
u'id': u'3f107997-04cc-8733-60a9-a4bb62cebffc',
u'type': u'document-widget',
u'children': [{u'to': u'33430f0f-ebfa-c3ec-f237-3e77efa03d0a'}],
u'actionParameters': [],
}]
assert_equal({u'a': u'1', u'c': u'd=1'}, Workflow(data=json.dumps({'workflow': wf_data})).find_parameters())
def test_gen_hive_xml(self):
notebook = make_notebook(name='Browse', editor_type='hive', statement='SHOW TABLES', status='ready')
notebook_doc, save_as = _save_notebook(notebook.get_data(), self.user)
workflow_doc = WorkflowBuilder().create_workflow(document=notebook_doc, user=self.user, managed=True)
workflow = Workflow(document=workflow_doc, user=self.user)
assert_true(re.search('<script>\$\{wf:appPath\(\)}/hive\-....\.sql</script>', workflow.to_xml({'output': '/path'})))
def test_gen_workflow_from_notebook(self):
snippets = [
{
'status': 'running',
'statement_raw': 'SHOW TABLES',
'statement': 'SHOW TABLES',
'type': 'hive',
'properties': {
},
'database': 'default',
},
{
'type': 'java',
'status': 'running',
'properties': {
'files': [],
'class': 'org.apache.solr.hadoop.MapReduceIndexerTool',
'app_jar': '/user/hue/app.jar',
'arguments': [
'--morphline-file',
'morphline.conf',
],
'archives': [],
}
}
]
notebook = make_notebook2(name='2 actions', snippets=snippets)
notebook_data = notebook.get_data()
workflow_doc = WorkflowBuilder().create_notebook_workflow(notebook=notebook_data, user=self.user, managed=True)
workflow = Workflow(document=workflow_doc, user=self.user)
_data = workflow.get_data()
assert_equal(len(_data['workflow']['nodes']), 5)
assert_equal(len(re.findall('<ok to="java-', workflow.to_xml())), 1, workflow.to_xml())
assert_equal(len(re.findall('<action name="hive-', workflow.to_xml())), 1, workflow.to_xml())
assert_equal(len(re.findall('<action name="java-', workflow.to_xml())), 1, workflow.to_xml())
| 77.423185
| 8,535
| 0.610513
| 15,502
| 137,581
| 5.314798
| 0.065669
| 0.008326
| 0.014759
| 0.018449
| 0.848744
| 0.806409
| 0.782097
| 0.75792
| 0.737383
| 0.728341
| 0
| 0.073325
| 0.153858
| 137,581
| 1,776
| 8,536
| 77.466779
| 0.634414
| 0.013512
| 0
| 0.549711
| 0
| 0.01347
| 0.625854
| 0.195663
| 0
| 0
| 0
| 0
| 0.073124
| 1
| 0.028865
| false
| 0
| 0.014112
| 0
| 0.044901
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
862db7ff41316acee6f70b839c599ecebdc69768
| 219
|
py
|
Python
|
datatables/templatetags/datatables.py
|
Azunda/django-datatablesview
|
6500af9b2e6b98b02cb7f880ae43ae229a2c6548
|
[
"MIT"
] | 1
|
2022-02-17T14:28:03.000Z
|
2022-02-17T14:28:03.000Z
|
datatables/templatetags/datatables.py
|
Azunda/django-datatablesview
|
6500af9b2e6b98b02cb7f880ae43ae229a2c6548
|
[
"MIT"
] | null | null | null |
datatables/templatetags/datatables.py
|
Azunda/django-datatablesview
|
6500af9b2e6b98b02cb7f880ae43ae229a2c6548
|
[
"MIT"
] | 1
|
2022-02-17T10:36:16.000Z
|
2022-02-17T10:36:16.000Z
|
from django import template
register = template.Library()
@register.inclusion_tag('datatables/css.html')
def css_bundle():
return {}
@register.inclusion_tag('datatables/js.html')
def js_bundle():
return {}
| 15.642857
| 46
| 0.726027
| 27
| 219
| 5.740741
| 0.555556
| 0.219355
| 0.258065
| 0.387097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 219
| 13
| 47
| 16.846154
| 0.820106
| 0
| 0
| 0.25
| 0
| 0
| 0.16895
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
8636bfd3df60c56223d8bbf727d8a3a5eb9a8b0d
| 3,380
|
py
|
Python
|
implementation/webproj/meet/migrations/0003_auto_20191015_0447.py
|
dwws-ufes/2019-SocialMeetScheduler
|
b5c94afb674ddcca5e53a0dff062edcb22343408
|
[
"MIT"
] | 1
|
2020-01-10T19:18:14.000Z
|
2020-01-10T19:18:14.000Z
|
implementation/webproj/meet/migrations/0003_auto_20191015_0447.py
|
dwws-ufes/2019-SocialMeetScheduler
|
b5c94afb674ddcca5e53a0dff062edcb22343408
|
[
"MIT"
] | 2
|
2020-06-05T19:25:25.000Z
|
2021-06-04T21:59:09.000Z
|
implementation/webproj/meet/migrations/0003_auto_20191015_0447.py
|
dwws-ufes/2019-SocialMeetScheduler
|
b5c94afb674ddcca5e53a0dff062edcb22343408
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2.6 on 2019-10-15 04:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('meet', '0002_auto_20191010_0543'),
]
operations = [
migrations.AlterField(
model_name='chatmailbox',
name='initiated',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mailboxes_passive', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='chatmailbox',
name='initiator',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mailboxes_active', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='chatmailbox',
name='last_sent',
field=models.DateTimeField(auto_now=True),
),
migrations.AlterField(
model_name='chatmessage',
name='mailbox',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='meet.ChatMailbox'),
),
migrations.AlterField(
model_name='chatmessage',
name='sender',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='friendship',
name='initiated',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friend_passive', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='friendship',
name='initiator',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friend_active', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='friendship',
name='since',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='marker',
name='created',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='marker',
name='creator',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='markers', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='marker',
name='last_modified',
field=models.DateTimeField(auto_now=True),
),
migrations.AlterField(
model_name='meetexternallinks',
name='parent',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='external_links', to='meet.Meet'),
),
migrations.AlterField(
model_name='meetstar',
name='meet',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stars', to='meet.Meet'),
),
migrations.AlterField(
model_name='meetstar',
name='owner',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stars', to=settings.AUTH_USER_MODEL),
),
]
| 39.302326
| 144
| 0.622485
| 344
| 3,380
| 5.930233
| 0.203488
| 0.137255
| 0.171569
| 0.19902
| 0.840196
| 0.829902
| 0.776471
| 0.776471
| 0.776471
| 0.701961
| 0
| 0.01239
| 0.259763
| 3,380
| 85
| 145
| 39.764706
| 0.802958
| 0.013314
| 0
| 0.620253
| 1
| 0
| 0.122712
| 0.006901
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.025316
| 0.037975
| 0
| 0.075949
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
86665e10f0f66562fb56da6717b3e7c4073aa641
| 58,585
|
py
|
Python
|
apps/domain/tests/test_routes/test_users_http.py
|
aisportsbets/pygrid
|
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
|
[
"Apache-2.0"
] | null | null | null |
apps/domain/tests/test_routes/test_users_http.py
|
aisportsbets/pygrid
|
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
|
[
"Apache-2.0"
] | null | null | null |
apps/domain/tests/test_routes/test_users_http.py
|
aisportsbets/pygrid
|
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
|
[
"Apache-2.0"
] | null | null | null |
from json import dumps, loads
import jwt
import pytest
from bcrypt import checkpw
from flask import current_app as app
from src.main.core.database import *
JSON_DECODE_ERR_MSG = (
"Expecting property name enclosed in " "double quotes: line 1 column 2 (char 1)"
)
owner_role = ("Owner", True, True, True, True, True, True, True)
user_role = ("User", False, False, False, False, False, False, False)
admin_role = ("Administrator", True, True, True, True, False, False, True)
user1 = (
"tech@gibberish.com",
"BDEB6E8EE39B6C70835993486C9E65DC",
"]GBF[R>GX[9Cmk@DthFT!mhloUc%[f",
"fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
1,
)
user2 = (
"anemail@anemail.com",
"2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
"$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
"acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
2,
)
user3 = (
"anemail@anemail.com",
"2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
"$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
"acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
3,
)
user4 = (
"tech@gibberish.com",
"2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
"$2b$12$tufn64/0gSIAdprqBrRzC.",
"fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
2,
)
@pytest.fixture
def cleanup(database):
yield
try:
database.session.query(User).delete()
database.session.query(Role).delete()
database.session.query(Group).delete()
database.session.query(UserGroup).delete()
database.session.commit()
except:
database.session.rollback()
# POST USER
def test_post_role_user_data_no_key(client):
result = client.post("/users", data="{bad", content_type="application/json")
assert result.status_code == 400
def test_post_user_bad_data_with_key(client, database, cleanup):
new_role = create_role(*owner_role)
new_user = create_user(*user1)
database.session.add(new_role)
database.session.add(new_user)
database.session.commit()
result = client.post("/users", data="{bad", content_type="application/json")
assert result.status_code == 400
def test_post_std_user_success(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
payload = {"email": "someemail@email.com", "password": "123secretpassword"}
result = client.post("/users", data=dumps(payload), content_type="application/json")
assert result.status_code == 200
assert result.get_json() == {"message": "User created successfully!"}
def test_post_std_user_missing_role(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {
"email": "someemail@email.com",
"password": "123secretpassword",
"role": "Unexpected Role",
}
result = client.post(
"/users", data=dumps(payload), headers=headers, content_type="application/json"
)
assert result.get_json() == {"error": "Role ID not found!"}
# TODO: Update unit tests below
def test_post_user_with_role(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
headers = {}
payload = {
"email": "someemail@email.com",
"password": "123secretpassword",
"role": "User",
}
result = client.post(
"/users", data=dumps(payload), headers=headers, content_type="application/json"
)
assert result.status_code == 200
assert result.get_json() == {"message": "User created successfully!"}
def test_login_user_valid_credentials(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=1,
)
database.session.add(new_user)
database.session.commit()
headers = {}
payload = {"email": "tech@gibberish.com", "password": "&UP!SN!;J4Mx;+A]"}
result = client.post(
"/users/login",
data=dumps(payload),
headers=headers,
content_type="application/json",
)
assert result.status_code == 200
token = result.get_json()["token"]
content = jwt.decode(token, app.config["SECRET_KEY"], algorithms="HS256")
assert content["id"] == 1
def test_login_user_invalid_email(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
payload = {"email": "p@perhaps.com", "password": "&UP!SN!;J4Mx;+A]"}
result = client.post(
"/users/login",
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_login_user_invalid_password(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=1,
)
database.session.add(new_user)
database.session.commit()
headers = {}
payload = {"email": "tech@gibberish.com", "password": "@123456notmypassword"}
result = client.post(
"/users/login",
data=dumps(payload),
headers=headers,
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
# GET ALL USERS
def test_get_users_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users", headers=headers, content_type="application/json")
assert result.status_code == 200
assert len(result.get_json()) == 2
assert result.get_json()[0]["id"] == 1
assert result.get_json()[1]["id"] == 2
def test_get_users_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users", headers=headers, content_type="application/json")
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to get User information!"
def test_get_users_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
result = client.get("/users", headers=headers, content_type="application/json")
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_get_users_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "peppperplsiwouldhavesome")
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users", headers=headers, content_type="application/json")
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
# GET SPECIFIC USER
def test_get_one_user_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 200
assert result.get_json()["id"] == 2
assert result.get_json()["email"] == "anemail@anemail.com"
def test_get_one_user_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
result = client.get("/users/1", headers=headers, content_type="application/json")
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_get_one_user_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "peppperplsiwouldhavesome")
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_get_one_user_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users/1", headers=headers, content_type="application/json")
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to get User information!"
def test_get_one_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.get("/users/3", headers=headers, content_type="application/json")
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
# PUT USER EMAIL
def test_put_other_user_email_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).email == "anemail@anemail.com"
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/2/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
def test_put_other_user_email_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).email == "anemail@anemail.com"
headers = {}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/2/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_put_user_email_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).email == "anemail@anemail.com"
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/2/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_put_other_user_email_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/1/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to change other user data!"
def test_put_own_user_email_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).email == "anemail@anemail.com"
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/2/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
def test_put_user_email_missing_role(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).email == "anemail@anemail.com"
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/2/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
def test_put_other_user_email_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "brandnew@brandnewemail.com"}
result = client.put(
"/users/5/email",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
# PUT USER ROLE
def test_put_other_user_role_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).role == 2
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 1}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
def test_put_other_user_role_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
payload = {"role": 1}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_put_user_role_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 1}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_put_other_user_role_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 2}
result = client.put(
"/users/1/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to change other user data!"
def test_put_own_user_role_sucess(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = create_user(*user3)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2).role == 2
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 3}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
def test_put_first_user_unauthorized(client, database, cleanup):
# Create Owner role
new_role = create_role(*owner_role)
database.session.add(new_role)
# Create Admin role
new_role = create_role(*admin_role)
database.session.add(new_role)
# Create User role
new_role = create_role(*user_role)
database.session.add(new_role)
# New Owner User
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = create_user(*user3)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 3}
result = client.put(
"/users/1/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert (
result.get_json()["error"] == "You're not allowed to change Owner user roles!"
)
def test_put_other_user_role_owner_unauthorized(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = create_user(*user3)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 1}
result = client.put(
"/users/3/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You can't change it to Owner role!"
def test_put_other_user_role_owner(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = create_user(*user3)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(3).role == 3
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 1}
result = client.put(
"/users/3/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You can't change it to Owner role!"
def test_put_user_role_missing_role(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 2}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 404
assert result.get_json()["error"] == "Role ID not found!"
def test_put_other_user_role_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 2}
result = client.put(
"/users/2/role",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
# PUT USER PASSWORD
def test_put_other_user_password_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=2,
)
database.session.add(new_user)
database.session.commit()
user = database.session.query(User).get(2)
assert checkpw(
b"ownerpassword123@@",
user.salt.encode("UTF-8") + user.hashed_password.encode("UTF-8"),
)
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/2/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
assert checkpw(
new_password.encode("UTF-8"),
user.salt.encode("UTF-8") + user.hashed_password.encode("UTF-8"),
)
def test_put_user_password_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/2/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_put_user_password_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/2/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_put_other_user_password_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/1/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to change other user data!"
def test_put_own_user_password_success(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
database.session.commit()
user = database.session.query(User).get(3)
assert checkpw(
b"ownerpassword123@@",
user.salt.encode("UTF-8") + user.hashed_password.encode("UTF-8"),
)
token = jwt.encode({"id": 3}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/3/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
assert checkpw(
new_password.encode("UTF-8"),
user.salt.encode("UTF-8") + user.hashed_password.encode("UTF-8"),
)
def test_put_other_user_email_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
new_password = "BrandNewPassword123"
payload = {"password": new_password}
result = client.put(
"/users/2/password",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
# PUT USER GROUPS
def test_put_other_user_groups_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=2,
)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
database.session.commit()
user_groups = database.session.query(UserGroup).filter_by(user=2).all()
assert len(user_groups) == 1
assert user_groups[0].group == 1
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [2, 3]}
result = client.put(
"/users/2/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
user_groups = database.session.query(UserGroup).filter_by(user=2).all()
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
assert len(user_groups) == 2
assert user_groups[0].group == 2
assert user_groups[1].group == 3
def test_put_user_groups_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
database.session.commit()
headers = {}
payload = {"groups": [2, 3]}
result = client.put(
"/users/2/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_put_user_groups_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [2, 3]}
result = client.put(
"/users/2/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_put_other_user_groups_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [2, 3]}
result = client.put(
"/users/1/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to change other user data!"
def test_put_user_groups_success(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=3, group=2)
database.session.add(new_usergroup)
database.session.commit()
user_groups = database.session.query(UserGroup).filter_by(user=3).all()
assert len(user_groups) == 1
assert user_groups[0].group == 2
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [1]}
result = client.put(
"/users/3/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
user_groups = database.session.query(UserGroup).filter_by(user=3).all()
assert result.status_code == 200
assert result.get_json() == {"message": "User updated successfully!"}
assert len(user_groups) == 1
assert user_groups[0].group == 1
def test_put_other_user_groups_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=3, group=2)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [1]}
result = client.put(
"/users/2/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
def test_put_user_groups_missing_group(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=3, group=2)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"groups": [5]}
result = client.put(
"/users/3/groups",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
user_groups = database.session.query(UserGroup).filter_by(user=3).all()
assert result.status_code == 404
assert result.get_json()["error"] == "Group ID not found!"
# DELETE USER
def test_delete_other_user_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=2,
)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(2) is not None
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.delete("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 200
assert result.get_json() == {"message": "User deleted successfully!"}
assert database.session.query(User).get(2) is None
def test_delete_user_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
result = client.delete("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_delete_user_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
result = client.delete("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_delete_other_user_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.delete("/users/1", headers=headers, content_type="application/json")
assert result.status_code == 403
assert (
result.get_json()["error"]
== "You're not allowed to delete this user information!"
)
def test_delete_own_user(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = create_user(*user4)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
database.session.commit()
assert database.session.query(User).get(3) is not None
token = jwt.encode({"id": 3}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.delete("/users/3", headers=headers, content_type="application/json")
user_groups = database.session.query(UserGroup).filter_by(user=3).all()
assert result.status_code == 403
assert (
result.get_json()["error"]
== "You're not allowed to delete this user information!"
)
assert database.session.query(User).get(3) is not None
def test_delete_other_user_missing_user(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=1,
)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
result = client.delete("/users/2", headers=headers, content_type="application/json")
assert result.status_code == 404
assert result.get_json()["error"] == "User not found!"
# SEARCH USERS
# TODO: Update search unit tests
def test_search_users_success(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=1,
)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=2,
)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "anemail@anemail.com"}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert len(result.get_json()) == 1
assert result.get_json()[0]["id"] == 2
def test_search_users_nomatch(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="owner@owner.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=3,
)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=1, group=3)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=3, group=1)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 3, "group": 3}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert len(result.get_json()) == 0
def test_search_users_onematch(client, database, cleanup):
new_role = create_role(*owner_role)
database.session.add(new_role)
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = User(
email="tech@gibberish.com",
hashed_password="RcEEa25p/APCVGFaBaiZpytLieFsv22",
salt="$2b$12$OazL5oj8/lxxOV5a5j2Nme",
private_key="4de2d41486ceaffdf0c1778e50cea00000d6549ffe808fa860ecd4e91d9ee1b1",
role=1,
)
database.session.add(new_user)
new_user = User(
email="tech@gibberish.com",
hashed_password="2amt5MXKdLhEEL8FiQLcl8Mp0FNhZI6",
salt="$2b$12$tufn64/0gSIAdprqBrRzC.",
private_key="fd062d885b24bda173f6aa534a3418bcafadccecfefe2f8c6f5a8db563549ced",
role=3,
)
database.session.add(new_user)
new_user = User(
email="anemail@anemail.com",
hashed_password="wi6hJCTz9QN1GcKc2ZJk7ReZ1LshNsu",
salt="$2b$12$rj8MnLcKBxAgL7GUHrYn6O",
private_key="acfc10d15d7ec9f7cd05a312489af2794619c6f11e9af34671a5f33da48c1de2",
role=3,
)
database.session.add(new_user)
new_group = Group(name="Hospital_X")
database.session.add(new_group)
new_group = Group(name="Hospital_Y")
database.session.add(new_group)
new_group = Group(name="Hospital_Z")
database.session.add(new_group)
new_usergroup = UserGroup(user=1, group=3)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=2, group=1)
database.session.add(new_usergroup)
new_usergroup = UserGroup(user=3, group=1)
database.session.add(new_usergroup)
database.session.commit()
token = jwt.encode({"id": 1}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"role": 3, "group": 1, "email": "tech@gibberish.com"}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 200
assert len(result.get_json()) == 1
assert result.get_json()[0]["id"] == 2
def test_search_users_missing_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
headers = {}
payload = {"email": "anemail@anemail.com"}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 400
assert result.get_json()["error"] == "Missing request key!"
def test_search_users_invalid_token(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 1}, "secretitis")
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "anemail@anemail.com"}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "Invalid credentials!"
def test_search_users_unauthorized(client, database, cleanup):
new_role = create_role(*admin_role)
database.session.add(new_role)
new_role = create_role(*user_role)
database.session.add(new_role)
new_user = create_user(*user1)
database.session.add(new_user)
new_user = create_user(*user2)
database.session.add(new_user)
database.session.commit()
token = jwt.encode({"id": 2}, app.config["SECRET_KEY"])
headers = {
"token": token.decode("UTF-8"),
}
payload = {"email": "anemail@anemail.com"}
result = client.post(
"/users/search",
headers=headers,
data=dumps(payload),
content_type="application/json",
)
assert result.status_code == 403
assert result.get_json()["error"] == "You're not allowed to get User information!"
| 30.560772
| 88
| 0.673107
| 7,127
| 58,585
| 5.321594
| 0.027501
| 0.143961
| 0.132887
| 0.155035
| 0.96169
| 0.954017
| 0.947399
| 0.9426
| 0.929839
| 0.92736
| 0
| 0.042479
| 0.194743
| 58,585
| 1,916
| 89
| 30.576722
| 0.761468
| 0.004404
| 0
| 0.838999
| 0
| 0
| 0.171889
| 0.067775
| 0
| 0
| 0
| 0.000522
| 0.093008
| 1
| 0.038486
| false
| 0.041052
| 0.003849
| 0
| 0.042335
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
86697d6f71a9a859c35f2219fe67ae338b2b5cb3
| 19,545
|
py
|
Python
|
kornia/morphology/morphology.py
|
shaunster0/kornia
|
71acf455ee36f2050b7be5ea993b6db773f502eb
|
[
"ECL-2.0",
"Apache-2.0"
] | 51
|
2019-10-11T18:47:30.000Z
|
2021-05-03T06:42:37.000Z
|
kornia/morphology/morphology.py
|
shaunster0/kornia
|
71acf455ee36f2050b7be5ea993b6db773f502eb
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
kornia/morphology/morphology.py
|
shaunster0/kornia
|
71acf455ee36f2050b7be5ea993b6db773f502eb
|
[
"ECL-2.0",
"Apache-2.0"
] | 7
|
2019-10-11T19:59:05.000Z
|
2020-07-10T02:28:52.000Z
|
from typing import List, Optional
import torch
import torch.nn.functional as F
def dilation(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the dilated image applying the same kernel in each channel.
.. image:: _static/img/dilation.png
The kernel must have 2 dimensions.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a non-flat
structuring element.
origin: Origin of the structuring element. Default: ``None`` and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Dilated image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> dilated_img = dilation(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
# origin
se_h, se_w = kernel.shape
if origin is None:
origin = [se_h // 2, se_w // 2]
# pad
pad_e: List[int] = [origin[1], se_w - origin[1] - 1, origin[0], se_h - origin[0] - 1]
if border_type == 'geodesic':
border_value = -max_val
border_type = 'constant'
output: torch.Tensor = F.pad(tensor, pad_e, mode=border_type, value=border_value)
# computation
if structuring_element is None:
neighborhood = torch.zeros_like(kernel)
neighborhood[kernel == 0] = -max_val
else:
neighborhood = structuring_element.clone()
neighborhood[kernel == 0] = -max_val
output = output.unfold(2, se_h, 1).unfold(3, se_w, 1)
output, _ = torch.max(output + neighborhood.flip((0, 1)), 4)
output, _ = torch.max(output, 4)
return output
def erosion(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the eroded image applying the same kernel in each channel.
.. image:: _static/img/erosion.png
The kernel must have 2 dimensions.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element (torch.Tensor, optional): Structuring element used for the grayscale dilation.
It may be a non-flat structuring element.
origin: Origin of the structuring element. Default: ``None`` and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if border_type is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Eroded image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(5, 5)
>>> output = erosion(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
# origin
se_h, se_w = kernel.shape
if origin is None:
origin = [se_h // 2, se_w // 2]
# pad
pad_e: List[int] = [origin[1], se_w - origin[1] - 1, origin[0], se_h - origin[0] - 1]
if border_type == 'geodesic':
border_value = max_val
border_type = 'constant'
output: torch.Tensor = F.pad(tensor, pad_e, mode=border_type, value=border_value)
# computation
if structuring_element is None:
neighborhood = torch.zeros_like(kernel)
neighborhood[kernel == 0] = -max_val
else:
neighborhood = structuring_element.clone()
neighborhood[kernel == 0] = -max_val
output = output.unfold(2, se_h, 1).unfold(3, se_w, 1)
output, _ = torch.min(output - neighborhood, 4)
output, _ = torch.min(output, 4)
return output
def opening(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the opened image, (that means, dilation after an erosion) applying the same kernel in each channel.
.. image:: _static/img/opening.png
The kernel must have 2 dimensions.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a
non-flat structuring element.
origin: Origin of the structuring element. Default: ``None`` and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
torch.Tensor: Opened image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> opened_img = opening(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
return dilation(
erosion(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
),
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
)
def closing(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the closed image, (that means, erosion after a dilation) applying the same kernel in each channel.
.. image:: _static/img/closing.png
The kernel must have 2 dimensions.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a
non-flat structuring element.
origin: Origin of the structuring element. Default is None and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Closed image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> closed_img = closing(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
return erosion(
dilation(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
),
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
)
# Morphological Gradient
def gradient(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the morphological gradient of an image.
.. image:: _static/img/gradient.png
That means, (dilation - erosion) applying the same kernel in each channel.
The kernel must have 2 dimensions.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a
non-flat structuring element.
origin: Origin of the structuring element. Default is None and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Gradient image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> gradient_img = gradient(tensor, kernel)
"""
return dilation(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
) - erosion(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
)
def top_hat(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the top hat tranformation of an image.
.. image:: _static/img/top_hat.png
That means, (image - opened_image) applying the same kernel in each channel.
The kernel must have 2 dimensions.
See :func:`~kornia.morphology.opening` for details.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a
non-flat structuring element.
origin: Origin of the structuring element. Default: ``None`` and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Top hat transformated image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> top_hat_img = top_hat(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
return tensor - opening(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
)
def bottom_hat(
tensor: torch.Tensor,
kernel: torch.Tensor,
structuring_element: Optional[torch.Tensor] = None,
origin: Optional[List[int]] = None,
border_type: str = 'geodesic',
border_value: float = 0.0,
max_val: float = 1e4,
) -> torch.Tensor:
r"""Returns the bottom hat tranformation of an image.
.. image:: _static/img/bottom_hat.png
That means, (closed_image - image) applying the same kernel in each channel.
The kernel must have 2 dimensions.
See :func:`~kornia.morphology.closing` for details.
Args:
tensor: Image with shape :math:`(B, C, H, W)`.
kernel: Positions of non-infinite elements of a flat structuring element. Non-zero values give
the set of neighbors of the center over which the operation is applied. Its shape is :math:`(k_x, k_y)`.
For full structural elements use torch.ones_like(structural_element).
structuring_element: Structuring element used for the grayscale dilation. It may be a
non-flat structuring element.
origin: Origin of the structuring element. Default: ``None`` and uses the center of
the structuring element as origin (rounding towards zero).
border_type: It determines how the image borders are handled, where ``border_value`` is the value
when ``border_type`` is equal to ``constant``. Default: ``geodesic`` which ignores the values that are
outside the image when applying the operation.
border_value: Value to fill past edges of input if ``border_type`` is ``constant``.
max_val: The value of the infinite elements in the kernel.
Returns:
Top hat transformated image with shape :math:`(B, C, H, W)`.
Example:
>>> tensor = torch.rand(1, 3, 5, 5)
>>> kernel = torch.ones(3, 3)
>>> bottom_hat_img = bottom_hat(tensor, kernel)
"""
if not isinstance(tensor, torch.Tensor):
raise TypeError("Input type is not a torch.Tensor. Got {}".format(type(tensor)))
if len(tensor.shape) != 4:
raise ValueError("Input size must have 4 dimensions. Got {}".format(tensor.dim()))
if not isinstance(kernel, torch.Tensor):
raise TypeError("Kernel type is not a torch.Tensor. Got {}".format(type(kernel)))
if len(kernel.shape) != 2:
raise ValueError("Kernel size must have 2 dimensions. Got {}".format(kernel.dim()))
return (
closing(
tensor,
kernel=kernel,
structuring_element=structuring_element,
origin=origin,
border_type=border_type,
border_value=border_value,
max_val=max_val,
)
- tensor
)
| 39.564777
| 116
| 0.647787
| 2,620
| 19,545
| 4.741603
| 0.06145
| 0.099976
| 0.04226
| 0.036223
| 0.943411
| 0.93987
| 0.938018
| 0.938018
| 0.930613
| 0.930613
| 0
| 0.009227
| 0.25142
| 19,545
| 493
| 117
| 39.64503
| 0.839861
| 0.519263
| 0
| 0.838428
| 0
| 0
| 0.12346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.030568
| false
| 0
| 0.0131
| 0
| 0.074236
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
86a46dc52991f1440013c43d8acc9ab94ff168df
| 5,794
|
py
|
Python
|
typings/bl_operators/mesh.py
|
Argmaster/PyR3
|
6786bcb6a101fe4bd4cc50fe43767b8178504b15
|
[
"MIT"
] | 2
|
2021-12-12T18:51:52.000Z
|
2022-02-23T09:49:16.000Z
|
src/blender/blender_autocomplete-master/2.92/bl_operators/mesh.py
|
JonasWard/ClayAdventures
|
a716445ac690e4792e70658319aa1d5299f9c9e9
|
[
"MIT"
] | 2
|
2021-11-08T12:09:02.000Z
|
2021-12-12T23:01:12.000Z
|
src/blender/blender_autocomplete-master/2.92/bl_operators/mesh.py
|
JonasWard/ClayAdventures
|
a716445ac690e4792e70658319aa1d5299f9c9e9
|
[
"MIT"
] | null | null | null |
import sys
import typing
import bpy_types
class MeshMirrorUV(bpy_types.Operator):
bl_idname = None
''' '''
bl_label = None
''' '''
bl_options = None
''' '''
bl_rna = None
''' '''
id_data = None
''' '''
def as_keywords(self, ignore):
'''
'''
pass
def as_pointer(self):
'''
'''
pass
def bl_rna_get_subclass(self):
'''
'''
pass
def bl_rna_get_subclass_py(self):
'''
'''
pass
def do_mesh_mirror_UV(self, mesh, DIR):
'''
'''
pass
def driver_add(self):
'''
'''
pass
def driver_remove(self):
'''
'''
pass
def execute(self, context):
'''
'''
pass
def get(self):
'''
'''
pass
def is_property_hidden(self):
'''
'''
pass
def is_property_overridable_library(self):
'''
'''
pass
def is_property_readonly(self):
'''
'''
pass
def is_property_set(self):
'''
'''
pass
def items(self):
'''
'''
pass
def keyframe_delete(self):
'''
'''
pass
def keyframe_insert(self):
'''
'''
pass
def keys(self):
'''
'''
pass
def path_from_id(self):
'''
'''
pass
def path_resolve(self):
'''
'''
pass
def poll(self, context):
'''
'''
pass
def pop(self):
'''
'''
pass
def property_overridable_library_set(self):
'''
'''
pass
def property_unset(self):
'''
'''
pass
def type_recast(self):
'''
'''
pass
def values(self):
'''
'''
pass
class MeshSelectNext(bpy_types.Operator):
bl_idname = None
''' '''
bl_label = None
''' '''
bl_options = None
''' '''
bl_rna = None
''' '''
id_data = None
''' '''
def as_keywords(self, ignore):
'''
'''
pass
def as_pointer(self):
'''
'''
pass
def bl_rna_get_subclass(self):
'''
'''
pass
def bl_rna_get_subclass_py(self):
'''
'''
pass
def driver_add(self):
'''
'''
pass
def driver_remove(self):
'''
'''
pass
def execute(self, context):
'''
'''
pass
def get(self):
'''
'''
pass
def is_property_hidden(self):
'''
'''
pass
def is_property_overridable_library(self):
'''
'''
pass
def is_property_readonly(self):
'''
'''
pass
def is_property_set(self):
'''
'''
pass
def items(self):
'''
'''
pass
def keyframe_delete(self):
'''
'''
pass
def keyframe_insert(self):
'''
'''
pass
def keys(self):
'''
'''
pass
def path_from_id(self):
'''
'''
pass
def path_resolve(self):
'''
'''
pass
def poll(self, context):
'''
'''
pass
def pop(self):
'''
'''
pass
def property_overridable_library_set(self):
'''
'''
pass
def property_unset(self):
'''
'''
pass
def type_recast(self):
'''
'''
pass
def values(self):
'''
'''
pass
class MeshSelectPrev(bpy_types.Operator):
bl_idname = None
''' '''
bl_label = None
''' '''
bl_options = None
''' '''
bl_rna = None
''' '''
id_data = None
''' '''
def as_keywords(self, ignore):
'''
'''
pass
def as_pointer(self):
'''
'''
pass
def bl_rna_get_subclass(self):
'''
'''
pass
def bl_rna_get_subclass_py(self):
'''
'''
pass
def driver_add(self):
'''
'''
pass
def driver_remove(self):
'''
'''
pass
def execute(self, context):
'''
'''
pass
def get(self):
'''
'''
pass
def is_property_hidden(self):
'''
'''
pass
def is_property_overridable_library(self):
'''
'''
pass
def is_property_readonly(self):
'''
'''
pass
def is_property_set(self):
'''
'''
pass
def items(self):
'''
'''
pass
def keyframe_delete(self):
'''
'''
pass
def keyframe_insert(self):
'''
'''
pass
def keys(self):
'''
'''
pass
def path_from_id(self):
'''
'''
pass
def path_resolve(self):
'''
'''
pass
def poll(self, context):
'''
'''
pass
def pop(self):
'''
'''
pass
def property_overridable_library_set(self):
'''
'''
pass
def property_unset(self):
'''
'''
pass
def type_recast(self):
'''
'''
pass
def values(self):
'''
'''
pass
| 11.752535
| 47
| 0.370211
| 463
| 5,794
| 4.390929
| 0.12743
| 0.241023
| 0.324643
| 0.076734
| 0.948352
| 0.948352
| 0.948352
| 0.948352
| 0.948352
| 0.948352
| 0
| 0
| 0.494304
| 5,794
| 492
| 48
| 11.776423
| 0.693857
| 0
| 0
| 0.958084
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.437126
| false
| 0.437126
| 0.017964
| 0
| 0.562874
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 12
|
81138caff650726c646e9a2832c803b335ea5658
| 8,516
|
py
|
Python
|
test/test_gromov.py
|
6Ulm/POT
|
28dd2fe2c461ac2287ae51e464f0b002d61f5f31
|
[
"MIT"
] | null | null | null |
test/test_gromov.py
|
6Ulm/POT
|
28dd2fe2c461ac2287ae51e464f0b002d61f5f31
|
[
"MIT"
] | null | null | null |
test/test_gromov.py
|
6Ulm/POT
|
28dd2fe2c461ac2287ae51e464f0b002d61f5f31
|
[
"MIT"
] | null | null | null |
"""Tests for module gromov """
# Author: Erwan Vautier <erwan.vautier@gmail.com>
# Nicolas Courty <ncourty@irisa.fr>
# Titouan Vayer <titouan.vayer@irisa.fr>
#
# License: MIT License
import numpy as np
import ot
def test_gromov():
n_samples = 50 # nb samples
mu_s = np.array([0, 0])
cov_s = np.array([[1, 0], [0, 1]])
xs = ot.datasets.make_2D_samples_gauss(n_samples, mu_s, cov_s, random_state=4)
xt = xs[::-1].copy()
p = ot.unif(n_samples)
q = ot.unif(n_samples)
C1 = ot.dist(xs, xs)
C2 = ot.dist(xt, xt)
C1 /= C1.max()
C2 /= C2.max()
G = ot.gromov.gromov_wasserstein(C1, C2, p, q, 'square_loss', verbose=True)
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence gromov
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
Id = (1 / (1.0 * n_samples)) * np.eye(n_samples, n_samples)
np.testing.assert_allclose(
G, np.flipud(Id), atol=1e-04)
gw, log = ot.gromov.gromov_wasserstein2(C1, C2, p, q, 'kl_loss', log=True)
gw_val = ot.gromov.gromov_wasserstein2(C1, C2, p, q, 'kl_loss', log=False)
G = log['T']
np.testing.assert_allclose(gw, 0, atol=1e-1, rtol=1e-1)
np.testing.assert_allclose(gw, gw_val, atol=1e-1, rtol=1e-1) # cf log=False
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence gromov
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
def test_entropic_gromov():
n_samples = 50 # nb samples
mu_s = np.array([0, 0])
cov_s = np.array([[1, 0], [0, 1]])
xs = ot.datasets.make_2D_samples_gauss(n_samples, mu_s, cov_s, random_state=42)
xt = xs[::-1].copy()
p = ot.unif(n_samples)
q = ot.unif(n_samples)
C1 = ot.dist(xs, xs)
C2 = ot.dist(xt, xt)
C1 /= C1.max()
C2 /= C2.max()
G = ot.gromov.entropic_gromov_wasserstein(
C1, C2, p, q, 'square_loss', epsilon=5e-4, verbose=True)
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence gromov
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
gw, log = ot.gromov.entropic_gromov_wasserstein2(
C1, C2, p, q, 'kl_loss', epsilon=1e-2, log=True)
G = log['T']
np.testing.assert_allclose(gw, 0, atol=1e-1, rtol=1e-1)
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence gromov
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
def test_gromov_barycenter():
ns = 50
nt = 60
Xs, ys = ot.datasets.make_data_classif('3gauss', ns, random_state=42)
Xt, yt = ot.datasets.make_data_classif('3gauss2', nt, random_state=42)
C1 = ot.dist(Xs)
C2 = ot.dist(Xt)
n_samples = 3
Cb = ot.gromov.gromov_barycenters(n_samples, [C1, C2],
[ot.unif(ns), ot.unif(nt)
], ot.unif(n_samples), [.5, .5],
'square_loss', # 5e-4,
max_iter=100, tol=1e-3,
verbose=True)
np.testing.assert_allclose(Cb.shape, (n_samples, n_samples))
Cb2 = ot.gromov.gromov_barycenters(n_samples, [C1, C2],
[ot.unif(ns), ot.unif(nt)
], ot.unif(n_samples), [.5, .5],
'kl_loss', # 5e-4,
max_iter=100, tol=1e-3)
np.testing.assert_allclose(Cb2.shape, (n_samples, n_samples))
def test_gromov_entropic_barycenter():
ns = 50
nt = 60
Xs, ys = ot.datasets.make_data_classif('3gauss', ns, random_state=42)
Xt, yt = ot.datasets.make_data_classif('3gauss2', nt, random_state=42)
C1 = ot.dist(Xs)
C2 = ot.dist(Xt)
n_samples = 3
Cb = ot.gromov.entropic_gromov_barycenters(n_samples, [C1, C2],
[ot.unif(ns), ot.unif(nt)
], ot.unif(n_samples), [.5, .5],
'square_loss', 2e-3,
max_iter=100, tol=1e-3,
verbose=True)
np.testing.assert_allclose(Cb.shape, (n_samples, n_samples))
Cb2 = ot.gromov.entropic_gromov_barycenters(n_samples, [C1, C2],
[ot.unif(ns), ot.unif(nt)
], ot.unif(n_samples), [.5, .5],
'kl_loss', 2e-3,
max_iter=100, tol=1e-3)
np.testing.assert_allclose(Cb2.shape, (n_samples, n_samples))
def test_fgw():
n_samples = 50 # nb samples
mu_s = np.array([0, 0])
cov_s = np.array([[1, 0], [0, 1]])
xs = ot.datasets.make_2D_samples_gauss(n_samples, mu_s, cov_s, random_state=42)
xt = xs[::-1].copy()
ys = np.random.randn(xs.shape[0], 2)
yt = ys[::-1].copy()
p = ot.unif(n_samples)
q = ot.unif(n_samples)
C1 = ot.dist(xs, xs)
C2 = ot.dist(xt, xt)
C1 /= C1.max()
C2 /= C2.max()
M = ot.dist(ys, yt)
M /= M.max()
G, log = ot.gromov.fused_gromov_wasserstein(M, C1, C2, p, q, 'square_loss', alpha=0.5, log=True)
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence fgw
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence fgw
Id = (1 / (1.0 * n_samples)) * np.eye(n_samples, n_samples)
np.testing.assert_allclose(
G, np.flipud(Id), atol=1e-04) # cf convergence gromov
fgw, log = ot.gromov.fused_gromov_wasserstein2(M, C1, C2, p, q, 'square_loss', alpha=0.5, log=True)
G = log['T']
np.testing.assert_allclose(fgw, 0, atol=1e-1, rtol=1e-1)
# check constratints
np.testing.assert_allclose(
p, G.sum(1), atol=1e-04) # cf convergence gromov
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
def test_fgw_barycenter():
np.random.seed(42)
ns = 50
nt = 60
Xs, ys = ot.datasets.make_data_classif('3gauss', ns, random_state=42)
Xt, yt = ot.datasets.make_data_classif('3gauss2', nt, random_state=42)
ys = np.random.randn(Xs.shape[0], 2)
yt = np.random.randn(Xt.shape[0], 2)
C1 = ot.dist(Xs)
C2 = ot.dist(Xt)
n_samples = 3
X, C = ot.gromov.fgw_barycenters(n_samples, [ys, yt], [C1, C2], [ot.unif(ns), ot.unif(nt)], [.5, .5], 0.5,
fixed_structure=False, fixed_features=False,
p=ot.unif(n_samples), loss_fun='square_loss',
max_iter=100, tol=1e-3)
np.testing.assert_allclose(C.shape, (n_samples, n_samples))
np.testing.assert_allclose(X.shape, (n_samples, ys.shape[1]))
xalea = np.random.randn(n_samples, 2)
init_C = ot.dist(xalea, xalea)
X, C = ot.gromov.fgw_barycenters(n_samples, [ys, yt], [C1, C2], ps=[ot.unif(ns), ot.unif(nt)], lambdas=[.5, .5], alpha=0.5,
fixed_structure=True, init_C=init_C, fixed_features=False,
p=ot.unif(n_samples), loss_fun='square_loss',
max_iter=100, tol=1e-3)
np.testing.assert_allclose(C.shape, (n_samples, n_samples))
np.testing.assert_allclose(X.shape, (n_samples, ys.shape[1]))
init_X = np.random.randn(n_samples, ys.shape[1])
X, C, log = ot.gromov.fgw_barycenters(n_samples, [ys, yt], [C1, C2], [ot.unif(ns), ot.unif(nt)], [.5, .5], 0.5,
fixed_structure=False, fixed_features=True, init_X=init_X,
p=ot.unif(n_samples), loss_fun='square_loss',
max_iter=100, tol=1e-3, log=True)
np.testing.assert_allclose(C.shape, (n_samples, n_samples))
np.testing.assert_allclose(X.shape, (n_samples, ys.shape[1]))
| 33.928287
| 128
| 0.532644
| 1,209
| 8,516
| 3.592225
| 0.100083
| 0.09947
| 0.096707
| 0.148285
| 0.890629
| 0.862307
| 0.849643
| 0.849643
| 0.827539
| 0.804743
| 0
| 0.051358
| 0.325505
| 8,516
| 250
| 129
| 34.064
| 0.704735
| 0.074683
| 0
| 0.722222
| 0
| 0
| 0.023173
| 0
| 0
| 0
| 0
| 0
| 0.17284
| 1
| 0.037037
| false
| 0
| 0.012346
| 0
| 0.049383
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d4b71511a53e803befb8ee36e56e71aeaadf6917
| 16,076
|
py
|
Python
|
deploy/app/report/views.py
|
mulsign/WeeklyReport
|
39e0e5942208139e3b98f45616958209481db10f
|
[
"MIT"
] | 131
|
2017-04-10T13:45:30.000Z
|
2022-03-31T02:43:02.000Z
|
deploy/app/report/views.py
|
mulsign/WeeklyReport
|
39e0e5942208139e3b98f45616958209481db10f
|
[
"MIT"
] | 10
|
2017-09-06T01:26:34.000Z
|
2022-03-31T05:59:36.000Z
|
deploy/app/report/views.py
|
mulsign/WeeklyReport
|
39e0e5942208139e3b98f45616958209481db10f
|
[
"MIT"
] | 73
|
2017-04-11T00:35:33.000Z
|
2022-03-05T04:52:39.000Z
|
#coding:utf-8
from flask import render_template, redirect,request, url_for, \
current_app, flash, Markup
from flask_babelex import lazy_gettext as _
from flask_login import current_user
from datetime import datetime, timedelta, date
from . import report
from .forms import WriteForm, ReadDepartmentForm, \
ReadCrewForm, EmailReminderForm
from .. import db
from ..email import send_email
from ..models import Permission, User, Report, Department
from ..utils import get_week_count, permission_required, get_this_monday, \
get_last_week, get_last_week_start_at, get_last_week_end_at, get_last_week_content
@report.route('/write/', methods=['GET', 'POST'])
@permission_required(Permission.WRITE_REPORT)
def write():
form = WriteForm()
last_content_display = ""
report = Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count(),
year=datetime.today().year
).first()
last_report = Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count() - 1,
year=datetime.today().year
).first()
if form.submit.data and form.validate_on_submit():
if report:
report.content = form.body.data.replace('<br>', '')
report.last_content = form.last_content.data.replace('<br>', '')
db.session.add(report)
else:
report = Report(
content=form.body.data.replace('<br>', ''),
last_content=form.last_content.data.replace('<br>', ''),
author_id=current_user.id,
week_count=get_week_count(),
year=datetime.today().year)
db.session.add(report)
db.session.commit()
flash(_('Successfully submitted report'))
current_app.logger.info(
'{} submitted report'.format(current_user.email))
return redirect(url_for('report.write'))
if report:
form.body.data = report.content
else:
form.body.data = current_app.config['DEFAULT_CONTENT']
if last_report:
form.last_content.data = last_report.content
last_content_display = get_last_week_content(last_report.content)
return render_template('report/write.html',
form=form,
week_count=get_week_count(),
start_at=get_this_monday(),
end_at=get_this_monday()+timedelta(days=6),
last_content_display=last_content_display)
@report.route('/write/last_week', methods=['GET', 'POST'])
@permission_required(Permission.WRITE_REPORT)
def write_last_week():
form = WriteForm()
last_content_display = ""
report = Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count(get_last_week()),
year=get_last_week().year).first()
last_report = Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count(get_last_week()) - 1,
year=get_last_week().year).first()
if form.submit.data and form.validate_on_submit():
if report:
report.content = form.body.data.replace('<br>', '')
report.last_content = form.last_content.data.replace('<br>', '')
else:
report = Report(
content=form.body.data.replace('<br>', ''),
author_id=current_user.id,
week_count=get_week_count(get_last_week()),
year=get_last_week().year)
db.session.add(report)
db.session.commit()
flash(_('Successfully submitted report'))
current_app.logger.info(
"{} edited last week's report".format(current_user.email))
return redirect(url_for('report.write_last_week'))
if report:
form.body.data = report.content
else:
form.body.data = current_app.config['DEFAULT_CONTENT']
if last_report:
form.last_content.data = last_report.content
last_content_display = get_last_week_content(last_report.content)
return render_template('report/write.html',
form=form,
week_count=get_week_count(get_last_week()),
start_at=get_last_week_start_at(),
end_at=get_last_week_end_at() - timedelta(days=1),
last_content_display=last_content_display)
@report.route('/read/', methods=['GET'])
@report.route('/read/<int:page_count>', methods=['GET'])
@permission_required(Permission.WRITE_REPORT)
def read(page_count=1):
if not Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count(get_last_week()),
year=get_last_week().year).first():
flash(Markup(_("Do you want to <a href='/report/write/last_week'>"
"edit last week's report?</a>")))
pagination = Report.query.filter_by(author_id=current_user.id).order_by(
Report.year.desc()).order_by(Report.week_count.desc()).paginate(
page=page_count, per_page=current_app.config['PER_PAGE'])
if not Report.query.filter_by(
author_id=current_user.id,
week_count=get_week_count(),
year=datetime.today().year):
flash(_("You haven't submitted your weekly report"))
return render_template('report/read.html', pagination=pagination)
@report.route('/read/department/', methods=['GET', 'POST'])
@permission_required(Permission.READ_DEPARTMENT_REPORT)
def read_department():
form = ReadDepartmentForm()
user_choices = [('0', '*')]
user_choices.extend([(
str(user.id), user.username) for user in User.query.all()])
form.user.choices = user_choices
page = request.args.get('page', 1, type=int)
user_id = request.args.get('user', 0, type=int)
start_at = request.args.get('start_at', '', type=str)
end_at = request.args.get('end_at', '', type=str)
start_at = get_last_week_start_at() if not start_at \
else datetime.strptime(start_at[:10], '%Y-%m-%d')
end_at = date.today()+timedelta(hours=24) if not end_at \
else datetime.strptime(end_at[:10], '%Y-%m-%d')
form.start_at.data = start_at
form.end_at.data = end_at
form.user.data = str(user_id)
ids = [user.id for user in User.query.filter_by(
department_id=current_user.department_id)]
qst = Report.query.filter_by().filter(
Report.created_at.between(start_at, end_at)).filter(
Report.author_id.in_(ids))
if user_id:
qst = qst.filter_by(author_id=user_id)
if form.validate_on_submit():
pass
pagination = qst.filter_by().order_by(Report.year.desc()).order_by(
Report.week_count.desc()).order_by(Report.created_at.desc()).paginate(
page=page, per_page=current_app.config['PER_PAGE'])
return render_template('report/read_department.html',
form=form,
pagination=pagination)
@report.route('/read/crew/', methods=['GET', 'POST'])
@permission_required(Permission.READ_ALL_REPORT)
def read_crew():
form = ReadCrewForm()
user_choices = [('0', '*')]
department_choices = user_choices[:]
for dept in Department.query.all():
department_choices.extend([(str(dept.id), dept.name)])
user_choices.extend([(str(user.id), user.username) for user in
User.query.filter_by(department_id=dept.id)])
form.user.choices = user_choices
form.department.choices = department_choices
page = request.args.get('page', 1, type=int)
department_id = request.args.get('department', 0, type=int)
user_id = request.args.get('user', 0, type=int)
start_at = request.args.get('start_at', '', type=str)
end_at = request.args.get('end_at', '', type=str)
start_at = get_last_week_start_at() if not start_at \
else datetime.strptime(start_at[:10], '%Y-%m-%d')
end_at = date.today()+timedelta(hours=24) if not end_at \
else datetime.strptime(end_at[:10], '%Y-%m-%d')
form.start_at.data = start_at
form.end_at.data = end_at
form.user.data = str(user_id)
form.department.data = str(department_id)
qst = Report.query.filter_by().filter(
Report.created_at.between(start_at, end_at))
if department_id:
ids = [user.id for user in User.query.filter_by(
department_id=department_id)]
qst = qst.filter(Report.author_id.in_(ids))
if user_id:
qst = qst.filter_by(author_id=user_id)
if form.validate_on_submit():
pass
pagination = qst.filter_by().order_by(Report.year.desc()).order_by(
Report.week_count.desc()).order_by(Report.created_at.desc()).paginate(
page=page, per_page=current_app.config['PER_PAGE'])
return render_template('report/read_crew.html',
form=form,
pagination=pagination)
@report.route('/statistics/department/', methods=['GET'])
@permission_required(Permission.READ_DEPARTMENT_REPORT)
def statistics_department():
qst = Report.query.filter_by()
dept_users = [user for user in User.query.filter_by(
department_id=current_user.department_id) if not user.is_ignored]
ids = [user.id for user in dept_users]
if ids:
qst = qst.filter(Report.author_id.in_(ids))
else:
qst = qst.filter(False)
submitted_users = [
report.author for report in qst.filter_by(
week_count=get_week_count(),
year=datetime.today().year)]
unsubmitted_users = set(dept_users) - set(submitted_users)
data = {'已交': len(submitted_users),
'未交': len(unsubmitted_users)}
names = {'has_submitted': [user.username for user in submitted_users],
'not_yet': [user.username for user in unsubmitted_users]}
return render_template('report/statistics_department.html',
data=data,
names=names,
week_count=get_week_count(),
start_at=get_this_monday(),
end_at=get_this_monday() + timedelta(days=6))
@report.route('/statistics/department/last_week', methods=['GET'])
@permission_required(Permission.READ_DEPARTMENT_REPORT)
def statistics_department_last_week():
qst = Report.query.filter_by()
dept_users = [user for user in User.query.filter_by(
department_id=current_user.department_id) if not user.is_ignored]
ids = [user.id for user in dept_users]
if ids:
qst = qst.filter(Report.author_id.in_(ids))
else:
qst = qst.filter(False)
submitted_users = [
report.author for report in qst.filter_by(
week_count=get_week_count(get_last_week()),
year=get_last_week().year)]
unsubmitted_users = set(dept_users) - set(submitted_users)
data = {'已交': len(submitted_users),
'未交': len(unsubmitted_users)}
names = {'has_submitted': [user.username for user in submitted_users],
'not_yet': [user.username for user in unsubmitted_users]}
return render_template('report/statistics_department.html',
data=data,
names=names,
week_count=get_week_count(get_last_week()),
start_at=get_last_week_start_at(),
end_at=get_last_week_end_at() - timedelta(days=1))
@report.route('/statistics/crew/', methods=['GET', 'POST'])
@permission_required(Permission.READ_ALL_REPORT)
def statistics_crew():
stash = []
contrast = {}
reminder_emails = set()
form = EmailReminderForm()
for dept in Department.query.filter_by():
qst = Report.query.filter_by()
dept_users = [user for user in User.query.filter_by(
department_id=dept.id) if not user.is_ignored]
ids = [user.id for user in dept_users]
if ids:
qst = qst.filter(Report.author_id.in_(ids))
else:
qst = qst.filter(False)
submitted_users = [
report.author for report in qst.filter_by(
week_count=get_week_count(),
year=datetime.today().year)]
unsubmitted_users = set(dept_users)-set(submitted_users)
reminder_emails |= set([user.email for user in unsubmitted_users])
names = {'has_submitted': [user.username for user in submitted_users],
'not_yet': [user.username for user in unsubmitted_users]}
stash.append({'names': names,
'dept_name': dept.name})
contrast[dept.name] = len(dept_users) - len(submitted_users)
if form.validate_on_submit():
subject = 'Reminder of Report of week' + str(get_week_count()) + \
' From:' + str(get_this_monday()) + \
' To:' + str(get_this_monday() + timedelta(days=6))
send_email(reminder_emails, subject,
'email/reminder',
user=current_user,
week_count=get_week_count(),
start_at=get_this_monday(),
end_at=get_this_monday() + timedelta(days=6))
flash(_('Email has been sent to:') + '\n{}'.format(reminder_emails))
return render_template('report/statistics_crew.html',
contrast=contrast,
stash=stash,
week_count=get_week_count(),
form=form,
start_at=get_this_monday(),
end_at=get_this_monday() + timedelta(days=6))
@report.route('/statistics/crew/last_week', methods=['GET', 'POST'])
@permission_required(Permission.READ_ALL_REPORT)
def statistics_crew_last_week():
stash = []
contrast = {}
reminder_emails = set()
form = EmailReminderForm()
for dept in Department.query.filter_by():
qst = Report.query.filter_by()
dept_users = [user for user in User.query.filter_by(
department_id=dept.id) if not user.is_ignored]
ids = [user.id for user in dept_users]
if ids:
qst = qst.filter(Report.author_id.in_(ids))
else:
qst = qst.filter(False)
submitted_users = [
report.author for report in qst.filter_by(
week_count=get_week_count(get_last_week()),
year=get_last_week().year)]
unsubmitted_users = set(dept_users)-set(submitted_users)
reminder_emails |= set([user.email for user in unsubmitted_users])
names = {'has_submitted': [user.username for user in submitted_users],
'not_yet': [user.username for user in unsubmitted_users]}
stash.append({'names': names,
'dept_name': dept.name})
contrast[dept.name] = len(dept_users) - len(submitted_users)
if form.validate_on_submit():
subject = 'Reminder of Report of week' + str(get_week_count(get_last_week())) + \
' From:' + str(get_last_week_start_at()) + \
' To:' + str(get_last_week_end_at() - timedelta(days=1))
send_email(reminder_emails, subject,
'email/reminder',
user=current_user,
week_count=get_week_count(get_last_week()),
start_at=get_last_week_start_at(),
end_at=get_last_week_end_at() - timedelta(days=1))
flash(_('Email has been sent to:') + '\n{}'.format(reminder_emails))
return render_template('report/statistics_crew.html',
contrast=contrast,
stash=stash,
form=form,
week_count=get_week_count(get_last_week()),
start_at=get_last_week_start_at(),
end_at=get_last_week_end_at() - timedelta(days=1))
| 39.019417
| 89
| 0.615763
| 2,008
| 16,076
| 4.652888
| 0.078685
| 0.044311
| 0.041207
| 0.03425
| 0.879482
| 0.85647
| 0.845767
| 0.826394
| 0.804881
| 0.785401
| 0
| 0.002789
| 0.263872
| 16,076
| 411
| 90
| 39.114355
| 0.786716
| 0.000746
| 0
| 0.768546
| 0
| 0
| 0.071406
| 0.020171
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026706
| false
| 0.005935
| 0.029674
| 0
| 0.089021
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d4c514a56e201e4391350be04462617472b3ca0a
| 12,184
|
py
|
Python
|
ultracart/apis/affiliate_api.py
|
gstingy/uc_python_api
|
9a0bd3f6e63f616586681518e44fe37c6bae2bba
|
[
"Apache-2.0"
] | null | null | null |
ultracart/apis/affiliate_api.py
|
gstingy/uc_python_api
|
9a0bd3f6e63f616586681518e44fe37c6bae2bba
|
[
"Apache-2.0"
] | null | null | null |
ultracart/apis/affiliate_api.py
|
gstingy/uc_python_api
|
9a0bd3f6e63f616586681518e44fe37c6bae2bba
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..api_client import ApiClient
class AffiliateApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_clicks_by_query(self, click_query, **kwargs):
"""
Retrieve clicks
Retrieves a group of clicks from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the clicks returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_clicks_by_query(click_query, async=True)
>>> result = thread.get()
:param async bool
:param AffiliateClickQuery click_query: Click query (required)
:param int limit: The maximum number of records to return on this one API call. (Maximum 10000)
:param int offset: Pagination of the record set. Offset is a zero based index.
:param str expand: The object expansion to perform on the result. Only option is link.
:return: AffiliateClicksResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.get_clicks_by_query_with_http_info(click_query, **kwargs)
else:
(data) = self.get_clicks_by_query_with_http_info(click_query, **kwargs)
return data
def get_clicks_by_query_with_http_info(self, click_query, **kwargs):
"""
Retrieve clicks
Retrieves a group of clicks from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the clicks returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_clicks_by_query_with_http_info(click_query, async=True)
>>> result = thread.get()
:param async bool
:param AffiliateClickQuery click_query: Click query (required)
:param int limit: The maximum number of records to return on this one API call. (Maximum 10000)
:param int offset: Pagination of the record set. Offset is a zero based index.
:param str expand: The object expansion to perform on the result. Only option is link.
:return: AffiliateClicksResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['click_query', 'limit', 'offset', 'expand']
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_clicks_by_query" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'click_query' is set
if ('click_query' not in params) or (params['click_query'] is None):
raise ValueError("Missing the required parameter `click_query` when calling `get_clicks_by_query`")
collection_formats = {}
path_params = {}
query_params = []
if 'limit' in params:
query_params.append(('_limit', params['limit']))
if 'offset' in params:
query_params.append(('_offset', params['offset']))
if 'expand' in params:
query_params.append(('_expand', params['expand']))
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'click_query' in params:
body_params = params['click_query']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey']
return self.api_client.call_api('/affiliate/clicks/query', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AffiliateClicksResponse',
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_ledgers_by_query(self, ledger_query, **kwargs):
"""
Retrieve ledger entries
Retrieves a group of ledger entries from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the ledgers returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_ledgers_by_query(ledger_query, async=True)
>>> result = thread.get()
:param async bool
:param AffiliateLedgerQuery ledger_query: Ledger query (required)
:param int limit: The maximum number of records to return on this one API call. (Maximum 200)
:param int offset: Pagination of the record set. Offset is a zero based index.
:param str expand: The object expansion to perform on the result. Only option is link.
:return: AffiliateLedgersResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.get_ledgers_by_query_with_http_info(ledger_query, **kwargs)
else:
(data) = self.get_ledgers_by_query_with_http_info(ledger_query, **kwargs)
return data
def get_ledgers_by_query_with_http_info(self, ledger_query, **kwargs):
"""
Retrieve ledger entries
Retrieves a group of ledger entries from the account based on a query object. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the ledgers returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_ledgers_by_query_with_http_info(ledger_query, async=True)
>>> result = thread.get()
:param async bool
:param AffiliateLedgerQuery ledger_query: Ledger query (required)
:param int limit: The maximum number of records to return on this one API call. (Maximum 200)
:param int offset: Pagination of the record set. Offset is a zero based index.
:param str expand: The object expansion to perform on the result. Only option is link.
:return: AffiliateLedgersResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['ledger_query', 'limit', 'offset', 'expand']
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_ledgers_by_query" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'ledger_query' is set
if ('ledger_query' not in params) or (params['ledger_query'] is None):
raise ValueError("Missing the required parameter `ledger_query` when calling `get_ledgers_by_query`")
collection_formats = {}
path_params = {}
query_params = []
if 'limit' in params:
query_params.append(('_limit', params['limit']))
if 'offset' in params:
query_params.append(('_offset', params['offset']))
if 'expand' in params:
query_params.append(('_expand', params['expand']))
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'ledger_query' in params:
body_params = params['ledger_query']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey']
return self.api_client.call_api('/affiliate/ledgers/query', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AffiliateLedgersResponse',
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 47.40856
| 412
| 0.61433
| 1,433
| 12,184
| 5.038381
| 0.140265
| 0.023546
| 0.023546
| 0.017729
| 0.912742
| 0.901524
| 0.881025
| 0.862604
| 0.862604
| 0.844598
| 0
| 0.002871
| 0.313936
| 12,184
| 256
| 413
| 47.59375
| 0.860869
| 0.024787
| 0
| 0.708661
| 1
| 0
| 0.173715
| 0.047308
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.047244
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
be2744f007080123d2535472ef45afcbbf1ac35d
| 1,723
|
py
|
Python
|
copybot.py
|
UncleEngineer/BasicPython
|
5c8c788bc9c3e7f34676ad089710c63e5c3fd402
|
[
"MIT"
] | 1
|
2021-04-20T01:56:21.000Z
|
2021-04-20T01:56:21.000Z
|
copybot.py
|
UncleEngineer/BasicPython
|
5c8c788bc9c3e7f34676ad089710c63e5c3fd402
|
[
"MIT"
] | null | null | null |
copybot.py
|
UncleEngineer/BasicPython
|
5c8c788bc9c3e7f34676ad089710c63e5c3fd402
|
[
"MIT"
] | 2
|
2019-12-17T01:37:28.000Z
|
2021-08-16T08:51:25.000Z
|
#copybot.py
import pyautogui as pg
import time
################## LINE 1 ###################
#-ใช้เมาส์คลิกไปยังตำแหน่งที่ต้องการก็อปปี้ (ด้านหน้า)
# x=1046, y=266
time.sleep(1) # รอ 1 วินาที
start_point = (1046,266)
pg.click(start_point)
#-ลากไปให้สุดบรรทัด
time.sleep(1)
end_point = (1400,266)
pg.dragTo(end_point, duration=2)
#-กดปุ่ม Ctrl + C เพื่อก็อปปี้
pg.hotkey('ctrl','c')
#-ขยับเมาส์ไปทางด้านซ้าย
left_notepad = (800,266)
pg.click(left_notepad)
#-กด Ctrl + V เพื่อวาง แล้วกด Enter
pg.hotkey('ctrl','v')
pg.press('enter')
################## LINE 2 ###################
#-ใช้เมาส์คลิกไปยังตำแหน่งที่ต้องการก็อปปี้ (ด้านหน้า)
# x=1046, y=266
time.sleep(1) # รอ 1 วินาที
start_point = (1046,308) # 266 + 42
pg.click(start_point)
#-ลากไปให้สุดบรรทัด
time.sleep(1)
end_point = (1400,308)
pg.dragTo(end_point, duration=2)
#-กดปุ่ม Ctrl + C เพื่อก็อปปี้
pg.hotkey('ctrl','c')
#-ขยับเมาส์ไปทางด้านซ้าย
left_notepad = (800,266)
pg.click(left_notepad)
### ********
pg.press('down')
#-กด Ctrl + V เพื่อวาง แล้วกด Enter
pg.hotkey('ctrl','v')
pg.press('enter')
################## LINE 3 ###################
#-ใช้เมาส์คลิกไปยังตำแหน่งที่ต้องการก็อปปี้ (ด้านหน้า)
# x=1046, y=266
time.sleep(1) # รอ 1 วินาที
start_point = (1046,350) # 308 + 42 (42 pixel คือ ระยะระหว่างบรรทัด)
pg.click(start_point)
#-ลากไปให้สุดบรรทัด
time.sleep(1)
end_point = (1400,350)
pg.dragTo(end_point, duration=2)
#-กดปุ่ม Ctrl + C เพื่อก็อปปี้
pg.hotkey('ctrl','c')
#-ขยับเมาส์ไปทางด้านซ้าย
left_notepad = (800,266)
pg.click(left_notepad)
### ********
pg.press('down')
pg.press('down')
#-กด Ctrl + V เพื่อวาง แล้วกด Enter
pg.hotkey('ctrl','v')
pg.press('enter')
| 22.089744
| 69
| 0.585026
| 382
| 1,723
| 2.858639
| 0.227749
| 0.021978
| 0.032967
| 0.021978
| 0.908425
| 0.908425
| 0.908425
| 0.908425
| 0.908425
| 0.908425
| 0
| 0.073469
| 0.146837
| 1,723
| 77
| 70
| 22.376623
| 0.6
| 0.37841
| 0
| 0.789474
| 0
| 0
| 0.066823
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.052632
| 0
| 0.052632
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0780961ebb8f3680969ecacdf3329ca81ab42f6d
| 165
|
py
|
Python
|
fontawesome/models.py
|
CodeForAfrica/django-fontawesome
|
70b6eee7ef66fec83a62df78d66025923d4071aa
|
[
"BSD-2-Clause"
] | 75
|
2015-01-11T21:32:04.000Z
|
2022-01-09T03:03:49.000Z
|
fontawesome/models.py
|
CodeForAfrica/django-fontawesome
|
70b6eee7ef66fec83a62df78d66025923d4071aa
|
[
"BSD-2-Clause"
] | 37
|
2015-02-19T10:26:46.000Z
|
2021-05-26T13:41:27.000Z
|
virtual/lib/python2.7/site-packages/fontawesome/models.py
|
Elianehbmna/instagramClone
|
b72d78be5294b9b252f83474fa2372244fe7b394
|
[
"MIT"
] | 66
|
2015-01-15T11:45:01.000Z
|
2021-12-16T01:57:41.000Z
|
try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^fontawesome\.fields\.IconField"])
except ImportError:
pass
| 27.5
| 68
| 0.763636
| 17
| 165
| 7.176471
| 0.823529
| 0.262295
| 0.344262
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 165
| 6
| 69
| 27.5
| 0.853147
| 0
| 0
| 0
| 0
| 0
| 0.187879
| 0.187879
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 7
|
07d98596dffcfb6234e10c114fb40bf5a61d874b
| 53,697
|
py
|
Python
|
packages/syft/src/syft/proto/grid/messages/request_messages_pb2.py
|
tenevdev/PySyft
|
d0609a7e11d0f778fdd8a9109cab4ac1a12000b3
|
[
"Apache-2.0"
] | 1
|
2021-11-30T12:34:11.000Z
|
2021-11-30T12:34:11.000Z
|
packages/syft/src/syft/proto/grid/messages/request_messages_pb2.py
|
Starry1024/PySyft
|
6b2cb4ca3a54e8bb2e61d549bf7773aa955d7468
|
[
"Apache-2.0"
] | null | null | null |
packages/syft/src/syft/proto/grid/messages/request_messages_pb2.py
|
Starry1024/PySyft
|
6b2cb4ca3a54e8bb2e61d549bf7773aa955d7468
|
[
"Apache-2.0"
] | 1
|
2020-08-20T10:22:43.000Z
|
2020-08-20T10:22:43.000Z
|
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/grid/messages/request_messages.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
# syft absolute
from syft.proto.core.common import (
common_object_pb2 as proto_dot_core_dot_common_dot_common__object__pb2,
)
from syft.proto.core.io import address_pb2 as proto_dot_core_dot_io_dot_address__pb2
from syft.proto.lib.python import dict_pb2 as proto_dot_lib_dot_python_dot_dict__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name="proto/grid/messages/request_messages.proto",
package="syft.grid.messages",
syntax="proto3",
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n*proto/grid/messages/request_messages.proto\x12\x12syft.grid.messages\x1a%proto/core/common/common_object.proto\x1a\x1bproto/core/io/address.proto\x1a\x1bproto/lib/python/dict.proto"\x9f\x01\n\x14\x43reateRequestMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x8c\x01\n\x15\x43reateRequestResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x8b\x01\n\x1a\x43reateBudgetRequestMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0e\n\x06\x62udget\x18\x03 \x01(\x02\x12\x0e\n\x06reason\x18\x04 \x01(\t"\xa6\x01\n\x18GetBudgetRequestsMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x92\x01\n\x19GetBudgetRequestsResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x63ontent\x18\x03 \x03(\x0b\x32\x15.syft.lib.python.Dict\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x9f\x01\n\x11GetRequestMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x8c\x01\n\x12GetRequestResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x8c\x01\n\x12GetRequestsMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\xa1\x01\n\x13GetRequestsResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12&\n\x07\x63ontent\x18\x03 \x03(\x0b\x32\x15.syft.lib.python.Dict\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\xa2\x01\n\x14\x44\x65leteRequestMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x8f\x01\n\x15\x44\x65leteRequestResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\xb2\x01\n\x14UpdateRequestMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0e\n\x06status\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\'\n\x08reply_to\x18\x05 \x01(\x0b\x32\x15.syft.core.io.Address"\x9f\x01\n\x15UpdateRequestResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0e\n\x06status\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32\x15.syft.core.io.Addressb\x06proto3',
dependencies=[
proto_dot_core_dot_common_dot_common__object__pb2.DESCRIPTOR,
proto_dot_core_dot_io_dot_address__pb2.DESCRIPTOR,
proto_dot_lib_dot_python_dot_dict__pb2.DESCRIPTOR,
],
)
_CREATEREQUESTMESSAGE = _descriptor.Descriptor(
name="CreateRequestMessage",
full_name="syft.grid.messages.CreateRequestMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.CreateRequestMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.CreateRequestMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="content",
full_name="syft.grid.messages.CreateRequestMessage.content",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.CreateRequestMessage.reply_to",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=164,
serialized_end=323,
)
_CREATEREQUESTRESPONSE = _descriptor.Descriptor(
name="CreateRequestResponse",
full_name="syft.grid.messages.CreateRequestResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.CreateRequestResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="syft.grid.messages.CreateRequestResponse.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="content",
full_name="syft.grid.messages.CreateRequestResponse.content",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.CreateRequestResponse.address",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=326,
serialized_end=466,
)
_CREATEBUDGETREQUESTMESSAGE = _descriptor.Descriptor(
name="CreateBudgetRequestMessage",
full_name="syft.grid.messages.CreateBudgetRequestMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.CreateBudgetRequestMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.CreateBudgetRequestMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="budget",
full_name="syft.grid.messages.CreateBudgetRequestMessage.budget",
index=2,
number=3,
type=2,
cpp_type=6,
label=1,
has_default_value=False,
default_value=float(0),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reason",
full_name="syft.grid.messages.CreateBudgetRequestMessage.reason",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=469,
serialized_end=608,
)
_GETBUDGETREQUESTSMESSAGE = _descriptor.Descriptor(
name="GetBudgetRequestsMessage",
full_name="syft.grid.messages.GetBudgetRequestsMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetBudgetRequestsMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetBudgetRequestsMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.GetBudgetRequestsMessage.request_id",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.GetBudgetRequestsMessage.reply_to",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=611,
serialized_end=777,
)
_GETBUDGETREQUESTSRESPONSE = _descriptor.Descriptor(
name="GetBudgetRequestsResponse",
full_name="syft.grid.messages.GetBudgetRequestsResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetBudgetRequestsResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="content",
full_name="syft.grid.messages.GetBudgetRequestsResponse.content",
index=1,
number=3,
type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetBudgetRequestsResponse.address",
index=2,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=780,
serialized_end=926,
)
_GETREQUESTMESSAGE = _descriptor.Descriptor(
name="GetRequestMessage",
full_name="syft.grid.messages.GetRequestMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetRequestMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetRequestMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.GetRequestMessage.request_id",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.GetRequestMessage.reply_to",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=929,
serialized_end=1088,
)
_GETREQUESTRESPONSE = _descriptor.Descriptor(
name="GetRequestResponse",
full_name="syft.grid.messages.GetRequestResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetRequestResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="syft.grid.messages.GetRequestResponse.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.GetRequestResponse.request_id",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetRequestResponse.address",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1091,
serialized_end=1231,
)
_GETREQUESTSMESSAGE = _descriptor.Descriptor(
name="GetRequestsMessage",
full_name="syft.grid.messages.GetRequestsMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetRequestsMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetRequestsMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.GetRequestsMessage.reply_to",
index=2,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1234,
serialized_end=1374,
)
_GETREQUESTSRESPONSE = _descriptor.Descriptor(
name="GetRequestsResponse",
full_name="syft.grid.messages.GetRequestsResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.GetRequestsResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="syft.grid.messages.GetRequestsResponse.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="content",
full_name="syft.grid.messages.GetRequestsResponse.content",
index=2,
number=3,
type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.GetRequestsResponse.address",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1377,
serialized_end=1538,
)
_DELETEREQUESTMESSAGE = _descriptor.Descriptor(
name="DeleteRequestMessage",
full_name="syft.grid.messages.DeleteRequestMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.DeleteRequestMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.DeleteRequestMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.DeleteRequestMessage.request_id",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.DeleteRequestMessage.reply_to",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1541,
serialized_end=1703,
)
_DELETEREQUESTRESPONSE = _descriptor.Descriptor(
name="DeleteRequestResponse",
full_name="syft.grid.messages.DeleteRequestResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.DeleteRequestResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="syft.grid.messages.DeleteRequestResponse.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.DeleteRequestResponse.request_id",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.DeleteRequestResponse.address",
index=3,
number=4,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1706,
serialized_end=1849,
)
_UPDATEREQUESTMESSAGE = _descriptor.Descriptor(
name="UpdateRequestMessage",
full_name="syft.grid.messages.UpdateRequestMessage",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.UpdateRequestMessage.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.UpdateRequestMessage.address",
index=1,
number=2,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status",
full_name="syft.grid.messages.UpdateRequestMessage.status",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.UpdateRequestMessage.request_id",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="reply_to",
full_name="syft.grid.messages.UpdateRequestMessage.reply_to",
index=4,
number=5,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=1852,
serialized_end=2030,
)
_UPDATEREQUESTRESPONSE = _descriptor.Descriptor(
name="UpdateRequestResponse",
full_name="syft.grid.messages.UpdateRequestResponse",
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name="msg_id",
full_name="syft.grid.messages.UpdateRequestResponse.msg_id",
index=0,
number=1,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status_code",
full_name="syft.grid.messages.UpdateRequestResponse.status_code",
index=1,
number=2,
type=5,
cpp_type=1,
label=1,
has_default_value=False,
default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="status",
full_name="syft.grid.messages.UpdateRequestResponse.status",
index=2,
number=3,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="request_id",
full_name="syft.grid.messages.UpdateRequestResponse.request_id",
index=3,
number=4,
type=9,
cpp_type=9,
label=1,
has_default_value=False,
default_value=b"".decode("utf-8"),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
_descriptor.FieldDescriptor(
name="address",
full_name="syft.grid.messages.UpdateRequestResponse.address",
index=4,
number=5,
type=11,
cpp_type=10,
label=1,
has_default_value=False,
default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
serialized_options=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
),
],
extensions=[],
nested_types=[],
enum_types=[],
serialized_options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=2033,
serialized_end=2192,
)
_CREATEREQUESTMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_CREATEREQUESTMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_CREATEREQUESTMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_CREATEREQUESTRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_CREATEREQUESTRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_CREATEBUDGETREQUESTMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_CREATEBUDGETREQUESTMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETBUDGETREQUESTSMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETBUDGETREQUESTSMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETBUDGETREQUESTSMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETBUDGETREQUESTSRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETBUDGETREQUESTSRESPONSE.fields_by_name[
"content"
].message_type = proto_dot_lib_dot_python_dot_dict__pb2._DICT
_GETBUDGETREQUESTSRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETREQUESTMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETREQUESTRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTSMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETREQUESTSMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTSMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_GETREQUESTSRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_GETREQUESTSRESPONSE.fields_by_name[
"content"
].message_type = proto_dot_lib_dot_python_dot_dict__pb2._DICT
_GETREQUESTSRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_DELETEREQUESTMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_DELETEREQUESTMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_DELETEREQUESTMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_DELETEREQUESTRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_DELETEREQUESTRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_UPDATEREQUESTMESSAGE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_UPDATEREQUESTMESSAGE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_UPDATEREQUESTMESSAGE.fields_by_name[
"reply_to"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
_UPDATEREQUESTRESPONSE.fields_by_name[
"msg_id"
].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID
_UPDATEREQUESTRESPONSE.fields_by_name[
"address"
].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS
DESCRIPTOR.message_types_by_name["CreateRequestMessage"] = _CREATEREQUESTMESSAGE
DESCRIPTOR.message_types_by_name["CreateRequestResponse"] = _CREATEREQUESTRESPONSE
DESCRIPTOR.message_types_by_name[
"CreateBudgetRequestMessage"
] = _CREATEBUDGETREQUESTMESSAGE
DESCRIPTOR.message_types_by_name["GetBudgetRequestsMessage"] = _GETBUDGETREQUESTSMESSAGE
DESCRIPTOR.message_types_by_name[
"GetBudgetRequestsResponse"
] = _GETBUDGETREQUESTSRESPONSE
DESCRIPTOR.message_types_by_name["GetRequestMessage"] = _GETREQUESTMESSAGE
DESCRIPTOR.message_types_by_name["GetRequestResponse"] = _GETREQUESTRESPONSE
DESCRIPTOR.message_types_by_name["GetRequestsMessage"] = _GETREQUESTSMESSAGE
DESCRIPTOR.message_types_by_name["GetRequestsResponse"] = _GETREQUESTSRESPONSE
DESCRIPTOR.message_types_by_name["DeleteRequestMessage"] = _DELETEREQUESTMESSAGE
DESCRIPTOR.message_types_by_name["DeleteRequestResponse"] = _DELETEREQUESTRESPONSE
DESCRIPTOR.message_types_by_name["UpdateRequestMessage"] = _UPDATEREQUESTMESSAGE
DESCRIPTOR.message_types_by_name["UpdateRequestResponse"] = _UPDATEREQUESTRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
CreateRequestMessage = _reflection.GeneratedProtocolMessageType(
"CreateRequestMessage",
(_message.Message,),
{
"DESCRIPTOR": _CREATEREQUESTMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.CreateRequestMessage)
},
)
_sym_db.RegisterMessage(CreateRequestMessage)
CreateRequestResponse = _reflection.GeneratedProtocolMessageType(
"CreateRequestResponse",
(_message.Message,),
{
"DESCRIPTOR": _CREATEREQUESTRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.CreateRequestResponse)
},
)
_sym_db.RegisterMessage(CreateRequestResponse)
CreateBudgetRequestMessage = _reflection.GeneratedProtocolMessageType(
"CreateBudgetRequestMessage",
(_message.Message,),
{
"DESCRIPTOR": _CREATEBUDGETREQUESTMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.CreateBudgetRequestMessage)
},
)
_sym_db.RegisterMessage(CreateBudgetRequestMessage)
GetBudgetRequestsMessage = _reflection.GeneratedProtocolMessageType(
"GetBudgetRequestsMessage",
(_message.Message,),
{
"DESCRIPTOR": _GETBUDGETREQUESTSMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetBudgetRequestsMessage)
},
)
_sym_db.RegisterMessage(GetBudgetRequestsMessage)
GetBudgetRequestsResponse = _reflection.GeneratedProtocolMessageType(
"GetBudgetRequestsResponse",
(_message.Message,),
{
"DESCRIPTOR": _GETBUDGETREQUESTSRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetBudgetRequestsResponse)
},
)
_sym_db.RegisterMessage(GetBudgetRequestsResponse)
GetRequestMessage = _reflection.GeneratedProtocolMessageType(
"GetRequestMessage",
(_message.Message,),
{
"DESCRIPTOR": _GETREQUESTMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetRequestMessage)
},
)
_sym_db.RegisterMessage(GetRequestMessage)
GetRequestResponse = _reflection.GeneratedProtocolMessageType(
"GetRequestResponse",
(_message.Message,),
{
"DESCRIPTOR": _GETREQUESTRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetRequestResponse)
},
)
_sym_db.RegisterMessage(GetRequestResponse)
GetRequestsMessage = _reflection.GeneratedProtocolMessageType(
"GetRequestsMessage",
(_message.Message,),
{
"DESCRIPTOR": _GETREQUESTSMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetRequestsMessage)
},
)
_sym_db.RegisterMessage(GetRequestsMessage)
GetRequestsResponse = _reflection.GeneratedProtocolMessageType(
"GetRequestsResponse",
(_message.Message,),
{
"DESCRIPTOR": _GETREQUESTSRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.GetRequestsResponse)
},
)
_sym_db.RegisterMessage(GetRequestsResponse)
DeleteRequestMessage = _reflection.GeneratedProtocolMessageType(
"DeleteRequestMessage",
(_message.Message,),
{
"DESCRIPTOR": _DELETEREQUESTMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.DeleteRequestMessage)
},
)
_sym_db.RegisterMessage(DeleteRequestMessage)
DeleteRequestResponse = _reflection.GeneratedProtocolMessageType(
"DeleteRequestResponse",
(_message.Message,),
{
"DESCRIPTOR": _DELETEREQUESTRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.DeleteRequestResponse)
},
)
_sym_db.RegisterMessage(DeleteRequestResponse)
UpdateRequestMessage = _reflection.GeneratedProtocolMessageType(
"UpdateRequestMessage",
(_message.Message,),
{
"DESCRIPTOR": _UPDATEREQUESTMESSAGE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.UpdateRequestMessage)
},
)
_sym_db.RegisterMessage(UpdateRequestMessage)
UpdateRequestResponse = _reflection.GeneratedProtocolMessageType(
"UpdateRequestResponse",
(_message.Message,),
{
"DESCRIPTOR": _UPDATEREQUESTRESPONSE,
"__module__": "proto.grid.messages.request_messages_pb2"
# @@protoc_insertion_point(class_scope:syft.grid.messages.UpdateRequestResponse)
},
)
_sym_db.RegisterMessage(UpdateRequestResponse)
# @@protoc_insertion_point(module_scope)
| 34.050095
| 3,744
| 0.625975
| 5,535
| 53,697
| 5.713098
| 0.038121
| 0.042755
| 0.063089
| 0.056353
| 0.814465
| 0.802416
| 0.754411
| 0.742584
| 0.739485
| 0.732907
| 0
| 0.036209
| 0.278917
| 53,697
| 1,576
| 3,745
| 34.071701
| 0.780475
| 0.023931
| 0
| 0.826923
| 1
| 0.004642
| 0.143146
| 0.114857
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.004642
| 0
| 0.004642
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
ed02d77908874a54ce9e5ab0b1c436236381a44b
| 19,888
|
py
|
Python
|
tests/adash_manual.py
|
roshanths/altinity-dashboard
|
d869f350960dab85430bce9e0b5f11f3e2793420
|
[
"Apache-2.0"
] | 1
|
2022-01-21T22:04:43.000Z
|
2022-01-21T22:04:43.000Z
|
tests/adash_manual.py
|
roshanths/altinity-dashboard
|
d869f350960dab85430bce9e0b5f11f3e2793420
|
[
"Apache-2.0"
] | null | null | null |
tests/adash_manual.py
|
roshanths/altinity-dashboard
|
d869f350960dab85430bce9e0b5f11f3e2793420
|
[
"Apache-2.0"
] | null | null | null |
from testflows.core import *
@TestScenario
def run_on_vagrant_with_minikube(self):
"""Run Altinity Dashboard inside Vagrant with Minikube installed"""
vagrant_up_command = "vagrant up"
vagrant_connect_command = "vagrant ssh"
minikube_start_command = "minikube start"
adash_start_command = "./adash-linux-x86_64 --bindhost 0.0.0.0 -bindport 8081 &"
open_altinity_dashboard = "http://0.0.0.0:8080?token=<ADASH TOKEN>"
link_to_altinity_dashboard_releases = (
"https://github.com/Altinity/altinity-dashboard/releases"
)
vagrant_default_mounted_dir_in_host = "{path_to_dashboard_repo}/minikubeOnVagrant"
vagrant_default_mounted_dir_in_vm = "cd /vagrant"
make_executable_command = "chmod 0755 adash"
server_url = (
"http://10.0.2.15:8081?token=E9fYaKYGViBntEdtZfNNnsravnU7d5uhUJRqRhxIsas"
)
minikube_command_to_verify_deployment = " kubectl get pods --namespace kube-system"
with Given(
"I start vagrant VM with minikube installed and port forwarding enabled",
description=f"command: {vagrant_up_command}",
):
pass
with And(
"I download the Altinity Dashboard latest binary file from GitHub",
description=f"download link: {link_to_altinity_dashboard_releases}",
):
pass
with And(
"I copy the Altinity Dashboard latest binary file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with And(
"I convert the Altinity Dashboard latest binary file to an executable",
description=f"command: {make_executable_command}",
):
pass
with When(
"I connect to vagrant VM using ssh",
description=f"command: {vagrant_connect_command}",
):
pass
with When(
"I change the directory to vagrant default mounted directory",
description=f"command: {vagrant_default_mounted_dir_in_vm}",
):
pass
with And(
"I start minikube inside the VM",
description=f"command: {minikube_start_command}",
):
pass
with And(
"I start Altinity Dashboard inside the VM with open host and 8081 port",
description=f"command: {adash_start_command}",
):
pass
with And(
"I copy the server url with generated token",
description=f"server url example: {server_url}",
):
pass
with And("I open the default browser in the host"):
pass
with And("I copy the server url in the browser"):
pass
with And(
"I connect to the Altinity Dashboard running inside the VM from the host mcahine",
description=f"command: {open_altinity_dashboard}",
):
pass
with And("I click ClickHouse Operators tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And("I select the namespace as kube-system"):
pass
with And("I click deploy button"):
pass
with And(
"I verify the ClickHouse Operator deployed inside the VM via Altinity Dashboard",
description=f"command: {minikube_command_to_verify_deployment}",
):
pass
with Then("I exit from the vagrant", description="command: exit"):
pass
with Then("I stop the vagrant VM", description="command: vagrant halt"):
pass
@TestScenario
def run_on_vagrant_with_micro_k8s(self):
"""Run Altinity Dashboard inside Vagrant with micro k8s installed"""
vagrant_up_command = "vagrant up"
vagrant_connect_command = "vagrant ssh"
microk8s_start_command = "microk8s start"
adash_start_command = "./adash-linux-x86_64 --bindhost 0.0.0.0 -bindport 8081 &"
open_altinity_dashboard = "http://0.0.0.0:8080?token=<ADASH TOKEN>"
link_to_altinity_dashboard_releases = (
"https://github.com/Altinity/altinity-dashboard/releases"
)
vagrant_default_mounted_dir_in_host = "{path_to_dashboard_repo}/microK8SOnVagrant"
vagrant_default_mounted_dir_in_vm = "cd /vagrant"
make_executable_command = "chmod 0755 adash"
server_url = (
"http://10.0.2.15:8081?token=E9fYaKYGViBntEdtZfNNnsravnU7d5uhUJRqRhxIsas"
)
microk8s_command_to_verify_deployment = (
"microk8s.kubectl get pods --namespace kube-system"
)
with Given(
"I start vagrant VM with microK8s installed and port forwarding enabled",
description=f"command: {vagrant_up_command}",
):
pass
with And(
"I download the Altinity Dashboard latest binary file from GitHub",
description=f"download link: {link_to_altinity_dashboard_releases}",
):
pass
with And(
"I copy the Altinity Dashboard latest binary file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with And(
"I convert the Altinity Dashboard latest binary file to an executable",
description=f"command: {make_executable_command}",
):
pass
with When(
"I connect to vagrant VM using ssh",
description=f"command: {vagrant_connect_command}",
):
pass
with When(
"I change the directory to vagrant default mounted directory",
description=f"command: {vagrant_default_mounted_dir_in_vm}",
):
pass
with And(
"I start microK8s inside the VM",
description=f"command: {microk8s_start_command}",
):
pass
with And(
"I start Altinity Dashboard inside the VM with open host and 8081 port",
description=f"command: {adash_start_command}",
):
pass
with And(
"I copy the server url with generated token",
description=f"server url example: {server_url}",
):
pass
with And("I open the default browser in the host"):
pass
with And("I copy the server url in the browser"):
pass
with And(
"I connect to the Altinity Dashboard running inside the VM from the host mcahine",
description=f"command: {open_altinity_dashboard}",
):
pass
with And("I click ClickHouse Operators tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And("I select the namespace as kube-system"):
pass
with And("I click deploy button"):
pass
with And(
"I verify the ClickHouse Operator deployed inside the VM via Altinity Dashboard",
description=f"command: {microk8s_command_to_verify_deployment}",
):
pass
with Then("I exit from the vagrant", description="command: exit"):
pass
with Then("I stop the vagrant VM", description="command: vagrant halt"):
pass
@TestScenario
def run_on_vagrant_with_k3s_k8s(self):
"""Run Altinity Dashboard inside Vagrant with k3s installed"""
vagrant_up_command = "vagrant up"
vagrant_connect_command = "vagrant ssh"
adash_start_command = "./adash-linux-x86_64 --bindhost 0.0.0.0 -bindport 8081 &"
open_altinity_dashboard = "http://0.0.0.0:8080?token=<ADASH TOKEN>"
link_to_altinity_dashboard_releases = (
"https://github.com/Altinity/altinity-dashboard/releases"
)
link_to_k3s_server_latest_release = "https://github.com/rancher/k3s/releases/latest"
vagrant_default_mounted_dir_in_host = "{path_to_dashboard_repo}/K3sOnVagrant"
vagrant_default_mounted_dir_in_vm = "cd /vagrant"
make_executable_command = "chmod 0755 adash"
server_url = (
"http://10.0.2.15:8081?token=E9fYaKYGViBntEdtZfNNnsravnU7d5uhUJRqRhxIsas"
)
k3s_command_to_verify_deployment = "sudo kubectl get pods --namespace kube-public"
k3s_status_verify_command = "systemctl status k3s"
k3s_start_command = "sudo k3s server &"
with Given(
"I start vagrant VM with k3s installed, kubeconfig file created and port forwarding enabled",
description=f"command: {vagrant_up_command}",
):
pass
with And(
"I download the Altinity Dashboard latest binary file from GitHub",
description=f"download link: {link_to_altinity_dashboard_releases}",
):
pass
with And(
"I copy the Altinity Dashboard latest binary file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with And(
"I convert the Altinity Dashboard latest binary file to an executable",
description=f"command: {make_executable_command}",
):
pass
with And(
"I download the k3s server from GitHub",
description=f"download link: {link_to_k3s_server_latest_release}",
):
pass
with And(
"I copy the k3s server file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with When(
"I connect to vagrant VM using ssh",
description=f"command: {vagrant_connect_command}",
):
pass
with When(
"I change the directory to vagrant default mounted directory",
description=f"command: {vagrant_default_mounted_dir_in_vm}",
):
pass
with When(
"I verify the status of the k3s",
description=f"command: {k3s_status_verify_command}",
):
pass
with And(
"I start k3s server inside the VM", description=f"command: {k3s_start_command}"
):
pass
with And(
"I start Altinity Dashboard inside the VM with open host and 8081 port",
description=f"command: {adash_start_command}",
):
pass
with And(
"I copy the server url with generated token",
description=f"server url example: {server_url}",
):
pass
with And("I open the default browser in the host"):
pass
with And("I copy the server url in the browser"):
pass
with And(
"I connect to the Altinity Dashboard running inside the VM from the host mcahine",
description=f"command: {open_altinity_dashboard}",
):
pass
with And("I click ClickHouse Operators tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And("I select the namespace as kube-public"):
pass
with And("I click deploy button"):
pass
with And(
"I verify the ClickHouse Operator deployed inside the VM via Altinity Dashboard",
description=f"command: {k3s_command_to_verify_deployment}",
):
pass
with Then("I exit from the vagrant", description="command: exit"):
pass
with Then("I stop the vagrant VM", description="command: vagrant halt"):
pass
@TestScenario
def run_on_vagrant_with_k0s_k8s(self):
"""Run Altinity Dashboard inside Vagrant with k0s installed"""
vagrant_up_command = "vagrant up"
vagrant_connect_command = "vagrant ssh"
adash_start_command = "./adash-linux-x86_64 --bindhost 0.0.0.0 -bindport 8081 &"
open_altinity_dashboard = "http://0.0.0.0:8080?token=<ADASH TOKEN>"
link_to_altinity_dashboard_releases = (
"https://github.com/Altinity/altinity-dashboard/releases"
)
vagrant_default_mounted_dir_in_host = "{path_to_dashboard_repo}/K0sOnVagrant"
vagrant_default_mounted_dir_in_vm = "cd /vagrant"
make_executable_command = "chmod 0755 adash"
server_url = (
"http://10.0.2.15:8081?token=E9fYaKYGViBntEdtZfNNnsravnU7d5uhUJRqRhxIsas"
)
k0s_command_to_verify_deployment = "sudo k0s kubectl get pods --namespace default"
k0s_status_verify_command = "sudo k0s status"
k0s_start_command = "sudo k0s start"
with Given(
"I start vagrant VM with k0s installed, kubeconfig file created and port forwarding enabled",
description=f"command: {vagrant_up_command}",
):
pass
with And(
"I download the Altinity Dashboard latest binary file from GitHub",
description=f"download link: {link_to_altinity_dashboard_releases}",
):
pass
with And(
"I copy the Altinity Dashboard latest binary file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with And(
"I convert the Altinity Dashboard latest binary file to an executable",
description=f"command: {make_executable_command}",
):
pass
with When(
"I connect to vagrant VM using ssh",
description=f"command: {vagrant_connect_command}",
):
pass
with When(
"I change the directory to vagrant default mounted directory",
description=f"command: {vagrant_default_mounted_dir_in_vm}",
):
pass
with When(
"I verify the status of the k3s",
description=f"command: {k0s_status_verify_command}",
):
pass
with And(
"I start Altinity Dashboard inside the VM with open host and 8081 port",
description=f"command: {adash_start_command}",
):
pass
with And(
"I copy the server url with generated token",
description=f"server url example: {server_url}",
):
pass
with And("I open the default browser in the host"):
pass
with And("I copy the server url in the browser"):
pass
with And(
"I connect to the Altinity Dashboard running inside the VM from the host mcahine",
description=f"command: {open_altinity_dashboard}",
):
pass
with And("I click ClickHouse Operators tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And("I select the namespace as default"):
pass
with And("I click deploy button"):
pass
with And(
"I verify the ClickHouse Operator deployed inside the VM via Altinity Dashboard",
description=f"command: {k0s_command_to_verify_deployment}",
):
pass
with And(
"I wait until the ClickHouse operator pod turns into Running status from ContainerCreating"
):
pass
with And("I click ClickHouse Installations tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And(
"Select the '01-simple-layout-01-1shard-1repl.yaml' file from drop down menu"
):
pass
with And("I select the namespace as default"):
pass
with And("I click Create button"):
pass
with And(
"I verify the ClickHouse Installation inside the VM via Altinity Dashboard",
description=f"command: {k0s_command_to_verify_deployment}",
):
pass
with And(
"I wait until the ClickHouse Installation pod turns into Running status from ContainerCreating"
):
pass
with Then("I exit from the vagrant", description="command: exit"):
pass
with Then("I stop the vagrant VM", description="command: vagrant halt"):
pass
@TestScenario
def run_on_vagrant_with_kind(self):
"""Run Altinity Dashboard inside Vagrant with Kind installed"""
vagrant_up_command = "vagrant up"
vagrant_connect_command = "vagrant ssh"
adash_start_command = "./adash-linux-x86_64 --bindhost 0.0.0.0 -bindport 8081 &"
open_altinity_dashboard = "http://0.0.0.0:8080?token=<ADASH TOKEN>"
link_to_altinity_dashboard_releases = (
"https://github.com/Altinity/altinity-dashboard/releases"
)
vagrant_default_mounted_dir_in_host = "{path_to_dashboard_repo}/K0sOnVagrant"
vagrant_default_mounted_dir_in_vm = "cd /vagrant"
make_executable_command = "chmod 0755 adash"
server_url = (
"http://10.0.2.15:8081?token=E9fYaKYGViBntEdtZfNNnsravnU7d5uhUJRqRhxIsas"
)
command_to_verify_deployment = "kubectl get pods --namespace kube-system"
kind_verify_cluster_command = "kind get clusters"
with Given(
"I start vagrant VM with Kind installed, kubeconfig file created and port forwarding enabled",
description=f"command: {vagrant_up_command}",
):
pass
with And(
"I download the Altinity Dashboard latest binary file from GitHub",
description=f"download link: {link_to_altinity_dashboard_releases}",
):
pass
with And(
"I copy the Altinity Dashboard latest binary file to the vagrant file folder",
description=f"file folder: {vagrant_default_mounted_dir_in_host}",
):
pass
with And(
"I convert the Altinity Dashboard latest binary file to an executable",
description=f"command: {make_executable_command}",
):
pass
with When(
"I connect to vagrant VM using ssh",
description=f"command: {vagrant_connect_command}",
):
pass
with When(
"I change the directory to vagrant default mounted directory",
description=f"command: {vagrant_default_mounted_dir_in_vm}",
):
pass
with When(
"I verify the Kind cluster",
description=f"command: {kind_verify_cluster_command}",
):
pass
with And(
"I start Altinity Dashboard inside the VM with open host and 8081 port",
description=f"command: {adash_start_command}",
):
pass
with And(
"I copy the server url with generated token",
description=f"server url example: {server_url}",
):
pass
with And("I open the default browser in the host"):
pass
with And("I copy the server url in the browser"):
pass
with And(
"I connect to the Altinity Dashboard running inside the VM from the host mcahine",
description=f"command: {open_altinity_dashboard}",
):
pass
with And("I click ClickHouse Operators tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And("I select the namespace as kube-system"):
pass
with And("I click deploy button"):
pass
with And(
"I verify the ClickHouse Operator deployed inside the VM via Altinity Dashboard",
description=f"command: {command_to_verify_deployment}",
):
pass
with And(
"I wait until the ClickHouse operator pod turns into Running status from ContainerCreating"
):
pass
with And("I click ClickHouse Installations tab in the Altinity Dashboard"):
pass
with And("I click plus(+) button on the top of the table view"):
pass
with And(
"Select the '03-persistent-volume-01-default-volume.yaml' file from drop down menu"
):
pass
with And("I select the namespace as kube-system"):
pass
with And("I click Create button"):
pass
with And(
"I verify the ClickHouse Installation inside the VM via Altinity Dashboard",
description=f"command: {command_to_verify_deployment}",
):
pass
with And(
"I wait until the ClickHouse Installation pod turns into Running status from ContainerCreating"
):
pass
with Then("I exit from the vagrant", description="command: exit"):
pass
with Then("I stop the vagrant VM", description="command: vagrant halt"):
pass
@TestModule
@Name("adash on local k8s")
def adash_on_local_k8s(self):
"""Altinity Dashboard test on local kubernetes distros."""
Scenario(run=run_on_vagrant_with_minikube, flags=TE | MANUAL)
Scenario(run=run_on_vagrant_with_micro_k8s, flags=TE | MANUAL)
Scenario(run=run_on_vagrant_with_k3s_k8s, flags=TE | MANUAL)
Scenario(run=run_on_vagrant_with_k0s_k8s, flags=TE | MANUAL)
Scenario(run=run_on_vagrant_with_kind, flags=TE | MANUAL)
if main():
adash_on_local_k8s()
| 36.424908
| 103
| 0.663516
| 2,561
| 19,888
| 4.991019
| 0.064818
| 0.068221
| 0.07401
| 0.078861
| 0.94195
| 0.928258
| 0.90956
| 0.8954
| 0.878188
| 0.875059
| 0
| 0.018148
| 0.251911
| 19,888
| 545
| 104
| 36.491743
| 0.840973
| 0.017548
| 0
| 0.871154
| 0
| 0.003846
| 0.530295
| 0.089553
| 0
| 0
| 0
| 0
| 0
| 1
| 0.011538
| false
| 0.219231
| 0.001923
| 0
| 0.013462
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
ed09211cd7c8960e9714d7b8aea6dd04a936fb2a
| 207,263
|
py
|
Python
|
elasticsearch/_sync/client/__init__.py
|
bralbral/elasticsearch-py
|
016c87c2ea1a5e1485dfeebfa39be66540aac0dc
|
[
"Apache-2.0"
] | 1
|
2022-03-12T15:42:24.000Z
|
2022-03-12T15:42:24.000Z
|
elasticsearch/_sync/client/__init__.py
|
bralbral/elasticsearch-py
|
016c87c2ea1a5e1485dfeebfa39be66540aac0dc
|
[
"Apache-2.0"
] | null | null | null |
elasticsearch/_sync/client/__init__.py
|
bralbral/elasticsearch-py
|
016c87c2ea1a5e1485dfeebfa39be66540aac0dc
|
[
"Apache-2.0"
] | null | null | null |
# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import logging
import typing as t
import warnings
from elastic_transport import (
BaseNode,
BinaryApiResponse,
HeadApiResponse,
NodeConfig,
NodePool,
NodeSelector,
ObjectApiResponse,
Serializer,
Transport,
)
from elastic_transport.client_utils import DEFAULT, DefaultType
from ...exceptions import ApiError, TransportError
from ...serializer import DEFAULT_SERIALIZERS
from ._base import (
BaseClient,
create_sniff_callback,
default_sniff_callback,
resolve_auth_headers,
)
from .async_search import AsyncSearchClient
from .autoscaling import AutoscalingClient
from .cat import CatClient
from .ccr import CcrClient
from .cluster import ClusterClient
from .dangling_indices import DanglingIndicesClient
from .enrich import EnrichClient
from .eql import EqlClient
from .features import FeaturesClient
from .fleet import FleetClient
from .graph import GraphClient
from .ilm import IlmClient
from .indices import IndicesClient
from .ingest import IngestClient
from .license import LicenseClient
from .logstash import LogstashClient
from .migration import MigrationClient
from .ml import MlClient
from .monitoring import MonitoringClient
from .nodes import NodesClient
from .rollup import RollupClient
from .searchable_snapshots import SearchableSnapshotsClient
from .security import SecurityClient
from .shutdown import ShutdownClient
from .slm import SlmClient
from .snapshot import SnapshotClient
from .sql import SqlClient
from .ssl import SslClient
from .tasks import TasksClient
from .text_structure import TextStructureClient
from .transform import TransformClient
from .utils import (
_TYPE_HOSTS,
CLIENT_META_SERVICE,
SKIP_IN_PATH,
_quote,
_rewrite_parameters,
client_node_configs,
)
from .watcher import WatcherClient
from .xpack import XPackClient
logger = logging.getLogger("elasticsearch")
SelfType = t.TypeVar("SelfType", bound="Elasticsearch")
class Elasticsearch(BaseClient):
"""
Elasticsearch low-level client. Provides a straightforward mapping from
Python to Elasticsearch REST APIs.
The client instance has additional attributes to update APIs in different
namespaces such as ``async_search``, ``indices``, ``security``, and more:
.. code-block:: python
client = Elasticsearch("http://localhost:9200")
# Get Document API
client.get(index="*", id="1")
# Get Index API
client.indices.get(index="*")
Transport options can be set on the client constructor or using
the :meth:`~elasticsearch.Elasticsearch.options` method:
.. code-block:: python
# Set 'api_key' on the constructor
client = Elasticsearch(
"http://localhost:9200",
api_key=("id", "api_key")
)
client.search(...)
# Set 'api_key' per request
client.options(api_key=("id", "api_key")).search(...)
"""
def __init__(
self,
hosts: t.Optional[_TYPE_HOSTS] = None,
*,
# API
cloud_id: t.Optional[str] = None,
api_key: t.Optional[t.Union[str, t.Tuple[str, str]]] = None,
basic_auth: t.Optional[t.Union[str, t.Tuple[str, str]]] = None,
bearer_auth: t.Optional[str] = None,
opaque_id: t.Optional[str] = None,
# Node
headers: t.Union[DefaultType, t.Mapping[str, str]] = DEFAULT,
connections_per_node: t.Union[DefaultType, int] = DEFAULT,
http_compress: t.Union[DefaultType, bool] = DEFAULT,
verify_certs: t.Union[DefaultType, bool] = DEFAULT,
ca_certs: t.Union[DefaultType, str] = DEFAULT,
client_cert: t.Union[DefaultType, str] = DEFAULT,
client_key: t.Union[DefaultType, str] = DEFAULT,
ssl_assert_hostname: t.Union[DefaultType, str] = DEFAULT,
ssl_assert_fingerprint: t.Union[DefaultType, str] = DEFAULT,
ssl_version: t.Union[DefaultType, int] = DEFAULT,
ssl_context: t.Union[DefaultType, t.Any] = DEFAULT,
ssl_show_warn: t.Union[DefaultType, bool] = DEFAULT,
# Transport
transport_class: t.Type[Transport] = Transport,
request_timeout: t.Union[DefaultType, None, float] = DEFAULT,
node_class: t.Union[DefaultType, t.Type[BaseNode]] = DEFAULT,
node_pool_class: t.Union[DefaultType, t.Type[NodePool]] = DEFAULT,
randomize_nodes_in_pool: t.Union[DefaultType, bool] = DEFAULT,
node_selector_class: t.Union[DefaultType, t.Type[NodeSelector]] = DEFAULT,
dead_node_backoff_factor: t.Union[DefaultType, float] = DEFAULT,
max_dead_node_backoff: t.Union[DefaultType, float] = DEFAULT,
serializer: t.Optional[Serializer] = None,
serializers: t.Union[DefaultType, t.Mapping[str, Serializer]] = DEFAULT,
default_mimetype: str = "application/json",
max_retries: t.Union[DefaultType, int] = DEFAULT,
retry_on_status: t.Union[DefaultType, int, t.Collection[int]] = DEFAULT,
retry_on_timeout: t.Union[DefaultType, bool] = DEFAULT,
sniff_on_start: t.Union[DefaultType, bool] = DEFAULT,
sniff_before_requests: t.Union[DefaultType, bool] = DEFAULT,
sniff_on_node_failure: t.Union[DefaultType, bool] = DEFAULT,
sniff_timeout: t.Union[DefaultType, None, float] = DEFAULT,
min_delay_between_sniffing: t.Union[DefaultType, None, float] = DEFAULT,
sniffed_node_callback: t.Optional[
t.Callable[[t.Dict[str, t.Any], NodeConfig], t.Optional[NodeConfig]]
] = None,
meta_header: t.Union[DefaultType, bool] = DEFAULT,
timeout: t.Union[DefaultType, None, float] = DEFAULT,
randomize_hosts: t.Union[DefaultType, bool] = DEFAULT,
host_info_callback: t.Optional[
t.Callable[
[t.Dict[str, t.Any], t.Dict[str, t.Union[str, int]]],
t.Optional[t.Dict[str, t.Union[str, int]]],
]
] = None,
sniffer_timeout: t.Union[DefaultType, None, float] = DEFAULT,
sniff_on_connection_fail: t.Union[DefaultType, bool] = DEFAULT,
http_auth: t.Union[DefaultType, t.Any] = DEFAULT,
maxsize: t.Union[DefaultType, int] = DEFAULT,
# Internal use only
_transport: t.Optional[Transport] = None,
) -> None:
if hosts is None and cloud_id is None and _transport is None:
raise ValueError("Either 'hosts' or 'cloud_id' must be specified")
if timeout is not DEFAULT:
if request_timeout is not DEFAULT:
raise ValueError(
"Can't specify both 'timeout' and 'request_timeout', "
"instead only specify 'request_timeout'"
)
warnings.warn(
"The 'timeout' parameter is deprecated in favor of 'request_timeout'",
category=DeprecationWarning,
stacklevel=2,
)
request_timeout = timeout
if serializer is not None:
if serializers is not DEFAULT:
raise ValueError(
"Can't specify both 'serializer' and 'serializers' parameters "
"together. Instead only specify one of the other."
)
serializers = {default_mimetype: serializer}
if randomize_hosts is not DEFAULT:
if randomize_nodes_in_pool is not DEFAULT:
raise ValueError(
"Can't specify both 'randomize_hosts' and 'randomize_nodes_in_pool', "
"instead only specify 'randomize_nodes_in_pool'"
)
warnings.warn(
"The 'randomize_hosts' parameter is deprecated in favor of 'randomize_nodes_in_pool'",
category=DeprecationWarning,
stacklevel=2,
)
randomize_nodes_in_pool = randomize_hosts
if sniffer_timeout is not DEFAULT:
if min_delay_between_sniffing is not DEFAULT:
raise ValueError(
"Can't specify both 'sniffer_timeout' and 'min_delay_between_sniffing', "
"instead only specify 'min_delay_between_sniffing'"
)
warnings.warn(
"The 'sniffer_timeout' parameter is deprecated in favor of 'min_delay_between_sniffing'",
category=DeprecationWarning,
stacklevel=2,
)
min_delay_between_sniffing = sniffer_timeout
if sniff_on_connection_fail is not DEFAULT:
if sniff_on_node_failure is not DEFAULT:
raise ValueError(
"Can't specify both 'sniff_on_connection_fail' and 'sniff_on_node_failure', "
"instead only specify 'sniff_on_node_failure'"
)
warnings.warn(
"The 'sniff_on_connection_fail' parameter is deprecated in favor of 'sniff_on_node_failure'",
category=DeprecationWarning,
stacklevel=2,
)
sniff_on_node_failure = sniff_on_connection_fail
if maxsize is not DEFAULT:
if connections_per_node is not DEFAULT:
raise ValueError(
"Can't specify both 'maxsize' and 'connections_per_node', "
"instead only specify 'connections_per_node'"
)
warnings.warn(
"The 'maxsize' parameter is deprecated in favor of 'connections_per_node'",
category=DeprecationWarning,
stacklevel=2,
)
connections_per_node = maxsize
# Setting min_delay_between_sniffing=True implies sniff_before_requests=True
if min_delay_between_sniffing is not DEFAULT:
sniff_before_requests = True
sniffing_options = (
sniff_timeout,
sniff_on_start,
sniff_before_requests,
sniff_on_node_failure,
sniffed_node_callback,
min_delay_between_sniffing,
sniffed_node_callback,
)
if cloud_id is not None and any(
x is not DEFAULT and x is not None for x in sniffing_options
):
raise ValueError(
"Sniffing should not be enabled when connecting to Elastic Cloud"
)
sniff_callback = None
if host_info_callback is not None:
if sniffed_node_callback is not None:
raise ValueError(
"Can't specify both 'host_info_callback' and 'sniffed_node_callback', "
"instead only specify 'sniffed_node_callback'"
)
warnings.warn(
"The 'host_info_callback' parameter is deprecated in favor of 'sniffed_node_callback'",
category=DeprecationWarning,
stacklevel=2,
)
sniff_callback = create_sniff_callback(
host_info_callback=host_info_callback
)
elif sniffed_node_callback is not None:
sniff_callback = create_sniff_callback(
sniffed_node_callback=sniffed_node_callback
)
elif (
sniff_on_start is True
or sniff_before_requests is True
or sniff_on_node_failure is True
):
sniff_callback = default_sniff_callback
if _transport is None:
node_configs = client_node_configs(
hosts,
cloud_id=cloud_id,
connections_per_node=connections_per_node,
http_compress=http_compress,
verify_certs=verify_certs,
ca_certs=ca_certs,
client_cert=client_cert,
client_key=client_key,
ssl_assert_hostname=ssl_assert_hostname,
ssl_assert_fingerprint=ssl_assert_fingerprint,
ssl_version=ssl_version,
ssl_context=ssl_context,
ssl_show_warn=ssl_show_warn,
)
transport_kwargs: t.Dict[str, t.Any] = {}
if node_class is not DEFAULT:
transport_kwargs["node_class"] = node_class
if node_pool_class is not DEFAULT:
transport_kwargs["node_pool_class"] = node_class
if randomize_nodes_in_pool is not DEFAULT:
transport_kwargs["randomize_nodes_in_pool"] = randomize_nodes_in_pool
if node_selector_class is not DEFAULT:
transport_kwargs["node_selector_class"] = node_selector_class
if dead_node_backoff_factor is not DEFAULT:
transport_kwargs["dead_node_backoff_factor"] = dead_node_backoff_factor
if max_dead_node_backoff is not DEFAULT:
transport_kwargs["max_dead_node_backoff"] = max_dead_node_backoff
if meta_header is not DEFAULT:
transport_kwargs["meta_header"] = meta_header
transport_serializers = DEFAULT_SERIALIZERS.copy()
if serializers is not DEFAULT:
transport_serializers.update(serializers)
# Override compatibility serializers from their non-compat mimetypes too.
# So we use the same serializer for requests and responses.
for mime_subtype in ("json", "x-ndjson"):
if f"application/{mime_subtype}" in serializers:
compat_mimetype = (
f"application/vnd.elasticsearch+{mime_subtype}"
)
if compat_mimetype not in serializers:
transport_serializers[compat_mimetype] = serializers[
f"application/{mime_subtype}"
]
transport_kwargs["serializers"] = transport_serializers
transport_kwargs["default_mimetype"] = default_mimetype
if sniff_on_start is not DEFAULT:
transport_kwargs["sniff_on_start"] = sniff_on_start
if sniff_before_requests is not DEFAULT:
transport_kwargs["sniff_before_requests"] = sniff_before_requests
if sniff_on_node_failure is not DEFAULT:
transport_kwargs["sniff_on_node_failure"] = sniff_on_node_failure
if sniff_timeout is not DEFAULT:
transport_kwargs["sniff_timeout"] = sniff_timeout
if min_delay_between_sniffing is not DEFAULT:
transport_kwargs[
"min_delay_between_sniffing"
] = min_delay_between_sniffing
_transport = transport_class(
node_configs,
client_meta_service=CLIENT_META_SERVICE,
sniff_callback=sniff_callback,
**transport_kwargs,
)
super().__init__(_transport)
# These are set per-request so are stored separately.
self._request_timeout = request_timeout
self._max_retries = max_retries
self._retry_on_timeout = retry_on_timeout
if isinstance(retry_on_status, int):
retry_on_status = (retry_on_status,)
self._retry_on_status = retry_on_status
else:
super().__init__(_transport)
if headers is not DEFAULT and headers is not None:
self._headers.update(headers)
if opaque_id is not DEFAULT and opaque_id is not None: # type: ignore[comparison-overlap]
self._headers["x-opaque-id"] = opaque_id
self._headers = resolve_auth_headers(
self._headers,
http_auth=http_auth,
api_key=api_key,
basic_auth=basic_auth,
bearer_auth=bearer_auth,
)
# namespaced clients for compatibility with API names
self.async_search = AsyncSearchClient(self)
self.autoscaling = AutoscalingClient(self)
self.cat = CatClient(self)
self.cluster = ClusterClient(self)
self.fleet = FleetClient(self)
self.features = FeaturesClient(self)
self.indices = IndicesClient(self)
self.ingest = IngestClient(self)
self.nodes = NodesClient(self)
self.snapshot = SnapshotClient(self)
self.tasks = TasksClient(self)
self.xpack = XPackClient(self)
self.ccr = CcrClient(self)
self.dangling_indices = DanglingIndicesClient(self)
self.enrich = EnrichClient(self)
self.eql = EqlClient(self)
self.graph = GraphClient(self)
self.ilm = IlmClient(self)
self.license = LicenseClient(self)
self.logstash = LogstashClient(self)
self.migration = MigrationClient(self)
self.ml = MlClient(self)
self.monitoring = MonitoringClient(self)
self.rollup = RollupClient(self)
self.searchable_snapshots = SearchableSnapshotsClient(self)
self.security = SecurityClient(self)
self.slm = SlmClient(self)
self.shutdown = ShutdownClient(self)
self.sql = SqlClient(self)
self.ssl = SslClient(self)
self.text_structure = TextStructureClient(self)
self.transform = TransformClient(self)
self.watcher = WatcherClient(self)
def __repr__(self) -> str:
try:
# get a list of all connections
nodes = [node.base_url for node in self.transport.node_pool.all()]
# truncate to 5 if there are too many
if len(nodes) > 5:
nodes = nodes[:5] + ["..."]
return f"<{self.__class__.__name__}({nodes})>"
except Exception:
# probably operating on custom transport and connection_pool, ignore
return super().__repr__()
def __enter__(self) -> "Elasticsearch":
try:
# All this to avoid a Mypy error when using unasync.
getattr(self.transport, "_async_call")()
except AttributeError:
pass
return self
def __exit__(self, *_: t.Any) -> None:
self.close()
def options(
self: SelfType,
*,
opaque_id: t.Union[DefaultType, str] = DEFAULT,
api_key: t.Union[DefaultType, str, t.Tuple[str, str]] = DEFAULT,
basic_auth: t.Union[DefaultType, str, t.Tuple[str, str]] = DEFAULT,
bearer_auth: t.Union[DefaultType, str] = DEFAULT,
headers: t.Union[DefaultType, t.Mapping[str, str]] = DEFAULT,
request_timeout: t.Union[DefaultType, t.Optional[float]] = DEFAULT,
ignore_status: t.Union[DefaultType, int, t.Collection[int]] = DEFAULT,
max_retries: t.Union[DefaultType, int] = DEFAULT,
retry_on_status: t.Union[DefaultType, int, t.Collection[int]] = DEFAULT,
retry_on_timeout: t.Union[DefaultType, bool] = DEFAULT,
) -> SelfType:
client = type(self)(_transport=self.transport)
resolved_headers = headers if headers is not DEFAULT else None
resolved_headers = resolve_auth_headers(
headers=resolved_headers,
api_key=api_key,
basic_auth=basic_auth,
bearer_auth=bearer_auth,
)
resolved_opaque_id = opaque_id if opaque_id is not DEFAULT else None
if resolved_opaque_id:
resolved_headers["x-opaque-id"] = resolved_opaque_id
if resolved_headers:
new_headers = self._headers.copy()
new_headers.update(resolved_headers)
client._headers = new_headers
else:
client._headers = self._headers.copy()
if request_timeout is not DEFAULT:
client._request_timeout = request_timeout
if ignore_status is not DEFAULT:
if isinstance(ignore_status, int):
ignore_status = (ignore_status,)
client._ignore_status = ignore_status
if max_retries is not DEFAULT:
if not isinstance(max_retries, int):
raise TypeError("'max_retries' must be of type 'int'")
client._max_retries = max_retries
if retry_on_status is not DEFAULT:
if isinstance(retry_on_status, int):
retry_on_status = (retry_on_status,)
client._retry_on_status = retry_on_status
if retry_on_timeout is not DEFAULT:
if not isinstance(retry_on_timeout, bool):
raise TypeError("'retry_on_timeout' must be of type 'bool'")
client._retry_on_timeout = retry_on_timeout
return client
def close(self) -> None:
"""Closes the Transport and all internal connections"""
self.transport.close()
@_rewrite_parameters()
def ping(
self,
*,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[t.Union[t.List[str], str]] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> bool:
"""
Returns True if a successful response returns from the info() API,
otherwise returns False. This API call can fail either at the transport
layer (due to connection errors or timeouts) or from a non-2XX HTTP response
(due to authentication or authorization issues).
If you want to discover why the request failed you should use the ``info()`` API.
`<https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html>`_
"""
__path = "/"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
try:
self.perform_request("HEAD", __path, params=__query, headers=__headers)
return True
except (ApiError, TransportError):
return False
# AUTO-GENERATED-API-DEFINITIONS #
@_rewrite_parameters(
body_name="operations",
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def bulk(
self,
*,
operations: t.Union[
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
],
index: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pipeline: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
require_alias: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
timeout: t.Optional[t.Union[int, str]] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to perform multiple index/update/delete operations in a single request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html>`_
:param operations:
:param index: Default index for items which don't provide one
:param pipeline: The pipeline id to preprocess incoming documents with
:param refresh: If `true` then refresh the affected shards to make this operation
visible to search, if `wait_for` then wait for a refresh to make this operation
visible to search, if `false` (the default) then do nothing with refreshes.
:param require_alias: Sets require_alias for all incoming documents. Defaults
to unset (false)
:param routing: Specific routing value
:param source: True or false to return the _source field or not, or default list
of fields to return, can be overridden on each sub-request
:param source_excludes: Default list of fields to exclude from the returned _source
field, can be overridden on each sub-request
:param source_includes: Default list of fields to extract and return from the
_source field, can be overridden on each sub-request
:param timeout: Explicit operation timeout
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the bulk operation. Defaults to 1, meaning the primary
shard only. Set to `all` for all shard copies, otherwise set to any non-negative
value less than or equal to the total number of copies for the shard (number
of replicas + 1)
"""
if operations is None:
raise ValueError("Empty value passed for parameter 'operations'")
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_bulk"
else:
__path = "/_bulk"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pipeline is not None:
__query["pipeline"] = pipeline
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if require_alias is not None:
__query["require_alias"] = require_alias
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if timeout is not None:
__query["timeout"] = timeout
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
__body = operations
__headers = {
"accept": "application/json",
"content-type": "application/x-ndjson",
}
return self.perform_request( # type: ignore[return-value]
"PUT", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def clear_scroll(
self,
*,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
scroll_id: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Explicitly clears the search context for a scroll.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/clear-scroll-api.html>`_
:param scroll_id:
"""
__path = "/_search/scroll"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if scroll_id is not None:
__body["scroll_id"] = scroll_id
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def close_point_in_time(
self,
*,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Close a point in time
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
:param id:
"""
if id is None:
raise ValueError("Empty value passed for parameter 'id'")
__path = "/_pit"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if id is not None:
__body["id"] = id
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def count(
self,
*,
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
allow_no_indices: t.Optional[bool] = None,
analyze_wildcard: t.Optional[bool] = None,
analyzer: t.Optional[str] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
df: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
lenient: t.Optional[bool] = None,
min_score: t.Optional[float] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
routing: t.Optional[str] = None,
terminate_after: t.Optional[int] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns number of documents matching a query.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html>`_
:param index: A comma-separated list of indices to restrict the results
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param analyze_wildcard: Specify whether wildcard and prefix queries should be
analyzed (default: false)
:param analyzer: The analyzer to use for the query string
:param default_operator: The default operator for query string query (AND or
OR)
:param df: The field to use as default where no field prefix is given in the
query string
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param ignore_throttled: Whether specified concrete, expanded or aliased indices
should be ignored when throttled
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param lenient: Specify whether format-based query failures (such as providing
text to a numeric field) should be ignored
:param min_score: Include only documents with a specific `_score` value in the
result
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param q: Query in the Lucene query string syntax
:param query:
:param routing: A comma-separated list of specific routing values
:param terminate_after: The maximum count for each shard, upon reaching which
the query execution will terminate early
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_count"
else:
__path = "/_count"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if analyze_wildcard is not None:
__query["analyze_wildcard"] = analyze_wildcard
if analyzer is not None:
__query["analyzer"] = analyzer
if default_operator is not None:
__query["default_operator"] = default_operator
if df is not None:
__query["df"] = df
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if lenient is not None:
__query["lenient"] = lenient
if min_score is not None:
__query["min_score"] = min_score
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if q is not None:
__query["q"] = q
if query is not None:
__body["query"] = query
if routing is not None:
__query["routing"] = routing
if terminate_after is not None:
__query["terminate_after"] = terminate_after
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_name="document",
)
def create(
self,
*,
index: str,
id: str,
document: t.Mapping[str, t.Any],
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pipeline: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
routing: t.Optional[str] = None,
timeout: t.Optional[t.Union[int, str]] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Creates a new document in the index. Returns a 409 response when a document with
a same ID already exists in the index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html>`_
:param index: The name of the index
:param id: Document ID
:param document:
:param pipeline: The pipeline id to preprocess incoming documents with
:param refresh: If `true` then refresh the affected shards to make this operation
visible to search, if `wait_for` then wait for a refresh to make this operation
visible to search, if `false` (the default) then do nothing with refreshes.
:param routing: Specific routing value
:param timeout: Explicit operation timeout
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the index operation. Defaults to 1, meaning the primary
shard only. Set to `all` for all shard copies, otherwise set to any non-negative
value less than or equal to the total number of copies for the shard (number
of replicas + 1)
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
if document is None:
raise ValueError("Empty value passed for parameter 'document'")
__path = f"/{_quote(index)}/_create/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pipeline is not None:
__query["pipeline"] = pipeline
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if timeout is not None:
__query["timeout"] = timeout
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
__body = document
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"PUT", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def delete(
self,
*,
index: str,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
if_primary_term: t.Optional[int] = None,
if_seq_no: t.Optional[int] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
routing: t.Optional[str] = None,
timeout: t.Optional[t.Union[int, str]] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Removes a document from the index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html>`_
:param index: The name of the index
:param id: The document ID
:param if_primary_term: only perform the delete operation if the last operation
that has changed the document has the specified primary term
:param if_seq_no: only perform the delete operation if the last operation that
has changed the document has the specified sequence number
:param refresh: If `true` then refresh the affected shards to make this operation
visible to search, if `wait_for` then wait for a refresh to make this operation
visible to search, if `false` (the default) then do nothing with refreshes.
:param routing: Specific routing value
:param timeout: Explicit operation timeout
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the delete operation. Defaults to 1, meaning the primary
shard only. Set to `all` for all shard copies, otherwise set to any non-negative
value less than or equal to the total number of copies for the shard (number
of replicas + 1)
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_doc/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if if_primary_term is not None:
__query["if_primary_term"] = if_primary_term
if if_seq_no is not None:
__query["if_seq_no"] = if_seq_no
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if timeout is not None:
__query["timeout"] = timeout
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={"from": "from_"},
)
def delete_by_query(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
allow_no_indices: t.Optional[bool] = None,
analyze_wildcard: t.Optional[bool] = None,
analyzer: t.Optional[str] = None,
conflicts: t.Optional[t.Union["t.Literal['abort', 'proceed']", str]] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
df: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
from_: t.Optional[int] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
lenient: t.Optional[bool] = None,
max_docs: t.Optional[int] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
refresh: t.Optional[bool] = None,
request_cache: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
routing: t.Optional[str] = None,
scroll: t.Optional[t.Union[int, str]] = None,
scroll_size: t.Optional[int] = None,
search_timeout: t.Optional[t.Union[int, str]] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
slice: t.Optional[t.Mapping[str, t.Any]] = None,
slices: t.Optional[int] = None,
sort: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
stats: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
terminate_after: t.Optional[int] = None,
timeout: t.Optional[t.Union[int, str]] = None,
version: t.Optional[bool] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
wait_for_completion: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Deletes documents matching the provided query.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html>`_
:param index: A comma-separated list of index names to search; use `_all` or
empty string to perform the operation on all indices
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param analyze_wildcard: Specify whether wildcard and prefix queries should be
analyzed (default: false)
:param analyzer: The analyzer to use for the query string
:param conflicts: What to do when the delete by query hits version conflicts?
:param default_operator: The default operator for query string query (AND or
OR)
:param df: The field to use as default where no field prefix is given in the
query string
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param from_: Starting offset (default: 0)
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param lenient: Specify whether format-based query failures (such as providing
text to a numeric field) should be ignored
:param max_docs:
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param q: Query in the Lucene query string syntax
:param query:
:param refresh: Should the affected indexes be refreshed?
:param request_cache: Specify if request cache should be used for this request
or not, defaults to index level setting
:param requests_per_second: The throttle for this request in sub-requests per
second. -1 means no throttle.
:param routing: A comma-separated list of specific routing values
:param scroll: Specify how long a consistent view of the index should be maintained
for scrolled search
:param scroll_size: Size on the scroll request powering the delete by query
:param search_timeout: Explicit timeout for each search request. Defaults to
no timeout.
:param search_type: Search operation type
:param slice:
:param slices: The number of slices this task should be divided into. Defaults
to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.
:param sort: A comma-separated list of <field>:<direction> pairs
:param stats: Specific 'tag' of the request for logging and statistical purposes
:param terminate_after: The maximum number of documents to collect for each shard,
upon reaching which the query execution will terminate early.
:param timeout: Time each individual bulk request should wait for shards that
are unavailable.
:param version: Specify whether to return document version as part of a hit
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the delete by query operation. Defaults to 1, meaning
the primary shard only. Set to `all` for all shard copies, otherwise set
to any non-negative value less than or equal to the total number of copies
for the shard (number of replicas + 1)
:param wait_for_completion: Should the request should block until the delete
by query is complete.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
__path = f"/{_quote(index)}/_delete_by_query"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
# The 'sort' parameter with a colon can't be encoded to the body.
if sort is not None and (
(isinstance(sort, str) and ":" in sort)
or (
isinstance(sort, (list, tuple))
and all(isinstance(_x, str) for _x in sort)
and any(":" in _x for _x in sort)
)
):
__query["sort"] = sort
sort = None
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if analyze_wildcard is not None:
__query["analyze_wildcard"] = analyze_wildcard
if analyzer is not None:
__query["analyzer"] = analyzer
if conflicts is not None:
__query["conflicts"] = conflicts
if default_operator is not None:
__query["default_operator"] = default_operator
if df is not None:
__query["df"] = df
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if from_ is not None:
__query["from"] = from_
if human is not None:
__query["human"] = human
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if lenient is not None:
__query["lenient"] = lenient
if max_docs is not None:
__body["max_docs"] = max_docs
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if q is not None:
__query["q"] = q
if query is not None:
__body["query"] = query
if refresh is not None:
__query["refresh"] = refresh
if request_cache is not None:
__query["request_cache"] = request_cache
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
if routing is not None:
__query["routing"] = routing
if scroll is not None:
__query["scroll"] = scroll
if scroll_size is not None:
__query["scroll_size"] = scroll_size
if search_timeout is not None:
__query["search_timeout"] = search_timeout
if search_type is not None:
__query["search_type"] = search_type
if slice is not None:
__body["slice"] = slice
if slices is not None:
__query["slices"] = slices
if sort is not None:
__query["sort"] = sort
if stats is not None:
__query["stats"] = stats
if terminate_after is not None:
__query["terminate_after"] = terminate_after
if timeout is not None:
__query["timeout"] = timeout
if version is not None:
__query["version"] = version
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
if wait_for_completion is not None:
__query["wait_for_completion"] = wait_for_completion
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def delete_by_query_rethrottle(
self,
*,
task_id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
) -> ObjectApiResponse[t.Any]:
"""
Changes the number of requests per second for a particular Delete By Query operation.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html>`_
:param task_id: The task id to rethrottle
:param requests_per_second: The throttle to set on this request in floating sub-requests
per second. -1 means set no throttle.
"""
if task_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'task_id'")
__path = f"/_delete_by_query/{_quote(task_id)}/_rethrottle"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers
)
@_rewrite_parameters()
def delete_script(
self,
*,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
master_timeout: t.Optional[t.Union[int, str]] = None,
pretty: t.Optional[bool] = None,
timeout: t.Optional[t.Union[int, str]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Deletes a script.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html>`_
:param id: Script ID
:param master_timeout: Specify timeout for connection to master
:param timeout: Explicit operation timeout
"""
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/_scripts/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if master_timeout is not None:
__query["master_timeout"] = master_timeout
if pretty is not None:
__query["pretty"] = pretty
if timeout is not None:
__query["timeout"] = timeout
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"DELETE", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def exists(
self,
*,
index: str,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> HeadApiResponse:
"""
Returns information about whether a document exists in an index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html>`_
:param index: The name of the index
:param id: The document ID
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param realtime: Specify whether to perform the operation in realtime or search
mode
:param refresh: Refresh the shard containing the document before performing the
operation
:param routing: Specific routing value
:param source: True or false to return the _source field or not, or a list of
fields to return
:param source_excludes: A list of fields to exclude from the returned _source
field
:param source_includes: A list of fields to extract and return from the _source
field
:param stored_fields: A comma-separated list of stored fields to return in the
response
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_doc/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stored_fields is not None:
__query["stored_fields"] = stored_fields
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"HEAD", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def exists_source(
self,
*,
index: str,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> HeadApiResponse:
"""
Returns information about whether a document source exists in an index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html>`_
:param index: The name of the index
:param id: The document ID
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param realtime: Specify whether to perform the operation in realtime or search
mode
:param refresh: Refresh the shard containing the document before performing the
operation
:param routing: Specific routing value
:param source: True or false to return the _source field or not, or a list of
fields to return
:param source_excludes: A list of fields to exclude from the returned _source
field
:param source_includes: A list of fields to extract and return from the _source
field
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_source/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"HEAD", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def explain(
self,
*,
index: str,
id: str,
analyze_wildcard: t.Optional[bool] = None,
analyzer: t.Optional[str] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
df: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
lenient: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns information about why a specific matches (or doesn't match) a query.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html>`_
:param index: The name of the index
:param id: The document ID
:param analyze_wildcard: Specify whether wildcards and prefix queries in the
query string query should be analyzed (default: false)
:param analyzer: The analyzer for the query string query
:param default_operator: The default operator for query string query (AND or
OR)
:param df: The default field for query string query (default: _all)
:param lenient: Specify whether format-based query failures (such as providing
text to a numeric field) should be ignored
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param q: Query in the Lucene query string syntax
:param query:
:param routing: Specific routing value
:param source: True or false to return the _source field or not, or a list of
fields to return
:param source_excludes: A list of fields to exclude from the returned _source
field
:param source_includes: A list of fields to extract and return from the _source
field
:param stored_fields: A comma-separated list of stored fields to return in the
response
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_explain/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if analyze_wildcard is not None:
__query["analyze_wildcard"] = analyze_wildcard
if analyzer is not None:
__query["analyzer"] = analyzer
if default_operator is not None:
__query["default_operator"] = default_operator
if df is not None:
__query["df"] = df
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if lenient is not None:
__query["lenient"] = lenient
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if q is not None:
__query["q"] = q
if query is not None:
__body["query"] = query
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stored_fields is not None:
__query["stored_fields"] = stored_fields
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def field_caps(
self,
*,
fields: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
allow_no_indices: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
filters: t.Optional[str] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
include_unmapped: t.Optional[bool] = None,
index_filter: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
runtime_mappings: t.Optional[
t.Mapping[
str,
t.Union[
t.Mapping[str, t.Any],
t.Union[
t.List[t.Mapping[str, t.Any]],
t.Tuple[t.Mapping[str, t.Any], ...],
],
],
]
] = None,
types: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns the information about the capabilities of fields among multiple indices.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html>`_
:param fields: Comma-separated list of fields to retrieve capabilities for. Wildcard
(`*`) expressions are supported.
:param index: Comma-separated list of data streams, indices, and aliases used
to limit the request. Supports wildcards (*). To target all data streams
and indices, omit this parameter or use * or _all.
:param allow_no_indices: If false, the request returns an error if any wildcard
expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices. For
example, a request targeting `foo*,bar*` returns an error if an index starts
with foo but no index starts with bar.
:param expand_wildcards: Type of index that wildcard patterns can match. If the
request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such
as `open,hidden`.
:param filters: An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent
:param ignore_unavailable: If `true`, missing or closed indices are not included
in the response.
:param include_unmapped: If true, unmapped fields are included in the response.
:param index_filter: Allows to filter indices if the provided query rewrites
to match_none on every shard.
:param runtime_mappings: Defines ad-hoc runtime fields in the request similar
to the way it is done in search requests. These fields exist only as part
of the query and take precedence over fields defined with the same name in
the index mappings.
:param types: Only return results for fields that have one of the types in the
list
"""
if fields is None:
raise ValueError("Empty value passed for parameter 'fields'")
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_field_caps"
else:
__path = "/_field_caps"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if fields is not None:
__query["fields"] = fields
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if filters is not None:
__query["filters"] = filters
if human is not None:
__query["human"] = human
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if include_unmapped is not None:
__query["include_unmapped"] = include_unmapped
if index_filter is not None:
__body["index_filter"] = index_filter
if pretty is not None:
__query["pretty"] = pretty
if runtime_mappings is not None:
__body["runtime_mappings"] = runtime_mappings
if types is not None:
__query["types"] = types
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def get(
self,
*,
index: str,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns a document.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html>`_
:param index: Name of the index that contains the document.
:param id: Unique identifier of the document.
:param preference: Specifies the node or shard the operation should be performed
on. Random by default.
:param realtime: Boolean) If true, the request is real-time as opposed to near-real-time.
:param refresh: If true, Elasticsearch refreshes the affected shards to make
this operation visible to search. If false, do nothing with refreshes.
:param routing: Target the specified primary shard.
:param source: True or false to return the _source field or not, or a list of
fields to return.
:param source_excludes: A comma-separated list of source fields to exclude in
the response.
:param source_includes: A comma-separated list of source fields to include in
the response.
:param stored_fields: A comma-separated list of stored fields to return in the
response
:param version: Explicit version number for concurrency control. The specified
version must match the current version of the document for the request to
succeed.
:param version_type: Specific version type: internal, external, external_gte.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_doc/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stored_fields is not None:
__query["stored_fields"] = stored_fields
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters()
def get_script(
self,
*,
id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
master_timeout: t.Optional[t.Union[int, str]] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns a script.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html>`_
:param id: Script ID
:param master_timeout: Specify timeout for connection to master
"""
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/_scripts/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if master_timeout is not None:
__query["master_timeout"] = master_timeout
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters()
def get_script_context(
self,
*,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns all script contexts.
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html>`_
"""
__path = "/_script_context"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters()
def get_script_languages(
self,
*,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns available script types, languages and contexts
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html>`_
"""
__path = "/_script_language"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def get_source(
self,
*,
index: str,
id: str,
preference: t.Optional[str] = None,
realtime: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns the source of a document.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html>`_
:param index: Name of the index that contains the document.
:param id: Unique identifier of the document.
:param preference: Specifies the node or shard the operation should be performed
on. Random by default.
:param realtime: Boolean) If true, the request is real-time as opposed to near-real-time.
:param refresh: If true, Elasticsearch refreshes the affected shards to make
this operation visible to search. If false, do nothing with refreshes.
:param routing: Target the specified primary shard.
:param source: True or false to return the _source field or not, or a list of
fields to return.
:param source_excludes: A comma-separated list of source fields to exclude in
the response.
:param source_includes: A comma-separated list of source fields to include in
the response.
:param stored_fields:
:param version: Explicit version number for concurrency control. The specified
version must match the current version of the document for the request to
succeed.
:param version_type: Specific version type: internal, external, external_gte.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_source/{_quote(id)}"
__query: t.Dict[str, t.Any] = {}
if preference is not None:
__query["preference"] = preference
if realtime is not None:
__query["realtime"] = realtime
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stored_fields is not None:
__query["stored_fields"] = stored_fields
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_name="document",
)
def index(
self,
*,
index: str,
document: t.Mapping[str, t.Any],
id: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
if_primary_term: t.Optional[int] = None,
if_seq_no: t.Optional[int] = None,
op_type: t.Optional[t.Union["t.Literal['create', 'index']", str]] = None,
pipeline: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
require_alias: t.Optional[bool] = None,
routing: t.Optional[str] = None,
timeout: t.Optional[t.Union[int, str]] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Creates or updates a document in an index.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html>`_
:param index: The name of the index
:param document:
:param id: Document ID
:param if_primary_term: only perform the index operation if the last operation
that has changed the document has the specified primary term
:param if_seq_no: only perform the index operation if the last operation that
has changed the document has the specified sequence number
:param op_type: Explicit operation type. Defaults to `index` for requests with
an explicit document ID, and to `create`for requests without an explicit
document ID
:param pipeline: The pipeline id to preprocess incoming documents with
:param refresh: If `true` then refresh the affected shards to make this operation
visible to search, if `wait_for` then wait for a refresh to make this operation
visible to search, if `false` (the default) then do nothing with refreshes.
:param require_alias: When true, requires destination to be an alias. Default
is false
:param routing: Specific routing value
:param timeout: Explicit operation timeout
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the index operation. Defaults to 1, meaning the primary
shard only. Set to `all` for all shard copies, otherwise set to any non-negative
value less than or equal to the total number of copies for the shard (number
of replicas + 1)
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if document is None:
raise ValueError("Empty value passed for parameter 'document'")
if index not in SKIP_IN_PATH and id not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_doc/{_quote(id)}"
__method = "PUT"
elif index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_doc"
__method = "POST"
else:
raise ValueError("Couldn't find a path for the given parameters")
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if if_primary_term is not None:
__query["if_primary_term"] = if_primary_term
if if_seq_no is not None:
__query["if_seq_no"] = if_seq_no
if op_type is not None:
__query["op_type"] = op_type
if pipeline is not None:
__query["pipeline"] = pipeline
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if require_alias is not None:
__query["require_alias"] = require_alias
if routing is not None:
__query["routing"] = routing
if timeout is not None:
__query["timeout"] = timeout
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
__body = document
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
__method, __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def info(
self,
*,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns basic information about the cluster.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/index.html>`_
"""
__path = "/"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"GET", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={"_source": "source"},
)
def knn_search(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
knn: t.Mapping[str, t.Any],
docvalue_fields: t.Optional[
t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
] = None,
error_trace: t.Optional[bool] = None,
fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[t.Union[bool, t.Mapping[str, t.Any]]] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Performs a kNN search.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html>`_
:param index: A comma-separated list of index names to search; use `_all` or
to perform the operation on all indices
:param knn: kNN query to execute
:param docvalue_fields: The request returns doc values for field names matching
these patterns in the hits.fields property of the response. Accepts wildcard
(*) patterns.
:param fields: The request returns values for field names matching these patterns
in the hits.fields property of the response. Accepts wildcard (*) patterns.
:param routing: A comma-separated list of specific routing values
:param source: Indicates which source fields are returned for matching documents.
These fields are returned in the hits._source property of the search response.
:param stored_fields: List of stored fields to return as part of a hit. If no
fields are specified, no stored fields are included in the response. If this
field is specified, the _source parameter defaults to false. You can pass
_source: true to return both source fields and stored fields in the search
response.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if knn is None:
raise ValueError("Empty value passed for parameter 'knn'")
__path = f"/{_quote(index)}/_knn_search"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if knn is not None:
__body["knn"] = knn
if docvalue_fields is not None:
__body["docvalue_fields"] = docvalue_fields
if error_trace is not None:
__query["error_trace"] = error_trace
if fields is not None:
__body["fields"] = fields
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if routing is not None:
__query["routing"] = routing
if source is not None:
__body["_source"] = source
if stored_fields is not None:
__body["stored_fields"] = stored_fields
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def mget(
self,
*,
index: t.Optional[str] = None,
docs: t.Optional[
t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ids: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
routing: t.Optional[str] = None,
source: t.Optional[
t.Union[bool, t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]]
] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to get multiple documents in one request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html>`_
:param index: Name of the index to retrieve documents from when `ids` are specified,
or when a document in the `docs` array does not specify an index.
:param docs: The documents you want to retrieve. Required if no index is specified
in the request URI.
:param ids: The IDs of the documents you want to retrieve. Allowed when the index
is specified in the request URI.
:param preference: Specifies the node or shard the operation should be performed
on. Random by default.
:param realtime: If `true`, the request is real-time as opposed to near-real-time.
:param refresh: If `true`, the request refreshes relevant shards before retrieving
documents.
:param routing: Custom value used to route operations to a specific shard.
:param source: True or false to return the `_source` field or not, or a list
of fields to return.
:param source_excludes: A comma-separated list of source fields to exclude from
the response. You can also use this parameter to exclude fields from the
subset specified in `_source_includes` query parameter.
:param source_includes: A comma-separated list of source fields to include in
the response. If this parameter is specified, only these source fields are
returned. You can exclude fields from this subset using the `_source_excludes`
query parameter. If the `_source` parameter is `false`, this parameter is
ignored.
:param stored_fields: If `true`, retrieves the document fields stored in the
index rather than the document `_source`.
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_mget"
else:
__path = "/_mget"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if docs is not None:
__body["docs"] = docs
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ids is not None:
__body["ids"] = ids
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if refresh is not None:
__query["refresh"] = refresh
if routing is not None:
__query["routing"] = routing
if source is not None:
__query["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stored_fields is not None:
__query["stored_fields"] = stored_fields
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_name="searches",
)
def msearch(
self,
*,
searches: t.Union[
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
],
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
allow_no_indices: t.Optional[bool] = None,
ccs_minimize_roundtrips: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
max_concurrent_searches: t.Optional[int] = None,
max_concurrent_shard_requests: t.Optional[int] = None,
pre_filter_shard_size: t.Optional[int] = None,
pretty: t.Optional[bool] = None,
rest_total_hits_as_int: t.Optional[bool] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
typed_keys: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to execute several search operations in one request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
:param searches:
:param index: Comma-separated list of data streams, indices, and index aliases
to search.
:param allow_no_indices: If false, the request returns an error if any wildcard
expression, index alias, or _all value targets only missing or closed indices.
This behavior applies even if the request targets other open indices. For
example, a request targeting foo*,bar* returns an error if an index starts
with foo but no index starts with bar.
:param ccs_minimize_roundtrips: If true, network roundtrips between the coordinating
node and remote clusters are minimized for cross-cluster search requests.
:param expand_wildcards: Type of index that wildcard expressions can match. If
the request can target data streams, this argument determines whether wildcard
expressions match hidden data streams.
:param ignore_throttled: If true, concrete, expanded or aliased indices are ignored
when frozen.
:param ignore_unavailable: If true, missing or closed indices are not included
in the response.
:param max_concurrent_searches: Maximum number of concurrent searches the multi
search API can execute.
:param max_concurrent_shard_requests: Maximum number of concurrent shard requests
that each sub-search request executes per node.
:param pre_filter_shard_size: Defines a threshold that enforces a pre-filter
roundtrip to prefilter search shards based on query rewriting if the number
of shards the search request expands to exceeds the threshold. This filter
roundtrip can limit the number of shards significantly if for instance a
shard can not match any documents based on its rewrite method i.e., if date
filters are mandatory to match but the shard bounds and the query are disjoint.
:param rest_total_hits_as_int: If true, hits.total are returned as an integer
in the response. Defaults to false, which returns an object.
:param search_type: Indicates whether global term and document frequencies should
be used when scoring returned documents.
:param typed_keys: Specifies whether aggregation and suggester names should be
prefixed by their respective types in the response.
"""
if searches is None:
raise ValueError("Empty value passed for parameter 'searches'")
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_msearch"
else:
__path = "/_msearch"
__query: t.Dict[str, t.Any] = {}
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if ccs_minimize_roundtrips is not None:
__query["ccs_minimize_roundtrips"] = ccs_minimize_roundtrips
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if max_concurrent_searches is not None:
__query["max_concurrent_searches"] = max_concurrent_searches
if max_concurrent_shard_requests is not None:
__query["max_concurrent_shard_requests"] = max_concurrent_shard_requests
if pre_filter_shard_size is not None:
__query["pre_filter_shard_size"] = pre_filter_shard_size
if pretty is not None:
__query["pretty"] = pretty
if rest_total_hits_as_int is not None:
__query["rest_total_hits_as_int"] = rest_total_hits_as_int
if search_type is not None:
__query["search_type"] = search_type
if typed_keys is not None:
__query["typed_keys"] = typed_keys
__body = searches
__headers = {
"accept": "application/json",
"content-type": "application/x-ndjson",
}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_name="search_templates",
)
def msearch_template(
self,
*,
search_templates: t.Union[
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
],
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
ccs_minimize_roundtrips: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
max_concurrent_searches: t.Optional[int] = None,
pretty: t.Optional[bool] = None,
rest_total_hits_as_int: t.Optional[bool] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
typed_keys: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to execute several search template operations in one request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html>`_
:param search_templates:
:param index: A comma-separated list of index names to use as default
:param ccs_minimize_roundtrips: Indicates whether network round-trips should
be minimized as part of cross-cluster search requests execution
:param max_concurrent_searches: Controls the maximum number of concurrent searches
the multi search api will execute
:param rest_total_hits_as_int: Indicates whether hits.total should be rendered
as an integer or an object in the rest search response
:param search_type: Search operation type
:param typed_keys: Specify whether aggregation and suggester names should be
prefixed by their respective types in the response
"""
if search_templates is None:
raise ValueError("Empty value passed for parameter 'search_templates'")
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_msearch/template"
else:
__path = "/_msearch/template"
__query: t.Dict[str, t.Any] = {}
if ccs_minimize_roundtrips is not None:
__query["ccs_minimize_roundtrips"] = ccs_minimize_roundtrips
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if max_concurrent_searches is not None:
__query["max_concurrent_searches"] = max_concurrent_searches
if pretty is not None:
__query["pretty"] = pretty
if rest_total_hits_as_int is not None:
__query["rest_total_hits_as_int"] = rest_total_hits_as_int
if search_type is not None:
__query["search_type"] = search_type
if typed_keys is not None:
__query["typed_keys"] = typed_keys
__body = search_templates
__headers = {
"accept": "application/json",
"content-type": "application/x-ndjson",
}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def mtermvectors(
self,
*,
index: t.Optional[str] = None,
docs: t.Optional[
t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
] = None,
error_trace: t.Optional[bool] = None,
field_statistics: t.Optional[bool] = None,
fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ids: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
offsets: t.Optional[bool] = None,
payloads: t.Optional[bool] = None,
positions: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
routing: t.Optional[str] = None,
term_statistics: t.Optional[bool] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns multiple termvectors in one request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html>`_
:param index: The index in which the document resides.
:param docs:
:param field_statistics: Specifies if document count, sum of document frequencies
and sum of total term frequencies should be returned. Applies to all returned
documents unless otherwise specified in body "params" or "docs".
:param fields: A comma-separated list of fields to return. Applies to all returned
documents unless otherwise specified in body "params" or "docs".
:param ids:
:param offsets: Specifies if term offsets should be returned. Applies to all
returned documents unless otherwise specified in body "params" or "docs".
:param payloads: Specifies if term payloads should be returned. Applies to all
returned documents unless otherwise specified in body "params" or "docs".
:param positions: Specifies if term positions should be returned. Applies to
all returned documents unless otherwise specified in body "params" or "docs".
:param preference: Specify the node or shard the operation should be performed
on (default: random) .Applies to all returned documents unless otherwise
specified in body "params" or "docs".
:param realtime: Specifies if requests are real-time as opposed to near-real-time
(default: true).
:param routing: Specific routing value. Applies to all returned documents unless
otherwise specified in body "params" or "docs".
:param term_statistics: Specifies if total term frequency and document frequency
should be returned. Applies to all returned documents unless otherwise specified
in body "params" or "docs".
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_mtermvectors"
else:
__path = "/_mtermvectors"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if docs is not None:
__body["docs"] = docs
if error_trace is not None:
__query["error_trace"] = error_trace
if field_statistics is not None:
__query["field_statistics"] = field_statistics
if fields is not None:
__query["fields"] = fields
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ids is not None:
__body["ids"] = ids
if offsets is not None:
__query["offsets"] = offsets
if payloads is not None:
__query["payloads"] = payloads
if positions is not None:
__query["positions"] = positions
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if routing is not None:
__query["routing"] = routing
if term_statistics is not None:
__query["term_statistics"] = term_statistics
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def open_point_in_time(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
keep_alive: t.Union[int, str],
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Open a point in time that can be used in subsequent searches
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html>`_
:param index: A comma-separated list of index names to open point in time; use
`_all` or empty string to perform the operation on all indices
:param keep_alive: Specific the time to live for the point in time
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if keep_alive is None:
raise ValueError("Empty value passed for parameter 'keep_alive'")
__path = f"/{_quote(index)}/_pit"
__query: t.Dict[str, t.Any] = {}
if keep_alive is not None:
__query["keep_alive"] = keep_alive
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
)
def put_script(
self,
*,
id: str,
script: t.Mapping[str, t.Any],
context: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
master_timeout: t.Optional[t.Union[int, str]] = None,
pretty: t.Optional[bool] = None,
timeout: t.Optional[t.Union[int, str]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Creates or updates a script.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html>`_
:param id: Script ID
:param script:
:param context: Script context
:param master_timeout: Specify timeout for connection to master
:param timeout: Explicit operation timeout
"""
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
if script is None:
raise ValueError("Empty value passed for parameter 'script'")
if id not in SKIP_IN_PATH and context not in SKIP_IN_PATH:
__path = f"/_scripts/{_quote(id)}/{_quote(context)}"
elif id not in SKIP_IN_PATH:
__path = f"/_scripts/{_quote(id)}"
else:
raise ValueError("Couldn't find a path for the given parameters")
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if script is not None:
__body["script"] = script
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if master_timeout is not None:
__query["master_timeout"] = master_timeout
if pretty is not None:
__query["pretty"] = pretty
if timeout is not None:
__query["timeout"] = timeout
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"PUT", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def rank_eval(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
requests: t.Union[
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
],
allow_no_indices: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
metric: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
search_type: t.Optional[str] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to evaluate the quality of ranked search results over a set of typical
search queries
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html>`_
:param index: Comma-separated list of data streams, indices, and index aliases
used to limit the request. Wildcard (`*`) expressions are supported. To target
all data streams and indices in a cluster, omit this parameter or use `_all`
or `*`.
:param requests: A set of typical search requests, together with their provided
ratings.
:param allow_no_indices: If `false`, the request returns an error if any wildcard
expression, index alias, or `_all` value targets only missing or closed indices.
This behavior applies even if the request targets other open indices. For
example, a request targeting `foo*,bar*` returns an error if an index starts
with `foo` but no index starts with `bar`.
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param ignore_unavailable: If `true`, missing or closed indices are not included
in the response.
:param metric: Definition of the evaluation metric to calculate.
:param search_type: Search operation type
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if requests is None:
raise ValueError("Empty value passed for parameter 'requests'")
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_rank_eval"
else:
__path = "/_rank_eval"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if requests is not None:
__body["requests"] = requests
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if metric is not None:
__body["metric"] = metric
if pretty is not None:
__query["pretty"] = pretty
if search_type is not None:
__query["search_type"] = search_type
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def reindex(
self,
*,
dest: t.Mapping[str, t.Any],
source: t.Mapping[str, t.Any],
conflicts: t.Optional[t.Union["t.Literal['abort', 'proceed']", str]] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
max_docs: t.Optional[int] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
require_alias: t.Optional[bool] = None,
script: t.Optional[t.Mapping[str, t.Any]] = None,
scroll: t.Optional[t.Union[int, str]] = None,
size: t.Optional[int] = None,
slices: t.Optional[int] = None,
timeout: t.Optional[t.Union[int, str]] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
wait_for_completion: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to copy documents from one index to another, optionally filtering the
source documents by a query, changing the destination index settings, or fetching
the documents from a remote cluster.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html>`_
:param dest:
:param source:
:param conflicts:
:param max_docs:
:param refresh: Should the affected indexes be refreshed?
:param requests_per_second: The throttle to set on this request in sub-requests
per second. -1 means no throttle.
:param require_alias:
:param script:
:param scroll: Control how long to keep the search context alive
:param size:
:param slices: The number of slices this task should be divided into. Defaults
to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.
:param timeout: Time each individual bulk request should wait for shards that
are unavailable.
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the reindex operation. Defaults to 1, meaning the
primary shard only. Set to `all` for all shard copies, otherwise set to any
non-negative value less than or equal to the total number of copies for the
shard (number of replicas + 1)
:param wait_for_completion: Should the request should block until the reindex
is complete.
"""
if dest is None:
raise ValueError("Empty value passed for parameter 'dest'")
if source is None:
raise ValueError("Empty value passed for parameter 'source'")
__path = "/_reindex"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if dest is not None:
__body["dest"] = dest
if source is not None:
__body["source"] = source
if conflicts is not None:
__body["conflicts"] = conflicts
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if max_docs is not None:
__body["max_docs"] = max_docs
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
if require_alias is not None:
__query["require_alias"] = require_alias
if script is not None:
__body["script"] = script
if scroll is not None:
__query["scroll"] = scroll
if size is not None:
__body["size"] = size
if slices is not None:
__query["slices"] = slices
if timeout is not None:
__query["timeout"] = timeout
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
if wait_for_completion is not None:
__query["wait_for_completion"] = wait_for_completion
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def reindex_rethrottle(
self,
*,
task_id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
) -> ObjectApiResponse[t.Any]:
"""
Changes the number of requests per second for a particular Reindex operation.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html>`_
:param task_id: The task id to rethrottle
:param requests_per_second: The throttle to set on this request in floating sub-requests
per second. -1 means set no throttle.
"""
if task_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'task_id'")
__path = f"/_reindex/{_quote(task_id)}/_rethrottle"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
ignore_deprecated_options={"params"},
)
def render_search_template(
self,
*,
id: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
file: t.Optional[str] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
params: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
source: t.Optional[str] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to use the Mustache language to pre-render a search definition.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/render-search-template-api.html>`_
:param id: The id of the stored search template
:param file:
:param params:
:param source:
"""
if id not in SKIP_IN_PATH:
__path = f"/_render/template/{_quote(id)}"
else:
__path = "/_render/template"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if file is not None:
__body["file"] = file
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if params is not None:
__body["params"] = params
if pretty is not None:
__query["pretty"] = pretty
if source is not None:
__body["source"] = source
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def scripts_painless_execute(
self,
*,
context: t.Optional[str] = None,
context_setup: t.Optional[t.Mapping[str, t.Any]] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
script: t.Optional[t.Mapping[str, t.Any]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows an arbitrary script to be executed and a result to be returned
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html>`_
:param context:
:param context_setup:
:param script:
"""
__path = "/_scripts/painless/_execute"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if context is not None:
__body["context"] = context
if context_setup is not None:
__body["context_setup"] = context_setup
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if script is not None:
__body["script"] = script
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def scroll(
self,
*,
scroll_id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
rest_total_hits_as_int: t.Optional[bool] = None,
scroll: t.Optional[t.Union[int, str]] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to retrieve a large numbers of results from a single search request.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll>`_
:param scroll_id: Scroll ID of the search.
:param rest_total_hits_as_int: If true, the API response’s hit.total property
is returned as an integer. If false, the API response’s hit.total property
is returned as an object.
:param scroll: Period to retain the search context for scrolling.
"""
if scroll_id is None:
raise ValueError("Empty value passed for parameter 'scroll_id'")
__path = "/_search/scroll"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if scroll_id is not None:
__body["scroll_id"] = scroll_id
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if rest_total_hits_as_int is not None:
__query["rest_total_hits_as_int"] = rest_total_hits_as_int
if scroll is not None:
__body["scroll"] = scroll
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
"from": "from_",
},
)
def search(
self,
*,
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
aggregations: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
aggs: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
allow_no_indices: t.Optional[bool] = None,
allow_partial_search_results: t.Optional[bool] = None,
analyze_wildcard: t.Optional[bool] = None,
analyzer: t.Optional[str] = None,
batched_reduce_size: t.Optional[int] = None,
ccs_minimize_roundtrips: t.Optional[bool] = None,
collapse: t.Optional[t.Mapping[str, t.Any]] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
df: t.Optional[str] = None,
docvalue_fields: t.Optional[
t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
explain: t.Optional[bool] = None,
fields: t.Optional[
t.Union[t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
from_: t.Optional[int] = None,
highlight: t.Optional[t.Mapping[str, t.Any]] = None,
human: t.Optional[bool] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
indices_boost: t.Optional[
t.Union[t.List[t.Mapping[str, float]], t.Tuple[t.Mapping[str, float], ...]]
] = None,
lenient: t.Optional[bool] = None,
max_concurrent_shard_requests: t.Optional[int] = None,
min_compatible_shard_node: t.Optional[str] = None,
min_score: t.Optional[float] = None,
pit: t.Optional[t.Mapping[str, t.Any]] = None,
post_filter: t.Optional[t.Mapping[str, t.Any]] = None,
pre_filter_shard_size: t.Optional[int] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
profile: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
request_cache: t.Optional[bool] = None,
rescore: t.Optional[
t.Union[
t.Mapping[str, t.Any],
t.Union[
t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
],
]
] = None,
rest_total_hits_as_int: t.Optional[bool] = None,
routing: t.Optional[str] = None,
runtime_mappings: t.Optional[
t.Mapping[
str,
t.Union[
t.Mapping[str, t.Any],
t.Union[
t.List[t.Mapping[str, t.Any]],
t.Tuple[t.Mapping[str, t.Any], ...],
],
],
]
] = None,
script_fields: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
scroll: t.Optional[t.Union[int, str]] = None,
search_after: t.Optional[
t.Union[
t.List[t.Union[None, float, int, str]],
t.Tuple[t.Union[None, float, int, str], ...],
]
] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
seq_no_primary_term: t.Optional[bool] = None,
size: t.Optional[int] = None,
slice: t.Optional[t.Mapping[str, t.Any]] = None,
sort: t.Optional[
t.Union[
t.Union[str, t.Mapping[str, t.Any]],
t.Union[
t.List[t.Union[str, t.Mapping[str, t.Any]]],
t.Tuple[t.Union[str, t.Mapping[str, t.Any]], ...],
],
]
] = None,
source: t.Optional[t.Union[bool, t.Mapping[str, t.Any]]] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
stats: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
stored_fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
suggest: t.Optional[t.Mapping[str, t.Any]] = None,
suggest_field: t.Optional[str] = None,
suggest_mode: t.Optional[
t.Union["t.Literal['always', 'missing', 'popular']", str]
] = None,
suggest_size: t.Optional[int] = None,
suggest_text: t.Optional[str] = None,
terminate_after: t.Optional[int] = None,
timeout: t.Optional[str] = None,
track_scores: t.Optional[bool] = None,
track_total_hits: t.Optional[t.Union[bool, int]] = None,
typed_keys: t.Optional[bool] = None,
version: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns results matching a query.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html>`_
:param index: A comma-separated list of index names to search; use `_all` or
empty string to perform the operation on all indices
:param aggregations:
:param aggs:
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param allow_partial_search_results: Indicate if an error should be returned
if there is a partial search failure or timeout
:param analyze_wildcard: Specify whether wildcard and prefix queries should be
analyzed (default: false)
:param analyzer: The analyzer to use for the query string
:param batched_reduce_size: The number of shard results that should be reduced
at once on the coordinating node. This value should be used as a protection
mechanism to reduce the memory overhead per search request if the potential
number of shards in the request can be large.
:param ccs_minimize_roundtrips: Indicates whether network round-trips should
be minimized as part of cross-cluster search requests execution
:param collapse:
:param default_operator: The default operator for query string query (AND or
OR)
:param df: The field to use as default where no field prefix is given in the
query string
:param docvalue_fields: Array of wildcard (*) patterns. The request returns doc
values for field names matching these patterns in the hits.fields property
of the response.
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param explain: If true, returns detailed information about score computation
as part of a hit.
:param fields: Array of wildcard (*) patterns. The request returns values for
field names matching these patterns in the hits.fields property of the response.
:param from_: Starting document offset. By default, you cannot page through more
than 10,000 hits using the from and size parameters. To page through more
hits, use the search_after parameter.
:param highlight:
:param ignore_throttled: Whether specified concrete, expanded or aliased indices
should be ignored when throttled
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param indices_boost: Boosts the _score of documents from specified indices.
:param lenient: Specify whether format-based query failures (such as providing
text to a numeric field) should be ignored
:param max_concurrent_shard_requests: The number of concurrent shard requests
per node this search executes concurrently. This value should be used to
limit the impact of the search on the cluster in order to limit the number
of concurrent shard requests
:param min_compatible_shard_node: The minimum compatible version that all shards
involved in search should have for this request to be successful
:param min_score: Minimum _score for matching documents. Documents with a lower
_score are not included in the search results.
:param pit: Limits the search to a point in time (PIT). If you provide a PIT,
you cannot specify an <index> in the request path.
:param post_filter:
:param pre_filter_shard_size: A threshold that enforces a pre-filter roundtrip
to prefilter search shards based on query rewriting if the number of shards
the search request expands to exceeds the threshold. This filter roundtrip
can limit the number of shards significantly if for instance a shard can
not match any documents based on its rewrite method ie. if date filters are
mandatory to match but the shard bounds and the query are disjoint.
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param profile:
:param q: Query in the Lucene query string syntax
:param query: Defines the search definition using the Query DSL.
:param request_cache: Specify if request cache should be used for this request
or not, defaults to index level setting
:param rescore:
:param rest_total_hits_as_int: Indicates whether hits.total should be rendered
as an integer or an object in the rest search response
:param routing: A comma-separated list of specific routing values
:param runtime_mappings: Defines one or more runtime fields in the search request.
These fields take precedence over mapped fields with the same name.
:param script_fields: Retrieve a script evaluation (based on different fields)
for each hit.
:param scroll: Specify how long a consistent view of the index should be maintained
for scrolled search
:param search_after:
:param search_type: Search operation type
:param seq_no_primary_term: If true, returns sequence number and primary term
of the last modification of each hit. See Optimistic concurrency control.
:param size: The number of hits to return. By default, you cannot page through
more than 10,000 hits using the from and size parameters. To page through
more hits, use the search_after parameter.
:param slice:
:param sort:
:param source: Indicates which source fields are returned for matching documents.
These fields are returned in the hits._source property of the search response.
:param source_excludes: A list of fields to exclude from the returned _source
field
:param source_includes: A list of fields to extract and return from the _source
field
:param stats: Stats groups to associate with the search. Each group maintains
a statistics aggregation for its associated searches. You can retrieve these
stats using the indices stats API.
:param stored_fields: List of stored fields to return as part of a hit. If no
fields are specified, no stored fields are included in the response. If this
field is specified, the _source parameter defaults to false. You can pass
_source: true to return both source fields and stored fields in the search
response.
:param suggest:
:param suggest_field: Specifies which field to use for suggestions.
:param suggest_mode: Specify suggest mode
:param suggest_size: How many suggestions to return in response
:param suggest_text: The source text for which the suggestions should be returned.
:param terminate_after: Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting. Defaults to 0, which does
not terminate query execution early.
:param timeout: Specifies the period of time to wait for a response from each
shard. If no response is received before the timeout expires, the request
fails and returns an error. Defaults to no timeout.
:param track_scores: If true, calculate and return document scores, even if the
scores are not used for sorting.
:param track_total_hits: Number of hits matching the query to count accurately.
If true, the exact number of hits is returned at the cost of some performance.
If false, the response does not include the total number of hits matching
the query. Defaults to 10,000 hits.
:param typed_keys: Specify whether aggregation and suggester names should be
prefixed by their respective types in the response
:param version: If true, returns document version as part of a hit.
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_search"
else:
__path = "/_search"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
# The 'sort' parameter with a colon can't be encoded to the body.
if sort is not None and (
(isinstance(sort, str) and ":" in sort)
or (
isinstance(sort, (list, tuple))
and all(isinstance(_x, str) for _x in sort)
and any(":" in _x for _x in sort)
)
):
__query["sort"] = sort
sort = None
if aggregations is not None:
__body["aggregations"] = aggregations
if aggs is not None:
__body["aggs"] = aggs
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if allow_partial_search_results is not None:
__query["allow_partial_search_results"] = allow_partial_search_results
if analyze_wildcard is not None:
__query["analyze_wildcard"] = analyze_wildcard
if analyzer is not None:
__query["analyzer"] = analyzer
if batched_reduce_size is not None:
__query["batched_reduce_size"] = batched_reduce_size
if ccs_minimize_roundtrips is not None:
__query["ccs_minimize_roundtrips"] = ccs_minimize_roundtrips
if collapse is not None:
__body["collapse"] = collapse
if default_operator is not None:
__query["default_operator"] = default_operator
if df is not None:
__query["df"] = df
if docvalue_fields is not None:
__body["docvalue_fields"] = docvalue_fields
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if explain is not None:
__body["explain"] = explain
if fields is not None:
__body["fields"] = fields
if filter_path is not None:
__query["filter_path"] = filter_path
if from_ is not None:
__body["from"] = from_
if highlight is not None:
__body["highlight"] = highlight
if human is not None:
__query["human"] = human
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if indices_boost is not None:
__body["indices_boost"] = indices_boost
if lenient is not None:
__query["lenient"] = lenient
if max_concurrent_shard_requests is not None:
__query["max_concurrent_shard_requests"] = max_concurrent_shard_requests
if min_compatible_shard_node is not None:
__query["min_compatible_shard_node"] = min_compatible_shard_node
if min_score is not None:
__body["min_score"] = min_score
if pit is not None:
__body["pit"] = pit
if post_filter is not None:
__body["post_filter"] = post_filter
if pre_filter_shard_size is not None:
__query["pre_filter_shard_size"] = pre_filter_shard_size
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if profile is not None:
__body["profile"] = profile
if q is not None:
__query["q"] = q
if query is not None:
__body["query"] = query
if request_cache is not None:
__query["request_cache"] = request_cache
if rescore is not None:
__body["rescore"] = rescore
if rest_total_hits_as_int is not None:
__query["rest_total_hits_as_int"] = rest_total_hits_as_int
if routing is not None:
__query["routing"] = routing
if runtime_mappings is not None:
__body["runtime_mappings"] = runtime_mappings
if script_fields is not None:
__body["script_fields"] = script_fields
if scroll is not None:
__query["scroll"] = scroll
if search_after is not None:
__body["search_after"] = search_after
if search_type is not None:
__query["search_type"] = search_type
if seq_no_primary_term is not None:
__body["seq_no_primary_term"] = seq_no_primary_term
if size is not None:
__body["size"] = size
if slice is not None:
__body["slice"] = slice
if sort is not None:
__body["sort"] = sort
if source is not None:
__body["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if stats is not None:
__body["stats"] = stats
if stored_fields is not None:
__body["stored_fields"] = stored_fields
if suggest is not None:
__body["suggest"] = suggest
if suggest_field is not None:
__query["suggest_field"] = suggest_field
if suggest_mode is not None:
__query["suggest_mode"] = suggest_mode
if suggest_size is not None:
__query["suggest_size"] = suggest_size
if suggest_text is not None:
__query["suggest_text"] = suggest_text
if terminate_after is not None:
__body["terminate_after"] = terminate_after
if timeout is not None:
__body["timeout"] = timeout
if track_scores is not None:
__body["track_scores"] = track_scores
if track_total_hits is not None:
__body["track_total_hits"] = track_total_hits
if typed_keys is not None:
__query["typed_keys"] = typed_keys
if version is not None:
__body["version"] = version
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def search_mvt(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
field: str,
zoom: int,
x: int,
y: int,
aggs: t.Optional[t.Mapping[str, t.Mapping[str, t.Any]]] = None,
error_trace: t.Optional[bool] = None,
exact_bounds: t.Optional[bool] = None,
extent: t.Optional[int] = None,
fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
grid_precision: t.Optional[int] = None,
grid_type: t.Optional[
t.Union["t.Literal['centroid', 'grid', 'point']", str]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
runtime_mappings: t.Optional[
t.Mapping[
str,
t.Union[
t.Mapping[str, t.Any],
t.Union[
t.List[t.Mapping[str, t.Any]],
t.Tuple[t.Mapping[str, t.Any], ...],
],
],
]
] = None,
size: t.Optional[int] = None,
sort: t.Optional[
t.Union[
t.Union[str, t.Mapping[str, t.Any]],
t.Union[
t.List[t.Union[str, t.Mapping[str, t.Any]]],
t.Tuple[t.Union[str, t.Mapping[str, t.Any]], ...],
],
]
] = None,
track_total_hits: t.Optional[t.Union[bool, int]] = None,
) -> BinaryApiResponse:
"""
Searches a vector tile for geospatial values. Returns results as a binary Mapbox
vector tile.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html>`_
:param index: Comma-separated list of data streams, indices, or aliases to search
:param field: Field containing geospatial data to return
:param zoom: Zoom level for the vector tile to search
:param x: X coordinate for the vector tile to search
:param y: Y coordinate for the vector tile to search
:param aggs: Sub-aggregations for the geotile_grid. Supports the following aggregation
types: - avg - cardinality - max - min - sum
:param exact_bounds: If false, the meta layer’s feature is the bounding box of
the tile. If true, the meta layer’s feature is a bounding box resulting from
a geo_bounds aggregation. The aggregation runs on <field> values that intersect
the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting bounding
box may be larger than the vector tile.
:param extent: Size, in pixels, of a side of the tile. Vector tiles are square
with equal sides.
:param fields: Fields to return in the `hits` layer. Supports wildcards (`*`).
This parameter does not support fields with array values. Fields with array
values may return inconsistent results.
:param grid_precision: Additional zoom levels available through the aggs layer.
For example, if <zoom> is 7 and grid_precision is 8, you can zoom in up to
level 15. Accepts 0-8. If 0, results don’t include the aggs layer.
:param grid_type: Determines the geometry type for features in the aggs layer.
In the aggs layer, each feature represents a geotile_grid cell. If 'grid'
each feature is a Polygon of the cells bounding box. If 'point' each feature
is a Point that is the centroid of the cell.
:param query: Query DSL used to filter documents for the search.
:param runtime_mappings: Defines one or more runtime fields in the search request.
These fields take precedence over mapped fields with the same name.
:param size: Maximum number of features to return in the hits layer. Accepts
0-10000. If 0, results don’t include the hits layer.
:param sort: Sorts features in the hits layer. By default, the API calculates
a bounding box for each feature. It sorts features based on this box’s diagonal
length, from longest to shortest.
:param track_total_hits: Number of hits matching the query to count accurately.
If `true`, the exact number of hits is returned at the cost of some performance.
If `false`, the response does not include the total number of hits matching
the query.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if field in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'field'")
if zoom in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'zoom'")
if x in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'x'")
if y in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'y'")
__path = f"/{_quote(index)}/_mvt/{_quote(field)}/{_quote(zoom)}/{_quote(x)}/{_quote(y)}"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
# The 'sort' parameter with a colon can't be encoded to the body.
if sort is not None and (
(isinstance(sort, str) and ":" in sort)
or (
isinstance(sort, (list, tuple))
and all(isinstance(_x, str) for _x in sort)
and any(":" in _x for _x in sort)
)
):
__query["sort"] = sort
sort = None
if aggs is not None:
__body["aggs"] = aggs
if error_trace is not None:
__query["error_trace"] = error_trace
if exact_bounds is not None:
__body["exact_bounds"] = exact_bounds
if extent is not None:
__body["extent"] = extent
if fields is not None:
__body["fields"] = fields
if filter_path is not None:
__query["filter_path"] = filter_path
if grid_precision is not None:
__body["grid_precision"] = grid_precision
if grid_type is not None:
__body["grid_type"] = grid_type
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if query is not None:
__body["query"] = query
if runtime_mappings is not None:
__body["runtime_mappings"] = runtime_mappings
if size is not None:
__body["size"] = size
if sort is not None:
__body["sort"] = sort
if track_total_hits is not None:
__body["track_total_hits"] = track_total_hits
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/vnd.mapbox-vector-tile"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def search_shards(
self,
*,
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
allow_no_indices: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
local: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
routing: t.Optional[str] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns information about the indices and shards that a search request would
be executed against.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html>`_
:param index: A comma-separated list of index names to search; use `_all` or
empty string to perform the operation on all indices
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param local: Return local information, do not retrieve the state from master
node (default: false)
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param routing: Specific routing value
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_search_shards"
else:
__path = "/_search_shards"
__query: t.Dict[str, t.Any] = {}
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if local is not None:
__query["local"] = local
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if routing is not None:
__query["routing"] = routing
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers
)
@_rewrite_parameters(
body_fields=True,
ignore_deprecated_options={"params"},
)
def search_template(
self,
*,
index: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
allow_no_indices: t.Optional[bool] = None,
ccs_minimize_roundtrips: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
explain: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
id: t.Optional[str] = None,
ignore_throttled: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
params: t.Optional[t.Mapping[str, t.Any]] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
profile: t.Optional[bool] = None,
rest_total_hits_as_int: t.Optional[bool] = None,
routing: t.Optional[str] = None,
scroll: t.Optional[t.Union[int, str]] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
source: t.Optional[str] = None,
typed_keys: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Allows to use the Mustache language to pre-render a search definition.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html>`_
:param index: Comma-separated list of data streams, indices, and aliases to search.
Supports wildcards (*).
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param ccs_minimize_roundtrips: Indicates whether network round-trips should
be minimized as part of cross-cluster search requests execution
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param explain:
:param id: ID of the search template to use. If no source is specified, this
parameter is required.
:param ignore_throttled: Whether specified concrete, expanded or aliased indices
should be ignored when throttled
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param params:
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param profile:
:param rest_total_hits_as_int: If true, hits.total are rendered as an integer
in the response.
:param routing: Custom value used to route operations to a specific shard.
:param scroll: Specifies how long a consistent view of the index should be maintained
for scrolled search.
:param search_type: The type of the search operation.
:param source: An inline search template. Supports the same parameters as the
search API's request body. Also supports Mustache variables. If no id is
specified, this parameter is required.
:param typed_keys: Specify whether aggregation and suggester names should be
prefixed by their respective types in the response
"""
if index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_search/template"
else:
__path = "/_search/template"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if ccs_minimize_roundtrips is not None:
__query["ccs_minimize_roundtrips"] = ccs_minimize_roundtrips
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if explain is not None:
__body["explain"] = explain
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if id is not None:
__body["id"] = id
if ignore_throttled is not None:
__query["ignore_throttled"] = ignore_throttled
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if params is not None:
__body["params"] = params
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if profile is not None:
__body["profile"] = profile
if rest_total_hits_as_int is not None:
__query["rest_total_hits_as_int"] = rest_total_hits_as_int
if routing is not None:
__query["routing"] = routing
if scroll is not None:
__query["scroll"] = scroll
if search_type is not None:
__query["search_type"] = search_type
if source is not None:
__body["source"] = source
if typed_keys is not None:
__query["typed_keys"] = typed_keys
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def terms_enum(
self,
*,
index: str,
field: str,
case_insensitive: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
index_filter: t.Optional[t.Mapping[str, t.Any]] = None,
pretty: t.Optional[bool] = None,
search_after: t.Optional[str] = None,
size: t.Optional[int] = None,
string: t.Optional[str] = None,
timeout: t.Optional[t.Union[int, str]] = None,
) -> ObjectApiResponse[t.Any]:
"""
The terms enum API can be used to discover terms in the index that begin with
the provided string. It is designed for low-latency look-ups used in auto-complete
scenarios.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/search-terms-enum.html>`_
:param index: Comma-separated list of data streams, indices, and index aliases
to search. Wildcard (*) expressions are supported.
:param field: The string to match at the start of indexed terms. If not provided,
all terms in the field are considered.
:param case_insensitive: When true the provided search string is matched against
index terms without case sensitivity.
:param index_filter: Allows to filter an index shard if the provided query rewrites
to match_none.
:param search_after:
:param size: How many matching terms to return.
:param string: The string after which terms in the index should be returned.
Allows for a form of pagination if the last result from one request is passed
as the search_after parameter for a subsequent request.
:param timeout: The maximum length of time to spend collecting results. Defaults
to "1s" (one second). If the timeout is exceeded the complete flag set to
false in the response and the results may be partial or empty.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if field is None:
raise ValueError("Empty value passed for parameter 'field'")
__path = f"/{_quote(index)}/_terms_enum"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if field is not None:
__body["field"] = field
if case_insensitive is not None:
__body["case_insensitive"] = case_insensitive
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if index_filter is not None:
__body["index_filter"] = index_filter
if pretty is not None:
__query["pretty"] = pretty
if search_after is not None:
__body["search_after"] = search_after
if size is not None:
__body["size"] = size
if string is not None:
__body["string"] = string
if timeout is not None:
__body["timeout"] = timeout
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
)
def termvectors(
self,
*,
index: str,
id: t.Optional[str] = None,
doc: t.Optional[t.Mapping[str, t.Any]] = None,
error_trace: t.Optional[bool] = None,
field_statistics: t.Optional[bool] = None,
fields: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
filter: t.Optional[t.Mapping[str, t.Any]] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
offsets: t.Optional[bool] = None,
payloads: t.Optional[bool] = None,
per_field_analyzer: t.Optional[t.Mapping[str, str]] = None,
positions: t.Optional[bool] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
realtime: t.Optional[bool] = None,
routing: t.Optional[str] = None,
term_statistics: t.Optional[bool] = None,
version: t.Optional[int] = None,
version_type: t.Optional[
t.Union["t.Literal['external', 'external_gte', 'force', 'internal']", str]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Returns information and statistics about terms in the fields of a particular
document.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html>`_
:param index: The index in which the document resides.
:param id: The id of the document, when not specified a doc param should be supplied.
:param doc:
:param field_statistics: Specifies if document count, sum of document frequencies
and sum of total term frequencies should be returned.
:param fields: A comma-separated list of fields to return.
:param filter:
:param offsets: Specifies if term offsets should be returned.
:param payloads: Specifies if term payloads should be returned.
:param per_field_analyzer:
:param positions: Specifies if term positions should be returned.
:param preference: Specify the node or shard the operation should be performed
on (default: random).
:param realtime: Specifies if request is real-time as opposed to near-real-time
(default: true).
:param routing: Specific routing value.
:param term_statistics: Specifies if total term frequency and document frequency
should be returned.
:param version: Explicit version number for concurrency control
:param version_type: Specific version type
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if index not in SKIP_IN_PATH and id not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_termvectors/{_quote(id)}"
elif index not in SKIP_IN_PATH:
__path = f"/{_quote(index)}/_termvectors"
else:
raise ValueError("Couldn't find a path for the given parameters")
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if doc is not None:
__body["doc"] = doc
if error_trace is not None:
__query["error_trace"] = error_trace
if field_statistics is not None:
__query["field_statistics"] = field_statistics
if fields is not None:
__query["fields"] = fields
if filter is not None:
__body["filter"] = filter
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if offsets is not None:
__query["offsets"] = offsets
if payloads is not None:
__query["payloads"] = payloads
if per_field_analyzer is not None:
__body["per_field_analyzer"] = per_field_analyzer
if positions is not None:
__query["positions"] = positions
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if realtime is not None:
__query["realtime"] = realtime
if routing is not None:
__query["routing"] = routing
if term_statistics is not None:
__query["term_statistics"] = term_statistics
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={
"_source": "source",
"_source_excludes": "source_excludes",
"_source_includes": "source_includes",
},
)
def update(
self,
*,
index: str,
id: str,
detect_noop: t.Optional[bool] = None,
doc: t.Optional[t.Mapping[str, t.Any]] = None,
doc_as_upsert: t.Optional[bool] = None,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
if_primary_term: t.Optional[int] = None,
if_seq_no: t.Optional[int] = None,
lang: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
refresh: t.Optional[
t.Union["t.Literal['false', 'true', 'wait_for']", bool, str]
] = None,
require_alias: t.Optional[bool] = None,
retry_on_conflict: t.Optional[int] = None,
routing: t.Optional[str] = None,
script: t.Optional[t.Mapping[str, t.Any]] = None,
scripted_upsert: t.Optional[bool] = None,
source: t.Optional[t.Union[bool, t.Mapping[str, t.Any]]] = None,
source_excludes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
source_includes: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
timeout: t.Optional[t.Union[int, str]] = None,
upsert: t.Optional[t.Mapping[str, t.Any]] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
) -> ObjectApiResponse[t.Any]:
"""
Updates a document with a script or partial document.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html>`_
:param index: The name of the index
:param id: Document ID
:param detect_noop: Set to false to disable setting 'result' in the response
to 'noop' if no change to the document occurred.
:param doc: A partial update to an existing document.
:param doc_as_upsert: Set to true to use the contents of 'doc' as the value of
'upsert'
:param if_primary_term: Only perform the operation if the document has this primary
term.
:param if_seq_no: Only perform the operation if the document has this sequence
number.
:param lang: The script language.
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
this operation visible to search, if 'wait_for' then wait for a refresh to
make this operation visible to search, if 'false' do nothing with refreshes.
:param require_alias: If true, the destination must be an index alias.
:param retry_on_conflict: Specify how many times should the operation be retried
when a conflict occurs.
:param routing: Custom value used to route operations to a specific shard.
:param script: Script to execute to update the document.
:param scripted_upsert: Set to true to execute the script whether or not the
document exists.
:param source: Set to false to disable source retrieval. You can also specify
a comma-separated list of the fields you want to retrieve.
:param source_excludes: Specify the source fields you want to exclude.
:param source_includes: Specify the source fields you want to retrieve.
:param timeout: Period to wait for dynamic mapping updates and active shards.
This guarantees Elasticsearch waits for at least the timeout before failing.
The actual wait time could be longer, particularly when multiple waits occur.
:param upsert: If the document does not already exist, the contents of 'upsert'
are inserted as a new document. If the document exists, the 'script' is executed.
:param wait_for_active_shards: The number of shard copies that must be active
before proceeding with the operations. Set to 'all' or any positive integer
up to the total number of shards in the index (number_of_replicas+1). Defaults
to 1 meaning the primary shard.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
if id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'id'")
__path = f"/{_quote(index)}/_update/{_quote(id)}"
__body: t.Dict[str, t.Any] = {}
__query: t.Dict[str, t.Any] = {}
if detect_noop is not None:
__body["detect_noop"] = detect_noop
if doc is not None:
__body["doc"] = doc
if doc_as_upsert is not None:
__body["doc_as_upsert"] = doc_as_upsert
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if if_primary_term is not None:
__query["if_primary_term"] = if_primary_term
if if_seq_no is not None:
__query["if_seq_no"] = if_seq_no
if lang is not None:
__query["lang"] = lang
if pretty is not None:
__query["pretty"] = pretty
if refresh is not None:
__query["refresh"] = refresh
if require_alias is not None:
__query["require_alias"] = require_alias
if retry_on_conflict is not None:
__query["retry_on_conflict"] = retry_on_conflict
if routing is not None:
__query["routing"] = routing
if script is not None:
__body["script"] = script
if scripted_upsert is not None:
__body["scripted_upsert"] = scripted_upsert
if source is not None:
__body["_source"] = source
if source_excludes is not None:
__query["_source_excludes"] = source_excludes
if source_includes is not None:
__query["_source_includes"] = source_includes
if timeout is not None:
__query["timeout"] = timeout
if upsert is not None:
__body["upsert"] = upsert
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
__headers = {"accept": "application/json", "content-type": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters(
body_fields=True,
parameter_aliases={"from": "from_"},
)
def update_by_query(
self,
*,
index: t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]],
allow_no_indices: t.Optional[bool] = None,
analyze_wildcard: t.Optional[bool] = None,
analyzer: t.Optional[str] = None,
conflicts: t.Optional[t.Union["t.Literal['abort', 'proceed']", str]] = None,
default_operator: t.Optional[t.Union["t.Literal['and', 'or']", str]] = None,
df: t.Optional[str] = None,
error_trace: t.Optional[bool] = None,
expand_wildcards: t.Optional[
t.Union[
t.Union["t.Literal['all', 'closed', 'hidden', 'none', 'open']", str],
t.Union[
t.List[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
]
],
t.Tuple[
t.Union[
"t.Literal['all', 'closed', 'hidden', 'none', 'open']", str
],
...,
],
],
]
] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
from_: t.Optional[int] = None,
human: t.Optional[bool] = None,
ignore_unavailable: t.Optional[bool] = None,
lenient: t.Optional[bool] = None,
max_docs: t.Optional[int] = None,
pipeline: t.Optional[str] = None,
preference: t.Optional[str] = None,
pretty: t.Optional[bool] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
refresh: t.Optional[bool] = None,
request_cache: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
routing: t.Optional[str] = None,
script: t.Optional[t.Mapping[str, t.Any]] = None,
scroll: t.Optional[t.Union[int, str]] = None,
scroll_size: t.Optional[int] = None,
search_timeout: t.Optional[t.Union[int, str]] = None,
search_type: t.Optional[
t.Union["t.Literal['dfs_query_then_fetch', 'query_then_fetch']", str]
] = None,
slice: t.Optional[t.Mapping[str, t.Any]] = None,
slices: t.Optional[int] = None,
sort: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
stats: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
terminate_after: t.Optional[int] = None,
timeout: t.Optional[t.Union[int, str]] = None,
version: t.Optional[bool] = None,
version_type: t.Optional[bool] = None,
wait_for_active_shards: t.Optional[
t.Union[int, t.Union["t.Literal['all', 'index-setting']", str]]
] = None,
wait_for_completion: t.Optional[bool] = None,
) -> ObjectApiResponse[t.Any]:
"""
Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html>`_
:param index: A comma-separated list of index names to search; use `_all` or
empty string to perform the operation on all indices
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
into no concrete indices. (This includes `_all` string or when no indices
have been specified)
:param analyze_wildcard: Specify whether wildcard and prefix queries should be
analyzed (default: false)
:param analyzer: The analyzer to use for the query string
:param conflicts:
:param default_operator: The default operator for query string query (AND or
OR)
:param df: The field to use as default where no field prefix is given in the
query string
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
that are open, closed or both.
:param from_: Starting offset (default: 0)
:param ignore_unavailable: Whether specified concrete indices should be ignored
when unavailable (missing or closed)
:param lenient: Specify whether format-based query failures (such as providing
text to a numeric field) should be ignored
:param max_docs:
:param pipeline: Ingest pipeline to set on index requests made by this action.
(default: none)
:param preference: Specify the node or shard the operation should be performed
on (default: random)
:param query:
:param refresh: Should the affected indexes be refreshed?
:param request_cache: Specify if request cache should be used for this request
or not, defaults to index level setting
:param requests_per_second: The throttle to set on this request in sub-requests
per second. -1 means no throttle.
:param routing: A comma-separated list of specific routing values
:param script:
:param scroll: Specify how long a consistent view of the index should be maintained
for scrolled search
:param scroll_size: Size on the scroll request powering the update by query
:param search_timeout: Explicit timeout for each search request. Defaults to
no timeout.
:param search_type: Search operation type
:param slice:
:param slices: The number of slices this task should be divided into. Defaults
to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.
:param sort: A comma-separated list of <field>:<direction> pairs
:param stats: Specific 'tag' of the request for logging and statistical purposes
:param terminate_after: The maximum number of documents to collect for each shard,
upon reaching which the query execution will terminate early.
:param timeout: Time each individual bulk request should wait for shards that
are unavailable.
:param version: Specify whether to return document version as part of a hit
:param version_type: Should the document increment the version number (internal)
on hit or not (reindex)
:param wait_for_active_shards: Sets the number of shard copies that must be active
before proceeding with the update by query operation. Defaults to 1, meaning
the primary shard only. Set to `all` for all shard copies, otherwise set
to any non-negative value less than or equal to the total number of copies
for the shard (number of replicas + 1)
:param wait_for_completion: Should the request should block until the update
by query operation is complete.
"""
if index in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'index'")
__path = f"/{_quote(index)}/_update_by_query"
__query: t.Dict[str, t.Any] = {}
__body: t.Dict[str, t.Any] = {}
# The 'sort' parameter with a colon can't be encoded to the body.
if sort is not None and (
(isinstance(sort, str) and ":" in sort)
or (
isinstance(sort, (list, tuple))
and all(isinstance(_x, str) for _x in sort)
and any(":" in _x for _x in sort)
)
):
__query["sort"] = sort
sort = None
if allow_no_indices is not None:
__query["allow_no_indices"] = allow_no_indices
if analyze_wildcard is not None:
__query["analyze_wildcard"] = analyze_wildcard
if analyzer is not None:
__query["analyzer"] = analyzer
if conflicts is not None:
__body["conflicts"] = conflicts
if default_operator is not None:
__query["default_operator"] = default_operator
if df is not None:
__query["df"] = df
if error_trace is not None:
__query["error_trace"] = error_trace
if expand_wildcards is not None:
__query["expand_wildcards"] = expand_wildcards
if filter_path is not None:
__query["filter_path"] = filter_path
if from_ is not None:
__query["from"] = from_
if human is not None:
__query["human"] = human
if ignore_unavailable is not None:
__query["ignore_unavailable"] = ignore_unavailable
if lenient is not None:
__query["lenient"] = lenient
if max_docs is not None:
__body["max_docs"] = max_docs
if pipeline is not None:
__query["pipeline"] = pipeline
if preference is not None:
__query["preference"] = preference
if pretty is not None:
__query["pretty"] = pretty
if query is not None:
__body["query"] = query
if refresh is not None:
__query["refresh"] = refresh
if request_cache is not None:
__query["request_cache"] = request_cache
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
if routing is not None:
__query["routing"] = routing
if script is not None:
__body["script"] = script
if scroll is not None:
__query["scroll"] = scroll
if scroll_size is not None:
__query["scroll_size"] = scroll_size
if search_timeout is not None:
__query["search_timeout"] = search_timeout
if search_type is not None:
__query["search_type"] = search_type
if slice is not None:
__body["slice"] = slice
if slices is not None:
__query["slices"] = slices
if sort is not None:
__query["sort"] = sort
if stats is not None:
__query["stats"] = stats
if terminate_after is not None:
__query["terminate_after"] = terminate_after
if timeout is not None:
__query["timeout"] = timeout
if version is not None:
__query["version"] = version
if version_type is not None:
__query["version_type"] = version_type
if wait_for_active_shards is not None:
__query["wait_for_active_shards"] = wait_for_active_shards
if wait_for_completion is not None:
__query["wait_for_completion"] = wait_for_completion
if not __body:
__body = None # type: ignore[assignment]
__headers = {"accept": "application/json"}
if __body is not None:
__headers["content-type"] = "application/json"
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers, body=__body
)
@_rewrite_parameters()
def update_by_query_rethrottle(
self,
*,
task_id: str,
error_trace: t.Optional[bool] = None,
filter_path: t.Optional[
t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]
] = None,
human: t.Optional[bool] = None,
pretty: t.Optional[bool] = None,
requests_per_second: t.Optional[int] = None,
) -> ObjectApiResponse[t.Any]:
"""
Changes the number of requests per second for a particular Update By Query operation.
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html>`_
:param task_id: The task id to rethrottle
:param requests_per_second: The throttle to set on this request in floating sub-requests
per second. -1 means set no throttle.
"""
if task_id in SKIP_IN_PATH:
raise ValueError("Empty value passed for parameter 'task_id'")
__path = f"/_update_by_query/{_quote(task_id)}/_rethrottle"
__query: t.Dict[str, t.Any] = {}
if error_trace is not None:
__query["error_trace"] = error_trace
if filter_path is not None:
__query["filter_path"] = filter_path
if human is not None:
__query["human"] = human
if pretty is not None:
__query["pretty"] = pretty
if requests_per_second is not None:
__query["requests_per_second"] = requests_per_second
__headers = {"accept": "application/json"}
return self.perform_request( # type: ignore[return-value]
"POST", __path, params=__query, headers=__headers
)
| 44.023577
| 127
| 0.596677
| 25,344
| 207,263
| 4.684856
| 0.038786
| 0.026235
| 0.044571
| 0.053886
| 0.810078
| 0.785873
| 0.770418
| 0.757986
| 0.74873
| 0.723565
| 0
| 0.000586
| 0.308656
| 207,263
| 4,707
| 128
| 44.03293
| 0.828034
| 0.278921
| 0
| 0.778736
| 0
| 0.000287
| 0.119081
| 0.020757
| 0
| 0
| 0
| 0
| 0.001149
| 1
| 0.01408
| false
| 0.014655
| 0.012069
| 0
| 0.04023
| 0.000575
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ed0ba2eb46470075f2bd36e14b71c454f6e99d54
| 293
|
py
|
Python
|
extension/sms_On.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
extension/sms_On.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
extension/sms_On.py
|
Gilgamesh666666/Dgr-ncnet
|
3ad2d0fdb35ba0d23e5040d74347c600b1a8b72b
|
[
"MIT"
] | null | null | null |
import torch.nn as nn
from extension.functional.sms_On import soft_mutual_score_On
import torch
class soft_mutual_score_Module_On(nn.Module):
def __init__(self):
super().__init__()
def forward(self, pred_pair, reg_feat):
return soft_mutual_score_On(pred_pair, reg_feat)
| 36.625
| 60
| 0.767918
| 46
| 293
| 4.391304
| 0.521739
| 0.148515
| 0.222772
| 0.168317
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153584
| 293
| 8
| 61
| 36.625
| 0.814516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
ed28de3dc47b49a674b0f37339bf42f64664f9f7
| 20,566
|
py
|
Python
|
meshtastic/admin_pb2.py
|
raldi/Meshtastic-python
|
3332271a97eddb3291ada315011165305ec46d57
|
[
"Apache-2.0"
] | null | null | null |
meshtastic/admin_pb2.py
|
raldi/Meshtastic-python
|
3332271a97eddb3291ada315011165305ec46d57
|
[
"Apache-2.0"
] | null | null | null |
meshtastic/admin_pb2.py
|
raldi/Meshtastic-python
|
3332271a97eddb3291ada315011165305ec46d57
|
[
"Apache-2.0"
] | 1
|
2022-01-24T17:07:30.000Z
|
2022-01-24T17:07:30.000Z
|
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: admin.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from . import channel_pb2 as channel__pb2
from . import mesh_pb2 as mesh__pb2
from . import radioconfig_pb2 as radioconfig__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='admin.proto',
package='',
syntax='proto3',
serialized_options=b'\n\023com.geeksville.meshB\013AdminProtosH\003Z!github.com/meshtastic/gomeshproto',
serialized_pb=b'\n\x0b\x61\x64min.proto\x1a\rchannel.proto\x1a\nmesh.proto\x1a\x11radioconfig.proto\"\xa1\x08\n\x0c\x41\x64minMessage\x12!\n\tset_radio\x18\x01 \x01(\x0b\x32\x0c.RadioConfigH\x00\x12\x1a\n\tset_owner\x18\x02 \x01(\x0b\x32\x05.UserH\x00\x12\x1f\n\x0bset_channel\x18\x03 \x01(\x0b\x32\x08.ChannelH\x00\x12\x1b\n\x11get_radio_request\x18\x04 \x01(\x08H\x00\x12*\n\x12get_radio_response\x18\x05 \x01(\x0b\x32\x0c.RadioConfigH\x00\x12\x1d\n\x13get_channel_request\x18\x06 \x01(\rH\x00\x12(\n\x14get_channel_response\x18\x07 \x01(\x0b\x32\x08.ChannelH\x00\x12\x1b\n\x11get_owner_request\x18\x08 \x01(\x08H\x00\x12#\n\x12get_owner_response\x18\t \x01(\x0b\x32\x05.UserH\x00\x12\x1d\n\x13\x63onfirm_set_channel\x18 \x01(\x08H\x00\x12\x1b\n\x11\x63onfirm_set_radio\x18! \x01(\x08H\x00\x12\x18\n\x0e\x65xit_simulator\x18\" \x01(\x08H\x00\x12\x18\n\x0ereboot_seconds\x18# \x01(\x05H\x00\x12\x31\n\'get_canned_message_module_part1_request\x18$ \x01(\x08H\x00\x12\x32\n(get_canned_message_module_part1_response\x18% \x01(\tH\x00\x12\x31\n\'get_canned_message_module_part2_request\x18& \x01(\x08H\x00\x12\x32\n(get_canned_message_module_part2_response\x18\' \x01(\tH\x00\x12\x31\n\'get_canned_message_module_part3_request\x18( \x01(\x08H\x00\x12\x32\n(get_canned_message_module_part3_response\x18) \x01(\tH\x00\x12\x31\n\'get_canned_message_module_part4_request\x18* \x01(\x08H\x00\x12\x32\n(get_canned_message_module_part4_response\x18+ \x01(\tH\x00\x12)\n\x1fset_canned_message_module_part1\x18, \x01(\tH\x00\x12)\n\x1fset_canned_message_module_part2\x18- \x01(\tH\x00\x12)\n\x1fset_canned_message_module_part3\x18. \x01(\tH\x00\x12)\n\x1fset_canned_message_module_part4\x18/ \x01(\tH\x00\x12\x1a\n\x10shutdown_seconds\x18\x33 \x01(\x05H\x00\x42\t\n\x07variantBG\n\x13\x63om.geeksville.meshB\x0b\x41\x64minProtosH\x03Z!github.com/meshtastic/gomeshprotob\x06proto3'
,
dependencies=[channel__pb2.DESCRIPTOR,mesh__pb2.DESCRIPTOR,radioconfig__pb2.DESCRIPTOR,])
_ADMINMESSAGE = _descriptor.Descriptor(
name='AdminMessage',
full_name='AdminMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='set_radio', full_name='AdminMessage.set_radio', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_owner', full_name='AdminMessage.set_owner', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_channel', full_name='AdminMessage.set_channel', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_radio_request', full_name='AdminMessage.get_radio_request', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_radio_response', full_name='AdminMessage.get_radio_response', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_channel_request', full_name='AdminMessage.get_channel_request', index=5,
number=6, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_channel_response', full_name='AdminMessage.get_channel_response', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_owner_request', full_name='AdminMessage.get_owner_request', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_owner_response', full_name='AdminMessage.get_owner_response', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='confirm_set_channel', full_name='AdminMessage.confirm_set_channel', index=9,
number=32, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='confirm_set_radio', full_name='AdminMessage.confirm_set_radio', index=10,
number=33, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='exit_simulator', full_name='AdminMessage.exit_simulator', index=11,
number=34, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='reboot_seconds', full_name='AdminMessage.reboot_seconds', index=12,
number=35, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part1_request', full_name='AdminMessage.get_canned_message_module_part1_request', index=13,
number=36, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part1_response', full_name='AdminMessage.get_canned_message_module_part1_response', index=14,
number=37, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part2_request', full_name='AdminMessage.get_canned_message_module_part2_request', index=15,
number=38, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part2_response', full_name='AdminMessage.get_canned_message_module_part2_response', index=16,
number=39, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part3_request', full_name='AdminMessage.get_canned_message_module_part3_request', index=17,
number=40, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part3_response', full_name='AdminMessage.get_canned_message_module_part3_response', index=18,
number=41, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part4_request', full_name='AdminMessage.get_canned_message_module_part4_request', index=19,
number=42, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='get_canned_message_module_part4_response', full_name='AdminMessage.get_canned_message_module_part4_response', index=20,
number=43, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_canned_message_module_part1', full_name='AdminMessage.set_canned_message_module_part1', index=21,
number=44, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_canned_message_module_part2', full_name='AdminMessage.set_canned_message_module_part2', index=22,
number=45, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_canned_message_module_part3', full_name='AdminMessage.set_canned_message_module_part3', index=23,
number=46, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='set_canned_message_module_part4', full_name='AdminMessage.set_canned_message_module_part4', index=24,
number=47, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='shutdown_seconds', full_name='AdminMessage.shutdown_seconds', index=25,
number=51, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='variant', full_name='AdminMessage.variant',
index=0, containing_type=None, fields=[]),
],
serialized_start=62,
serialized_end=1119,
)
_ADMINMESSAGE.fields_by_name['set_radio'].message_type = radioconfig__pb2._RADIOCONFIG
_ADMINMESSAGE.fields_by_name['set_owner'].message_type = mesh__pb2._USER
_ADMINMESSAGE.fields_by_name['set_channel'].message_type = channel__pb2._CHANNEL
_ADMINMESSAGE.fields_by_name['get_radio_response'].message_type = radioconfig__pb2._RADIOCONFIG
_ADMINMESSAGE.fields_by_name['get_channel_response'].message_type = channel__pb2._CHANNEL
_ADMINMESSAGE.fields_by_name['get_owner_response'].message_type = mesh__pb2._USER
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_radio'])
_ADMINMESSAGE.fields_by_name['set_radio'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_owner'])
_ADMINMESSAGE.fields_by_name['set_owner'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_channel'])
_ADMINMESSAGE.fields_by_name['set_channel'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_radio_request'])
_ADMINMESSAGE.fields_by_name['get_radio_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_radio_response'])
_ADMINMESSAGE.fields_by_name['get_radio_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_channel_request'])
_ADMINMESSAGE.fields_by_name['get_channel_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_channel_response'])
_ADMINMESSAGE.fields_by_name['get_channel_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_owner_request'])
_ADMINMESSAGE.fields_by_name['get_owner_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_owner_response'])
_ADMINMESSAGE.fields_by_name['get_owner_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['confirm_set_channel'])
_ADMINMESSAGE.fields_by_name['confirm_set_channel'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['confirm_set_radio'])
_ADMINMESSAGE.fields_by_name['confirm_set_radio'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['exit_simulator'])
_ADMINMESSAGE.fields_by_name['exit_simulator'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['reboot_seconds'])
_ADMINMESSAGE.fields_by_name['reboot_seconds'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part1_request'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part1_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part1_response'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part1_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part2_request'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part2_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part2_response'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part2_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part3_request'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part3_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part3_response'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part3_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part4_request'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part4_request'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part4_response'])
_ADMINMESSAGE.fields_by_name['get_canned_message_module_part4_response'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part1'])
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part1'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part2'])
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part2'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part3'])
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part3'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part4'])
_ADMINMESSAGE.fields_by_name['set_canned_message_module_part4'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
_ADMINMESSAGE.oneofs_by_name['variant'].fields.append(
_ADMINMESSAGE.fields_by_name['shutdown_seconds'])
_ADMINMESSAGE.fields_by_name['shutdown_seconds'].containing_oneof = _ADMINMESSAGE.oneofs_by_name['variant']
DESCRIPTOR.message_types_by_name['AdminMessage'] = _ADMINMESSAGE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
AdminMessage = _reflection.GeneratedProtocolMessageType('AdminMessage', (_message.Message,), {
'DESCRIPTOR' : _ADMINMESSAGE,
'__module__' : 'admin_pb2'
# @@protoc_insertion_point(class_scope:AdminMessage)
})
_sym_db.RegisterMessage(AdminMessage)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
| 61.208333
| 1,871
| 0.791792
| 2,774
| 20,566
| 5.452776
| 0.076784
| 0.04403
| 0.075367
| 0.092027
| 0.832077
| 0.806029
| 0.771453
| 0.72696
| 0.692053
| 0.669311
| 0
| 0.035042
| 0.093893
| 20,566
| 335
| 1,872
| 61.391045
| 0.776657
| 0.010795
| 0
| 0.514286
| 1
| 0.009524
| 0.236416
| 0.173133
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022222
| 0
| 0.022222
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ed37f6cbac576c72e4ebb10edcff7fd18849b792
| 3,205
|
py
|
Python
|
tests/integration_tests/test_models_air_source_heat_pump.py
|
MTRESS/MTRESS
|
7cfd0514c4b49501d94c1fcef613be0cc405f1d2
|
[
"MIT"
] | 5
|
2022-01-11T10:52:51.000Z
|
2022-03-10T19:58:56.000Z
|
tests/integration_tests/test_models_air_source_heat_pump.py
|
MTRESS/MTRESS
|
7cfd0514c4b49501d94c1fcef613be0cc405f1d2
|
[
"MIT"
] | 9
|
2021-09-17T19:26:19.000Z
|
2022-03-01T15:31:55.000Z
|
tests/integration_tests/test_models_air_source_heat_pump.py
|
MTRESS/MTRESS
|
7cfd0514c4b49501d94c1fcef613be0cc405f1d2
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
SPDX-FileCopyrightText: Deutsches Zentrum für Luft und Raumfahrt
SPDX-FileCopyrightText: Patrik Schönfeldt
SPDX-License-Identifier: MIT
"""
import math
import numpy as np
from test_core import (electricity_costs,
run_model_template,
HIGH_ACCURACY,
OKAY_ACCURACY)
def test_air_heat_pump_r0_b30():
heat_demand = np.full(3, 0.1)
design_cop = 3
electricity_demand = heat_demand/design_cop
params = {
"air_source_heat_pump": {"electric_input": 1,
"cop_0_35": design_cop},
"demand": {
"heating": {"values": heat_demand,
"flow_temperature": 35,
"return_temperature": 30}},
"temperatures": {"reference": 0}}
meta_model, params = run_model_template(custom_params=params)
thermal_demand = meta_model.aggregate_flows(
meta_model.demand_th_flows).sum()
ahp_generation = meta_model.aggregate_flows(meta_model.ahp_th_flows).sum()
el_import = meta_model.aggregate_flows(meta_model.electricity_import_flows).sum()
assert math.isclose(thermal_demand, heat_demand.sum())
assert math.isclose(ahp_generation, heat_demand.sum(),
rel_tol=HIGH_ACCURACY)
design_cop_heat = el_import * design_cop
assert math.isclose(design_cop_heat,
heat_demand.sum(),
rel_tol=OKAY_ACCURACY)
assert math.isclose(meta_model.operational_costs(),
electricity_costs(electricity_demand,
params,
meta_model.time_range),
rel_tol=OKAY_ACCURACY)
def test_air_heat_pump_r30_b30():
heat_demand = np.full(3, 0.1)
design_cop = 3
electricity_demand = heat_demand/design_cop
params = {
"air_source_heat_pump": {"electric_input": 1,
"cop_0_35": design_cop},
"demand": {
"heating": {"values": heat_demand,
"flow_temperature": 35,
"return_temperature": 30}},
"temperatures": {"reference": 30}}
meta_model, params = run_model_template(custom_params=params)
thermal_demand = meta_model.aggregate_flows(
meta_model.demand_th_flows).sum()
ahp_generation = meta_model.aggregate_flows(meta_model.ahp_th_flows).sum()
el_import = meta_model.aggregate_flows(meta_model.electricity_import_flows).sum()
assert math.isclose(thermal_demand, heat_demand.sum())
assert math.isclose(ahp_generation, heat_demand.sum(),
rel_tol=HIGH_ACCURACY)
design_cop_heat = el_import * design_cop
assert math.isclose(design_cop_heat,
heat_demand.sum(),
rel_tol=OKAY_ACCURACY)
assert math.isclose(meta_model.operational_costs(),
electricity_costs(electricity_demand,
params,
meta_model.time_range),
rel_tol=OKAY_ACCURACY)
| 37.267442
| 85
| 0.59532
| 348
| 3,205
| 5.091954
| 0.218391
| 0.091422
| 0.076749
| 0.077878
| 0.874718
| 0.874718
| 0.874718
| 0.84763
| 0.84763
| 0.84763
| 0
| 0.015974
| 0.316381
| 3,205
| 85
| 86
| 37.705882
| 0.792789
| 0.04961
| 0
| 0.84375
| 0
| 0
| 0.076366
| 0
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0.03125
| false
| 0
| 0.109375
| 0
| 0.140625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9c037b305351d89f86a53e51d78dc7405189d1f2
| 232
|
py
|
Python
|
wetterdienst/dwd/forecasts/metadata/__init__.py
|
panodata/python_dwd
|
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
|
[
"MIT"
] | null | null | null |
wetterdienst/dwd/forecasts/metadata/__init__.py
|
panodata/python_dwd
|
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
|
[
"MIT"
] | null | null | null |
wetterdienst/dwd/forecasts/metadata/__init__.py
|
panodata/python_dwd
|
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
|
[
"MIT"
] | 1
|
2022-03-21T14:28:45.000Z
|
2022-03-21T14:28:45.000Z
|
from wetterdienst.dwd.forecasts.metadata.dates import DWDForecastDate
from wetterdienst.dwd.forecasts.metadata.parameter import DWDForecastParameter
from wetterdienst.dwd.forecasts.metadata.mosmix_type import (
DWDMosmixType,
)
| 38.666667
| 78
| 0.857759
| 25
| 232
| 7.92
| 0.52
| 0.242424
| 0.287879
| 0.424242
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077586
| 232
| 5
| 79
| 46.4
| 0.925234
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
9c114f72080d875ace7860b4be8c60fc2dc4be51
| 8,242
|
py
|
Python
|
tests/trainer/legacy_deprecate_flow_log/test_trainer_steps_dict_return.py
|
prajakta0111/pytorch-lightning
|
3df02b880a6d145ff0aca24ea429c12c0d8f1181
|
[
"Apache-2.0"
] | 1
|
2021-08-05T01:45:26.000Z
|
2021-08-05T01:45:26.000Z
|
tests/trainer/legacy_deprecate_flow_log/test_trainer_steps_dict_return.py
|
prajakta0111/pytorch-lightning
|
3df02b880a6d145ff0aca24ea429c12c0d8f1181
|
[
"Apache-2.0"
] | 1
|
2021-03-01T17:32:12.000Z
|
2021-03-01T17:32:12.000Z
|
tests/trainer/legacy_deprecate_flow_log/test_trainer_steps_dict_return.py
|
prajakta0111/pytorch-lightning
|
3df02b880a6d145ff0aca24ea429c12c0d8f1181
|
[
"Apache-2.0"
] | 1
|
2021-02-16T00:47:46.000Z
|
2021-02-16T00:47:46.000Z
|
# Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Tests to ensure that the training loop works with a dict
"""
import os
from unittest import mock
from pytorch_lightning import Trainer
from tests.helpers.deterministic_model import DeterministicModel
def test_training_step_dict(tmpdir):
"""
Tests that only training_step can be used
"""
model = DeterministicModel()
model.training_step = model.training_step__dict_return
model.val_dataloader = None
trainer = Trainer(
default_root_dir=tmpdir,
fast_dev_run=True,
weights_summary=None,
)
trainer.fit(model)
# make sure correct steps were called
assert model.training_step_called
assert not model.training_step_end_called
assert not model.training_epoch_end_called
# make sure training outputs what is expected
for batch_idx, batch in enumerate(model.train_dataloader()):
break
out = trainer.train_loop.run_training_batch(batch, batch_idx, 0)
assert out.signal == 0
assert trainer.logger_connector.logged_metrics['log_acc1'] == 12.0
assert trainer.logger_connector.logged_metrics['log_acc2'] == 7.0
train_step_out = out.training_step_output_for_epoch_end
assert len(train_step_out) == 1
train_step_out = train_step_out[0][0]
pbar_metrics = train_step_out['progress_bar']
assert 'log' in train_step_out
assert 'progress_bar' in train_step_out
assert train_step_out['train_step_test'] == 549
assert pbar_metrics['pbar_acc1'] == 17.0
assert pbar_metrics['pbar_acc2'] == 19.0
# make sure the optimizer closure returns the correct things
opt_closure_result = trainer.train_loop.training_step_and_backward(
batch, batch_idx, 0, trainer.optimizers[0], trainer.hiddens
)
assert opt_closure_result['loss'] == (42.0 * 3) + (15.0 * 3)
def training_step_with_step_end(tmpdir):
"""
Checks train_step + training_step_end
"""
model = DeterministicModel()
model.training_step = model.training_step__dict_return
model.training_step_end = model.training_step_end__dict
model.val_dataloader = None
trainer = Trainer(
default_root_dir=tmpdir,
fast_dev_run=True,
weights_summary=None,
)
trainer.fit(model)
# make sure correct steps were called
assert model.training_step_called
assert model.training_step_end_called
assert not model.training_epoch_end_called
# make sure training outputs what is expected
for batch_idx, batch in enumerate(model.train_dataloader()):
break
out = trainer.train_loop.run_training_batch(batch, batch_idx, 0)
assert out.signal == 0
assert trainer.logger_connector.logged_metrics['log_acc1'] == 14.0
assert trainer.logger_connector.logged_metrics['log_acc2'] == 9.0
train_step_end_out = out.training_step_output_for_epoch_end
pbar_metrics = train_step_end_out['progress_bar']
assert 'train_step_end' in train_step_end_out
assert pbar_metrics['pbar_acc1'] == 19.0
assert pbar_metrics['pbar_acc2'] == 21.0
def test_full_training_loop_dict(tmpdir):
"""
Checks train_step + training_step_end + training_epoch_end
"""
model = DeterministicModel()
model.training_step = model.training_step__for_step_end_dict
model.training_step_end = model.training_step_end__dict
model.training_epoch_end = model.training_epoch_end__dict
model.val_dataloader = None
trainer = Trainer(
default_root_dir=tmpdir,
max_epochs=1,
weights_summary=None,
)
trainer.fit(model)
# make sure correct steps were called
assert model.training_step_called
assert model.training_step_end_called
assert model.training_epoch_end_called
# assert epoch end metrics were added
assert trainer.logger_connector.callback_metrics['epoch_end_log_1'] == 178
assert trainer.logger_connector.progress_bar_metrics['epoch_end_pbar_1'] == 234
# make sure training outputs what is expected
batch_idx, batch = 0, next(iter(model.train_dataloader()))
out = trainer.train_loop.run_training_batch(batch, batch_idx, 0)
assert out.signal == 0
assert trainer.logger_connector.logged_metrics['log_acc1'] == 14.0
assert trainer.logger_connector.logged_metrics['log_acc2'] == 9.0
# get the output of the first optimizer
train_step_end_out = out.training_step_output_for_epoch_end
assert len(train_step_end_out) == 1
train_step_end_out = train_step_end_out[0][0]
pbar_metrics = train_step_end_out['progress_bar']
assert pbar_metrics['pbar_acc1'] == 19.0
assert pbar_metrics['pbar_acc2'] == 21.0
@mock.patch.dict(os.environ, {"PL_DEV_DEBUG": "1"})
def test_result_obj_lr_scheduler_epoch(tmpdir):
"""
test that the LR scheduler was called at the correct time with the correct metrics
"""
model = DeterministicModel()
model.training_step = model.training_step__for_step_end_dict
model.training_step_end = model.training_step_end__dict
model.training_epoch_end = model.training_epoch_end__dict
model.val_dataloader = None
model.configure_optimizers = model.configure_optimizers__lr_on_plateau_epoch
trainer = Trainer(
default_root_dir=tmpdir,
max_epochs=3,
weights_summary=None,
)
trainer.fit(model)
assert len(trainer.dev_debugger.saved_lr_scheduler_updates) == 3
@mock.patch.dict(os.environ, {"PL_DEV_DEBUG": "1"})
def test_result_obj_lr_scheduler_step(tmpdir):
"""
test that the LR scheduler was called at the correct time with the correct metrics
"""
model = DeterministicModel()
model.training_step = model.training_step__for_step_end_dict
model.training_step_end = model.training_step_end__dict
model.training_epoch_end = model.training_epoch_end__dict
model.val_dataloader = None
model.configure_optimizers = model.configure_optimizers__lr_on_plateau_step
trainer = Trainer(
default_root_dir=tmpdir,
max_epochs=2,
weights_summary=None,
)
trainer.fit(model)
assert len(trainer.dev_debugger.saved_lr_scheduler_updates) == 8
def test_train_step_epoch_end(tmpdir):
"""
Checks train_step + training_epoch_end (NO training_step_end)
"""
model = DeterministicModel()
model.training_step = model.training_step__dict_return
model.training_step_end = None
model.training_epoch_end = model.training_epoch_end__dict
model.val_dataloader = None
trainer = Trainer(
default_root_dir=tmpdir,
max_epochs=1,
weights_summary=None,
)
trainer.fit(model)
# make sure correct steps were called
assert model.training_step_called
assert not model.training_step_end_called
assert model.training_epoch_end_called
# assert epoch end metrics were added
assert trainer.logger_connector.callback_metrics['epoch_end_log_1'] == 178
assert trainer.logger_connector.progress_bar_metrics['epoch_end_pbar_1'] == 234
# make sure training outputs what is expected
batch_idx, batch = 0, next(iter(model.train_dataloader()))
out = trainer.train_loop.run_training_batch(batch, batch_idx, 0)
assert out.signal == 0
assert trainer.logger_connector.logged_metrics['log_acc1'] == 12.0
assert trainer.logger_connector.logged_metrics['log_acc2'] == 7.0
# outputs are for 1 optimizer and no tbptt
train_step_end_out = out.training_step_output_for_epoch_end
assert len(train_step_end_out) == 1
train_step_end_out = train_step_end_out[0][0]
pbar_metrics = train_step_end_out['progress_bar']
assert pbar_metrics['pbar_acc1'] == 17.0
assert pbar_metrics['pbar_acc2'] == 19.0
| 34.630252
| 86
| 0.73999
| 1,165
| 8,242
| 4.891845
| 0.158798
| 0.093525
| 0.086506
| 0.045622
| 0.80172
| 0.787331
| 0.78119
| 0.766801
| 0.751711
| 0.743639
| 0
| 0.017923
| 0.180903
| 8,242
| 237
| 87
| 34.776371
| 0.826248
| 0.183693
| 0
| 0.761905
| 0
| 0
| 0.048448
| 0
| 0
| 0
| 0
| 0
| 0.312925
| 1
| 0.040816
| false
| 0
| 0.027211
| 0
| 0.068027
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9c4f11ea17d0de3200daf1da192c5acc582c6b61
| 5,763
|
py
|
Python
|
src/testers/unittests/test_only_symbolized_mode.py
|
LightSecOps/Triton
|
d167a1855ed0d74352deae6e32b3f95ceb4bb705
|
[
"Apache-2.0"
] | 15
|
2021-12-08T09:53:35.000Z
|
2022-03-07T10:13:37.000Z
|
src/testers/unittests/test_only_symbolized_mode.py
|
LightSecOps/Triton
|
d167a1855ed0d74352deae6e32b3f95ceb4bb705
|
[
"Apache-2.0"
] | null | null | null |
src/testers/unittests/test_only_symbolized_mode.py
|
LightSecOps/Triton
|
d167a1855ed0d74352deae6e32b3f95ceb4bb705
|
[
"Apache-2.0"
] | 1
|
2021-12-27T18:01:41.000Z
|
2021-12-27T18:01:41.000Z
|
#!/usr/bin/env python2
# coding: utf-8
"""Test ONLY_ON_SYMBOLIZED."""
import unittest
from triton import ARCH, MODE, CPUSIZE, TritonContext, Instruction, MemoryAccess
def checkAstIntegrity(instruction):
"""
This function check if all ASTs under an Instruction class are still
available.
"""
try:
for se in instruction.getSymbolicExpressions():
str(se.getAst())
for x, y in instruction.getLoadAccess():
str(y)
for x, y in instruction.getStoreAccess():
str(y)
for x, y in instruction.getReadRegisters():
str(y)
for x, y in instruction.getWrittenRegisters():
str(y)
for x, y in instruction.getReadImmediates():
str(y)
return True
except:
return False
class TestOnlySymbolizedMode(unittest.TestCase):
"""Testing the ONLY_ON_SYMBOLIZED mode."""
def test_1(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, False)
inst = Instruction(b"\x48\x89\xc3") # mov rbx, rax
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 1)
self.assertEqual(len(inst.getWrittenRegisters()), 2)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 0)
self.assertEqual(len(inst.getWrittenRegisters()), 0)
self.assertEqual(len(inst.getLoadAccess()), 0)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_2(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.symbolizeRegister(ctx.registers.rax)
inst = Instruction(b"\x48\x89\xc3") # mov rbx, rax
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 1)
self.assertEqual(len(inst.getWrittenRegisters()), 1)
self.assertEqual(len(inst.getLoadAccess()), 0)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_3(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 1)
self.assertEqual(len(inst.getWrittenRegisters()), 2)
self.assertEqual(len(inst.getLoadAccess()), 1)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_4(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.symbolizeRegister(ctx.registers.rax)
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 1)
self.assertEqual(len(inst.getWrittenRegisters()), 0)
self.assertEqual(len(inst.getLoadAccess()), 0)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_5(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.symbolizeMemory(MemoryAccess(0, CPUSIZE.QWORD))
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 0)
self.assertEqual(len(inst.getWrittenRegisters()), 1)
self.assertEqual(len(inst.getLoadAccess()), 1)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_6(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.symbolizeRegister(ctx.registers.rax)
ctx.symbolizeMemory(MemoryAccess(0, CPUSIZE.QWORD))
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(len(inst.getReadRegisters()), 1)
self.assertEqual(len(inst.getWrittenRegisters()), 1)
self.assertEqual(len(inst.getLoadAccess()), 1)
self.assertEqual(len(inst.getStoreAccess()), 0)
def test_7(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.setConcreteRegisterValue(ctx.registers.rax, 0x1337)
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(inst.getOperands()[1].getAddress(), 0x1337)
self.assertIsNone(inst.getOperands()[1].getLeaAst())
def test_8(self):
ctx = TritonContext()
ctx.setArchitecture(ARCH.X86_64)
ctx.setMode(MODE.ONLY_ON_SYMBOLIZED, True)
ctx.setConcreteRegisterValue(ctx.registers.rax, 0x1337)
ctx.symbolizeRegister(ctx.registers.rax)
ctx.symbolizeMemory(MemoryAccess(0, CPUSIZE.QWORD))
inst = Instruction(b"\x48\x8b\x18") # mov rbx, qword ptr [rax]
self.assertTrue(ctx.processing(inst))
self.assertTrue(checkAstIntegrity(inst))
self.assertEqual(inst.getOperands()[1].getAddress(), 0x1337)
self.assertIsNotNone(inst.getOperands()[1].getLeaAst())
| 34.508982
| 80
| 0.655735
| 643
| 5,763
| 5.821151
| 0.150855
| 0.112209
| 0.125033
| 0.152819
| 0.849052
| 0.844243
| 0.844243
| 0.811648
| 0.799092
| 0.799092
| 0
| 0.029933
| 0.217421
| 5,763
| 166
| 81
| 34.716867
| 0.8
| 0.061253
| 0
| 0.777778
| 0
| 0
| 0.017874
| 0
| 0
| 0
| 0.004468
| 0
| 0.410256
| 1
| 0.076923
| false
| 0
| 0.017094
| 0
| 0.119658
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
92cb62e90fb4e16ea2de89d50e510405006b073b
| 1,390
|
py
|
Python
|
gluon/packages/dal/pydal/dialects/couchdb.py
|
GeorgesBrantley/ResistanceGame
|
65ec925ec8399af355e176c4814a749fde5f907d
|
[
"BSD-3-Clause"
] | 408
|
2015-01-01T10:31:47.000Z
|
2022-03-26T17:41:21.000Z
|
gluon/packages/dal/pydal/dialects/couchdb.py
|
GeorgesBrantley/ResistanceGame
|
65ec925ec8399af355e176c4814a749fde5f907d
|
[
"BSD-3-Clause"
] | 521
|
2015-01-08T14:45:54.000Z
|
2022-03-24T11:15:22.000Z
|
gluon/packages/dal/pydal/dialects/couchdb.py
|
GeorgesBrantley/ResistanceGame
|
65ec925ec8399af355e176c4814a749fde5f907d
|
[
"BSD-3-Clause"
] | 158
|
2015-01-25T20:02:00.000Z
|
2022-03-01T06:29:12.000Z
|
from ..adapters.couchdb import CouchDB
from .base import NoSQLDialect
from . import dialects
@dialects.register_for(CouchDB)
class CouchDBDialect(NoSQLDialect):
def _and(self, first, second, query_env={}):
return "(%s && %s)" % (
self.expand(first, query_env=query_env),
self.expand(second, query_env=query_env),
)
def _or(self, first, second, query_env={}):
return "(%s || %s)" % (
self.expand(first, query_env=query_env),
self.expand(second, query_env=query_env),
)
def eq(self, first, second=None, query_env={}):
if second is None:
return "(%s == null)" % self.expand(first, query_env=query_env)
return "(%s == %s)" % (
self.expand(first, query_env=query_env),
self.expand(second, first.type, query_env=query_env),
)
def ne(self, first, second=None, query_env={}):
if second is None:
return "(%s != null)" % self.expand(first, query_env=query_env)
return "(%s != %s)" % (
self.expand(first, query_env=query_env),
self.expand(second, first.type, query_env=query_env),
)
def comma(self, first, second, query_env={}):
return "%s + %s" % (
self.expand(first, query_env=query_env),
self.expand(second, query_env=query_env),
)
| 33.902439
| 75
| 0.576978
| 173
| 1,390
| 4.450867
| 0.17341
| 0.301299
| 0.202597
| 0.249351
| 0.805195
| 0.805195
| 0.805195
| 0.805195
| 0.805195
| 0.805195
| 0
| 0
| 0.276978
| 1,390
| 40
| 76
| 34.75
| 0.766169
| 0
| 0
| 0.352941
| 0
| 0
| 0.051079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.147059
| false
| 0
| 0.088235
| 0.088235
| 0.470588
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
92ea11e528796a4975855d59cd31f84ff377cfeb
| 5,610
|
py
|
Python
|
tests/unit/openstack/heat/test_template.py
|
manojn97/openstack-vim-driver
|
213172c60f862fc3f45b486c62172cc36ccb2784
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/openstack/heat/test_template.py
|
manojn97/openstack-vim-driver
|
213172c60f862fc3f45b486c62172cc36ccb2784
|
[
"Apache-2.0"
] | 39
|
2019-09-16T09:14:28.000Z
|
2020-07-24T08:15:29.000Z
|
tests/unit/openstack/heat/test_template.py
|
manojn97/openstack-vim-driver
|
213172c60f862fc3f45b486c62172cc36ccb2784
|
[
"Apache-2.0"
] | 3
|
2019-09-06T15:09:10.000Z
|
2020-05-27T17:40:24.000Z
|
import unittest
from osvimdriver.openstack.heat.template import HeatInputUtil
from ignition.utils.propvaluemap import PropValueMap
class TestHeatInputUtil(unittest.TestCase):
def test_filter_used_properties(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB:
type: string
'''
orig_props = {'propA': 'testA', 'propB': 'testB', 'propC': 'testC'}
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB': 'testB'})
def test_filter_used_properties_prop_value_map(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'string', 'value': 'testA'},
'propB': {'type': 'string', 'value': 'testB'},
'propC': {'type': 'string', 'value': 'testC'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB': 'testB'})
def test_filter_used_properties_reference_key_name(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'string', 'value': 'testA'},
'propB': {'type': 'key', 'keyName': 'keyB', 'privateKey': 'thisIsPrivate', 'publicKey': 'thisIsPublic'},
'propC': {'type': 'string', 'value': 'testC'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB': 'keyB'})
def test_filter_used_properties_reference_public(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB_public:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'string', 'value': 'testA'},
'propB': {'type': 'key', 'keyName': 'keyB', 'privateKey': 'thisIsPrivate', 'publicKey': 'thisIsPublic'},
'propC': {'type': 'string', 'value': 'testC'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB_public': 'thisIsPublic'})
def test_filter_used_properties_reference_private(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB_private:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'string', 'value': 'testA'},
'propB': {'type': 'key', 'keyName': 'keyB', 'privateKey': 'thisIsPrivate', 'publicKey': 'thisIsPublic'},
'propC': {'type': 'string', 'value': 'testC'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB_private': 'thisIsPrivate'})
def test_filter_used_properties_reference_all_parts_of_key(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA:
type: string
propB:
type: string
propB_private:
type: string
propB_public:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'string', 'value': 'testA'},
'propB': {'type': 'key', 'keyName': 'keyB', 'privateKey': 'thisIsPrivate', 'publicKey': 'thisIsPublic'},
'propC': {'type': 'string', 'value': 'testC'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA': 'testA', 'propB': 'keyB', 'propB_public': 'thisIsPublic', 'propB_private': 'thisIsPrivate'})
def test_filter_used_properties_allows_public_key_suffix_on_non_key_property(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA_public:
type: string
'''
orig_props = PropValueMap({
'propA_public': {'type': 'string', 'value': 'testA'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA_public': 'testA'})
def test_filter_used_properties_allows_private_key_suffix_on_non_key_property(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA_private:
type: string
'''
orig_props = PropValueMap({
'propA_private': {'type': 'string', 'value': 'testA'}
})
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {'propA_private': 'testA'})
def test_filter_used_properties_supports_no_public_key(self):
util = HeatInputUtil()
heat_yml = '''
parameters:
propA_public:
type: string
'''
orig_props = PropValueMap({
'propA': {'type': 'key', 'keyName': 'keyA', 'privateKey': 'thisIsPrivate'}
})
# The property has no public key, so nothing is added to the used properties. Let Heat determine if this parameter is required
# (and ultimately throw an error if it is)
new_props = util.filter_used_properties(heat_yml, orig_props)
self.assertEqual(new_props, {})
| 37.651007
| 138
| 0.573975
| 547
| 5,610
| 5.61426
| 0.144424
| 0.097688
| 0.117226
| 0.049821
| 0.843048
| 0.827743
| 0.769782
| 0.7535
| 0.718007
| 0.718007
| 0
| 0
| 0.288057
| 5,610
| 148
| 139
| 37.905405
| 0.768903
| 0.02959
| 0
| 0.808824
| 0
| 0
| 0.360228
| 0
| 0
| 0
| 0
| 0
| 0.066176
| 1
| 0.066176
| false
| 0
| 0.022059
| 0
| 0.095588
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
92efa91ab8acc711ad5099afbc639903e313e095
| 2,594
|
py
|
Python
|
graphs.py
|
caly-pso/disease_explorer_app
|
3a7a5123577b1d23af18c74ee9666dfa012298ab
|
[
"MIT"
] | 2
|
2020-12-16T03:01:17.000Z
|
2020-12-16T03:39:46.000Z
|
graphs.py
|
caly-pso/disease_explorer_app
|
3a7a5123577b1d23af18c74ee9666dfa012298ab
|
[
"MIT"
] | null | null | null |
graphs.py
|
caly-pso/disease_explorer_app
|
3a7a5123577b1d23af18c74ee9666dfa012298ab
|
[
"MIT"
] | null | null | null |
import streamlit as st
def draw_tot_cases_graph(df):
tot_cases_by_day = df.groupby("date")["cases"].sum()
st.write("Total cases(US):")
st.line_chart(tot_cases_by_day)
def draw_daily_cases_graph(df):
cases_by_day = df.groupby("date")["cases"].sum().reset_index(name="cases")
shifted = cases_by_day["cases"].shift(1)
cases_by_day["daily_cases"] = cases_by_day["cases"] - shifted
cases_by_day.drop(columns=["cases"], axis=1, inplace=True)
cases_by_day.set_index("date", inplace=True)
st.write("Daily cases(US):")
st.bar_chart(cases_by_day)
def draw_tot_deaths_graph(df):
tot_cases_by_day = df.groupby("date")["deaths"].sum()
st.write("Total deaths(US):")
st.line_chart(tot_cases_by_day)
def draw_daily_deaths_graph(df):
cases_by_day = df.groupby("date")["deaths"].sum().reset_index(name="deaths")
shifted = cases_by_day["deaths"].shift(1)
cases_by_day["daily_deaths"] = cases_by_day["deaths"] - shifted
cases_by_day.drop(columns=["deaths"], axis=1, inplace=True)
cases_by_day.set_index("date", inplace=True)
st.write("Daily deaths(US):")
st.bar_chart(cases_by_day)
def draw_county_state_cases_graph(df, co, state):
county_state_cases_by_day = df.groupby("date")["cases"].sum()
st.write(f"Total cases({co}, {state}):")
st.line_chart(county_state_cases_by_day)
def draw_daily_county_state_cases_graph(df, co, state):
cases_by_day = df.groupby("date")["cases"].sum().reset_index(name="cases")
shifted = cases_by_day["cases"].shift(1)
cases_by_day["daily_cases"] = cases_by_day["cases"] - shifted
cases_by_day.loc[cases_by_day.daily_cases < 0, "daily_cases"] = 0
cases_by_day.drop(columns=["cases"], axis=1, inplace=True)
cases_by_day.set_index("date", inplace=True)
st.write(f"Daily cases({co}, {state}):")
st.bar_chart(cases_by_day)
def draw_county_state_deaths_graph(df, co, state):
county_state_deaths_by_day = df.groupby("date")["deaths"].sum()
st.write(f"Total deaths({co}, {state}):")
st.line_chart(county_state_deaths_by_day)
def draw_daily_county_state_deaths_graph(df, co, state):
cases_by_day = df.groupby("date")["deaths"].sum().reset_index(name="deaths")
shifted = cases_by_day["deaths"].shift(1)
cases_by_day["daily_deaths"] = cases_by_day["deaths"] - shifted
cases_by_day.loc[cases_by_day.daily_deaths < 0, "daily_deaths"] = 0
cases_by_day.drop(columns=["deaths"], axis=1, inplace=True)
cases_by_day.set_index("date", inplace=True)
st.write(f"Daily deaths({co}, {state}):")
st.bar_chart(cases_by_day)
| 37.594203
| 80
| 0.70586
| 420
| 2,594
| 4.011905
| 0.097619
| 0.118694
| 0.225519
| 0.066469
| 0.922255
| 0.901484
| 0.88724
| 0.789911
| 0.761424
| 0.663501
| 0
| 0.005298
| 0.126831
| 2,594
| 68
| 81
| 38.147059
| 0.738631
| 0
| 0
| 0.509804
| 0
| 0
| 0.163903
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.156863
| false
| 0
| 0.019608
| 0
| 0.176471
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1312836186965e2f30e0016f8a55799ca8570b23
| 162
|
py
|
Python
|
bridge_sim/sim/__init__.py
|
jerbaroo/bridge-sim
|
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
|
[
"MIT"
] | 2
|
2020-05-12T11:41:49.000Z
|
2020-08-10T15:00:58.000Z
|
bridge_sim/sim/__init__.py
|
barischrooneyj/bridge-sim
|
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
|
[
"MIT"
] | 48
|
2020-05-11T23:58:22.000Z
|
2020-09-18T20:28:52.000Z
|
bridge_sim/sim/__init__.py
|
jerbaroo/bridge-sim
|
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
|
[
"MIT"
] | 1
|
2020-05-27T12:43:37.000Z
|
2020-05-27T12:43:37.000Z
|
"""Save/load responses from FE simulation."""
import bridge_sim.sim.model as model
import bridge_sim.sim.responses as responses
import bridge_sim.sim.run as run
| 27
| 45
| 0.802469
| 27
| 162
| 4.703704
| 0.444444
| 0.283465
| 0.354331
| 0.425197
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 162
| 5
| 46
| 32.4
| 0.881944
| 0.240741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
1315f4e2b24a3990bc871e5f11f82b593fe87bf4
| 35
|
py
|
Python
|
src/vbr/utils/helpers/tapis/__init__.py
|
a2cps/python-vbr
|
9d5d4480386d0530450d59157e0da6937320f928
|
[
"BSD-3-Clause"
] | 1
|
2021-05-26T19:08:29.000Z
|
2021-05-26T19:08:29.000Z
|
src/vbr/utils/helpers/tapis/__init__.py
|
a2cps/python-vbr
|
9d5d4480386d0530450d59157e0da6937320f928
|
[
"BSD-3-Clause"
] | 7
|
2021-05-04T13:12:39.000Z
|
2022-03-09T21:04:33.000Z
|
src/vbr/utils/helpers/tapis/__init__.py
|
a2cps/python-vbr
|
9d5d4480386d0530450d59157e0da6937320f928
|
[
"BSD-3-Clause"
] | 2
|
2021-04-20T14:46:52.000Z
|
2021-06-07T20:28:28.000Z
|
from .get_client import get_client
| 17.5
| 34
| 0.857143
| 6
| 35
| 4.666667
| 0.666667
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 35
| 1
| 35
| 35
| 0.903226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
134730743d574f2519f91cc046b029d48e065ee7
| 31
|
py
|
Python
|
pyutilib/misc/tests/import_data/tfile1.0.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 24
|
2016-04-02T10:00:02.000Z
|
2021-03-02T16:40:18.000Z
|
pyutilib/misc/tests/import_data/tfile1.0.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 105
|
2015-10-29T03:29:58.000Z
|
2021-12-30T22:00:45.000Z
|
pyutilib/misc/tests/import_data/tfile1.0.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 22
|
2016-01-21T15:35:25.000Z
|
2021-05-15T20:17:44.000Z
|
def f():
return 'tfile1.0'
| 10.333333
| 21
| 0.548387
| 5
| 31
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 0.258065
| 31
| 2
| 22
| 15.5
| 0.652174
| 0
| 0
| 0
| 0
| 0
| 0.258065
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
134c396f6454b599c8940e396d4029068b229f99
| 5,586
|
py
|
Python
|
tests/test.py
|
gustavopinho/api-lomadee-v3
|
02bfd73b9093a6de5e61772f4019d11889d7131a
|
[
"MIT"
] | 1
|
2020-11-04T22:59:43.000Z
|
2020-11-04T22:59:43.000Z
|
tests/test.py
|
gustavopinho/api-lomadee-v3
|
02bfd73b9093a6de5e61772f4019d11889d7131a
|
[
"MIT"
] | 1
|
2021-06-02T00:32:43.000Z
|
2021-06-02T00:32:43.000Z
|
tests/test.py
|
gustavopinho/lomadeepy
|
02bfd73b9093a6de5e61772f4019d11889d7131a
|
[
"MIT"
] | null | null | null |
import os
import unittest
from dotenv import load_dotenv
from lomadeepy import Offers, Categories, Stores, Coupons, DeepLink
def load_env():
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
load_dotenv(os.path.join(BASE_DIR, '.env'))
class TestOffers(unittest.TestCase):
@classmethod
def setUpClass(self):
load_env()
self.offers = Offers(
os.environ.get('APP_TOKEN'),
os.environ.get('SOURCE_ID'),
sandbox=True,
version='v3'
)
def test_bestsellers(self):
response = self.offers.bestsellers(page=1, size=5)
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 5)
def test_category(self):
response = self.offers.category(
'77', page=1, size=10
)
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 10)
def test_store(self):
response = self.offers.store(
'5766', page=1, size=10
)
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 10)
def test_offer(self):
response = self.offers.offer(
'6342', '265'
)
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 1)
def test_search(self):
response = self.offers.search(
'Samsung', page=1, size=10
)
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 10)
class TestCategories(unittest.TestCase):
@classmethod
def setUpClass(self):
load_env()
self.categories = Categories(
os.environ.get('APP_TOKEN'),
os.environ.get('SOURCE_ID'),
sandbox=True,
version='v3'
)
def test_all(self):
response = self.categories.all()
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
def test_category(self):
response = self.categories.category('77')
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
self.assertEqual(response['pagination']['page'], 1)
self.assertEqual(response['pagination']['size'], 1)
def test_search(self):
response = self.categories.search('Celular e Smartphone')
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
class TestStores(unittest.TestCase):
@classmethod
def setUpClass(self):
load_env()
self.stores = Stores(
os.environ.get('APP_TOKEN'),
os.environ.get('SOURCE_ID'),
sandbox=True,
version='v3'
)
def test_all(self):
response = self.stores.all()
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
class TestCoupons(unittest.TestCase):
@classmethod
def setUpClass(self):
load_env()
self.coupons = Coupons(
os.environ.get('APP_TOKEN'),
os.environ.get('SOURCE_ID'),
sandbox=True,
version='v2'
)
def test_all(self):
response = self.coupons.all()
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
def test_coupon(self):
response = self.coupons.coupon('9768')
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
def test_category(self):
response = self.coupons.categories()
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
def test_store(self):
response = self.coupons.stores()
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
class TestDeepLink(unittest.TestCase):
@classmethod
def setUpClass(self):
load_env()
self.deepLink = DeepLink(
os.environ.get('APP_TOKEN'),
os.environ.get('SOURCE_ID'),
sandbox=True,
version='v2'
)
def test_create(self):
response = self.deepLink.create('https://www.americanas.com.br/')
self.assertEqual(response['requestInfo']['status'], 'OK')
self.assertEqual(response['requestInfo']['message'], 'SUCCESS')
if __name__ == '__main__':
unittest.main()
| 33.053254
| 74
| 0.61135
| 563
| 5,586
| 5.984014
| 0.143872
| 0.178094
| 0.273078
| 0.282576
| 0.799941
| 0.790442
| 0.763134
| 0.763134
| 0.763134
| 0.681508
| 0
| 0.011609
| 0.228965
| 5,586
| 168
| 75
| 33.25
| 0.770606
| 0
| 0
| 0.622222
| 0
| 0
| 0.174006
| 0
| 0
| 0
| 0
| 0
| 0.296296
| 1
| 0.148148
| false
| 0
| 0.02963
| 0
| 0.214815
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
135213990fadc1c75b27737a27df216c296e5f94
| 2,871
|
py
|
Python
|
tests/test_joiner.py
|
jnbellinger/lta
|
b7cb3c65e0f167e56abb67f8283083aafd700e42
|
[
"MIT"
] | 1
|
2019-07-30T16:03:26.000Z
|
2019-07-30T16:03:26.000Z
|
tests/test_joiner.py
|
jnbellinger/lta
|
b7cb3c65e0f167e56abb67f8283083aafd700e42
|
[
"MIT"
] | 80
|
2019-01-10T21:46:43.000Z
|
2022-03-24T22:40:54.000Z
|
tests/test_joiner.py
|
jnbellinger/lta
|
b7cb3c65e0f167e56abb67f8283083aafd700e42
|
[
"MIT"
] | 1
|
2018-12-10T21:13:11.000Z
|
2018-12-10T21:13:11.000Z
|
# test_joiner.py
"""Unit tests for lta/joiner.py."""
from lta.joiner import join_smart, join_smart_url
def test_join_smart_empty():
"""Test join_smart functionality."""
assert join_smart([]) == "."
def test_join_smart_many_relative():
"""Test join_smart functionality."""
assert join_smart(["data", "exp", "IceCube"]) == "data/exp/IceCube"
def test_join_smart_many_absolute():
"""Test join_smart functionality."""
assert join_smart(["/data", "/exp", "/IceCube"]) == "/data/exp/IceCube"
def test_join_smart_many_absolute_trailing_slashes():
"""Test join_smart functionality."""
assert join_smart(["/data/", "/exp/", "/IceCube/"]) == "/data/exp/IceCube/"
def test_join_smart_url():
"""Test join_smart functionality."""
CORRECT = "gsiftp://gridftp.zeuthen.desy.de:2811/pnfs/ifh.de/acs/icecube/archive/mnt/lfss/jade-lta/bundler_out/fdd3c3865d1011eb97bb6224ddddaab7.zip"
assert join_smart_url(["gsiftp://gridftp.zeuthen.desy.de:2811/pnfs/ifh.de/acs/icecube/archive/",
"/mnt/lfss/jade-lta/bundler_out/fdd3c3865d1011eb97bb6224ddddaab7.zip"]) == CORRECT
def test_join_smart_url_with_path_and_basename():
"""Test join_smart functionality."""
CORRECT = "gsiftp://gridftp.zeuthen.desy.de:2811/pnfs/ifh.de/acs/icecube/archive/data/exp/IceCube/2015/filtered/level2/0320/fdd3c3865d1011eb97bb6224ddddaab7.zip"
assert join_smart_url(["gsiftp://gridftp.zeuthen.desy.de:2811/pnfs/ifh.de/acs/icecube/archive/",
"/data/exp/IceCube/2015/filtered/level2/0320",
"fdd3c3865d1011eb97bb6224ddddaab7.zip"]) == CORRECT
def test_join_smart_desy_bundle_path():
"""Test join_smart functionality."""
CORRECT = "/pnfs/ifh.de/acs/icecube/archive/data/exp/IceCube/2015/filtered/level2/0320/604b6c80659c11eb8ad66224ddddaab7.zip"
assert join_smart(["/pnfs/ifh.de/acs/icecube/archive",
"/data/exp/IceCube/2015/filtered/level2/0320",
"604b6c80659c11eb8ad66224ddddaab7.zip"]) == CORRECT
assert join_smart(["/pnfs/ifh.de/acs/icecube/archive/",
"/data/exp/IceCube/2015/filtered/level2/0320",
"604b6c80659c11eb8ad66224ddddaab7.zip"]) == CORRECT
assert join_smart(["/pnfs/ifh.de/acs/icecube/archive",
"/data/exp/IceCube/2015/filtered/level2/0320/",
"604b6c80659c11eb8ad66224ddddaab7.zip"]) == CORRECT
assert join_smart(["/pnfs/ifh.de/acs/icecube/archive/",
"/data/exp/IceCube/2015/filtered/level2/0320/",
"604b6c80659c11eb8ad66224ddddaab7.zip"]) == CORRECT
assert join_smart(["/pnfs/ifh.de/acs/icecube/archive",
"/data/exp/IceCube/2015/filtered/level2/0320",
"/604b6c80659c11eb8ad66224ddddaab7.zip"]) == CORRECT
| 54.169811
| 165
| 0.666318
| 327
| 2,871
| 5.672783
| 0.159021
| 0.130997
| 0.098113
| 0.06469
| 0.918059
| 0.886253
| 0.886253
| 0.839353
| 0.839353
| 0.839353
| 0
| 0.110638
| 0.18147
| 2,871
| 52
| 166
| 55.211538
| 0.678723
| 0.091257
| 0
| 0.485714
| 0
| 0.142857
| 0.524143
| 0.484034
| 0
| 0
| 0
| 0
| 0.314286
| 1
| 0.2
| false
| 0
| 0.028571
| 0
| 0.228571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
135a645e24415b7d3714c6799052455d5ba37773
| 89
|
py
|
Python
|
src/Tests/Sample/conftest.py
|
AaronWxy/TestCommon
|
259d605d555dde3736b3f7f445242a7bf8067bbc
|
[
"MIT"
] | null | null | null |
src/Tests/Sample/conftest.py
|
AaronWxy/TestCommon
|
259d605d555dde3736b3f7f445242a7bf8067bbc
|
[
"MIT"
] | null | null | null |
src/Tests/Sample/conftest.py
|
AaronWxy/TestCommon
|
259d605d555dde3736b3f7f445242a7bf8067bbc
|
[
"MIT"
] | null | null | null |
from src.resource.conftest import *
from src.resource.conftest import test_name_dic as c
| 29.666667
| 52
| 0.831461
| 15
| 89
| 4.8
| 0.666667
| 0.194444
| 0.416667
| 0.638889
| 0.805556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11236
| 89
| 2
| 53
| 44.5
| 0.911392
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
13853beb3814aabc9dc7c35ddff9d709c1104c8f
| 29,209
|
py
|
Python
|
tests/test_candidate_json_generation.py
|
audreyseo/tisane
|
1a73fbbe81a3890b712d4a92765b38259b24c7b3
|
[
"Apache-2.0"
] | 8
|
2021-08-31T19:03:08.000Z
|
2022-03-30T05:49:23.000Z
|
tests/test_candidate_json_generation.py
|
audreyseo/tisane
|
1a73fbbe81a3890b712d4a92765b38259b24c7b3
|
[
"Apache-2.0"
] | 7
|
2021-08-30T02:00:34.000Z
|
2022-01-19T05:44:52.000Z
|
tests/test_candidate_json_generation.py
|
audreyseo/tisane
|
1a73fbbe81a3890b712d4a92765b38259b24c7b3
|
[
"Apache-2.0"
] | 2
|
2021-12-27T22:28:15.000Z
|
2022-01-19T00:42:47.000Z
|
from tisane.random_effects import RandomIntercept, RandomSlope
from unittest import main
from tisane.variable import Measure
import tisane as ts
from tisane.main import collect_model_candidates, collect_model_candidates
from tisane.graph_inference import (
infer_interaction_effects_with_explanations,
infer_random_effects_with_explanations,
infer_main_effects_with_explanations,
infer_interaction_effects_with_explanations,
infer_random_effects_with_explanations,
)
from tisane.family_link_inference import infer_family_functions, infer_link_functions
import unittest
class CandidateJSONGenerationTest(unittest.TestCase):
def test_main_effects_only(self):
u0 = ts.Unit("Unit")
m0 = u0.numeric("Measure_0")
m1 = u0.numeric("Measure_1")
dv = u0.numeric("Dependent_variable")
design = ts.Design(dv=dv, ivs=[m0, m1])
main_effects = set()
main_effects.add(m0)
main_effects.add(m1)
interaction_effects = set()
random_effects = set()
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(combined_dict.keys()), 1) # "input"
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertIsInstance(input["generated random effects"], dict)
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_main_interaction(self):
u0 = ts.Unit("Unit")
m0 = u0.numeric("Measure_0")
m1 = u0.numeric("Measure_1")
m2 = u0.numeric("Measure_2")
dv = u0.numeric("Dependent_variable")
m0.causes(dv)
m1.causes(dv)
m2.moderates(moderator=m1, on=dv)
design = ts.Design(dv=dv, ivs=[m0, m1, m2])
gr = design.graph
main_effects = set()
main_effects.add(m0)
main_effects.add(m1)
main_effects.add(m2)
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(gr, design, main_effects)
random_effects = set()
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(combined_dict.keys()), 1) # "input"
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 1)
self.assertIsInstance(input["generated random effects"], dict)
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_main_interaction_random_intercept(self):
u0 = ts.Unit("Unit")
s0 = ts.SetUp("Time", order=[1, 2, 3, 4, 5])
m0 = u0.numeric("Measure_0")
m1 = u0.numeric("Measure_1")
m2 = u0.numeric("Measure_2")
dv = u0.numeric("Dependent_variable", number_of_instances=s0)
m0.causes(dv)
m1.causes(dv)
m2.moderates(moderator=m1, on=dv)
design = ts.Design(dv=dv, ivs=[m0, m1, m2, s0]) # main effect of Time
gr = design.graph
main_effects = set()
main_effects.add(s0)
main_effects.add(m0)
main_effects.add(m1)
main_effects.add(m2)
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(gr, design, main_effects)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr, query=design, main_effects=main_effects
)
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(combined_dict.keys()), 1) # "input"
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 1)
self.assertIsInstance(input["generated random effects"], dict)
self.assertEqual(len(input["generated random effects"]), 2)
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_main_interaction_random_slope_from_interaction_one_variable(self):
u = ts.Unit("Unit")
a = u.nominal(
"Measure A", cardinality=2, number_of_instances=2
) # A is within-subjects
b = u.nominal("Measure B", cardinality=2) # B is between-subjects
dv = u.numeric("Dependent_variable")
a.causes(dv)
b.causes(dv)
a.moderates(moderator=[b], on=dv)
design = ts.Design(dv=dv, ivs=[a, b])
gr = design.graph
main_effects = design.ivs
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(
gr=gr, query=design, main_effects=main_effects
)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr,
query=design,
main_effects=main_effects,
interaction_effects=interaction_effects,
)
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(random_effects), 1)
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 1)
self.assertIsInstance(input["generated random effects"], dict)
self.assertEqual(len(input["generated random effects"]), 1)
self.assertIn(u.name, input["generated random effects"].keys())
self.assertEqual(len(input["generated random effects"][u.name]), 1)
rs_dict = input["generated random effects"][u.name]
self.assertIsInstance(rs_dict, dict)
self.assertIn("random slope", rs_dict.keys())
random_slope = rs_dict["random slope"][0]
self.assertEqual(u.name, random_slope["groups"])
self.assertEqual(a.name, random_slope["iv"])
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_main_interaction_random_slope_from_interaction_two_variables(self):
u = ts.Unit("Unit")
a = u.nominal(
"Measure A", cardinality=2, number_of_instances=2
) # A is within-subjects
b = u.nominal(
"Measure B", cardinality=2, number_of_instances=2
) # B is within-subjects
dv = u.numeric("Dependent_variable")
a.causes(dv)
b.causes(dv)
a.moderates(moderator=[b], on=dv)
design = ts.Design(dv=dv, ivs=[a, b])
gr = design.graph
main_effects = design.ivs
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(
gr=gr, query=design, main_effects=main_effects
)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr,
query=design,
main_effects=main_effects,
interaction_effects=interaction_effects,
)
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(random_effects), 3)
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 1)
self.assertIsInstance(input["generated random effects"], dict)
self.assertEqual(len(input["generated random effects"]), 1)
self.assertIn(u.name, input["generated random effects"].keys())
self.assertEqual(len(input["generated random effects"][u.name]), 1)
self.assertIsInstance(input["generated random effects"][u.name], dict)
rs_dict = input["generated random effects"][u.name]
self.assertIsInstance(rs_dict, dict)
self.assertIn("random slope", rs_dict.keys())
random_slope = rs_dict["random slope"]
self.assertEqual(len(random_slope), 3)
self.assertIsInstance(random_slope, list)
rs_unit = random_slope[0]["groups"]
self.assertEqual(u.name, rs_unit)
ixn = interaction_effects.pop()
has_rs_a = False
has_rs_b = False
has_rs_a_b = False
for rs in random_slope:
if rs["iv"] == a.name:
has_rs_a = True
self.assertEqual(rs["groups"], rs_unit)
elif rs["iv"] == b.name:
has_rs_b = True
self.assertEqual(rs["groups"], rs_unit)
elif rs["iv"] == ixn.name:
has_rs_c = True
self.assertEqual(rs["groups"], rs_unit)
self.assertTrue(has_rs_a)
self.assertTrue(has_rs_b)
self.assertTrue(has_rs_c)
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_main_interaction_random_intercept_slope_correlated(self):
subject = ts.Unit("Subject", cardinality=12)
word = ts.Unit("Word", cardinality=4)
condition = subject.nominal("Word_type", cardinality=2, number_of_instances=2)
reaction_time = subject.numeric("Time", number_of_instances=word) # repeats
subject = ts.Unit("Subject")
condition = subject.nominal("Word_type", cardinality=2, number_of_instances=2)
word = subject.nominal(
"Word",
cardinality=4,
number_of_instances=ts.Exactly(2).per(number_of_instances=condition),
)
reaction_time = subject.numeric("Time", number_of_instances=word) # repeats
condition.causes(reaction_time)
design = ts.Design(dv=reaction_time, ivs=[condition])
gr = design.graph
main_effects = design.ivs
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(gr, design, main_effects)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr,
query=design,
main_effects=main_effects,
interaction_effects=interaction_effects,
)
self.assertEqual(len(random_effects), 3) # Collapsed into 2 according to groups
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(combined_dict.keys()), 1) # "input"
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 0)
self.assertIsInstance(input["generated random effects"], dict)
self.assertEqual(len(input["generated random effects"]), 2)
self.assertIn(subject.name, input["generated random effects"].keys())
self.assertIn(word.name, input["generated random effects"].keys())
re_dict = input["generated random effects"][subject.name]
self.assertEqual(len(re_dict), 3)
has_subject_rs = False
has_subject_ri = False
has_correlated = False
for k, v in re_dict.items():
if k == "random slope":
rs_list = v
self.assertIsInstance(rs_list, list)
self.assertEqual(len(rs_list), 1)
rs = rs_list[0]
self.assertIsInstance(rs, dict)
self.assertEqual(rs["groups"], subject.name)
self.assertEqual(rs["iv"], condition.name)
has_subject_rs = True
elif k == "random intercept":
ri = v
self.assertIsInstance(ri, dict)
self.assertEqual(ri["groups"], subject.name)
has_subject_ri = True
elif k == "correlated":
self.assertTrue(v)
has_correlated = True
self.assertTrue(has_subject_rs)
self.assertTrue(has_subject_ri)
self.assertTrue(has_correlated)
self.assertEqual(len(input["generated random effects"][word.name]), 1)
has_word_ri = False
re_dict = input["generated random effects"][word.name]
self.assertEqual(len(re_dict), 1)
ri_dict = re_dict["random intercept"]
self.assertEqual(ri_dict["groups"], word.name)
self.assertIsInstance(input["generated family, link functions"], dict)
self.assertIsInstance(input["measures to units"], dict)
gr = design.graph
variables = gr.get_variables()
measures = [v for v in variables if isinstance(v, Measure)]
self.assertEqual(len(input["measures to units"].keys()), len(measures))
def test_random_effects_for_all_two_way_three_way_interaction_one_between_two_within(
self,
):
u = ts.Unit("Unit")
a = u.nominal("Measure A", cardinality=2) # A is between-subjects
b = u.nominal(
"Measure B", cardinality=2, number_of_instances=2
) # B is within-subjects
c = u.nominal(
"Measure C", cardinality=2, number_of_instances=2
) # B is within-subjects
dv = u.numeric("Dependent_variable")
a.causes(dv)
b.causes(dv)
c.causes(dv)
a.moderates(moderator=[b], on=dv) # AB --> get B
a.moderates(moderator=[c], on=dv) # AC --> get C
b.moderates(moderator=[c], on=dv) # BC --> get BC
a.moderates(moderator=[b, c], on=dv) # BC --> get BC
design = ts.Design(dv=dv, ivs=[a, b])
gr = design.graph
main_effects = [a, b, c]
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(
gr=gr, query=design, main_effects=main_effects
)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr,
query=design,
main_effects=main_effects,
interaction_effects=interaction_effects,
)
self.assertEqual(len(random_effects), 3)
family_candidates = infer_family_functions(query=design)
link_candidates = set()
family_link_paired = dict()
for f in family_candidates:
l = infer_link_functions(query=design, family=f)
# Add Family: Link options
assert f not in family_link_paired.keys()
family_link_paired[f] = l
combined_dict = collect_model_candidates(
query=design,
main_effects_candidates=main_effects,
interaction_effects_candidates=interaction_effects,
random_effects_candidates=random_effects,
family_link_paired_candidates=family_link_paired,
)
self.assertEqual(len(combined_dict.keys()), 1) # "input"
input = combined_dict["input"]
input_keys = input.keys()
self.assertIsInstance(input, dict)
self.assertEqual(len(input_keys), 6)
self.assertIn("query", input_keys)
self.assertIn("generated main effects", input_keys)
self.assertIn("generated interaction effects", input_keys)
self.assertIn("generated random effects", input_keys)
self.assertIn("generated family, link functions", input_keys)
self.assertIn("measures to units", input_keys)
self.assertIsInstance(input["query"], dict)
self.assertIsInstance(input["generated main effects"], list)
self.assertIsInstance(input["generated interaction effects"], list)
self.assertEqual(len(input["generated interaction effects"]), 4)
self.assertIsInstance(input["generated random effects"], dict)
self.assertEqual(len(input["generated random effects"]), 1)
self.assertIn(u.name, input["generated random effects"].keys())
random_slopes = input["generated random effects"][u.name]["random slope"]
self.assertEqual(len(random_slopes), 3)
has_b_rs = False
has_c_rs = False
has_bc_rs = False
for re in random_slopes:
if b.name == re["iv"]:
has_b_rs = True
elif c.name == re["iv"]:
has_c_rs = True
elif b.name in re["iv"] and c.name in re["iv"]:
self.assertEqual(re["iv"], f"{b.name}*{c.name}")
has_bc_rs = True
self.assertTrue(has_b_rs)
self.assertTrue(has_c_rs)
self.assertTrue(has_bc_rs)
def test_collect_main_candidates_and_explanations(self):
u0 = ts.Unit("Unit")
m0 = u0.numeric("Measure_0")
m1 = u0.numeric("Measure_1")
m2 = u0.numeric("Measure_2")
dv = u0.numeric("Dependent_variable")
# m0 is the common (causal) ancestor
m0.causes(m1)
m0.causes(m2)
m1.causes(dv)
m2.causes(dv)
design = ts.Design(dv=dv, ivs=[m1, m2])
gr = design.graph
(main_effects, main_explanations) = infer_main_effects_with_explanations(
gr=gr, query=design
)
self.assertIsInstance(main_effects, set)
self.assertIsInstance(main_explanations, dict)
def test_collect_infer_candidates_and_explanations(self):
u0 = ts.Unit("Unit")
m0 = u0.numeric("Measure_0")
m1 = u0.numeric("Measure_1")
m2 = u0.numeric("Measure_2")
dv = u0.numeric("Dependent_variable")
m0.causes(dv)
m1.causes(dv)
m2.moderates(moderator=m1, on=dv)
design = ts.Design(dv=dv, ivs=[m0, m1]) # omit m2
gr = design.graph
(main_effects, main_explanations) = infer_main_effects_with_explanations(
gr=gr, query=design
)
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(gr, design, main_effects)
self.assertIsInstance(interaction_effects, set)
self.assertIsInstance(interaction_explanations, dict)
def test_collect_random_candidates_and_explanations(self):
u = ts.Unit("Unit")
a = u.nominal("Measure A", cardinality=2) # A is between-subjects
b = u.nominal(
"Measure B", cardinality=2, number_of_instances=2
) # B is within-subjects
c = u.nominal(
"Measure C", cardinality=2, number_of_instances=2
) # B is within-subjects
dv = u.numeric("Dependent_variable")
a.causes(dv)
b.causes(dv)
b.associates_with(c)
c.causes(dv)
a.moderates(moderator=[b], on=dv) # AB --> get B
a.moderates(moderator=[c], on=dv) # AC --> get C
b.moderates(moderator=[c], on=dv) # BC --> get BC
a.moderates(moderator=[b, c], on=dv) # ABC --> get BC
design = ts.Design(dv=dv, ivs=[a, b])
gr = design.graph
(main_effects, main_explanations) = infer_main_effects_with_explanations(
gr=gr, query=design
)
(
interaction_effects,
interaction_explanations,
) = infer_interaction_effects_with_explanations(
gr=gr, query=design, main_effects=main_effects
)
(random_effects, random_explanations) = infer_random_effects_with_explanations(
gr=gr,
query=design,
main_effects=main_effects,
interaction_effects=interaction_effects,
)
self.assertIsInstance(random_effects, set)
self.assertIsInstance(random_explanations, dict)
self.assertEqual(len(random_effects), len(random_explanations))
for k, v in random_explanations.items():
k_elements = k.split(", ")
# Is this a random slope?
if len(k_elements) == 3:
groups, iv, random_class_name = k_elements
self.assertEqual(random_class_name, RandomSlope.__name__)
else:
# This is a random intercept
assert len(k_elements) == 2
groups, random_class_name = k_elements
self.assertEqual(random_class_name, RandomIntercept.__name__)
for re in random_effects:
if isinstance(re, RandomIntercept):
name_key = f"{re.groups.name}, {type(re).__name__}"
else:
assert isinstance(re, RandomSlope)
name_key = f"{re.groups.name}, {re.iv.name}, {type(re).__name__}"
self.assertIn(name_key, random_explanations.keys())
# TODO: Check that the explanations are correct
# TODO: Add tests from effects infrence helpers that put all these together
| 42.954412
| 89
| 0.637167
| 3,360
| 29,209
| 5.322917
| 0.04881
| 0.047358
| 0.035616
| 0.041096
| 0.842158
| 0.83461
| 0.8156
| 0.805032
| 0.803634
| 0.800615
| 0
| 0.007786
| 0.261289
| 29,209
| 679
| 90
| 43.017673
| 0.821106
| 0.028176
| 0
| 0.709625
| 0
| 0.001631
| 0.115682
| 0
| 0
| 0
| 0
| 0.001473
| 0.300163
| 1
| 0.016313
| false
| 0
| 0.013051
| 0
| 0.030995
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
13995732d8ee544707dab465df3bd0131fb486eb
| 23,665
|
py
|
Python
|
tests/python/relay/test_pass_fold_scale_axis.py
|
robo-corg/incubator-tvm
|
4ddfdb4b15d05a5bf85a984837967d004efee5dd
|
[
"Apache-2.0"
] | 1
|
2020-04-15T02:21:38.000Z
|
2020-04-15T02:21:38.000Z
|
tests/python/relay/test_pass_fold_scale_axis.py
|
robo-corg/incubator-tvm
|
4ddfdb4b15d05a5bf85a984837967d004efee5dd
|
[
"Apache-2.0"
] | null | null | null |
tests/python/relay/test_pass_fold_scale_axis.py
|
robo-corg/incubator-tvm
|
4ddfdb4b15d05a5bf85a984837967d004efee5dd
|
[
"Apache-2.0"
] | null | null | null |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import numpy as np
import tvm
from tvm import relay
from tvm.relay import transform
def _get_positive_scale(size):
return np.random.uniform(0.5, 1, size=size).astype('float32')
def run_opt_pass(expr, opt_pass):
assert isinstance(opt_pass, transform.Pass)
mod = tvm.IRModule.from_expr(expr)
mod = opt_pass(mod)
entry = mod["main"]
return entry if isinstance(expr, relay.Function) else entry.body
def test_fold_fwd_simple():
"""Simple testcase."""
def before(x, conv_weight, in_bias, in_scale, channels):
args = [x, conv_weight, in_bias]
in_bias = relay.expand_dims(in_bias, axis=1, num_newaxis=2)
x = relay.multiply(x, in_scale)
x = relay.nn.relu(x)
x = relay.add(x, in_bias)
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
return relay.Function(args, y)
def expected(x, conv_weight, in_bias, in_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight, in_bias]
in_bias = relay.expand_dims(in_bias, axis=1, num_newaxis=2)
squeezed_scale = relay.squeeze(in_scale, axis=[1,2])
x = relay.nn.relu(x)
in_bias = relay.divide(in_bias, relay.expand_dims(squeezed_scale, axis=1, num_newaxis=2))
x = relay.add(x, in_bias)
conv_weight = relay.multiply(
conv_weight , relay.expand_dims(squeezed_scale, axis=1, num_newaxis=2))
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
in_bias = relay.var("in_bias", shape=(in_channels,))
in_scale = relay.const(_get_positive_scale((in_channels, 1, 1)))
y1 = before(x, weight, in_bias, in_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.ForwardFoldScaleAxis())
y1_expected = expected(x, weight, in_bias, in_scale, channels)
y1_folded = run_opt_pass(y1_folded, transform.InferType())
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 2)
def test_fold_fwd_dual_path():
"""scale axis being consumed by two consumers"""
def before(x, conv_weight, in_bias, in_scale, channels):
args = [x, conv_weight, in_bias]
x = relay.multiply(in_scale, x)
x = relay.nn.relu(x)
x = relay.subtract(x, in_bias)
y1 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
kernel_layout="HWIO",
groups=channels,
padding=(1, 1))
y2 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
kernel_layout="HWIO",
groups=channels,
padding=(1, 1))
z = relay.add(y1, y2)
return relay.Function(args, z)
def expected(x, conv_weight, in_bias, in_scale, channels):
args = [x, conv_weight, in_bias]
x = relay.nn.relu(x)
in_bias = relay.divide(in_bias, in_scale)
x = relay.subtract(x, in_bias)
y1 = relay.nn.conv2d(x,
relay.multiply(conv_weight, in_scale),
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
kernel_layout="HWIO",
groups=channels,
padding=(1, 1))
y2 = relay.nn.conv2d(x,
relay.multiply(conv_weight, in_scale),
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
kernel_layout="HWIO",
groups=channels,
padding=(1, 1))
z = relay.add(y1, y2)
return relay.Function(args, z)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[-1]
# test depthwise
assert in_channels == channels
weight = relay.var("weight")
in_bias = relay.var("in_bias", shape=(in_channels,))
in_scale = relay.const(_get_positive_scale(in_channels,))
y1 = before(x, weight, in_bias, in_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
y1_folded = run_opt_pass(y1, transform.ForwardFoldScaleAxis())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_expected = expected(x, weight, in_bias, in_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 3), 3)
def test_fold_fwd_fail():
"""testcase where we canont fold"""
def before(x, conv_weight, in_bias, in_scale, channels):
x = relay.multiply(x, in_scale)
xx = relay.nn.leaky_relu(x, alpha=0.1)
y1 = relay.nn.conv2d(xx, conv_weight,
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
padding=(1, 1))
z = relay.add(y1, x)
return relay.Function(relay.analysis.free_vars(z), z)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[-1]
# test depthwise
assert in_channels == channels
weight = relay.var("weight")
in_bias = relay.var("in_bias", shape=(in_channels,))
in_scale = relay.const(_get_positive_scale(size=(in_channels,)))
y1 = before(x, weight, in_bias, in_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
y1_folded = run_opt_pass(y1, transform.ForwardFoldScaleAxis())
assert relay.analysis.alpha_equal(y1, y1_folded)
check((2, 11, 10, 4), 4)
def test_fold_fwd_relu_fail():
"""testcase where we canont fold because scale can not pass relu"""
def before(x, conv_weight, in_bias, in_scale, channels):
x = relay.multiply(x, in_scale)
xx = relay.nn.relu(x)
y1 = relay.nn.conv2d(xx, conv_weight,
channels=channels,
kernel_size=(3, 3),
data_layout="NHWC",
padding=(1, 1))
z = relay.add(y1, x)
return relay.Function(relay.analysis.free_vars(z), z)
def check(shape, channels, in_scale):
x = relay.var("x", shape=shape)
in_channels = shape[-1]
# test depthwise
assert in_channels == channels
weight = relay.var("weight")
in_bias = relay.var("in_bias", shape=(in_channels,))
y1 = before(x, weight, in_bias, in_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
y1_folded = run_opt_pass(y1, transform.ForwardFoldScaleAxis())
assert relay.analysis.alpha_equal(y1, y1_folded)
in_scale = relay.var("in_scale", shape=(4,))
check((2, 11, 10, 4), 4, in_scale)
in_scale = relay.const(-_get_positive_scale((4,)))
check((2, 11, 10, 4), 4, in_scale)
def test_fold_fwd_negative_scale():
"""Testcase of folding negative scale"""
def before(x, conv_weight, in_scale, channels):
args = [x, conv_weight]
x = relay.multiply(x, in_scale)
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
return relay.Function(args, y)
def expected(x, conv_weight, in_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight]
squeezed_scale = relay.squeeze(in_scale, axis=[1,2])
conv_weight = relay.multiply(
conv_weight , relay.expand_dims(squeezed_scale, axis=1, num_newaxis=2))
y = relay.nn.conv2d(x,
conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[1]
in_scale = relay.const(-_get_positive_scale((in_channels, 1, 1)))
weight = relay.var("weight")
y1 = before(x, weight, in_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.ForwardFoldScaleAxis())
y1_expected = expected(x, weight, in_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 4)
def test_fold_bwd_simple():
"""Simple testcase."""
def before(x, conv_weight, out_bias, out_scale, channels):
args = [x, conv_weight, out_bias]
out_bias = relay.expand_dims(out_bias, axis=1, num_newaxis=2)
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y = relay.add(y, out_bias)
y = relay.nn.relu(y)
y = relay.multiply(y, out_scale)
return relay.Function(args, y)
def expected(x, conv_weight, out_bias, out_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight, out_bias]
out_bias = relay.expand_dims(out_bias, axis=1, num_newaxis=2)
squeezed_scale = relay.squeeze(out_scale, axis=[1,2])
conv_weight = relay.multiply(
conv_weight , relay.expand_dims(squeezed_scale, axis=1, num_newaxis=3))
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
out_bias = relay.multiply(out_bias,
relay.expand_dims(squeezed_scale, axis=1, num_newaxis=2))
y = relay.add(y, out_bias)
y = relay.nn.relu(y)
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
out_bias = relay.var("out_bias", shape=(channels,))
out_scale = relay.const(_get_positive_scale((channels, 1, 1)))
y1 = before(x, weight, out_bias, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
y1_expected = expected(x, weight, out_bias, out_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 8)
def test_fold_bwd_dual_path():
"""Dual path testcase."""
def before(x, conv_weight, out_bias, out_scale, channels):
args = [x, conv_weight, out_bias]
y1 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y1 = relay.nn.relu(y1)
y2 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y2 = relay.nn.relu(y2)
y = relay.add(y1, y2)
y = relay.multiply(y, out_scale)
return relay.Function(args, y)
def expected(x, conv_weight, out_bias, out_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight, out_bias]
out_bias = relay.expand_dims(out_bias, axis=1, num_newaxis=2)
squeezed_scale = relay.squeeze(out_scale, axis=[1,2])
def fold_conv_weight():
return relay.multiply(
conv_weight ,
relay.expand_dims(squeezed_scale, axis=1, num_newaxis=3))
y1 = relay.nn.conv2d(x, fold_conv_weight(),
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y1 = relay.nn.relu(y1)
y2 = relay.nn.conv2d(x, fold_conv_weight(),
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y2 = relay.nn.relu(y2)
y = relay.add(y1, y2)
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
out_bias = relay.var("out_bias", shape=(channels,))
out_scale = relay.const(_get_positive_scale((channels, 1, 1)))
y1 = before(x, weight, out_bias, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
y1_expected = expected(x, weight, out_bias, out_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 8)
def test_fold_bwd_dual_consumer():
def before(x, conv_weight, out_bias, out_scale, channels):
args = [x, conv_weight, out_bias]
y0 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y0 = relay.multiply(y0, out_scale)
y0 = relay.nn.relu(y0)
y1 = relay.nn.conv2d(y0, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y1 = relay.multiply(y1, out_scale)
y1 = relay.nn.relu(y1)
y2 = relay.nn.conv2d(y0, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y2 = relay.multiply(y2, out_scale)
y2 = relay.nn.relu(y2)
y = relay.add(y1, y2)
return relay.Function(args, y)
def expected(x, conv_weight, out_bias, out_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight, out_bias]
def fold_conv_weight():
squeezed_scale = relay.squeeze(out_scale, axis=[1,2])
return relay.multiply(
conv_weight ,
relay.expand_dims(squeezed_scale, axis=1, num_newaxis=3))
y0 = relay.nn.conv2d(x, fold_conv_weight(),
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y0 = relay.nn.relu(y0)
y1 = relay.nn.conv2d(y0, fold_conv_weight(),
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y1 = relay.nn.relu(y1)
y2 = relay.nn.conv2d(y0, fold_conv_weight(),
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y2 = relay.nn.relu(y2)
y = relay.add(y1, y2)
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
out_bias = relay.var("out_bias", shape=(channels,))
out_scale = relay.const(_get_positive_scale((channels,1, 1)))
y1 = before(x, weight, out_bias, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
y1_expected = expected(x, weight, out_bias, out_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 4)
def test_fold_bwd_fail():
"""Dual path testcase."""
def fail1(x, conv_weight, out_bias, out_scale, channels):
args = [x, conv_weight, out_bias]
out_bias = relay.expand_dims(out_bias, axis=1, num_newaxis=2)
y1 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y1 = relay.nn.relu(y1)
y2 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1),
out_layout="CNHW")
# fold will fail because the axis from two path
# differs from each other.
y2 = relay.nn.relu(y2)
y = relay.add(y1, y2)
y = relay.multiply(y, out_scale)
return relay.Function(args, y)
def fail2(x, conv_weight, out_bias, out_scale, channels):
args = [x, conv_weight, out_bias]
out_bias = relay.expand_dims(out_bias, axis=1, num_newaxis=2)
y1 = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y2 = relay.nn.relu(y1)
# fold will fail because y1 is referred also by y2
y1 = relay.multiply(y1, out_scale)
y = relay.add(y1, y2)
return relay.Function(args, y)
def check(shape, channels, fbefore):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
out_bias = relay.var("out_bias", shape=(channels,))
out_scale = relay.const(_get_positive_scale((channels, 1, 1)))
y1 = fbefore(x, weight, out_bias, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
assert relay.analysis.alpha_equal(y1_folded, y1)
check((4, 4, 10, 10), 4, fail1)
check((4, 4, 10, 10), 4, fail2)
def test_fold_bwd_relu_fail():
"""testcase where we canont fold because scale can not pass relu"""
def before(x, conv_weight, out_scale, channels):
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
data_layout="NCHW",
padding=(1, 1))
y = relay.nn.relu(y)
y = relay.multiply(x, out_scale)
return relay.Function(relay.analysis.free_vars(y), y)
def check(shape, channels, out_scale):
x = relay.var("x", shape=shape)
in_channels = shape[1]
weight = relay.var("weight")
y1 = before(x, weight, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
assert relay.analysis.alpha_equal(y1, y1_folded)
out_scale = relay.var("in_scale", shape=(4, 1, 1))
check((4, 4, 10, 10), 4, out_scale)
out_scale = relay.const(np.random.uniform(size=(4, 1, 1), low=-1.0, high=0.0)).astype("float32")
check((4, 4, 10, 10), 4, out_scale)
def test_fold_bwd_negative_scale():
"""Testcase of folding negative scale"""
def before(x, conv_weight, out_scale, channels):
args = [x, conv_weight]
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
y = relay.multiply(y, out_scale)
return relay.Function(args, y)
def expected(x, conv_weight, out_scale, channels):
# use a fixed order of args so alpha equal check can pass
args = [x, conv_weight]
squeezed_scale = relay.squeeze(out_scale, axis=[1,2])
conv_weight = relay.multiply(
conv_weight , relay.expand_dims(squeezed_scale, axis=1, num_newaxis=3))
y = relay.nn.conv2d(x, conv_weight,
channels=channels,
kernel_size=(3, 3),
padding=(1, 1))
return relay.Function(args, y)
def check(shape, channels):
x = relay.var("x", shape=shape)
weight = relay.var("weight")
out_scale = relay.const(-_get_positive_scale((channels, 1, 1)))
y1 = before(x, weight, out_scale, channels)
y1 = run_opt_pass(y1, transform.InferType())
type_dict = {x.name_hint:x.checked_type for x in y1.params}
weight = relay.var("weight", type_dict["weight"])
y1_folded = run_opt_pass(y1, transform.BackwardFoldScaleAxis())
y1_expected = expected(x, weight, out_scale, channels)
y1_expected = run_opt_pass(y1_expected, transform.InferType())
assert relay.analysis.alpha_equal(y1_folded, y1_expected)
check((2, 4, 10, 10), 8)
if __name__ == "__main__":
test_fold_fwd_simple()
test_fold_fwd_dual_path()
test_fold_fwd_fail()
test_fold_fwd_relu_fail()
test_fold_fwd_negative_scale()
test_fold_bwd_simple()
test_fold_bwd_dual_path()
test_fold_bwd_dual_consumer()
test_fold_bwd_fail()
test_fold_bwd_relu_fail()
test_fold_bwd_negative_scale()
| 41.884956
| 100
| 0.56666
| 3,042
| 23,665
| 4.200855
| 0.067061
| 0.05869
| 0.044761
| 0.028171
| 0.885046
| 0.862352
| 0.847954
| 0.831286
| 0.819782
| 0.81274
| 0
| 0.032076
| 0.32022
| 23,665
| 564
| 101
| 41.95922
| 0.762293
| 0.067399
| 0
| 0.8061
| 0
| 0
| 0.014142
| 0
| 0
| 0
| 0
| 0
| 0.03268
| 1
| 0.098039
| false
| 0.071895
| 0.008715
| 0.004357
| 0.156863
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
13d0a2f9d714c8e7721e62fae34a61711757cd28
| 48,021
|
py
|
Python
|
e2e/tests/oauth/test_product_scopes.py
|
dhewapim/identity-service-api
|
6688a295f1175f176c3c50f8d8362dce4bb504a6
|
[
"MIT"
] | null | null | null |
e2e/tests/oauth/test_product_scopes.py
|
dhewapim/identity-service-api
|
6688a295f1175f176c3c50f8d8362dce4bb504a6
|
[
"MIT"
] | 233
|
2020-04-02T15:50:10.000Z
|
2022-01-04T10:53:45.000Z
|
e2e/tests/oauth/test_product_scopes.py
|
dhewapim/identity-service-api
|
6688a295f1175f176c3c50f8d8362dce4bb504a6
|
[
"MIT"
] | 3
|
2021-04-11T07:31:43.000Z
|
2022-01-24T11:18:50.000Z
|
from e2e.scripts.config import MOCK_IDP_BASE_URL
from e2e.scripts import config
import pytest
from api_test_utils.oauth_helper import OauthHelper
from api_test_utils.apigee_api_trace import ApigeeApiTraceDebug
from api_test_utils.apigee_api_apps import ApigeeApiDeveloperApps
from api_test_utils.apigee_api_products import ApigeeApiProducts
import asyncio
@pytest.fixture(scope="class")
async def test_app_and_product():
apigee_product = ApigeeApiProducts()
apigee_product2 = ApigeeApiProducts()
await apigee_product.create_new_product()
await apigee_product.update_proxies([config.SERVICE_NAME])
await apigee_product2.create_new_product()
await apigee_product2.update_proxies([config.SERVICE_NAME])
apigee_app = ApigeeApiDeveloperApps()
await apigee_app.create_new_app()
# Set default JWT Testing resource url
await apigee_app.set_custom_attributes(
{
"jwks-resource-url": "https://raw.githubusercontent.com/NHSDigital/"
"identity-service-jwks/main/jwks/internal-dev/"
"9baed6f4-1361-4a8e-8531-1f8426e3aba8.json"
}
)
await apigee_app.add_api_product(
api_products=[apigee_product.name, apigee_product2.name]
)
[
await product.update_ratelimits(
quota=60000,
quota_interval="1",
quota_time_unit="minute",
rate_limit="1000ps",
)
for product in [apigee_product, apigee_product2]
]
yield apigee_product, apigee_product2, apigee_app
await apigee_app.destroy_app()
await apigee_product.destroy_product()
await apigee_product2.destroy_product()
@pytest.fixture(scope="class")
def event_loop(request):
loop = asyncio.new_event_loop()
yield loop
loop.close()
@pytest.mark.asyncio
class TestClientCredentialsHappyCases:
@pytest.mark.apm_1701
@pytest.mark.happy_path
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes, expected_filtered_scopes",
[
# Scenario 1: one product with valid scope
(
["urn:nhsd:apim:app:level3:personal-demographics"],
[],
["urn:nhsd:apim:app:level3:personal-demographics"],
),
# Scenario 2: one product with valid scope, one product with invalid scope
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:personal-demographics-service"],
),
# Scenario 3: multiple products with valid scopes
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
),
# Scenario 4: one product with multiple valid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
[
"urn:nhsd:apim:app:level3:personal-demographics",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
),
# Scenario 5: multiple products with multiple valid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
[
"urn:nhsd:apim:app:level3:personal-demographics",
"urn:nhsd:apim:app:level3:ambulance-analytics",
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
),
# Scenario 6: one product with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:app:level3:ambulance-analytics",
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
],
[],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
# Scenario 7: multiple products with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:app:level3:ambulance-analytics",
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
[
"urn:nhsd:apim:app:level3:ambulance-analytics",
"urn:nhsd:apim:app:level3:example-1",
],
),
# Scenario 8: one product with valid scope with trailing and leading spaces
(
[" urn:nhsd:apim:app:level3:ambulance-analytics "],
[],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
],
)
async def test_valid_application_restricted_scope_combination(
self,
product_1_scopes,
product_2_scopes,
expected_filtered_scopes,
test_app_and_product,
):
test_product, test_product2, test_app = test_app_and_product
apigee_trace = ApigeeApiTraceDebug(proxy=config.SERVICE_NAME)
await test_product.update_scopes(product_1_scopes)
await test_product2.update_scopes(product_2_scopes)
jwt = self.oauth.create_jwt(kid="test-1", client_id=test_app.client_id)
await apigee_trace.start_trace()
resp = await self.oauth.get_token_response(
grant_type="client_credentials", _jwt=jwt
)
application_scope = await apigee_trace.get_apigee_variable_from_trace(
name="apigee.application_restricted_scopes"
)
assert (
application_scope is not None
), "variable apigee.user_restricted_scopes not found in the trace"
application_scope = application_scope.split(" ")
assert list(resp["body"].keys()) == [
"access_token",
"expires_in",
"token_type",
"issued_at",
]
assert resp["status_code"] == 200
assert application_scope.sort() == expected_filtered_scopes.sort()
@pytest.mark.asyncio
class TestClientCredentialsErrorCases:
@pytest.mark.apm_1701
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes",
[
# Scenario 1: multiple products with no scopes
([], []),
# Scenario 2: one product with test_user_restricted_scope_combinationinvalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-id:aal2:personal-demographics-service"], []),
# Scenario 3: multiple products with invalid scopes
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics"],
),
# Scenario 4: one product with multiple invalid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[],
),
# Scenario 5: multiple products with multiple invalid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
),
# Scenario 6: one product with invalid scope (wrong formation)
(["ThisDoesNotExist"], []),
# Scenario 7: one product with invalid scope (special caracters)
(["#£$?!&%*.;@~_-"], []),
# Scenario 8: one product with invalid scope (empty string)
([""], []),
# Scenario 8: one product with invalid scope (None object)
([None], []),
# Scenario 9: one product with invalid scope (missing colon)
(["urn:nshd:apim:app:level3personal-demographics-service"], []),
],
)
def test_error_application_restricted_scope_combination(
self, product_1_scopes, product_2_scopes, test_app_and_product, event_loop
):
test_product, test_product2, test_app = test_app_and_product
event_loop.run_until_complete(test_product.update_scopes(product_1_scopes))
event_loop.run_until_complete(test_product2.update_scopes(product_2_scopes))
resp = event_loop.run_until_complete(
self.oauth.get_token_response(
grant_type="client_credentials",
_jwt=self.oauth.create_jwt(kid="test-1", client_id=test_app.client_id),
)
)
assert resp["status_code"] == 401
assert resp["body"] == {
"error": "unauthorized_client",
"error_description": "you have tried to requests authorization but your "
"application is not configured to use this authorization grant type",
}
@pytest.mark.asyncio
class TestAuthorizationCodeCis2HappyCases:
@pytest.mark.apm_1701
@pytest.mark.happy_path
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes, expected_filtered_scopes",
[
# Scenario 1: one product with valid scope
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 2: one product with valid scope, one product with invalid scope
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 3: multiple products with valid scopes
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics"],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
),
# Scenario 4: one product with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
),
# Scenario 5: multiple products with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
),
# Scenario 6: one product with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 7: multiple products with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
],
),
# Scenario 8: one product with valid scope with trailing and leading spaces
(
[" urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service "],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
],
)
async def test_cis2_user_restricted_scope_combination(
self,
product_1_scopes,
product_2_scopes,
expected_filtered_scopes,
test_app_and_product,
helper,
):
test_product, test_product2, test_app = test_app_and_product
await test_product.update_scopes(product_1_scopes)
await test_product2.update_scopes(product_2_scopes)
apigee_trace = ApigeeApiTraceDebug(proxy=config.SERVICE_NAME)
callback_url = await test_app.get_callback_url()
oauth = OauthHelper(test_app.client_id, test_app.client_secret, callback_url)
apigee_trace.add_trace_filter(
header_name="Auto-Test-Header", header_value="flow-callback"
)
await apigee_trace.start_trace()
assert helper.check_endpoint(
verb="POST",
endpoint=f"{config.OAUTH_URL}/token",
expected_status_code=200,
expected_response=[
"access_token",
"expires_in",
"refresh_count",
"refresh_token",
"refresh_token_expires_in",
"sid",
"token_type",
],
data={
"client_id": test_app.get_client_id(),
"client_secret": test_app.get_client_secret(),
"redirect_uri": callback_url,
"grant_type": "authorization_code",
"code": await oauth.get_authenticated_with_simulated_auth(),
},
)
user_restricted_scopes = await apigee_trace.get_apigee_variable_from_trace(
name="apigee.user_restricted_scopes"
)
assert (
user_restricted_scopes is not None
), "variable apigee.user_restricted_scopes not found in the trace"
user_restricted_scopes = user_restricted_scopes.split(" ")
assert expected_filtered_scopes.sort() == user_restricted_scopes.sort()
@pytest.mark.asyncio
class TestAuthorizationCodeCis2ErrorCases:
@pytest.mark.apm_1701
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes",
[
# Scenario 1: multiple products with no scopes
([], []),
# Scenario 2: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-id:aal2:personal-demographics-service"], []),
# Scenario 3: multiple products with invalid scopes
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
# Scenario 4: one product with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
),
# Scenario 5: multiple products with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
),
# Scenario 6: one product with invalid scope (wrong formation)
(["ThisDoesNotExist"], []),
# Scenario 7: one product with invalid scope (special characters)
(["#£$?!&%*.;@~_-"], []),
# Scenario 8: one product with invalid scope (empty string)
([""], []),
# Scenario 8: one product with invalid scope (None object)
([None], []),
# Scenario 9: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user:aal3personal-demographics-service"], []),
],
)
@pytest.mark.parametrize("auth_method", [(None)])
async def test_cis2_error_user_restricted_scope_combination(
self, product_1_scopes, product_2_scopes, test_app_and_product, helper, auth_code_nhs_cis2
):
test_product, test_product2, test_app = test_app_and_product
# Given
expected_status_code = 401
expected_error = "unauthorized_client"
expected_error_description = "you have tried to requests authorization but your application is not configured to use this authorization grant type"
# When
await test_product.update_scopes(product_1_scopes)
await test_product2.update_scopes(product_2_scopes)
state = await auth_code_nhs_cis2.get_state(self.oauth, test_app)
# Make simulated auth request to authenticate and Make initial callback request
auth_code = await auth_code_nhs_cis2.make_auth_request(self.oauth, state)
await auth_code_nhs_cis2.make_callback_request(self.oauth, state, auth_code)
response = auth_code_nhs_cis2.response
# Then
assert expected_status_code == response["status_code"]
assert expected_error == response["body"]["error"]
assert expected_error_description == response["body"]["error_description"]
@pytest.mark.asyncio
class TestTokenExchangeCis2ErrorCases:
@pytest.mark.token_exchange
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes",
[
# Scenario 1: multiple products with no scopes
([], []),
# Scenario 2: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-id:aal2:personal-demographics-service"], []),
# Scenario 3: multiple products with invalid scopes
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
# Scenario 4: one product with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
),
# Scenario 5: multiple products with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
),
# Scenario 6: one product with invalid scope (wrong formation)
(["ThisDoesNotExist"], []),
# Scenario 7: one product with invalid scope (special characters)
(["#£$?!&%*.;@~_-"], []),
# Scenario 8: one product with invalid scope (empty string)
([""], []),
# Scenario 8: one product with invalid scope (None object)
([None], []),
# Scenario 9: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user:aal3personal-demographics-service"], []),
],
)
async def test_cis2_token_exchange_error_user_restricted_scope_combination(
self, get_token_cis2_token_exchange
):
expected_status_code = 401
expected_error = "unauthorized_client"
expected_error_description = (
"you have tried to requests authorization but your "
"application is not configured to use this authorization grant type"
)
# When
resp = get_token_cis2_token_exchange
# Then
assert expected_status_code == resp["status_code"]
assert expected_error == resp["body"]["error"]
assert expected_error_description == resp["body"]["error_description"]
@pytest.mark.asyncio
class TestTokenExchangeCis2HappyCases:
@pytest.mark.token_exchange
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes, expected_filtered_scopes",
[
# Scenario 1: one product with valid scope
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 2: one product with valid scope, one product with invalid scope
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 3: multiple products with valid scopes
(
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics"],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
),
# Scenario 4: one product with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
),
# Scenario 5: multiple products with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics",
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:user-nhs-id:aal3:example-2",
],
),
# Scenario 6: one product with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
# Scenario 7: multiple products with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
[
"urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service",
"urn:nhsd:apim:user-nhs-id:aal3:example-1",
],
),
# Scenario 8: one product with valid scope with trailing and leading spaces
(
[" urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service "],
[],
["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"],
),
],
)
async def test_cis2_token_exchange_user_restricted_scope_combination(
self,
expected_filtered_scopes,
apigee_start_trace,
get_token_cis2_token_exchange,
):
expected_status_code = 200
expected_expires_in = "599"
expected_token_type = "Bearer"
expected_issued_token_type = "urn:ietf:params:oauth:token-type:access_token"
# When
resp = get_token_cis2_token_exchange
apigee_trace = apigee_start_trace
filtered_scopes = await apigee_trace.get_apigee_variable_from_trace(
name="apigee.user_restricted_scopes"
)
assert (
filtered_scopes is not None
), "variable apigee.user_restricted_scopes not found in the trace"
filtered_scopes = filtered_scopes.split(" ")
# Then
assert expected_status_code == resp["status_code"], resp["body"]
assert "access_token" in resp["body"]
assert expected_expires_in == resp["body"]["expires_in"]
assert expected_token_type == resp["body"]["token_type"]
assert expected_issued_token_type == resp["body"]["issued_token_type"]
assert expected_filtered_scopes.sort() == filtered_scopes.sort()
@pytest.mark.asyncio
class TestClientCredentialsRemoveExternalScopes:
@pytest.mark.parametrize(
"external_scope",
[
# passing in external scopes via form params
"invavlid scope",
"$£$12vdg@@fd",
" external scope",
[
"urn:nhsd:apim:user:aal3personal-demographics-service",
"urn:nhsd:apim:app:level3:example-2",
],
],
)
async def test_client_credentials_flow_remove_external_scopes(
self, test_app_and_product, external_scope
):
product_scope = ["urn:nhsd:apim:app:level3:personal-demographics"]
test_product, test_product2, test_app = test_app_and_product
await test_product.update_scopes(product_scope)
await test_product2.update_scopes(product_scope)
jwt = self.oauth.create_jwt(kid="test-1", client_id=test_app.client_id)
data = {
"scope": external_scope,
"grant_type": "client_credentials",
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
"client_assertion": jwt,
}
resp = await self.oauth.get_token_response(
grant_type="client_credentials", data=data
)
assert list(resp["body"].keys()) == [
"access_token",
"expires_in",
"token_type",
"issued_at",
]
assert resp["status_code"] == 200
@pytest.mark.asyncio
class TestTokenExchangeRemoveExternalScopes:
@pytest.mark.parametrize(
"external_scope",
[
# passing in external scopes via form params
"invavlid scope",
"$£$12vdg@@fd",
" external scope",
[
"urn:nhsd:apim:user:aal3personal-demographics-service",
"urn:nhsd:apim:app:level3:example-2",
],
],
)
async def test_token_exchange_remove_external_scopes(self, external_scope):
client_assertion_jwt = self.oauth.create_jwt(kid="test-1")
id_token_jwt = self.oauth.create_id_token_jwt()
data = {
"scope": external_scope,
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
"subject_token_type": "urn:ietf:params:oauth:token-type:id_token",
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
"subject_token": id_token_jwt,
"client_assertion": client_assertion_jwt,
}
resp = await self.oauth.get_token_response(
grant_type="token_exchange", data=data
)
assert resp["status_code"] == 200
@pytest.mark.asyncio
class TestAuthorizationCodeRemoveExternalScopes:
@pytest.mark.parametrize(
"external_scope",
[
# passing in external scopes via form params
"invavlid scope",
"$£$12vdg@@fd",
" external scope",
[
"urn:nhsd:apim:user:aal3personal-demographics-service",
"urn:nhsd:apim:app:level3:example-2",
],
],
)
async def test_authorization_code_flow_remove_external_scopes(
self, test_app_and_product, helper, external_scope
):
product_scope = ["urn:nhsd:apim:user-nhs-id:aal3:personal-demographics-service"]
test_product, test_product2, test_app = test_app_and_product
await test_product.update_scopes(product_scope)
await test_product2.update_scopes(product_scope)
callback_url = await test_app.get_callback_url()
oauth = OauthHelper(test_app.client_id, test_app.client_secret, callback_url)
assert helper.check_endpoint(
verb="POST",
endpoint=f"{config.OAUTH_URL}/token",
expected_status_code=200,
expected_response=[
"access_token",
"expires_in",
"refresh_count",
"refresh_token",
"refresh_token_expires_in",
"sid",
"token_type",
],
data={
"scope": external_scope,
"client_id": test_app.get_client_id(),
"client_secret": test_app.get_client_secret(),
"redirect_uri": callback_url,
"grant_type": "authorization_code",
"code": await oauth.get_authenticated_with_simulated_auth(),
},
)
@pytest.mark.asyncio
class TestTokenExchangeNhsLoginHappyCases:
@pytest.mark.token_exchange
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes, expected_filtered_scopes",
[
# Scenario 1: one product with valid scope
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 2: one product with valid scope, one product with invalid scope
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 3: multiple products with valid scopes
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics"],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service,"
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics"
],
),
# Scenario 4: one product with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
[],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
),
# Scenario 5: multiple products with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:user-nhs-login:P9:example-2",
],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:user-nhs-login:P9:example-2",
],
),
# Scenario 6: one product with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 7: multiple products with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:example-1",
],
),
# Scenario 8: one product with valid scope with trailing and leading spaces
(
[" urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service "],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
],
)
async def test_nhs_login_token_exchange_user_restricted_scope_combination(
self,
apigee_start_trace,
get_token_nhs_login_token_exchange,
expected_filtered_scopes,
):
expected_status_code = 200
expected_expires_in = "599"
expected_token_type = "Bearer"
expected_issued_token_type = "urn:ietf:params:oauth:token-type:access_token"
# When
resp = get_token_nhs_login_token_exchange
apigee_trace = apigee_start_trace
filtered_scopes = await apigee_trace.get_apigee_variable_from_trace(
name="apigee.user_restricted_scopes"
)
assert (
filtered_scopes is not None
), "variable apigee.user_restricted_scopes not found in the trace"
filtered_scopes = filtered_scopes.split(" ")
# Then
assert expected_status_code == resp["status_code"], resp["body"]
assert "access_token" in resp["body"]
assert expected_expires_in == resp["body"]["expires_in"]
assert expected_token_type == resp["body"]["token_type"]
assert expected_issued_token_type == resp["body"]["issued_token_type"]
assert expected_filtered_scopes.sort() == filtered_scopes.sort()
@pytest.mark.asyncio
class TestTokenExchangeNhsLoginErrorCases:
@pytest.mark.token_exchange
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes",
[
# Scenario 1: multiple products with no scopes
([], []),
# Scenario 2: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-login:P0:personal-demographics-service"], []),
# Scenario 3: multiple products with invalid scopes
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
# Scenario 4: one product with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
),
# Scenario 5: multiple products with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
),
# Scenario 6: one product with invalid scope (wrong formation)
(["ThisDoesNotExist"], []),
# Scenario 7: one product with invalid scope (special characters)
(["#£$?!&%*.;@~_-"], []),
# Scenario 8: one product with invalid scope (empty string)
([""], []),
# Scenario 8: one product with invalid scope (None object)
([None], []),
# Scenario 9: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-login:P0personal-demographics-service"], []),
],
)
async def test_nhs_login_token_exchange_error_user_restricted_scope_combination(
self, get_token_nhs_login_token_exchange
):
expected_status_code = 401
expected_error = "unauthorized_client"
expected_error_description = (
"you have tried to requests authorization but your "
"application is not configured to use this authorization grant type"
)
# When
resp = get_token_nhs_login_token_exchange
# Then
assert expected_status_code == resp["status_code"]
assert expected_error == resp["body"]["error"]
assert expected_error_description == resp["body"]["error_description"]
@pytest.mark.asyncio
class TestAuthorizationCodeNhsLoginHappyCases:
@pytest.mark.happy_path
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes, expected_filtered_scopes",
[
# Scenario 1: one product with valid scope
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 2: one product with valid scope, one product with invalid scope
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 3: multiple products with valid scopes
(
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
["urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics"],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service,"
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics"
],
),
# Scenario 4: one product with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
[],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
),
# Scenario 5: multiple products with multiple valid scopes
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:user-nhs-login:P9:example-2",
],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:ambulance-analytics",
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:user-nhs-login:P9:example-2",
],
),
# Scenario 6: one product with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
# Scenario 7: multiple products with multiple scopes (valid and invalid)
(
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:user-nhs-login:P9:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
[
"urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service",
"urn:nhsd:apim:user-nhs-login:P9:example-1",
],
),
# Scenario 8: one product with valid scope with trailing and leading spaces
(
[" urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service "],
[],
["urn:nhsd:apim:user-nhs-login:P9:personal-demographics-service"],
),
],
)
@pytest.mark.parametrize("auth_method", [('P9')])
async def test_nhs_login_user_restricted_scope_combination(
self,
product_1_scopes,
product_2_scopes,
expected_filtered_scopes,
test_app_and_product,
helper,
auth_code_nhs_login,
):
test_product, test_product2, test_app = test_app_and_product
await test_product.update_scopes(product_1_scopes)
await test_product2.update_scopes(product_2_scopes)
apigee_trace = ApigeeApiTraceDebug(proxy=config.SERVICE_NAME)
callback_url = await test_app.get_callback_url()
state = await auth_code_nhs_login.get_state(self.oauth, test_app)
auth_code = await auth_code_nhs_login.make_auth_request(self.oauth, state)
await apigee_trace.start_trace()
await auth_code_nhs_login.make_callback_request(self.oauth, state, auth_code)
user_restricted_scopes = await apigee_trace.get_apigee_variable_from_trace(
name="apigee.user_restricted_scopes"
)
assert (
user_restricted_scopes is not None
), "variable apigee.user_restricted_scopes not found in the trace"
user_restricted_scopes = user_restricted_scopes.split(" ")
assert expected_filtered_scopes.sort() == user_restricted_scopes.sort()
@pytest.mark.asyncio
class TestAuthorizationCodeNhsLoginErrorCases:
@pytest.mark.errors
@pytest.mark.parametrize(
"product_1_scopes, product_2_scopes",
[
# Scenario 1: multiple products with no scopes
([], []),
# Scenario 2: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-login:P0:personal-demographics-service"], []),
# Scenario 3: multiple products with invalid scopes
(
["urn:nhsd:apim:app:level3:personal-demographics-service"],
["urn:nhsd:apim:app:level3:ambulance-analytics"],
),
# Scenario 4: one product with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[],
),
# Scenario 5: multiple products with multiple invalid scopes
(
[
"urn:nhsd:apim:app:level3:personal-demographics-service",
"urn:nhsd:apim:app:level3:ambulance-analytics",
],
[
"urn:nhsd:apim:app:level3:example-1",
"urn:nhsd:apim:app:level3:example-2",
],
),
# Scenario 6: one product with invalid scope (wrong formation)
(["ThisDoesNotExist"], []),
# Scenario 7: one product with invalid scope (special characters)
(["#£$?!&%*.;@~_-"], []),
# Scenario 8: one product with invalid scope (empty string)
([""], []),
# Scenario 8: one product with invalid scope (None object)
([None], []),
# Scenario 9: one product with invalid scope, one product with no scope
(["urn:nhsd:apim:user-nhs-login:P0personal-demographics-service"], []),
],
)
@pytest.mark.parametrize("auth_method", [("P9")])
async def test_nhs_login_user_restricted_error_scope_combination(
self, product_1_scopes, product_2_scopes, test_app_and_product, helper, auth_code_nhs_login
):
test_product, test_product2, test_app = test_app_and_product
expected_status_code = 401
expected_error = "unauthorized_client"
expected_error_description = (
"you have tried to requests authorization but your "
"application is not configured to use this authorization grant type"
)
await test_product.update_scopes(product_1_scopes)
await test_product2.update_scopes(product_2_scopes)
state = await auth_code_nhs_login.get_state(self.oauth, test_app)
# Make simulated auth request to authenticate and Make initial callback request
auth_code = await auth_code_nhs_login.make_auth_request(self.oauth, state)
await auth_code_nhs_login.make_callback_request(self.oauth, state, auth_code)
response = auth_code_nhs_login.response
assert expected_status_code == response["status_code"]
assert expected_error == response["body"]["error"]
assert expected_error_description == response["body"]["error_description"]
| 40.695763
| 155
| 0.565107
| 4,970
| 48,021
| 5.284708
| 0.051308
| 0.057834
| 0.090881
| 0.078241
| 0.911251
| 0.900019
| 0.891909
| 0.875957
| 0.868951
| 0.860956
| 0
| 0.016791
| 0.327794
| 48,021
| 1,179
| 156
| 40.73028
| 0.796623
| 0.119656
| 0
| 0.701629
| 0
| 0
| 0.344843
| 0.282069
| 0
| 0
| 0
| 0
| 0.046843
| 1
| 0.002037
| false
| 0
| 0.008147
| 0
| 0.023422
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
13f56035c0ee37d771d92c7fd23215859d470e10
| 4,579
|
py
|
Python
|
comments/tests.py
|
joshua-hashimoto/molecule-django
|
ac7f74e58332e48562a1cda64d8334f99d79d2af
|
[
"MIT"
] | null | null | null |
comments/tests.py
|
joshua-hashimoto/molecule-django
|
ac7f74e58332e48562a1cda64d8334f99d79d2af
|
[
"MIT"
] | null | null | null |
comments/tests.py
|
joshua-hashimoto/molecule-django
|
ac7f74e58332e48562a1cda64d8334f99d79d2af
|
[
"MIT"
] | 1
|
2021-09-05T03:42:53.000Z
|
2021-09-05T03:42:53.000Z
|
from http import HTTPStatus as status
from django.contrib.auth import get_user_model
from django.test import TestCase, Client
from django.shortcuts import reverse
from .models import Comment
from articles.models import Article
class CommentModelTestCase(TestCase):
def setUp(self):
user = get_user_model().objects.create_user(
username='testuser',
email='testuser@test.com',
password='testuser1234',)
self.article = Article.objects.create(
author=user,
title='example',
slug='example',
description='example description',
content='#example',
keywords='example',
publish_at='2020-01-01 00:00',)
self.comment = Comment.objects.create(
article=self.article,
name='unknown',
comment='comment example',)
def test_model_created_comment(self):
queryset = Comment.objects.all()
self.assertEqual(queryset.count(), 1)
def test_model_create_inactive_comment(self):
queryset = Comment.objects.all()
Comment.objects.create(
article=self.article,
name='unknown',
comment='comment example 2',
is_active=False,)
self.assertEqual(queryset.count(), 1)
def test_comment_related_to_article(self):
Comment.objects.create(
article=self.article,
name='unknown',
comment='comment example 2',)
comments = self.article.comments.all()
self.assertEqual(comments.count(), 2)
class CommentViewTestCase(TestCase):
def setUp(self):
user = get_user_model().objects.create_user(
username='testuser',
email='testuser@test.com',
password='testuser1234',)
self.article = Article.objects.create(
author=user,
title='example',
slug='example',
description='example description',
content='#example',
keywords='example',
publish_at='2020-01-01 00:00',)
self.comment = Comment.objects.create(
article=self.article,
name='unknown',
comment='comment example',)
def test_comment_create_view_can_create_comment(self):
context_data = {
'verify': 'ぶんし',
'article_slug': self.article.slug,
'name': 'unknown',
'comment': '# comment',
}
response = self.client.post(
reverse('comments:comment_new'), data=context_data)
self.assertEqual(response.status_code, status.FOUND)
self.assertRedirects(response, reverse(
'articles:article_detail', kwargs={'slug': self.article.slug}))
comments = Comment.objects.all()
self.assertEqual(comments.count(), 2)
def test_comment_fail_with_verification(self):
context_data = {
'verify': '分子',
'article_slug': self.article.slug,
'name': 'unknown',
'comment': '# comment',
}
response = self.client.post(
reverse('comments:comment_new'), data=context_data)
self.assertEqual(response.status_code, status.FOUND)
self.assertRedirects(response, reverse(
'articles:article_detail', kwargs={'slug': self.article.slug}))
comments = Comment.objects.all()
self.assertEqual(comments.count(), 1)
def test_comment_fail_with_no_article_id(self):
context_data = {
'verify': 'ぶんし',
'name': 'unknown',
'comment': '# comment',
}
response = self.client.post(
reverse('comments:comment_new'), data=context_data)
self.assertEqual(response.status_code, status.FOUND)
self.assertRedirects(response, reverse(
'articles:article_list'))
comments = Comment.objects.all()
self.assertEqual(comments.count(), 1)
def test_comment_fail_with_form_error(self):
context_data = {
'verify': '分子',
'article_slug': self.article.slug,
'name': '',
'comment': '# comment',
}
response = self.client.post(
reverse('comments:comment_new'), data=context_data)
self.assertEqual(response.status_code, status.FOUND)
self.assertRedirects(response, reverse(
'articles:article_detail', kwargs={'slug': self.article.slug}))
comments = Comment.objects.all()
self.assertEqual(comments.count(), 1)
| 34.954198
| 75
| 0.596418
| 457
| 4,579
| 5.83151
| 0.188184
| 0.053659
| 0.04728
| 0.065666
| 0.849906
| 0.821013
| 0.781614
| 0.754597
| 0.754597
| 0.754597
| 0
| 0.012511
| 0.284342
| 4,579
| 130
| 76
| 35.223077
| 0.800732
| 0
| 0
| 0.782609
| 0
| 0
| 0.141297
| 0.019655
| 0
| 0
| 0
| 0
| 0.130435
| 1
| 0.078261
| false
| 0.017391
| 0.052174
| 0
| 0.147826
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b9277cf1dd7da47988222b709cde53ca4238c56d
| 91
|
py
|
Python
|
parameters/IGParameterColor/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
parameters/IGParameterColor/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
parameters/IGParameterColor/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
from . import IGParameterColor
def get():
return IGParameterColor.IGParameterColor()
| 15.166667
| 46
| 0.769231
| 8
| 91
| 8.75
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 91
| 5
| 47
| 18.2
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
b92a742132da7740f59aa57e79a5a1a62e4920e8
| 3,009
|
py
|
Python
|
tests/old/test_serialization.py
|
lite-david/polymath
|
cf1addc75e203fa606ebc6d32bc552fb3975ea99
|
[
"Apache-2.0"
] | 15
|
2021-05-09T05:46:04.000Z
|
2022-03-06T20:46:32.000Z
|
tests/old/test_serialization.py
|
lite-david/polymath
|
cf1addc75e203fa606ebc6d32bc552fb3975ea99
|
[
"Apache-2.0"
] | null | null | null |
tests/old/test_serialization.py
|
lite-david/polymath
|
cf1addc75e203fa606ebc6d32bc552fb3975ea99
|
[
"Apache-2.0"
] | 4
|
2021-08-24T07:46:29.000Z
|
2022-03-05T18:23:07.000Z
|
#
# from polymath.mgdfg.serialization.pmlang_mgdfg import mgdfg_gen, parse_file, compile_to_pb, store_pb, load_pb
#
# def test_symbols_to_mgdfg():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
#
# pmlang_graph = parse_file(full_path)
#
# lr_comp = pmlang_graph.components["rec_model"]
#
# for var_name, var in lr_comp.symbols.items():
# var.serialize()
#
# def test_node_to_mgdfg():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pmlang_graph = parse_file(full_path)
#
# lr_comp = pmlang_graph.components["rec_model"]
#
# for node in lr_comp.nodes:
# node.serialize()
#
# def test_edge_to_mgdfg():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
#
# pmlang_graph = parse_file(full_path)
#
# lr_comp = pmlang_graph.components["rec_model"]
#
# for edge in lr_comp.edges:
# edge.serialize()
#
#
# def test_expr_to_mgdfg():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pmlang_graph = parse_file(full_path)
#
# lr_comp = pmlang_graph.components["rec_model"]
#
# for expr in lr_comp.expressions:
# expr.serialize()
#
# def test_comp_to_mgdfg():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pmlang_graph = parse_file(full_path)
# lr_comp = pmlang_graph.components["main"]
# test_pb = lr_comp.serialize()
#
#
# def test_serialization_linear():
# file = "linear.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
# def test_serialization_backprop():
# file = "backpropagation.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
# def test_serialization_logistic():
# file = "logistic.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
#
# def test_serialization_recommender():
# file = "recommender.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
# def test_serialization_lenet():
# file = "lenet.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
#
# def test_serialization_yolo():
# file = "yolodnn.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
# def test_serialization_resnet():
# file = "resnet18.pm"
# base_path = f"./pmlang_examples"
# full_path = f"./pmlang_examples/{file}"
# pb_object = compile_to_pb(full_path)
#
#
#
#
#
| 27.861111
| 111
| 0.656364
| 392
| 3,009
| 4.660714
| 0.135204
| 0.065681
| 0.144499
| 0.249589
| 0.753695
| 0.753695
| 0.753695
| 0.753695
| 0.753695
| 0.753695
| 0
| 0.000825
| 0.194749
| 3,009
| 107
| 112
| 28.121495
| 0.753199
| 0.928548
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b950f1f2ad931cb58573d89a159249621e8343d6
| 118
|
py
|
Python
|
moban/__init__.py
|
Naveenaidu/moban
|
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
|
[
"MIT"
] | 1
|
2018-12-16T01:16:22.000Z
|
2018-12-16T01:16:22.000Z
|
moban/__init__.py
|
Naveenaidu/moban
|
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
|
[
"MIT"
] | null | null | null |
moban/__init__.py
|
Naveenaidu/moban
|
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
|
[
"MIT"
] | null | null | null |
from moban._version import __version__
from moban._version import __author__
__all__ = ("__author__", "__version__")
| 23.6
| 39
| 0.805085
| 13
| 118
| 5.615385
| 0.461538
| 0.246575
| 0.438356
| 0.60274
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110169
| 118
| 4
| 40
| 29.5
| 0.695238
| 0
| 0
| 0
| 0
| 0
| 0.177966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b951880c9b2c481309f3180170e43eb09d2576d5
| 11,344
|
py
|
Python
|
test/test_batterystate.py
|
ToyotaResearchInstitute/task_behavior_ros
|
0bc58f88556c9029c9a579511e1fdab9bd58248b
|
[
"Apache-2.0"
] | 2
|
2017-02-16T00:47:39.000Z
|
2018-05-12T13:34:17.000Z
|
test/test_batterystate.py
|
ToyotaResearchInstitute/task_behavior_ros
|
0bc58f88556c9029c9a579511e1fdab9bd58248b
|
[
"Apache-2.0"
] | 4
|
2017-02-17T19:05:22.000Z
|
2017-05-04T17:41:26.000Z
|
test/test_batterystate.py
|
ToyotaResearchInstitute/task_behavior_ros
|
0bc58f88556c9029c9a579511e1fdab9bd58248b
|
[
"Apache-2.0"
] | 2
|
2019-03-08T06:45:25.000Z
|
2022-03-08T10:08:00.000Z
|
#!/usr/bin/env python
# Copyright 2016 Toyota Research Institute
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import argparse
import rospy
import sys
import nose
from nose.tools import assert_equal
from sensor_msgs.msg import BatteryState
from task_behavior_engine.tree import NodeStatus
from task_behavior_engine.tree import Blackboard
from task_behavior_ros import batterystate
class TestChargeCompleteMonitor(object):
def setUp(self):
self.blackboard = Blackboard()
self.charge_monitor = batterystate.ChargeCompleteMonitor(
name="monitor",
topic_name="battery",
latch=True,
blackboard=self.blackboard)
def test_init(self):
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.ACTIVE)
# empty message should fail
msg = BatteryState()
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_charging(self):
msg = BatteryState()
# Charging no max set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_CHARGING
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Charging at max, report SUCCESS
msg.percentage = 0.9
self.blackboard.save("max_charge", 0.9, self.charge_monitor._id)
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Charging but above max, report SUCCESS
msg.percentage = 1.0
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Charging but below max, report ACTIVE
msg.percentage = 0.
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.ACTIVE)
def test_discharging(self):
msg = BatteryState()
# Discharging no max set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_DISCHARGING
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Discharging at max, report FAIL
msg.percentage = 0.95
self.blackboard.save("max_charge", 0.95, self.charge_monitor._id)
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Discharging but above max, report FAIL
msg.percentage = 1.0
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Discharging but below max, report FAIL
msg.percentage = 0.
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_full(self):
msg = BatteryState()
# Full but no max set, report SUCCESS
# If the battery is reporting full, regardless of charge percentage
# report SUCCESS
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_FULL
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Full but at max, report SUCCESS.
msg.percentage = 0.95
self.blackboard.save("max_charge", 0.95, self.charge_monitor._id)
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Full but above max, report SUCCESS
msg.percentage = 1.0
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Full but below max, still report success
msg.percentage = 0.
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
def test_unknown(self):
msg = BatteryState()
# Unknown but no max set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_UNKNOWN
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Unkown at max, report FAIL
self.blackboard.save("max_charge", 0.95, self.charge_monitor._id)
msg.percentage = 0.95
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Unkown but above max, report FAIL
msg.percentage = 1.0
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Unknown but below max, report FAIL
msg.percentage = 0.
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
class TestChargeOKMonitor(object):
def setUp(self):
self.blackboard = Blackboard()
self.charge_monitor = batterystate.ChargeOKMonitor(
name="monitor", topic_name="battery", latch=True, blackboard=self.blackboard)
def test_init(self):
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.ACTIVE)
# empty message should fail
msg = BatteryState()
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_charging(self):
msg = BatteryState()
# Charging but no min set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_CHARGING
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Charging at min, report FAIL
self.blackboard.save("min_charge", 0.5, self.charge_monitor._id)
msg.percentage = 0.5
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Charging but above min, report SUCCESS
msg.percentage = 0.8
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Charging but below min, report FAIL
msg.percentage = .1
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_discharging(self):
msg = BatteryState()
# Dischaging but no min set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_DISCHARGING
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Discharging at min, report FAIL
self.blackboard.save("min_charge", 0.5, self.charge_monitor._id)
msg.percentage = 0.5
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Discharging but above min, report SUCCESS
msg.percentage = 0.8
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Discharging but below min, report FAIL
msg.percentage = .1
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_full(self):
msg = BatteryState()
# Full but no min set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_FULL
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Full but at min, report FAIL.
self.blackboard.save("min_charge", 0.5, self.charge_monitor._id)
msg.percentage = 0.5
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Full but above min, report SUCCESS
self.blackboard.save("min_charge", 0.5, self.charge_monitor._id)
msg.percentage = 0.8
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Full but below min, report FAIL
msg.percentage = .1
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
def test_unknown(self):
msg = BatteryState()
# Unknown but no min set, FAIL
msg.power_supply_status = BatteryState.POWER_SUPPLY_STATUS_UNKNOWN
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Unknown but at min, report FAIL
self.blackboard.save("min_charge", 0.5, self.charge_monitor._id)
msg.percentage = 0.5
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
# Unknown but above min, report SUCCESS
msg.percentage = 0.8
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.SUCCESS)
# Unknown but below min, report FAIL
msg.percentage = .1
self.charge_monitor.topic_sub.callback(msg)
result = self.charge_monitor.tick()
assert_equal(result.status, NodeStatus.FAIL)
if __name__ == '__main__':
# This code will run the test in this file.'
module_name = sys.modules[__name__].__file__
parser = argparse.ArgumentParser(description='Perform unit test.')
parser.add_argument(
'--gtest_output', nargs='?', default='test.xml')
args, unknown = parser.parse_known_args()
noseargs = [sys.argv[0], module_name, '--with-xunit',
'--xunit-file='+str(args.gtest_output.lstrip('xml:'))]
nose.run(argv=noseargs)
| 36.95114
| 89
| 0.678597
| 1,403
| 11,344
| 5.307199
| 0.121882
| 0.108783
| 0.184932
| 0.111201
| 0.842734
| 0.836557
| 0.813457
| 0.80513
| 0.80513
| 0.794923
| 0
| 0.008364
| 0.230606
| 11,344
| 306
| 90
| 37.071895
| 0.844753
| 0.161936
| 0
| 0.853535
| 0
| 0
| 0.020721
| 0
| 0
| 0
| 0
| 0
| 0.186869
| 1
| 0.060606
| false
| 0
| 0.045455
| 0
| 0.116162
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b9639c275c5128146b114581bfaadba7960e8112
| 172
|
py
|
Python
|
const/__init__.py
|
amhirsch/gla-covid-19
|
765f60082908c731271b90143ce0aacf53d09980
|
[
"MIT"
] | null | null | null |
const/__init__.py
|
amhirsch/gla-covid-19
|
765f60082908c731271b90143ce0aacf53d09980
|
[
"MIT"
] | 5
|
2020-06-09T06:27:43.000Z
|
2021-07-24T00:42:51.000Z
|
const/__init__.py
|
amhirsch/lac_covid19
|
765f60082908c731271b90143ce0aacf53d09980
|
[
"MIT"
] | null | null | null |
from lac_covid19.const.columns import *
from lac_covid19.const.groups import *
import lac_covid19.const.health_departments as hd
JSON_INDENT = 4
JSON_COMPACT = (',', ':')
| 24.571429
| 49
| 0.773256
| 25
| 172
| 5.08
| 0.6
| 0.23622
| 0.354331
| 0.299213
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046053
| 0.116279
| 172
| 6
| 50
| 28.666667
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b988c40694c2721b686e448693331b4f64e36483
| 4,856
|
py
|
Python
|
psql_runner.py
|
daamien/condenser
|
0a8df43f7e22d689a1a330dee267308c06eff0a0
|
[
"Apache-2.0"
] | null | null | null |
psql_runner.py
|
daamien/condenser
|
0a8df43f7e22d689a1a330dee267308c06eff0a0
|
[
"Apache-2.0"
] | null | null | null |
psql_runner.py
|
daamien/condenser
|
0a8df43f7e22d689a1a330dee267308c06eff0a0
|
[
"Apache-2.0"
] | null | null | null |
import os, pathlib, re
class PsqlRunner:
def __init__(self, database_connection_info):
self.connection_info = database_connection_info
def run_query(self, query, output_path = None, error_path = None, overwrite_output = False, overwrite_error = False):
pg_dump_path = get_pg_bin_path()
cur_path = os.getcwd()
if(pg_dump_path != ''):
os.chdir(pg_dump_path)
if overwrite_error is False:
error_redirect = '2>>'
else:
error_redirect = '2>'
if overwrite_output is False:
output_redirect = '>>'
else:
output_redirect = '>'
if output_path is None and error_path is None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -c "{5}" > {6} 2> {6}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], query, os.devnull))
elif output_path is None and error_path is not None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -c "{5}" {6} {7} > {8}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], query, error_redirect, error_path, os.devnull))
elif output_path is not None and error_path is None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -c "{5}" {6} {7} 2> {8}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], query, output_redirect, output_path, os.devnull))
elif output_path is not None and error_path is not None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -c "{5}" {6} {7} {8} {9}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], query, output_redirect, output_path, error_redirect, error_path))
os.chdir(cur_path)
def run(self, file_path, output_path = None, error_path = None, overwrite_output = False, overwrite_error = False):
if not os.path.exists(file_path):
raise Exception(f'Could not find file {file_path}')
pg_dump_path = get_pg_bin_path()
cur_path = os.getcwd()
if(pg_dump_path != ''):
os.chdir(pg_dump_path)
if overwrite_error is False:
error_redirect = '2>>'
else:
error_redirect = '2>'
if overwrite_output is False:
output_redirect = '>>'
else:
output_redirect = '>'
if output_path is None and error_path is None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -a -f {5}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], file_path))
elif output_path is None and error_path is not None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -a -f {5} {6} {7} > {8}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], file_path, error_redirect, error_path, os.devnull))
elif output_path is not None and error_path is None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -a -f {5} {6} {7} 2> {8}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], file_path, output_redirect, output_path, os.devnull))
elif output_path is not None and error_path is not None:
os.system('psql --dbname=postgresql://{0}:{1}@{2}:{3}/{4} -a -f {5} {6} {7} {8} {9}'
.format(self.connection_info['user_name'],self.connection_info['password'],self.connection_info['host'], self.connection_info['port'], self.connection_info['db_name'], file_path, output_redirect, output_path, error_redirect, error_path))
os.chdir(cur_path)
def get_pg_bin_path():
if 'POSTGRES_PATH' in os.environ:
pg_dump_path = os.environ['POSTGRES_PATH']
else:
pg_dump_path = ''
err = os.system('"' + os.path.join(pg_dump_path, 'pg_dump') + '"' + ' --help > ' + os.devnull)
if err != 0:
raise Exception("Couldn't find Postgres utilities, consider specifying POSTGRES_PATH environment variable if Postgres isn't " +
"in your PATH.")
return pg_dump_path
| 55.181818
| 253
| 0.633649
| 674
| 4,856
| 4.324926
| 0.120178
| 0.206518
| 0.253173
| 0.043911
| 0.83705
| 0.83705
| 0.833962
| 0.833962
| 0.833962
| 0.833962
| 0
| 0.020276
| 0.207784
| 4,856
| 87
| 254
| 55.816092
| 0.737458
| 0
| 0
| 0.514706
| 0
| 0.117647
| 0.20902
| 0.067545
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0.117647
| 0.014706
| 0
| 0.102941
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
b9d6a91b34e50d2a3fc405c440b0fc8f65ac5461
| 1,141
|
py
|
Python
|
scripts/models.py
|
devalab/BAND-NN
|
c8a7419c15084f759d688b25a614371bff34aff9
|
[
"MIT"
] | 10
|
2019-11-21T08:26:32.000Z
|
2021-12-09T15:54:43.000Z
|
scripts/models.py
|
devalab/BAND-NN
|
c8a7419c15084f759d688b25a614371bff34aff9
|
[
"MIT"
] | 1
|
2020-12-11T20:08:56.000Z
|
2020-12-21T18:43:58.000Z
|
scripts/models.py
|
devalab/BAND-NN
|
c8a7419c15084f759d688b25a614371bff34aff9
|
[
"MIT"
] | 2
|
2020-02-15T11:58:51.000Z
|
2020-03-11T08:40:45.000Z
|
from keras.models import Sequential, Model
from keras.layers import Dense, Activation, Input
def get_bonds_model():
model = Sequential()
model.add(Dense(128, activation='relu', input_dim=17))
model.add(Dense(256, activation='relu'))
model.add(Dense(128, activation='relu'))
model.add(Dense(1, activation='linear'))
return model
def get_angles_model():
model = Sequential()
model.add(Dense(128, activation='relu', input_dim=27))
model.add(Dense(350, activation='relu'))
model.add(Dense(128, activation='relu'))
model.add(Dense(1, activation='linear'))
return model
def get_nonbonds_model():
model = Sequential()
model.add(Dense(128, activation='relu', input_dim=17))
model.add(Dense(256, activation='relu'))
model.add(Dense(128, activation='relu'))
model.add(Dense(1, activation='linear'))
return model
def get_dihedrals_model():
model = Sequential()
model.add(Dense(128, activation='relu', input_dim=38))
model.add(Dense(512, activation='relu'))
model.add(Dense(128, activation='relu'))
model.add(Dense(1, activation='linear'))
return model
| 32.6
| 58
| 0.687993
| 153
| 1,141
| 5.052288
| 0.189542
| 0.165589
| 0.269082
| 0.165589
| 0.809832
| 0.809832
| 0.809832
| 0.809832
| 0.809832
| 0.809832
| 0
| 0.049689
| 0.153374
| 1,141
| 34
| 59
| 33.558824
| 0.750518
| 0
| 0
| 0.666667
| 0
| 0
| 0.063103
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.133333
| false
| 0
| 0.066667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6a242846a9ad15b2405b4bb91440a4b666e59510
| 170,126
|
py
|
Python
|
ryu/tests/unit/ofproto/test_parser_v10.py
|
hiArvin/ryu
|
b568088f8fe1d2334d9773f6ddaac8674f2a0f61
|
[
"Apache-2.0"
] | 269
|
2015-03-08T11:32:45.000Z
|
2022-03-30T11:18:16.000Z
|
ryu/tests/unit/ofproto/test_parser_v10.py
|
hiArvin/ryu
|
b568088f8fe1d2334d9773f6ddaac8674f2a0f61
|
[
"Apache-2.0"
] | 2
|
2015-09-14T14:18:39.000Z
|
2015-09-14T14:23:16.000Z
|
ryu/tests/unit/ofproto/test_parser_v10.py
|
hiArvin/ryu
|
b568088f8fe1d2334d9773f6ddaac8674f2a0f61
|
[
"Apache-2.0"
] | 205
|
2015-01-13T04:52:25.000Z
|
2022-03-30T13:37:33.000Z
|
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# vim: tabstop=4 shiftwidth=4 softtabstop=4
import unittest
import logging
from nose.tools import *
from ryu.ofproto.ofproto_v1_0_parser import *
from ryu.ofproto import ofproto_v1_0_parser
from ryu.lib import addrconv
LOG = logging.getLogger('test_ofproto_v10')
class TestOFPPhyPort(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPhyPort
"""
# OFP_PHY_PORT_PACK_STR
# '!H6s16sIIIIII'... port_no, hw_addr, name, config, state
# curr, advertised, supported, peer
port_no = {'buf': '\xe7\x6b', 'val': 59243}
hw_addr = '52:54:54:10:20:99'
name = 'name'.ljust(16)
config = {'buf': '\x84\xb6\x8c\x53', 'val': 2226555987}
state = {'buf': '\x64\x07\xfb\xc9', 'val': 1678244809}
curr = {'buf': '\xa9\xe8\x0a\x2b', 'val': 2850556459}
advertised = {'buf': '\x78\xb9\x7b\x72', 'val': 2025421682}
supported = {'buf': '\x7e\x65\x68\xad', 'val': 2120575149}
peer = {'buf': '\xa4\x5b\x8b\xed', 'val': 2757463021}
buf = port_no['buf'] \
+ addrconv.mac.text_to_bin(hw_addr) \
+ name \
+ config['buf'] \
+ state['buf'] \
+ curr['buf'] \
+ advertised['buf'] \
+ supported['buf'] \
+ peer['buf']
c = OFPPhyPort(port_no['val'],
hw_addr,
name,
config['val'],
state['val'],
curr['val'],
advertised['val'],
supported['val'],
peer['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port_no['val'], self.c.port_no)
eq_(self.hw_addr, self.c.hw_addr)
eq_(self.name, self.c.name)
eq_(self.config['val'], self.c.config)
eq_(self.state['val'], self.c.state)
eq_(self.curr['val'], self.c.curr)
eq_(self.advertised['val'], self.c.advertised)
eq_(self.supported['val'], self.c.supported)
eq_(self.peer['val'], self.c.peer)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.port_no['val'], res.port_no)
eq_(self.hw_addr, res.hw_addr)
eq_(self.name, res.name)
eq_(self.config['val'], res.config)
eq_(self.state['val'], res.state)
eq_(self.curr['val'], res.curr)
eq_(self.advertised['val'], res.advertised)
eq_(self.supported['val'], res.supported)
eq_(self.peer['val'], res.peer)
class TestOFPMatch(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPMatch
"""
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
# dl_vlan_pcp, dl_type, nw_tos, nw_proto,
# nw_src, nw_dst, tp_src, tp_dst
wildcards = {'buf': '\xd2\x71\x25\x23', 'val': 3530630435}
in_port = {'buf': '\x37\x8b', 'val': 14219}
dl_src = '\x52\x54\x54\x10\x20\x99'
dl_dst = '\x61\x31\x50\x6d\xc9\xe5'
dl_vlan = {'buf': '\xc1\xf9', 'val': 49657}
dl_vlan_pcp = {'buf': '\x79', 'val': 121}
zfill0 = '\x00'
dl_type = {'buf': '\xa6\x9e', 'val': 42654}
nw_tos = {'buf': '\xde', 'val': 222}
nw_proto = {'buf': '\xe5', 'val': 229}
zfil11 = '\x00' * 2
nw_src = {'buf': '\x1b\x6d\x8d\x4b', 'val': 460164427}
nw_dst = {'buf': '\xab\x25\xe1\x20', 'val': 2871386400}
tp_src = {'buf': '\xd5\xc3', 'val': 54723}
tp_dst = {'buf': '\x78\xb9', 'val': 30905}
buf = wildcards['buf'] \
+ in_port['buf'] \
+ dl_src \
+ dl_dst \
+ dl_vlan['buf'] \
+ dl_vlan_pcp['buf'] \
+ zfill0 \
+ dl_type['buf'] \
+ nw_tos['buf'] \
+ nw_proto['buf'] \
+ zfil11 \
+ nw_src['buf'] \
+ nw_dst['buf'] \
+ tp_src['buf'] \
+ tp_dst['buf']
def _get_obj(self, dl_src, dl_dst):
c = OFPMatch(self.wildcards['val'],
self.in_port['val'],
dl_src,
dl_dst,
self.dl_vlan['val'],
self.dl_vlan_pcp['val'],
self.dl_type['val'],
self.nw_tos['val'],
self.nw_proto['val'],
self.nw_src['val'],
self.nw_dst['val'],
self.tp_src['val'],
self.tp_dst['val'])
return c
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
c = self._get_obj(self.dl_src, self.dl_dst)
eq_(self.wildcards['val'], c.wildcards)
eq_(self.in_port['val'], c.in_port)
eq_(self.dl_src, c.dl_src)
eq_(self.dl_dst, c.dl_dst)
eq_(self.dl_vlan['val'], c.dl_vlan)
eq_(self.dl_vlan_pcp['val'], c.dl_vlan_pcp)
eq_(self.dl_type['val'], c.dl_type)
eq_(self.nw_tos['val'], c.nw_tos)
eq_(self.nw_proto['val'], c.nw_proto)
eq_(self.nw_src['val'], c.nw_src)
eq_(self.nw_dst['val'], c.nw_dst)
eq_(self.tp_src['val'], c.tp_src)
eq_(self.tp_dst['val'], c.tp_dst)
def test_init_zero(self):
c = self._get_obj(0, 0)
eq_(mac.DONTCARE, c.dl_src)
eq_(mac.DONTCARE, c.dl_dst)
def test_parse(self):
c = self._get_obj(self.dl_src, self.dl_dst)
res = c.parse(self.buf, 0)
eq_(self.wildcards['val'], res.wildcards)
eq_(self.in_port['val'], res.in_port)
eq_(self.dl_src, res.dl_src)
eq_(self.dl_dst, res.dl_dst)
eq_(self.dl_vlan['val'], res.dl_vlan)
eq_(self.dl_vlan_pcp['val'], res.dl_vlan_pcp)
eq_(self.dl_type['val'], res.dl_type)
eq_(self.nw_tos['val'], res.nw_tos)
eq_(self.nw_proto['val'], res.nw_proto)
eq_(self.nw_src['val'], res.nw_src)
eq_(self.nw_dst['val'], res.nw_dst)
eq_(self.tp_src['val'], res.tp_src)
eq_(self.tp_dst['val'], res.tp_dst)
def test_serialize(self):
buf = bytearray()
c = self._get_obj(self.dl_src, self.dl_dst)
c.serialize(buf, 0)
fmt = ofproto.OFP_MATCH_PACK_STR
res = struct.unpack_from(fmt, buffer(buf))
eq_(self.wildcards['val'], res[0])
eq_(self.in_port['val'], res[1])
eq_(self.dl_src, res[2])
eq_(self.dl_dst, res[3])
eq_(self.dl_vlan['val'], res[4])
eq_(self.dl_vlan_pcp['val'], res[5])
eq_(self.dl_type['val'], res[6])
eq_(self.nw_tos['val'], res[7])
eq_(self.nw_proto['val'], res[8])
eq_(self.nw_src['val'], res[9])
eq_(self.nw_dst['val'], res[10])
eq_(self.tp_src['val'], res[11])
eq_(self.tp_dst['val'], res[12])
class TestOFPActionHeader(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionHeader
"""
# OFP_ACTION_HEADER_PACK_STR
# '!HH4x'...type, len, zfill
type = {'buf': '\x00\x02', 'val': ofproto.OFPAT_SET_VLAN_PCP}
len = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_HEADER_SIZE}
zfill = '\x00' * 4
buf = type['buf'] \
+ len['buf'] \
+ zfill
c = OFPActionHeader(type['val'], len['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type['val'], self.c.type)
eq_(self.len['val'], self.c.len)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_HEADER_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type['val'], res[0])
eq_(self.len['val'], res[1])
class TestOFPActionOutput(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionOutput
"""
# OFP_ACTION_OUTPUT_PACK_STR
# '!HHHH'...type, len, port, max_len
type_ = {'buf': '\x00\x00', 'val': ofproto.OFPAT_OUTPUT}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
port = {'buf': '\x19\xce', 'val': 6606}
max_len = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
buf = type_['buf'] \
+ len_['buf'] \
+ port['buf'] \
+ max_len['buf']
c = OFPActionOutput(port['val'], max_len['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port['val'], self.c.port)
eq_(self.max_len['val'], self.c.max_len)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.port['val'], res.port)
eq_(self.max_len['val'], res.max_len)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x01', 'val': 1}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.port['buf'] \
+ self.max_len['buf']
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.port['buf'] \
+ self.max_len['buf']
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_OUTPUT_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.port['val'], res[2])
eq_(self.max_len['val'], res[3])
class TestOFPActionVlanVid(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionVlanVid
"""
# OFP_ACTION_VLAN_VID_PACK_STR
# '!HHH2x'...type, len, vlan_vid, zfill
type_ = {'buf': '\x00\x01', 'val': ofproto.OFPAT_SET_VLAN_VID}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_VLAN_VID_SIZE}
vlan_vid = {'buf': '\x3c\x0e', 'val': 15374}
zfill = '\x00' * 2
buf = type_['buf'] \
+ len_['buf'] \
+ vlan_vid['buf'] \
+ zfill
c = OFPActionVlanVid(vlan_vid['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.vlan_vid['val'], self.c.vlan_vid)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.vlan_vid['val'], res.vlan_vid)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x02', 'val': 2}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.vlan_vid['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.vlan_vid['buf'] \
+ self.zfill
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_VLAN_VID_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vlan_vid['val'], res[2])
class TestOFPActionVlanPcp(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionVlanPcp
"""
# OFP_ACTION_VLAN_PCP_PACK_STR
# '!HHB3x'...type, len, vlan_pcp, zfill
type_ = {'buf': '\x00\x02', 'val': ofproto.OFPAT_SET_VLAN_PCP}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_VLAN_PCP_SIZE}
vlan_pcp = {'buf': '\x1c', 'val': 28}
zfill = '\x00' * 3
buf = type_['buf'] \
+ len_['buf'] \
+ vlan_pcp['buf'] \
+ zfill
c = OFPActionVlanPcp(vlan_pcp['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.vlan_pcp['val'], self.c.vlan_pcp)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.vlan_pcp['val'], res.vlan_pcp)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x01', 'val': 1}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.vlan_pcp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.vlan_pcp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_VLAN_PCP_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vlan_pcp['val'], res[2])
class TestOFPActionStripVlan(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionStripVlan
"""
# OFP_ACTION_HEADER_PACK_STR
# '!HH4x'...type, len, zfill
type_ = {'buf': '\x00\x03', 'val': ofproto.OFPAT_STRIP_VLAN}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_HEADER_SIZE}
zfill = '\x00' * 4
buf = type_['buf'] \
+ len_['buf'] \
+ zfill
c = OFPActionStripVlan()
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
ok_(self.c.parser(self.buf, 0))
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x01', 'val': 1}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.zfill
self.c.parser(buf, 0)
class TestOFPActionSetDlSrc(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetDlSrc
"""
# OFP_ACTION_DL_ADDR_PACK_STR
# '!HH6s6x'...type, len, dl_addr, zfill
type_ = {'buf': '\x00\x04', 'val': ofproto.OFPAT_SET_DL_SRC}
len_ = {'buf': '\x00\x10', 'val': ofproto.OFP_ACTION_DL_ADDR_SIZE}
dl_addr = '\x0e\xde\x27\xce\xc6\xcf'
zfill = '\x00' * 6
buf = type_['buf'] \
+ len_['buf'] \
+ dl_addr \
+ zfill
c = OFPActionSetDlSrc(dl_addr)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.dl_addr, self.c.dl_addr)
def test_parser_type_src(self):
res = self.c.parser(self.buf, 0)
eq_(self.dl_addr, res.dl_addr)
def test_parser_type_dst(self):
type_ = {'buf': '\x00\x05', 'val': ofproto.OFPAT_SET_DL_DST}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
eq_(self.dl_addr, res.dl_addr)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x06', 'val': 6}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_DL_ADDR_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.dl_addr, res[2])
class TestOFPActionSetDlDst(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetDlDst
"""
# OFP_ACTION_DL_ADDR_PACK_STR
# '!HH6s6x'...type, len, dl_addr, zfill
type_ = {'buf': '\x00\x05', 'val': ofproto.OFPAT_SET_DL_DST}
len_ = {'buf': '\x00\x10', 'val': ofproto.OFP_ACTION_DL_ADDR_SIZE}
dl_addr = '\x37\x48\x38\x9a\xf4\x28'
zfill = '\x00' * 6
buf = type_['buf'] \
+ len_['buf'] \
+ dl_addr \
+ zfill
c = OFPActionSetDlDst(dl_addr)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.dl_addr, self.c.dl_addr)
def test_parser_type_dst(self):
res = self.c.parser(self.buf, 0)
eq_(self.dl_addr, res.dl_addr)
def test_parser_type_src(self):
type_ = {'buf': '\x00\x04', 'val': ofproto.OFPAT_SET_DL_SRC}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
eq_(self.dl_addr, res.dl_addr)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x06', 'val': 6}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.dl_addr \
+ self.zfill
res = self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_DL_ADDR_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.dl_addr, res[2])
class TestOFPActionSetNwSrc(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetNwSrc
"""
# OFP_ACTION_NW_ADDR_PACK_STR
# '!HHI'...type, len, nw_addr
type_ = {'buf': '\x00\x06', 'val': ofproto.OFPAT_SET_NW_SRC}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_NW_ADDR_SIZE}
nw_addr = {'buf': '\xc0\xa8\x7a\x0a', 'val': 3232266762}
buf = type_['buf'] \
+ len_['buf'] \
+ nw_addr['buf']
c = OFPActionSetNwSrc(nw_addr['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.nw_addr['val'], self.c.nw_addr)
def test_parser_src(self):
res = self.c.parser(self.buf, 0)
eq_(self.nw_addr['val'], res.nw_addr)
def test_parser_dst(self):
type_ = {'buf': '\x00\x07', 'val': ofproto.OFPAT_SET_NW_DST}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.nw_addr['buf']
res = self.c.parser(buf, 0)
eq_(self.nw_addr['val'], res.nw_addr)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x05', 'val': 5}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.nw_addr['buf']
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x10', 'val': 16}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.nw_addr['buf']
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_NW_ADDR_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.nw_addr['val'], res[2])
class TestOFPActionSetNwDst(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetNwDst
"""
# OFP_ACTION_NW_ADDR_PACK_STR
# '!HHI'...type, len, nw_addr
type_ = {'buf': '\x00\x07', 'val': ofproto.OFPAT_SET_NW_DST}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_NW_ADDR_SIZE}
nw_addr = {'buf': '\xc0\xa8\x7a\x0a', 'val': 3232266762}
buf = type_['buf'] \
+ len_['buf'] \
+ nw_addr['buf']
c = OFPActionSetNwDst(nw_addr['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.nw_addr['val'], self.c.nw_addr)
def test_parser_dst(self):
res = self.c.parser(self.buf, 0)
eq_(self.nw_addr['val'], res.nw_addr)
def test_parser_src(self):
type_ = {'buf': '\x00\x06', 'val': ofproto.OFPAT_SET_NW_SRC}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.nw_addr['buf']
res = self.c.parser(buf, 0)
eq_(self.nw_addr['val'], res.nw_addr)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x05', 'val': 5}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.nw_addr['buf']
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x10', 'val': 16}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.nw_addr['buf']
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_NW_ADDR_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.nw_addr['val'], res[2])
class TestOFPActionSetNwTos(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetNwTos
"""
# OFP_ACTION_NW_TOS_PACK_STR
# '!HHB3x'...type, len, tos, zfill
type_ = {'buf': '\x00\x08', 'val': ofproto.OFPAT_SET_NW_TOS}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_NW_TOS_SIZE}
tos = {'buf': '\xb6', 'val': 182}
zfill = '\x00' * 3
buf = type_['buf'] \
+ len_['buf'] \
+ tos['buf'] \
+ zfill
c = OFPActionSetNwTos(tos['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.tos['val'], self.c.tos)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.tos['val'], res.tos)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x05', 'val': 5}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.tos['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.tos['buf'] \
+ self.zfill
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_NW_TOS_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.tos['val'], res[2])
class TestOFPActionSetTpSrc(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetTpSrc
"""
# OFP_ACTION_TP_PORT_PACK_STR
# '!HHH2x'...type, len, tp, zfill
type_ = {'buf': '\x00\x09', 'val': ofproto.OFPAT_SET_TP_SRC}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_TP_PORT_SIZE}
tp = {'buf': '\x07\xf1', 'val': 2033}
zfill = '\x00' * 2
buf = type_['buf'] \
+ len_['buf'] \
+ tp['buf'] \
+ zfill
c = OFPActionSetTpSrc(tp['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.tp['val'], self.c.tp)
def test_parser_src(self):
res = self.c.parser(self.buf, 0)
eq_(self.tp['val'], res.tp)
def test_parser_dst(self):
type_ = {'buf': '\x00\x0a', 'val': ofproto.OFPAT_SET_TP_DST}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
res = self.c.parser(self.buf, 0)
eq_(self.tp['val'], res.tp)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x07', 'val': 7}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_TP_PORT_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.tp['val'], res[2])
class TestOFPActionSetTpDst(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionSetTpDst
"""
# OFP_ACTION_TP_PORT_PACK_STR
# '!HHH2x'...type, len, tp, zfill
type_ = {'buf': '\x00\x0a', 'val': ofproto.OFPAT_SET_TP_DST}
len_ = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_TP_PORT_SIZE}
tp = {'buf': '\x06\x6d', 'val': 1645}
zfill = '\x00' * 2
buf = type_['buf'] \
+ len_['buf'] \
+ tp['buf'] \
+ zfill
c = OFPActionSetTpDst(tp['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.tp['val'], self.c.tp)
def test_parser_dst(self):
res = self.c.parser(self.buf, 0)
eq_(self.tp['val'], res.tp)
def test_parser_src(self):
type_ = {'buf': '\x00\x09', 'val': ofproto.OFPAT_SET_TP_SRC}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
res = self.c.parser(buf, 0)
eq_(self.tp['val'], res.tp)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x10', 'val': 16}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x07', 'val': 7}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.tp['buf'] \
+ self.zfill
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_TP_PORT_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.tp['val'], res[2])
class TestOFPActionEnqueue(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPActionEnqueue
"""
# OFP_ACTION_ENQUEUE_PACK_STR
# '!HHH6xI'...type_, len_, port, zfill, queue_id
type_ = {'buf': '\x00\x0b', 'val': ofproto.OFPAT_ENQUEUE}
len_ = {'buf': '\x00\x10', 'val': ofproto.OFP_ACTION_ENQUEUE_SIZE}
port = {'buf': '\x04\x55', 'val': 1109}
zfill = '\x00' * 6
queue_id = {'buf': '\x0a\x5b\x03\x5e', 'val': 173736798}
buf = type_['buf'] \
+ len_['buf'] \
+ port['buf'] \
+ zfill \
+ queue_id['buf']
c = OFPActionEnqueue(port['val'], queue_id['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port['val'], self.c.port)
eq_(self.queue_id['val'], self.c.queue_id)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.port['val'], res.port)
eq_(self.queue_id['val'], res.queue_id)
@raises(AssertionError)
def test_parser_check_type(self):
type_ = {'buf': '\x00\x0a', 'val': 10}
buf = type_['buf'] \
+ self.len_['buf'] \
+ self.port['buf'] \
+ self.zfill \
+ self.queue_id['buf']
self.c.parser(buf, 0)
@raises(AssertionError)
def test_parser_check_len(self):
len_ = {'buf': '\x00\x05', 'val': 5}
buf = self.type_['buf'] \
+ len_['buf'] \
+ self.port['buf'] \
+ self.zfill \
+ self.queue_id['buf']
self.c.parser(buf, 0)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.OFP_ACTION_ENQUEUE_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.port['val'], res[2])
eq_(self.queue_id['val'], res[3])
class TestNXActionResubmit(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionResubmit
"""
# NX_ACTION_RESUBMIT_PACK_STR
# '!HHIHHB3x'...type, len, vendor, subtype, in_port, table, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_RESUBMIT_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': 8992}
subtype = {'buf': '\x00\x01', 'val': 1}
in_port = {'buf': '\x0a\x4c', 'val': 2636}
table = {'buf': '\x52', 'val': 82}
zfill = '\x00' * 3
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ in_port['buf'] \
+ table['buf'] \
+ zfill
c = NXActionResubmit(in_port['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.in_port['val'], self.c.in_port)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.in_port['val'], res.in_port)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_RESUBMIT_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.in_port['val'], res[4])
class TestNXActionResubmitTable(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionResubmitTable
"""
# NX_ACTION_RESUBMIT_PACK_STR
# '!HHIHHB3x'...type, len, vendor, subtype, in_port, table, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_RESUBMIT_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': 8992}
subtype = {'buf': '\x00\x0e', 'val': 14}
in_port = {'buf': '\x0a\x4c', 'val': 2636}
table = {'buf': '\x52', 'val': 82}
zfill = '\x00' * 3
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ in_port['buf'] \
+ table['buf'] \
+ zfill
c = NXActionResubmitTable(in_port['val'], table['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.in_port['val'], self.c.in_port)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.in_port['val'], res.in_port)
eq_(self.table['val'], res.table)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_RESUBMIT_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.in_port['val'], res[4])
class TestNXActionSetTunnel(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionSetTunnel
"""
# NX_ACTION_SET_TUNNEL_PACK_STR
# '!HHIH2xI'...type, len, vendor, subtype, zfill, tun_id
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_SET_TUNNEL_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': 8992}
subtype = {'buf': '\x00\x02', 'val': 2}
zfill = '\x00' * 2
tun_id = {'buf': '\x01\x6f\x01\xd0', 'val': 24052176}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ zfill \
+ tun_id['buf']
c = NXActionSetTunnel(tun_id['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.tun_id['val'], self.c.tun_id)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.tun_id['val'], res.tun_id)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_SET_TUNNEL_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.tun_id['val'], res[4])
class TestNXActionSetQueue(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionSetQueue
"""
# NX_ACTION_SET_QUEUE_PACK_STR
# '!HHIH2xI'...type, len, vendor, subtype, zfill, queue_id
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_SET_TUNNEL_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x04', 'val': ofproto.NXAST_SET_QUEUE}
zfill = '\x00' * 2
queue_id = {'buf': '\xde\xbe\xc5\x18', 'val': 3737044248}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ zfill \
+ queue_id['buf']
c = NXActionSetQueue(queue_id['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.queue_id['val'], self.c.queue_id)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.queue_id['val'], res.queue_id)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_SET_QUEUE_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.queue_id['val'], res[4])
class TestNXActionPopQueue(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionPopQueue
"""
# NX_ACTION_POP_QUEUE_PACK_STR
# '!HHIH6x'...type, len, vendor, subtype, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_SET_TUNNEL_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x05', 'val': ofproto.NXAST_POP_QUEUE}
zfill = '\x00' * 6
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ zfill
c = NXActionPopQueue()
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self.len_['val'], res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_POP_QUEUE_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
class TestNXActionRegMove(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionRegMove
"""
# NX_ACTION_REG_MOVE_PACK_STR
# '!HHIHHHHII'...type_, len_, vendor, subtype, n_bits,
# src_ofs, dst_ofs, src, dst
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x18', 'val': ofproto.NX_ACTION_REG_MOVE_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x06', 'val': ofproto.NXAST_REG_MOVE}
n_bits = {'buf': '\x3d\x98', 'val': 15768}
src_ofs = {'buf': '\xf3\xa3', 'val': 62371}
dst_ofs = {'buf': '\xdc\x67', 'val': 56423}
src = {'buf': '\x15\x68\x60\xfd', 'val': 359162109}
dst = {'buf': '\x9f\x9f\x88\x26', 'val': 2678032422}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ n_bits['buf'] \
+ src_ofs['buf'] \
+ dst_ofs['buf'] \
+ src['buf'] \
+ dst['buf']
c = NXActionRegMove(n_bits['val'],
src_ofs['val'],
dst_ofs['val'],
src['val'],
dst['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.n_bits['val'], self.c.n_bits)
eq_(self.src_ofs['val'], self.c.src_ofs)
eq_(self.dst_ofs['val'], self.c.dst_ofs)
eq_(self.src['val'], self.c.src)
eq_(self.dst['val'], self.c.dst)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.n_bits['val'], res.n_bits)
eq_(self.src_ofs['val'], res.src_ofs)
eq_(self.dst_ofs['val'], res.dst_ofs)
eq_(self.src['val'], res.src)
eq_(self.dst['val'], res.dst)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_REG_MOVE_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.n_bits['val'], res[4])
eq_(self.src_ofs['val'], res[5])
eq_(self.dst_ofs['val'], res[6])
eq_(self.src['val'], res[7])
eq_(self.dst['val'], res[8])
class TestNXActionRegLoad(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionRegLoad
"""
# NX_ACTION_REG_LOAD_PACK_STR
# '!HHIHHIQ'...type_, len_, vendor, subtype,
# ofs_nbits, dst, value
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x18', 'val': ofproto.NX_ACTION_REG_MOVE_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x07', 'val': ofproto.NXAST_REG_LOAD}
ofs_nbits = {'buf': '\x3d\x98', 'val': 15768}
dst = {'buf': '\x9f\x9f\x88\x26', 'val': 2678032422}
value = {'buf': '\x33\x51\xcd\x43\x25\x28\x18\x99',
'val': 3697962457317775513}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ ofs_nbits['buf'] \
+ dst['buf'] \
+ value['buf']
c = NXActionRegLoad(ofs_nbits['val'],
dst['val'],
value['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.dst['val'], self.c.dst)
eq_(self.value['val'], self.c.value)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.dst['val'], res.dst)
eq_(self.value['val'], res.value)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_REG_LOAD_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.ofs_nbits['val'], res[4])
eq_(self.dst['val'], res[5])
eq_(self.value['val'], res[6])
class TestNXActionSetTunnel64(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionSetTunnel64
"""
# NX_ACTION_SET_TUNNEL64_PACK_STR
# '!HHIH6xQ'...type, len, vendor, subtype, zfill, tun_id
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x18', 'val': ofproto.NX_ACTION_SET_TUNNEL64_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x09', 'val': ofproto.NXAST_SET_TUNNEL64}
zfill = '\x00' * 6
tun_id = {'buf': '\x6e\x01\xa6\xea\x7e\x36\x1d\xd9',
'val': 7926800345218817497}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ zfill \
+ tun_id['buf']
c = NXActionSetTunnel64(tun_id['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.tun_id['val'], self.c.tun_id)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.tun_id['val'], self.c.tun_id)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_SET_TUNNEL64_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.tun_id['val'], res[4])
class TestNXActionMultipath(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionMultipath
"""
# NX_ACTION_MULTIPATH_PACK_STR
# '!HHIHHH2xHHI2xHI'...type, len, vendor, subtype, fields, basis, zfill
# algorithm, max_link, arg, zfill, ofs_nbits, dst
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x20', 'val': ofproto.NX_ACTION_MULTIPATH_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x0a', 'val': ofproto.NXAST_MULTIPATH}
fields = {'buf': '\x6d\xf5', 'val': 28149}
basis = {'buf': '\x7c\x0a', 'val': 31754}
zfill0 = '\x00' * 2
algorithm = {'buf': '\x82\x1d', 'val': 33309}
max_link = {'buf': '\x06\x2b', 'val': 1579}
arg = {'buf': '\x18\x79\x41\xc8', 'val': 410599880}
zfill1 = '\x00' * 2
ofs_nbits = {'buf': '\xa9\x9a', 'val': 43418}
dst = {'buf': '\xb9\x2f\x16\x64', 'val': 3106870884}
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ fields['buf'] \
+ basis['buf'] \
+ zfill0 \
+ algorithm['buf'] \
+ max_link['buf'] \
+ arg['buf'] \
+ zfill1 \
+ ofs_nbits['buf'] \
+ dst['buf']
c = NXActionMultipath(fields['val'],
basis['val'],
algorithm['val'],
max_link['val'],
arg['val'],
ofs_nbits['val'],
dst['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.fields['val'], self.c.fields)
eq_(self.basis['val'], self.c.basis)
eq_(self.algorithm['val'], self.c.algorithm)
eq_(self.max_link['val'], self.c.max_link)
eq_(self.arg['val'], self.c.arg)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.dst['val'], self.c.dst)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.fields['val'], res.fields)
eq_(self.basis['val'], res.basis)
eq_(self.algorithm['val'], res.algorithm)
eq_(self.max_link['val'], res.max_link)
eq_(self.arg['val'], res.arg)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.dst['val'], res.dst)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_MULTIPATH_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.fields['val'], res[4])
eq_(self.basis['val'], res[5])
eq_(self.algorithm['val'], res[6])
eq_(self.max_link['val'], res[7])
eq_(self.arg['val'], res[8])
eq_(self.ofs_nbits['val'], res[9])
eq_(self.dst['val'], res[10])
class TestNXActionBundle(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionBundle
"""
# NX_ACTION_BUNDLE_PACK_STR
# '!HHIHHHHIHHI4x'...type, len, vendor, subtype, algorithm,
# fields, basis, slave_type, n_slaves,
# ofs_nbits, dst, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x20', 'val': ofproto.NX_ACTION_BUNDLE_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x0c', 'val': ofproto.NXAST_BUNDLE}
algorithm = {'buf': '\x51\xa7', 'val': 20903}
fields = {'buf': '\xf8\xef', 'val': 63727}
basis = {'buf': '\xfd\x6f', 'val': 64879}
slave_type = {'buf': '\x7c\x51\x0f\xe0', 'val': 2085687264}
n_slaves = {'buf': '\x00\x02', 'val': 2}
ofs_nbits = {'buf': '\xec\xf7', 'val': 60663}
dst = {'buf': '\x50\x7c\x75\xfe', 'val': 1350333950}
zfill = '\x00' * 4
slaves_buf = ('\x00\x01', '\x00\x02')
slaves_val = (1, 2)
_len = len_['val'] + len(slaves_val) * 2
_len += (_len % 8)
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ algorithm['buf'] \
+ fields['buf'] \
+ basis['buf'] \
+ slave_type['buf'] \
+ n_slaves['buf'] \
+ ofs_nbits['buf'] \
+ dst['buf'] \
+ zfill \
+ slaves_buf[0] \
+ slaves_buf[1]
c = NXActionBundle(algorithm['val'],
fields['val'],
basis['val'],
slave_type['val'],
n_slaves['val'],
ofs_nbits['val'],
dst['val'],
slaves_val)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self._len, self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.algorithm['val'], self.c.algorithm)
eq_(self.fields['val'], self.c.fields)
eq_(self.basis['val'], self.c.basis)
eq_(self.slave_type['val'], self.c.slave_type)
eq_(self.n_slaves['val'], self.c.n_slaves)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.dst['val'], self.c.dst)
# slaves
slaves = self.c.slaves
eq_(self.slaves_val[0], slaves[0])
eq_(self.slaves_val[1], slaves[1])
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self._len, res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
eq_(self.algorithm['val'], res.algorithm)
eq_(self.fields['val'], res.fields)
eq_(self.basis['val'], res.basis)
eq_(self.slave_type['val'], res.slave_type)
eq_(self.n_slaves['val'], res.n_slaves)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.dst['val'], res.dst)
# slaves
slaves = res.slaves
eq_(self.slaves_val[0], slaves[0])
eq_(self.slaves_val[1], slaves[1])
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = '!' \
+ ofproto.NX_ACTION_BUNDLE_PACK_STR.replace('!', '') \
+ 'HH4x'
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self._len, res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.algorithm['val'], res[4])
eq_(self.fields['val'], res[5])
eq_(self.basis['val'], res[6])
eq_(self.slave_type['val'], res[7])
eq_(self.n_slaves['val'], res[8])
eq_(self.ofs_nbits['val'], res[9])
eq_(self.dst['val'], res[10])
class TestNXActionBundleLoad(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionBundleLoad
"""
# NX_ACTION_BUNDLE_PACK_STR
# '!HHIHHHHIHHI4x'...type, len, vendor, subtype, algorithm,
# fields, basis, slave_type, n_slaves,
# ofs_nbits, dst, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x20', 'val': ofproto.NX_ACTION_BUNDLE_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x0d', 'val': ofproto.NXAST_BUNDLE_LOAD}
algorithm = {'buf': '\x83\x15', 'val': 33557}
fields = {'buf': '\xc2\x7a', 'val': 49786}
basis = {'buf': '\x86\x18', 'val': 34328}
slave_type = {'buf': '\x18\x42\x0b\x55', 'val': 406981461}
n_slaves = {'buf': '\x00\x02', 'val': 2}
ofs_nbits = {'buf': '\xd2\x9d', 'val': 53917}
dst = {'buf': '\x37\xfe\xb3\x60', 'val': 939438944}
zfill = '\x00' * 4
slaves_buf = ('\x00\x01', '\x00\x02')
slaves_val = (1, 2)
_len = len_['val'] + len(slaves_val) * 2
_len += (_len % 8)
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ algorithm['buf'] \
+ fields['buf'] \
+ basis['buf'] \
+ slave_type['buf'] \
+ n_slaves['buf'] \
+ ofs_nbits['buf'] \
+ dst['buf'] \
+ zfill \
+ slaves_buf[0] \
+ slaves_buf[1]
c = NXActionBundleLoad(algorithm['val'],
fields['val'],
basis['val'],
slave_type['val'],
n_slaves['val'],
ofs_nbits['val'],
dst['val'],
slaves_val)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self._len, self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.algorithm['val'], self.c.algorithm)
eq_(self.fields['val'], self.c.fields)
eq_(self.basis['val'], self.c.basis)
eq_(self.slave_type['val'], self.c.slave_type)
eq_(self.n_slaves['val'], self.c.n_slaves)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.dst['val'], self.c.dst)
# slaves
slaves = self.c.slaves
eq_(self.slaves_val[0], slaves[0])
eq_(self.slaves_val[1], slaves[1])
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self._len, res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
eq_(self.algorithm['val'], res.algorithm)
eq_(self.fields['val'], res.fields)
eq_(self.basis['val'], res.basis)
eq_(self.slave_type['val'], res.slave_type)
eq_(self.n_slaves['val'], res.n_slaves)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.dst['val'], res.dst)
# slaves
slaves = res.slaves
eq_(self.slaves_val[0], slaves[0])
eq_(self.slaves_val[1], slaves[1])
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = '!' \
+ ofproto.NX_ACTION_BUNDLE_PACK_STR.replace('!', '') \
+ 'HH4x'
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self._len, res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.algorithm['val'], res[4])
eq_(self.fields['val'], res[5])
eq_(self.basis['val'], res[6])
eq_(self.slave_type['val'], res[7])
eq_(self.n_slaves['val'], res[8])
eq_(self.ofs_nbits['val'], res[9])
eq_(self.dst['val'], res[10])
class TestNXActionAutopath(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionAutopath
"""
# NX_ACTION_AUTOPATH_PACK_STR
# '!HHIHHII4x'...type, len, vendor, subtype, ofs_nbits,
# dst, id_, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x20', 'val': ofproto.NX_ACTION_OUTPUT_REG_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x0b', 'val': ofproto.NXAST_AUTOPATH}
ofs_nbits = {'buf': '\xfe\x78', 'val': 65144}
dst = {'buf': '\xf8\x55\x74\x95', 'val': 4166349973}
id_ = {'buf': '\x02\x2d\x37\xed', 'val': 36517869}
zfill = '\x00' * 4
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ ofs_nbits['buf'] \
+ dst['buf'] \
+ id_['buf'] \
+ zfill
c = NXActionAutopath(ofs_nbits['val'],
dst['val'],
id_['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.dst['val'], self.c.dst)
eq_(self.id_['val'], self.c.id)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self.len_['val'], res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.dst['val'], res.dst)
eq_(self.id_['val'], res.id)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_AUTOPATH_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.ofs_nbits['val'], res[4])
eq_(self.dst['val'], res[5])
eq_(self.id_['val'], res[6])
class TestNXActionOutputReg(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionOutputReg
"""
# NX_ACTION_OUTPUT_REG_PACK_STR
# '!HHIHHIH6x'...type, len, vendor, subtype, ofs_nbits,
# src, max_len, zfill
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x20', 'val': ofproto.NX_ACTION_OUTPUT_REG_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x0f', 'val': ofproto.NXAST_OUTPUT_REG}
ofs_nbits = {'buf': '\xfe\x78', 'val': 65144}
src = {'buf': '\x5e\x3a\x04\x26', 'val': 1580860454}
max_len = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
zfill = '\x00' * 6
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ ofs_nbits['buf'] \
+ src['buf'] \
+ max_len['buf'] \
+ zfill
c = NXActionOutputReg(ofs_nbits['val'],
src['val'],
max_len['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
eq_(self.ofs_nbits['val'], self.c.ofs_nbits)
eq_(self.src['val'], self.c.src)
eq_(self.max_len['val'], self.c.max_len)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self.len_['val'], res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
eq_(self.ofs_nbits['val'], res.ofs_nbits)
eq_(self.src['val'], res.src)
eq_(self.max_len['val'], res.max_len)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_OUTPUT_REG_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
eq_(self.ofs_nbits['val'], res[4])
eq_(self.src['val'], res[5])
eq_(self.max_len['val'], res[6])
class TestNXActionExit(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXActionExit
"""
# NX_ACTION_HEADER_PACK_STR
# '!HHIH'...type, len, vendor, subtype
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPAT_VENDOR}
len_ = {'buf': '\x00\x10', 'val': ofproto.NX_ACTION_HEADER_SIZE}
vendor = {'buf': '\x00\x00\x23\x20', 'val': ofproto.NX_VENDOR_ID}
subtype = {'buf': '\x00\x11', 'val': ofproto.NXAST_EXIT}
zfill = '\x00' * 6
buf = type_['buf'] \
+ len_['buf'] \
+ vendor['buf'] \
+ subtype['buf'] \
+ zfill
c = NXActionExit()
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.type_['val'], self.c.type)
eq_(self.len_['val'], self.c.len)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.subtype['val'], self.c.subtype)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.type_['val'], res.type)
eq_(self.len_['val'], res.len)
eq_(self.vendor['val'], res.vendor)
eq_(self.subtype['val'], res.subtype)
def test_serialize(self):
buf = bytearray()
self.c.serialize(buf, 0)
fmt = ofproto.NX_ACTION_HEADER_PACK_STR
res = struct.unpack(fmt, buffer(buf))
eq_(self.type_['val'], res[0])
eq_(self.len_['val'], res[1])
eq_(self.vendor['val'], res[2])
eq_(self.subtype['val'], res[3])
class TestOFPDescStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPDescStats
"""
# OFP_DESC_STATS_PACK_STR
# '!256s256s256s32s256s'...mfr_desc, hw_desc, sw_desc, serial_num, dp_desc
mfr_desc = 'mfr_desc'.ljust(256)
hw_desc = 'hw_desc'.ljust(256)
sw_desc = 'sw_desc'.ljust(256)
serial_num = 'serial_num'.ljust(32)
dp_desc = 'dp_desc'.ljust(256)
buf = mfr_desc \
+ hw_desc \
+ sw_desc \
+ serial_num \
+ dp_desc
c = OFPDescStats(mfr_desc, hw_desc, sw_desc, serial_num, dp_desc)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.mfr_desc, self.c.mfr_desc)
eq_(self.hw_desc, self.c.hw_desc)
eq_(self.sw_desc, self.c.sw_desc)
eq_(self.serial_num, self.c.serial_num)
eq_(self.dp_desc, self.c.dp_desc)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.mfr_desc, self.mfr_desc)
eq_(self.hw_desc, self.hw_desc)
eq_(self.sw_desc, self.sw_desc)
eq_(self.serial_num, self.serial_num)
eq_(self.dp_desc, self.dp_desc)
class TestOFPFlowStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFlowStats
"""
# OFP_FLOW_STATS_0_PACK_STR
# '!HBx'...length, table_id, zfill
length = {'buf': '\x00\x58', 'val': 88}
length_append_action = {'buf': '\x00\x60', 'val': 96}
table_id = {'buf': '\x51', 'val': 81}
zfill_0 = '\x00'
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...
match = '\x97\x7c\xa6\x1e' \
+ '\x5e\xa0' \
+ '\x7a\x3e\xed\x30\x4a\x90' \
+ '\x96\x8e\x67\xbe\x2f\xe2' \
+ '\xb1\x81' \
+ '\xbe' \
+ '\x00' \
+ '\x01\xab' \
+ '\x42' \
+ '\xfe' \
+ '\x00\x00' \
+ '\xa4\x5d\x5c\x42' \
+ '\xa2\x5c\x2e\x05' \
+ '\x5a\x94' \
+ '\x64\xd4'
# OFP_FLOW_STATS_1_PACK_STR
# '!IIHHH6xQQQ'...duration_sec, duration_nsec, priority,
# idle_timeout, hard_timeout, zfill,
# cookie, packet_count, byte_count
duration_sec = {'buf': '\x94\x19\xb3\xd2', 'val': 2484712402}
duration_nsec = {'buf': '\xee\x66\xcf\x7c', 'val': 3999715196}
priority = {'buf': '\xe1\xc0', 'val': 57792}
idle_timeout = {'buf': '\x8e\x10', 'val': 36368}
hard_timeout = {'buf': '\xd4\x99', 'val': 54425}
zfill_1 = '\x00\x00\x00\x00\x00\x00'
cookie = {'buf': '\x0b\x01\xe8\xe5\xf0\x84\x8a\xe0',
'val': 793171083674290912}
packet_count = {'buf': '\x47\x5c\xc6\x05\x28\xff\x7c\xdb',
'val': 5142202600015232219}
byte_count = {'buf': '\x24\xe9\x4b\xee\xcb\x57\xd9\xc3',
'val': 2659740543924820419}
# <action>_PACK_STR...type_, len_ [others...]
type = {'buf': '\x00\x00', 'val': ofproto.OFPAT_OUTPUT}
len = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
port = {'buf': '\x59\x2a', 'val': 22826}
max_len = {'buf': '\x00\x08', 'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
action = (type, len, port, max_len)
ACTION_TYPE = 0
ACTION_LEN = 1
ACTION_PORT = 2
ACTION_MAX_LEN = 3
c = OFPFlowStats()
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def _parser(self, action=None):
buf = self.table_id['buf'] \
+ self.zfill_0 \
+ self.match \
+ self.duration_sec['buf'] \
+ self.duration_nsec['buf'] \
+ self.priority['buf'] \
+ self.idle_timeout['buf'] \
+ self.hard_timeout['buf'] \
+ self.zfill_1 \
+ self.cookie['buf'] \
+ self.packet_count['buf'] \
+ self.byte_count['buf']
if not action:
buf = self.length['buf'] + buf
else:
buf = self.length_append_action['buf'] + buf
for a in self.action:
buf = buf + a['buf']
return self.c.parser(buf, 0)
def test_parser(self):
res = self._parser()
eq_(self.length['val'], res.length)
eq_(self.table_id['val'], res.table_id)
eq_(self.duration_sec['val'], res.duration_sec)
eq_(self.duration_nsec['val'], res.duration_nsec)
eq_(self.priority['val'], res.priority)
eq_(self.idle_timeout['val'], res.idle_timeout)
eq_(self.hard_timeout['val'], res.hard_timeout)
eq_(self.cookie['val'], res.cookie)
eq_(self.packet_count['val'], res.packet_count)
eq_(self.byte_count['val'], res.byte_count)
def test_parser_append_actions(self):
res = self._parser(True).actions[0]
eq_(self.action[self.ACTION_TYPE]['val'], res.type)
eq_(self.action[self.ACTION_LEN]['val'], res.len)
eq_(self.action[self.ACTION_PORT]['val'], res.port)
eq_(self.action[self.ACTION_MAX_LEN]['val'], res.max_len)
class TestOFPAggregateStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPAggregateStats
"""
# OFP_AGGREGATE_STATS_REPLY_PACK_STR
# '!QQI4x'...packet_count, byte_count, flow_count, zfill
packet_count = {'buf': '\x43\x95\x1b\xfb\x0f\xf6\xa7\xdd',
'val': 4869829337189623773}
byte_count = {'buf': '\x36\xda\x2d\x80\x2a\x95\x35\xdd',
'val': 3952521651464517085}
flow_count = {'buf': '\xc3\x0d\xc3\xed', 'val': 3272459245}
zfill = '\x00' * 4
buf = packet_count['buf'] \
+ byte_count['buf'] \
+ flow_count['buf'] \
+ zfill
c = OFPAggregateStats(packet_count['val'],
byte_count['val'],
flow_count['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.packet_count['val'], self.c.packet_count)
eq_(self.byte_count['val'], self.c.byte_count)
eq_(self.flow_count['val'], self.c.flow_count)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.packet_count['val'], res.packet_count)
eq_(self.byte_count['val'], res.byte_count)
eq_(self.flow_count['val'], res.flow_count)
class TestOFPTableStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPTableStats
"""
# OFP_TABLE_STATS_PACK_STR
# '!B3x32sIIIQQ'...table_id, zfill, name, wildcards, max_entries,
# active_count, lookup_count, matched_count
table_id = {'buf': '\x5b', 'val': 91}
zfill = '\x00' * 3
name = 'name'.ljust(32)
wildcards = {'buf': '\xc5\xaf\x6e\x12', 'val': 3316608530}
max_entries = {'buf': '\x95\x6c\x78\x4d', 'val': 2506913869}
active_count = {'buf': '\x78\xac\xa8\x1e', 'val': 2024581150}
lookup_count = {'buf': '\x40\x1d\x9c\x39\x19\xec\xd4\x1c',
'val': 4620020561814017052}
matched_count = {'buf': '\x27\x35\x02\xb6\xc5\x5e\x17\x65',
'val': 2825167325263435621}
buf = table_id['buf'] \
+ zfill \
+ name \
+ wildcards['buf'] \
+ max_entries['buf'] \
+ active_count['buf'] \
+ lookup_count['buf'] \
+ matched_count['buf']
c = OFPTableStats(table_id['val'],
name,
wildcards['val'],
max_entries['val'],
active_count['val'],
lookup_count['val'],
matched_count['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.table_id['val'], self.c.table_id)
eq_(self.name, self.c.name)
eq_(self.wildcards['val'], self.c.wildcards)
eq_(self.max_entries['val'], self.c.max_entries)
eq_(self.active_count['val'], self.c.active_count)
eq_(self.lookup_count['val'], self.c.lookup_count)
eq_(self.matched_count['val'], self.c.matched_count)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.table_id['val'], res.table_id)
eq_(self.name, res.name)
eq_(self.wildcards['val'], res.wildcards)
eq_(self.max_entries['val'], res.max_entries)
eq_(self.active_count['val'], res.active_count)
eq_(self.lookup_count['val'], res.lookup_count)
eq_(self.matched_count['val'], res.matched_count)
class TestOFPPortStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPortStats
"""
# OFP_PORT_STATS_PACK_STR
# '!H6xQQQQQQQQQQQQ'... port_no, zfill, rx_packets, tx_packets,
# rx_bytes, tx_bytes, rx_dropped, tx_dropped,
# rx_errors, tx_errors, rx_frame_err,
# rx_over_err, rx_crc_err, collisions
port_no = {'buf': '\xe7\x6b', 'val': 59243}
zfill = '\x00' * 6
rx_packets = {'buf': '\x53\x44\x36\x61\xc4\x86\xc0\x37',
'val': 5999980397101236279}
tx_packets = {'buf': '\x27\xa4\x41\xd7\xd4\x53\x9e\x42',
'val': 2856480458895760962}
rx_bytes = {'buf': '\x55\xa1\x38\x60\x43\x97\x0d\x89',
'val': 6170274950576278921}
tx_bytes = {'buf': '\x77\xe1\xd5\x63\x18\xae\x63\xaa',
'val': 8638420181865882538}
rx_dropped = {'buf': '\x60\xe6\x20\x01\x24\xda\x4e\x5a',
'val': 6982303461569875546}
tx_dropped = {'buf': '\x09\x2d\x5d\x71\x71\xb6\x8e\xc7',
'val': 661287462113808071}
rx_errors = {'buf': '\x2f\x7e\x35\xb3\x66\x3c\x19\x0d',
'val': 3422231811478788365}
tx_errors = {'buf': '\x57\x32\x08\x2f\x88\x32\x40\x6b',
'val': 6283093430376743019}
rx_frame_err = {'buf': '\x0c\x28\x6f\xad\xce\x66\x6e\x8b',
'val': 876072919806406283}
rx_over_err = {'buf': '\x5a\x90\x8f\x9b\xfc\x82\x2e\xa0',
'val': 6525873760178941600}
rx_crc_err = {'buf': '\x73\x3a\x71\x17\xd6\x74\x69\x47',
'val': 8303073210207070535}
collisions = {'buf': '\x2f\x52\x0c\x79\x96\x03\x6e\x79',
'val': 3409801584220270201}
buf = port_no['buf'] \
+ zfill \
+ rx_packets['buf'] \
+ tx_packets['buf'] \
+ rx_bytes['buf'] \
+ tx_bytes['buf'] \
+ rx_dropped['buf'] \
+ tx_dropped['buf'] \
+ rx_errors['buf'] \
+ tx_errors['buf'] \
+ rx_frame_err['buf'] \
+ rx_over_err['buf'] \
+ rx_crc_err['buf'] \
+ collisions['buf']
c = OFPPortStats(port_no['val'],
rx_packets['val'],
tx_packets['val'],
rx_bytes['val'],
tx_bytes['val'],
rx_dropped['val'],
tx_dropped['val'],
rx_errors['val'],
tx_errors['val'],
rx_frame_err['val'],
rx_over_err['val'],
rx_crc_err['val'],
collisions['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port_no['val'], self.c.port_no)
eq_(self.rx_packets['val'], self.c.rx_packets)
eq_(self.tx_packets['val'], self.c.tx_packets)
eq_(self.rx_bytes['val'], self.c.rx_bytes)
eq_(self.tx_bytes['val'], self.c.tx_bytes)
eq_(self.rx_dropped['val'], self.c.rx_dropped)
eq_(self.tx_dropped['val'], self.c.tx_dropped)
eq_(self.rx_errors['val'], self.c.rx_errors)
eq_(self.tx_errors['val'], self.c.tx_errors)
eq_(self.rx_frame_err['val'], self.c.rx_frame_err)
eq_(self.rx_over_err['val'], self.c.rx_over_err)
eq_(self.rx_crc_err['val'], self.c.rx_crc_err)
eq_(self.collisions['val'], self.c.collisions)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.port_no['val'], res.port_no)
eq_(self.rx_packets['val'], res.rx_packets)
eq_(self.tx_packets['val'], res.tx_packets)
eq_(self.rx_bytes['val'], res.rx_bytes)
eq_(self.tx_bytes['val'], res.tx_bytes)
eq_(self.rx_dropped['val'], res.rx_dropped)
eq_(self.tx_dropped['val'], res.tx_dropped)
eq_(self.rx_errors['val'], res.rx_errors)
eq_(self.tx_errors['val'], res.tx_errors)
eq_(self.rx_frame_err['val'], res.rx_frame_err)
eq_(self.rx_over_err['val'], res.rx_over_err)
eq_(self.rx_crc_err['val'], res.rx_crc_err)
eq_(self.collisions['val'], res.collisions)
class TestOFPQueueStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueueStats
"""
# OFP_QUEUE_STATS_PACK_STR
# '!H2xIQQQ...port_no, queue_id, tx_bytes, tx_packets, tx_errors
port_no = {'buf': '\xe7\x6b', 'val': 59243}
zfill = '\x00' * 2
queue_id = {'buf': '\x2a\xa8\x7f\x32', 'val': 715685682}
tx_bytes = {'buf': '\x77\xe1\xd5\x63\x18\xae\x63\xaa',
'val': 8638420181865882538}
tx_packets = {'buf': '\x27\xa4\x41\xd7\xd4\x53\x9e\x42',
'val': 2856480458895760962}
tx_errors = {'buf': '\x57\x32\x08\x2f\x88\x32\x40\x6b',
'val': 6283093430376743019}
c = OFPQueueStats(port_no['val'],
queue_id['val'],
tx_bytes['val'],
tx_packets['val'],
tx_errors['val'])
buf = port_no['buf'] \
+ zfill \
+ queue_id['buf'] \
+ tx_bytes['buf'] \
+ tx_packets['buf'] \
+ tx_errors['buf']
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port_no['val'], self.c.port_no)
eq_(self.queue_id['val'], self.c.queue_id)
eq_(self.tx_bytes['val'], self.c.tx_bytes)
eq_(self.tx_packets['val'], self.c.tx_packets)
eq_(self.tx_errors['val'], self.c.tx_errors)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.port_no['val'], res.port_no)
eq_(self.queue_id['val'], res.queue_id)
eq_(self.tx_bytes['val'], res.tx_bytes)
eq_(self.tx_packets['val'], res.tx_packets)
eq_(self.tx_errors['val'], res.tx_errors)
class TestOFPVendorStats(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPVendorStats
"""
specific_data = 'specific_data'
specific_data_after = 'data'
offset = specific_data.find(specific_data_after)
c = OFPVendorStats(specific_data)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.specific_data, self.c.specific_data)
def test_parser(self):
res = self.c.parser(self.specific_data, self.offset)
eq_(self.specific_data_after, res.specific_data)
class TestOFPQueuePropNone(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueuePropNone
"""
# OFP_QUEUE_PROP_HEADER_PACK_STR
# '!HH4x'...property_, len_
property = {'buf': '\x00\x00', 'val': ofproto.OFPQT_NONE}
len = {'buf': '\x00\x08', 'val': ofproto.OFP_QUEUE_PROP_HEADER_SIZE}
zfill = '\x00' * 4
c = OFPQueuePropNone()
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
cls = OFPQueuePropHeader._QUEUE_PROPERTIES[self.c.cls_prop_type]
eq_(self.property['val'], self.c.cls_prop_type)
eq_(self.property['val'], self.c.property)
eq_(self.property['val'], cls.cls_prop_type)
eq_(self.len['val'], self.c.cls_prop_len)
eq_(self.len['val'], self.c.len)
eq_(self.len['val'], cls.cls_prop_len)
def test_parser(self):
buf = self.property['buf'] \
+ self.len['buf'] \
+ self.zfill
ok_(self.c.parser(buf, 0))
class TestOFPQueuePropMinRate(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueuePropMinRate
"""
# OFP_QUEUE_PROP_MIN_RATE_PACK_STR
# '!H6x'...rate
rate = {'buf': '\x00\x01', 'val': ofproto.OFPQT_MIN_RATE}
len = {'buf': '\x00\x10', 'val': ofproto.OFP_QUEUE_PROP_MIN_RATE_SIZE}
zfill = '\x00' * 6
buf = rate['buf'] \
+ zfill
c = OFPQueuePropMinRate(rate['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
cls = OFPQueuePropHeader._QUEUE_PROPERTIES[self.c.cls_prop_type]
eq_(self.rate['val'], self.c.cls_prop_type)
eq_(self.rate['val'], self.c.rate)
eq_(self.rate['val'], cls.cls_prop_type)
eq_(self.len['val'], self.c.cls_prop_len)
eq_(self.len['val'], cls.cls_prop_len)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.rate['val'], res.rate)
class TestOFPPacketQueue(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPacketQueue
"""
# OFP_PACKET_QUEUE_PQCK_STR
# '!IH2x'...queue_id, len_, zfill
queue_id = {'buf': '\x4d\x4b\x3a\xd1', 'val': 1296775889}
len_ = {'buf': '\x00\x08',
'val': ofproto.OFP_QUEUE_PROP_HEADER_SIZE}
zfill = '\x00' * 2
buf = queue_id['buf'] \
+ len_['buf'] \
+ zfill
c = OFPPacketQueue(queue_id['val'],
len_['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.queue_id['val'], self.c.queue_id)
eq_(self.len_['val'], self.c.len)
def test_parser(self):
res = self.c.parser(self.buf, 0)
eq_(self.queue_id['val'], res.queue_id)
eq_(self.len_['val'], res.len)
def test_parser_append_prop(self):
# OFP_QUEUE_PROP_HEADER_PACK_STR + OFP_QUEUE_PROP_MIN_RATE_PACK_STR
# '!HH4xH6x'...type, len, zfill, rate, zfill
len_ = {'buf': '\x00\x10',
'val': ofproto.OFP_QUEUE_PROP_MIN_RATE_SIZE}
a_type = {'buf': '\x00\x01', 'val': ofproto.OFPQT_MIN_RATE}
a_len = {'buf': '\x00\x10',
'val': ofproto.OFP_QUEUE_PROP_MIN_RATE_SIZE}
a_zfill0 = '\x00' * 4
a_rate = {'buf': '\x00\x01', 'val': ofproto.OFPQT_MIN_RATE}
a_zfill1 = '\x00' * 6
buf = self.queue_id['buf'] \
+ len_['buf'] \
+ self.zfill \
+ a_type['buf'] \
+ a_len['buf'] \
+ a_zfill0 \
+ a_rate['buf'] \
+ a_zfill1
res = self.c.parser(buf, 0)
eq_(self.queue_id['val'], res.queue_id)
eq_(len_['val'], res.len)
append_cls = res.properties[0]
eq_(a_type['val'], append_cls.property)
eq_(a_len['val'], append_cls.len)
eq_(a_rate['val'], append_cls.rate)
class TestOFPHello(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPHello
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = ofproto.OFP_VERSION
msg_type = ofproto.OFPT_HELLO
msg_len = ofproto.OFP_HEADER_SIZE
xid = 2183948390
data = '\x00\x01\x02\x03'
fmt = ofproto.OFP_HEADER_PACK_STR
buf = struct.pack(fmt, version, msg_type, msg_len, xid) \
+ data
res = OFPHello.parser(object, version, msg_type, msg_len, xid,
bytearray(buf))
eq_(version, res.version)
eq_(msg_type, res.msg_type)
eq_(msg_len, res.msg_len)
eq_(xid, res.xid)
eq_(buffer(buf), res.buf)
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPHello(Datapath)
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_HELLO, c.msg_type)
eq_(0, c.xid)
class TestOFPErrorMsg(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPErrorMsg
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x01', 'val': ofproto.OFPT_ERROR}
msg_len = {'buf': '\x00\x0c',
'val': ofproto.OFP_ERROR_MSG_SIZE}
xid = {'buf': '\x87\x8b\x26\x7c', 'val': 2274043516}
type = {'buf': '\xab\x3e', 'val': 43838}
code = {'buf': '\x5d\x3c', 'val': 23868}
data = 'Error Message.'
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ type['buf'] \
+ code['buf'] \
+ data
res = OFPErrorMsg.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type['val'], res.type)
eq_(code['val'], res.code)
eq_(data, res.data)
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
type = 1306
code = 13774
data = 'Error Message.'
c = OFPErrorMsg(Datapath)
c.type = type
c.code = code
c.data = data
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_ERROR, c.msg_type)
eq_(0, c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_ERROR_MSG_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_ERROR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(type, res[4])
eq_(code, res[5])
eq_(data, res[6])
class TestOFPEchoRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPEchoRequest
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x02', 'val': ofproto.OFPT_ECHO_REQUEST}
msg_len = {'buf': '\x00\x08',
'val': ofproto.OFP_HEADER_SIZE}
xid = {'buf': '\x84\x47\xef\x3f', 'val': 2219306815}
data = 'Request Message.'
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ data
res = OFPEchoRequest.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(data, res.data)
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
data = 'Request Message.'
c = OFPEchoRequest(Datapath)
c.data = data
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_ECHO_REQUEST, c.msg_type)
eq_(0, c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_ECHO_REQUEST, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(data, res[4])
class TestOFPEchoReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPEchoReply
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x03', 'val': ofproto.OFPT_ECHO_REPLY}
msg_len = {'buf': '\x00\x08',
'val': ofproto.OFP_HEADER_SIZE}
xid = {'buf': '\x6e\x21\x3e\x62', 'val': 1847672418}
data = 'Reply Message.'
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ data
res = OFPEchoReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(data, res.data)
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
data = 'Reply Message.'
c = OFPEchoReply(Datapath)
c.data = data
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_ECHO_REPLY, c.msg_type)
eq_(0, c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_ECHO_REPLY, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(data, res[4])
class TestOFPVendor(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPVendor
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x04', 'val': ofproto.OFPT_VENDOR}
msg_len = {'buf': '\x00\x0c',
'val': ofproto.OFP_VENDOR_HEADER_SIZE}
xid = {'buf': '\x05\x45\xdf\x18', 'val': 88465176}
vendor = {'buf': '\x53\xea\x25\x3e', 'val': 1407853886}
data = 'Vendor Message.'
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ vendor['buf'] \
+ data
res = OFPVendor.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(vendor['val'], res.vendor)
eq_(data, res.data)
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
vendor = {'buf': '\x38\x4b\xf9\x6c', 'val': 944503148}
data = 'Reply Message.'
c = OFPVendor(Datapath)
c.vendor = vendor['val']
c.data = data
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_VENDOR, c.msg_type)
eq_(0, c.xid)
eq_(vendor['val'], c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_VENDOR_HEADER_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(vendor['val'], res[4])
eq_(data, res[5])
# class TestNXTRequest(unittest.TestCase):
class TestNiciraHeader(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NiciraHeader
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
subtype = ofproto.NXT_FLOW_MOD_TABLE_ID
c = NiciraHeader(object, subtype)
eq_(subtype, c.subtype)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
data = 'Reply Message.'
subtype = ofproto.NXT_FLOW_MOD_TABLE_ID
c = NiciraHeader(Datapath, subtype)
c.data = data
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_VENDOR, c.msg_type)
eq_(0, c.xid)
eq_(ofproto.NX_VENDOR_ID, c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(subtype, res[5])
eq_(data, res[6])
class TestNXTSetFlowFormat(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXTSetFlowFormat
"""
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
flow_format = {'buf': '\xdc\x6b\xf5\x24', 'val': 3698062628}
c = NXTSetFlowFormat(object, flow_format['val'])
eq_(flow_format['val'], c.format)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flow_format = {'buf': '\x5a\x4e\x59\xad', 'val': 1515084205}
c = NXTSetFlowFormat(Datapath, flow_format['val'])
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_VENDOR, c.msg_type)
eq_(0, c.xid)
eq_(ofproto.NX_VENDOR_ID, c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NX_SET_FLOW_FORMAT_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(ofproto.NXT_SET_FLOW_FORMAT, res[5])
eq_(flow_format['val'], res[6])
class TestNXTFlowMod(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXTFlowMod
"""
# NX_FLOW_MOD_PACK_STR
# '!Q4HI3H6x'...cokkie, command, idle_timeout, head_timeout,
# priority, buffer_id, out_port, flags, rule, zfill
cookie = {'buf': '\x04\x56\x27\xad\xbd\x43\xd6\x83',
'val': 312480851306993283}
command = {'buf': '\x61\xaa', 'val': 25002}
idle_timeout = {'buf': '\x4e\xff', 'val': 20223}
hard_timeout = {'buf': '\x80\x16', 'val': 32790}
priority = {'buf': '\x70\x5f', 'val': 28767}
buffer_id = {'buf': '\x7b\x97\x3a\x09', 'val': 2073508361}
out_port = {'buf': '\x11\x7d', 'val': 4477}
flags = {'buf': '\x5c\xb9', 'val': 23737}
rule = nx_match.ClsRule()
zfill = '\x00' * 6
port = {'buf': '\x2a\xe0', 'val': 10976}
actions = [OFPActionOutput(port['val'])]
def _get_obj(self, append_action=False):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
actions = None
if append_action:
actions = self.actions
c = NXTFlowMod(Datapath,
self.cookie['val'],
self.command['val'],
self.idle_timeout['val'],
self.hard_timeout['val'],
self.priority['val'],
self.buffer_id['val'],
self.out_port['val'],
self.flags['val'],
self.rule,
actions)
return c
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
c = self._get_obj()
eq_(self.cookie['val'], c.cookie)
eq_(self.command['val'], c.command)
eq_(self.idle_timeout['val'], c.idle_timeout)
eq_(self.hard_timeout['val'], c.hard_timeout)
eq_(self.priority['val'], c.priority)
eq_(self.buffer_id['val'], c.buffer_id)
eq_(self.out_port['val'], c.out_port)
eq_(self.flags['val'], c.flags)
eq_(self.rule.__hash__(), c.rule.__hash__())
def test_init_append_actions(self):
c = self._get_obj(True)
action = c.actions[0]
eq_(ofproto.OFPAT_OUTPUT, action.type)
eq_(ofproto.OFP_ACTION_OUTPUT_SIZE, action.len)
eq_(self.port['val'], action.port)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
c = self._get_obj()
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_VENDOR, c.msg_type)
eq_(0, c.xid)
eq_(ofproto.NX_VENDOR_ID, c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NX_FLOW_MOD_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(ofproto.NXT_FLOW_MOD, res[5])
eq_(self.cookie['val'], res[6])
eq_(self.command['val'], res[7])
eq_(self.idle_timeout['val'], res[8])
eq_(self.hard_timeout['val'], res[9])
eq_(self.priority['val'], res[10])
eq_(self.buffer_id['val'], res[11])
eq_(self.out_port['val'], res[12])
eq_(self.flags['val'], res[13])
def test_serialize_append_actions(self):
c = self._get_obj(True)
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_VENDOR, c.msg_type)
eq_(0, c.xid)
eq_(ofproto.NX_VENDOR_ID, c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NX_FLOW_MOD_PACK_STR.replace('!', '') \
+ ofproto.OFP_ACTION_OUTPUT_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(ofproto.NXT_FLOW_MOD, res[5])
eq_(self.cookie['val'], res[6])
eq_(self.command['val'], res[7])
eq_(self.idle_timeout['val'], res[8])
eq_(self.hard_timeout['val'], res[9])
eq_(self.priority['val'], res[10])
eq_(self.buffer_id['val'], res[11])
eq_(self.out_port['val'], res[12])
eq_(self.flags['val'], res[13])
# action
eq_(0, res[14])
eq_(ofproto.OFPAT_OUTPUT, res[15])
eq_(ofproto.OFP_ACTION_OUTPUT_SIZE, res[16])
eq_(self.port['val'], res[17])
eq_(0xffe5, res[18])
class TestNXTRoleRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXTRoleRequest
"""
# NX_ROLE_PACK_STR
# '!I'...role
role = {'buf': '\x62\x81\x27\x61', 'val': 1652631393}
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = NXTRoleRequest(Datapath, role['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.role['val'], self.c.role)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_VENDOR, self.c.msg_type)
eq_(0, self.c.xid)
eq_(ofproto.NX_VENDOR_ID, self.c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NX_ROLE_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(ofproto.NXT_ROLE_REQUEST, res[5])
eq_(self.role['val'], res[6])
class TestNXTFlowModTableId(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.NXTFlowModTableId
"""
# NX_FLOW_MOD_TABLE_ID_PACK_STR
# '!B7x'...set_, zfill
set_ = {'buf': '\x71', 'val': 113}
zfill = '\x00' * 7
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = NXTFlowModTableId(Datapath, set_['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.set_['val'], self.c.set)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_VENDOR, self.c.msg_type)
eq_(0, self.c.xid)
eq_(ofproto.NX_VENDOR_ID, self.c.vendor)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NICIRA_HEADER_PACK_STR.replace('!', '') \
+ ofproto.NX_FLOW_MOD_TABLE_ID_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_VENDOR, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
eq_(ofproto.NX_VENDOR_ID, res[4])
eq_(ofproto.NXT_FLOW_MOD_TABLE_ID, res[5])
eq_(self.set_['val'], res[6])
class TestOFPSwitchFeatures(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPSwitchFeatures
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPSwitchFeatures(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x06', 'val': ofproto.OFPT_FEATURES_REPLY}
msg_len_val = ofproto.OFP_SWITCH_FEATURES_SIZE \
+ ofproto.OFP_PHY_PORT_SIZE
msg_len = {'buf': '\x00\x4c', 'val': msg_len_val}
xid = {'buf': '\xcc\x0a\x41\xd4', 'val': 3423224276}
# OFP_SWITCH_FEATURES_PACK_STR
# '!QIB3xII'...datapath_id, n_buffers, n_tables,
# zfill, capabilities, actions
datapath_id = {'buf': '\x11\xa3\x72\x63\x61\xde\x39\x81',
'val': 1270985291017894273}
n_buffers = {'buf': '\x80\x14\xd7\xf6', 'val': 2148849654}
n_tables = {'buf': '\xe4', 'val': 228}
zfill = '\x00' * 3
capabilities = {'buf': '\x69\x4f\xe4\xc2', 'val': 1766843586}
actions = {'buf': '\x78\x06\xd9\x0c', 'val': 2013714700}
# OFP_PHY_PORT_PACK_STR
# '!H6s16sIIIIII'... port_no, hw_addr, name, config, state
# curr, advertised, supported, peer
port_no = {'buf': '\xe7\x6b', 'val': 59243}
hw_addr = '3c:d1:2b:8d:3f:d6'
name = 'name'.ljust(16)
config = {'buf': '\x84\xb6\x8c\x53', 'val': 2226555987}
state = {'buf': '\x64\x07\xfb\xc9', 'val': 1678244809}
curr = {'buf': '\xa9\xe8\x0a\x2b', 'val': 2850556459}
advertised = {'buf': '\x78\xb9\x7b\x72', 'val': 2025421682}
supported = {'buf': '\x7e\x65\x68\xad', 'val': 2120575149}
peer = {'buf': '\xa4\x5b\x8b\xed', 'val': 2757463021}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ datapath_id['buf'] \
+ n_buffers['buf'] \
+ n_tables['buf'] \
+ zfill \
+ capabilities['buf'] \
+ actions['buf'] \
+ port_no['buf'] \
+ addrconv.mac.text_to_bin(hw_addr) \
+ name \
+ config['buf'] \
+ state['buf'] \
+ curr['buf'] \
+ advertised['buf'] \
+ supported['buf'] \
+ peer['buf']
res = OFPSwitchFeatures.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(datapath_id['val'], res.datapath_id)
eq_(n_buffers['val'], res.n_buffers)
eq_(n_tables['val'], res.n_tables)
eq_(capabilities['val'], res.capabilities)
eq_(actions['val'], res.actions)
# port
port = res.ports[port_no['val']]
eq_(port_no['val'], port.port_no)
eq_(hw_addr, hw_addr)
eq_(name, port.name)
eq_(config['val'], port.config)
eq_(state['val'], port.state)
eq_(curr['val'], port.curr)
eq_(advertised['val'], port.advertised)
eq_(supported['val'], port.supported)
eq_(peer['val'], port.peer)
def test_serialize(self):
# Not used.
pass
class TestOFPPortStatus(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPortStatus
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPPortStatus(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x0c', 'val': ofproto.OFPT_PORT_STATUS}
msg_len = {'buf': '\x00\x40',
'val': ofproto.OFP_PORT_STATUS_SIZE}
xid = {'buf': '\x06\x27\x8b\x7b', 'val': 103254907}
# OFP_PORT_STATUS_PACK_STR
# '!B7xH6s16sIIIIII'...reason, zfill, port_no, hw_addr,
# name, config, state, curr,
# advertised, supported, peer
reason = {'buf': '\x71', 'val': 113}
zfill = '\x00' * 7
port_no = {'buf': '\x48\xd8', 'val': 18648}
hw_addr = '41:f7:a3:52:8f:6b'
name = 'name'.ljust(16)
config = {'buf': '\xae\x73\x90\xec', 'val': 2926809324}
state = {'buf': '\x41\x37\x32\x1d', 'val': 1094136349}
curr = {'buf': '\xa9\x47\x13\x2c', 'val': 2840007468}
advertised = {'buf': '\xce\x6b\x4a\x87', 'val': 3463137927}
supported = {'buf': '\xb8\x06\x65\xa1', 'val': 3087426977}
peer = {'buf': '\x6a\x11\x52\x39', 'val': 1779520057}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ reason['buf'] \
+ zfill \
+ port_no['buf'] \
+ addrconv.mac.text_to_bin(hw_addr) \
+ name \
+ config['buf'] \
+ state['buf'] \
+ curr['buf'] \
+ advertised['buf'] \
+ supported['buf'] \
+ peer['buf']
res = OFPPortStatus.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(reason['val'], res.reason)
# desc
desc = res.desc
eq_(port_no['val'], desc.port_no)
eq_(hw_addr, desc.hw_addr)
eq_(name, desc.name)
eq_(config['val'], desc.config)
eq_(state['val'], desc.state)
eq_(curr['val'], desc.curr)
eq_(advertised['val'], desc.advertised)
eq_(supported['val'], desc.supported)
eq_(peer['val'], desc.peer)
def test_serialize(self):
# Not used.
pass
class TestOFPPacketIn(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPacketIn
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPPacketIn(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def _test_parser(self, padding=False):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x0a', 'val': ofproto.OFPT_PACKET_IN}
msg_len = {'buf': '\x00\x14',
'val': ofproto.OFP_PACKET_IN_SIZE}
xid = {'buf': '\xd0\x23\x8c\x34', 'val': 3491990580}
# OFP_PACKET_IN_PACK_STR
# '!IHHBx2x'...buffer_id, total_len,
# in_port, reason, zfill, data
buffer_id = {'buf': '\xae\x73\x90\xec', 'val': 2926809324}
total_len = {'buf': '\x00\x10', 'val': 16}
in_port = {'buf': '\x08\x42', 'val': 2114}
reason = {'buf': '\x43', 'val': 67}
zfill = '\x00' * 1
if padding:
data = 'PACKET IN'.ljust(20)
else:
data = 'PACKET IN'.ljust(16)
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ buffer_id['buf'] \
+ total_len['buf'] \
+ in_port['buf'] \
+ reason['buf'] \
+ zfill \
+ data
res = OFPPacketIn.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(buffer_id['val'], res.buffer_id)
eq_(total_len['val'], res.total_len)
eq_(in_port['val'], res.in_port)
eq_(reason['val'], res.reason)
eq_(data[0:16], res.data)
return True
def test_parser(self):
ok_(self._test_parser())
def test_parser_padding(self):
ok_(self._test_parser(True))
def test_serialize(self):
# Not used.
pass
class TestOFPGetConfigReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPGetConfigReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPGetConfigReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x0a', 'val': ofproto.OFPT_GET_CONFIG_REPLY}
msg_len = {'buf': '\x00\x14',
'val': ofproto.OFP_SWITCH_CONFIG_SIZE}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
# OFP_SWITCH_CONFIG_PACK_STR
# '!HH'...flags, miss_send_len
flags = {'buf': '\xa0\xe2', 'val': 41186}
miss_send_len = {'buf': '\x36\x0e', 'val': 13838}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf'] \
+ flags['buf'] \
+ miss_send_len['buf']
res = OFPGetConfigReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(flags['val'], res.flags)
eq_(miss_send_len['val'], res.miss_send_len)
def test_serialize(self):
# Not used.
pass
class TestOFPBarrierReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPBarrierReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPBarrierReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x13', 'val': ofproto.OFPT_BARRIER_REPLY}
msg_len = {'buf': '\x00\x08',
'val': ofproto.OFP_HEADER_SIZE}
xid = {'buf': '\x66\xc4\xc3\xac', 'val': 1724171180}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
res = OFPBarrierReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
def test_serialize(self):
# Not used.
pass
class TestOFPFlowRemoved(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFlowRemoved
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPFlowRemoved(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x0a', 'val': ofproto.OFPT_FLOW_REMOVED}
msg_len = {'buf': '\x00\x14',
'val': ofproto.OFP_FLOW_REMOVED_SIZE}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
# dl_vlan_pcp, dl_type, nw_tos, nw_proto,
# nw_src, nw_dst, tp_src, tp_dst
wildcards = {'buf': '\xd2\x71\x25\x23', 'val': 3530630435}
in_port = {'buf': '\x37\x8b', 'val': 14219}
dl_src = '\x7f\x85\xc4\x70\x12\xda'
dl_dst = '\x0a\x51\x17\x58\xb0\xbb'
dl_vlan = {'buf': '\xc1\xf9', 'val': 49657}
dl_vlan_pcp = {'buf': '\x79', 'val': 121}
zfill0 = '\x00'
dl_type = {'buf': '\xa6\x9e', 'val': 42654}
nw_tos = {'buf': '\xde', 'val': 222}
nw_proto = {'buf': '\xe5', 'val': 229}
zfil11 = '\x00' * 2
nw_src = {'buf': '\x1b\x6d\x8d\x4b', 'val': 460164427}
nw_dst = {'buf': '\xab\x25\xe1\x20', 'val': 2871386400}
tp_src = {'buf': '\xd5\xc3', 'val': 54723}
tp_dst = {'buf': '\x78\xb9', 'val': 30905}
buf += wildcards['buf'] \
+ in_port['buf'] \
+ dl_src \
+ dl_dst \
+ dl_vlan['buf'] \
+ dl_vlan_pcp['buf'] \
+ zfill0 \
+ dl_type['buf'] \
+ nw_tos['buf'] \
+ nw_proto['buf'] \
+ zfil11 \
+ nw_src['buf'] \
+ nw_dst['buf'] \
+ tp_src['buf'] \
+ tp_dst['buf']
# OFP_FLOW_REMOVED_PACK_STR0
# '!QHBxIIH2xQQ'...cookie, priority, reason, zfill,
# duration_sec, duration_nsec, idle_timeout,
# zfill, packet_count, byte_count
cookie = {'buf': '\x02\x79\xba\x00\xef\xab\xee\x44',
'val': 178378173441633860}
priority = {'buf': '\x02\xce', 'val': 718}
reason = {'buf': '\xa9', 'val': 169}
zfill0 = '\x00' * 1
duration_sec = {'buf': '\x86\x24\xa3\xba', 'val': 2250548154}
duration_nsec = {'buf': '\x94\x94\xc2\x23', 'val': 2492776995}
idle_timeout = {'buf': '\xeb\x7c', 'val': 60284}
zfill1 = '\x00' * 2
packet_count = {'buf': '\x5a\x0d\xf2\x03\x8e\x0a\xbb\x8d',
'val': 6489108735192644493}
byte_count = {'buf': '\x65\xc8\xd3\x72\x51\xb5\xbb\x7c',
'val': 7334344481123449724}
buf += cookie['buf'] \
+ priority['buf'] \
+ reason['buf'] \
+ zfill0 \
+ duration_sec['buf'] \
+ duration_nsec['buf'] \
+ idle_timeout['buf'] \
+ zfill1 \
+ packet_count['buf'] \
+ byte_count['buf']
res = OFPFlowRemoved.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(cookie['val'], res.cookie)
eq_(priority['val'], res.priority)
eq_(reason['val'], res.reason)
eq_(duration_sec['val'], res.duration_sec)
eq_(duration_nsec['val'], res.duration_nsec)
eq_(idle_timeout['val'], res.idle_timeout)
eq_(packet_count['val'], res.packet_count)
eq_(byte_count['val'], res.byte_count)
# match
match = res.match
eq_(wildcards['val'], match.wildcards)
eq_(in_port['val'], match.in_port)
eq_(dl_src, match.dl_src)
eq_(dl_dst, match.dl_dst)
eq_(dl_vlan['val'], match.dl_vlan)
eq_(dl_vlan_pcp['val'], match.dl_vlan_pcp)
eq_(dl_type['val'], match.dl_type)
eq_(nw_tos['val'], match.nw_tos)
eq_(nw_proto['val'], match.nw_proto)
eq_(nw_src['val'], match.nw_src)
eq_(nw_dst['val'], match.nw_dst)
eq_(tp_src['val'], match.tp_src)
eq_(tp_dst['val'], match.tp_dst)
def test_serialize(self):
# Not used.
pass
class TestOFPQueueGetConfigReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueueGetConfigReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPQueueGetConfigReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x0a',
'val': ofproto.OFPT_QUEUE_GET_CONFIG_REPLY}
msg_len_val = ofproto.OFP_QUEUE_GET_CONFIG_REPLY_SIZE \
+ ofproto.OFP_PACKET_QUEUE_SIZE
msg_len = {'buf': '\x00\x14', 'val': msg_len_val}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_QUEUE_GET_CONFIG_REPLY_PACK_STR
# '!H6x'...port, zfill
port = {'buf': '\xfe\x66', 'val': 65126}
zfill = '\x00' * 6
buf += port['buf'] \
+ zfill
# OFP_PACKET_QUEUE_PQCK_STR
# '!IH2x'...queue_id, len_, zfill
queue_id = {'buf': '\x4d\x4b\x3a\xd1', 'val': 1296775889}
len_ = {'buf': '\x00\x08',
'val': ofproto.OFP_QUEUE_PROP_HEADER_SIZE}
zfill = '\x00' * 2
buf += queue_id['buf'] \
+ len_['buf'] \
+ zfill
res = OFPQueueGetConfigReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(port['val'], res.port)
# queue
queue = res.queues[0]
eq_(queue_id['val'], queue.queue_id)
eq_(len_['val'], queue.len)
def test_serialize(self):
# Not used.
pass
class TestOFPDescStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPDescStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPDescStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_DESC_STATS_SIZE
msg_len = {'buf': '\x04\x38', 'val': msg_len_val}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x00', 'val': ofproto.OFPST_DESC}
flags = {'buf': '\x30\xd9', 'val': 12505}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPDescStats
# OFP_DESC_STATS_PACK_STR
# '!256s256s256s32s256s'...mfr_desc, hw_desc, sw_desc,
# serial_num, dp_desc
mfr_desc = 'mfr_desc'.ljust(256)
hw_desc = 'hw_desc'.ljust(256)
sw_desc = 'sw_desc'.ljust(256)
serial_num = 'serial_num'.ljust(32)
dp_desc = 'dp_desc'.ljust(256)
buf += mfr_desc \
+ hw_desc \
+ sw_desc \
+ serial_num \
+ dp_desc
res = OFPDescStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body
eq_(mfr_desc, body.mfr_desc)
eq_(hw_desc, body.hw_desc)
eq_(sw_desc, body.sw_desc)
eq_(serial_num, body.serial_num)
eq_(dp_desc, body.dp_desc)
def test_serialize(self):
# Not used.
pass
class TestOFPFlowStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFlowStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPFlowStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_FLOW_STATS_SIZE
msg_len = {'buf': '\x00\x64', 'val': msg_len_val}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x01', 'val': ofproto.OFPST_FLOW}
flags = {'buf': '\x95\xf4', 'val': 38388}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPFlowStats
# OFP_FLOW_STATS_0_PACK_STR
# '!HBx'...length, table_id, zfill
length = {'buf': '\x00\x60', 'val': 96}
table_id = {'buf': '\x51', 'val': 81}
zfill = '\x00'
buf += length['buf'] \
+ table_id['buf'] \
+ zfill
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...
match = '\x97\x7c\xa6\x1e' \
+ '\x5e\xa0' \
+ '\x70\x17\xdc\x80\x59\x9e' \
+ '\x79\xc6\x56\x87\x92\x28' \
+ '\xb1\x81' \
+ '\xbe' \
+ '\x00' \
+ '\x01\xab' \
+ '\x42' \
+ '\xfe' \
+ '\x00\x00' \
+ '\xa4\x5d\x5c\x42' \
+ '\xa2\x5c\x2e\x05' \
+ '\x5a\x94' \
+ '\x64\xd4'
buf += match
# OFP_FLOW_STATS_1_PACK_STR
# '!IIHHH6xQQQ'...duration_sec, duration_nsec, priority,
# idle_timeout, hard_timeout, zfill,
# cookie, packet_count, byte_count
duration_sec = {'buf': '\x94\x19\xb3\xd2', 'val': 2484712402}
duration_nsec = {'buf': '\xee\x66\xcf\x7c', 'val': 3999715196}
priority = {'buf': '\xe1\xc0', 'val': 57792}
idle_timeout = {'buf': '\x8e\x10', 'val': 36368}
hard_timeout = {'buf': '\xd4\x99', 'val': 54425}
zfill = '\x00' * 6
cookie = {'buf': '\x0b\x01\xe8\xe5\xf0\x84\x8a\xe0',
'val': 793171083674290912}
packet_count = {'buf': '\x47\x5c\xc6\x05\x28\xff\x7c\xdb',
'val': 5142202600015232219}
byte_count = {'buf': '\x24\xe9\x4b\xee\xcb\x57\xd9\xc3',
'val': 2659740543924820419}
buf += duration_sec['buf']
buf += duration_nsec['buf']
buf += priority['buf']
buf += idle_timeout['buf']
buf += hard_timeout['buf']
buf += zfill
buf += cookie['buf']
buf += packet_count['buf']
buf += byte_count['buf']
# <action>_PACK_STR...type_, len_ [others...]
type = {'buf': '\x00\x00', 'val': ofproto.OFPAT_OUTPUT}
len = {'buf': '\x00\x08',
'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
port = {'buf': '\x59\x2a', 'val': 22826}
max_len = {'buf': '\x00\x08',
'val': ofproto.OFP_ACTION_OUTPUT_SIZE}
buf += type['buf'] \
+ len['buf'] \
+ port['buf'] \
+ max_len['buf']
res = OFPFlowStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(length['val'], body.length)
eq_(table_id['val'], body.table_id)
eq_(duration_sec['val'], body.duration_sec)
eq_(duration_nsec['val'], body.duration_nsec)
eq_(priority['val'], body.priority)
eq_(idle_timeout['val'], body.idle_timeout)
eq_(hard_timeout['val'], body.hard_timeout)
eq_(cookie['val'], body.cookie)
eq_(packet_count['val'], body.packet_count)
eq_(byte_count['val'], body.byte_count)
# action
action = body.actions[0]
eq_(type['val'], action.type)
eq_(len['val'], action.len)
eq_(port['val'], action.port)
eq_(max_len['val'], action.max_len)
def test_serialize(self):
# Not used.
pass
class TestOFPAggregateStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPAggregateStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPAggregateStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_AGGREGATE_STATS_REPLY_SIZE
msg_len = {'buf': '\x00\x4c', 'val': msg_len_val}
xid = {'buf': '\xc6\xd6\xce\x38', 'val': 3335966264}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x02', 'val': ofproto.OFPST_AGGREGATE}
flags = {'buf': '\x65\x66', 'val': 25958}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPAggregateStats
# OFP_AGGREGATE_STATS_REPLY_PACK_STR
# '!QQI4x'...packet_count, byte_count, flow_count, zfill
packet_count = {'buf': '\x43\x95\x1b\xfb\x0f\xf6\xa7\xdd',
'val': 4869829337189623773}
byte_count = {'buf': '\x36\xda\x2d\x80\x2a\x95\x35\xdd',
'val': 3952521651464517085}
flow_count = {'buf': '\xc3\x0d\xc3\xed', 'val': 3272459245}
zfill = '\x00' * 4
buf += packet_count['buf'] \
+ byte_count['buf'] \
+ flow_count['buf'] \
+ zfill
res = OFPAggregateStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(packet_count['val'], body.packet_count)
eq_(byte_count['val'], body.byte_count)
eq_(flow_count['val'], body.flow_count)
def test_serialize(self):
# Not used.
pass
class TestOFPTableStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPTableStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPTableStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_TABLE_STATS_SIZE
msg_len = {'buf': '\x00\x4c', 'val': msg_len_val}
xid = {'buf': '\xd6\xb4\x8d\xe6', 'val': 3602157030}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x03', 'val': ofproto.OFPST_TABLE}
flags = {'buf': '\xb3\xf0', 'val': 46064}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPTableStats
# OFP_TABLE_STATS_PACK_STR
# '!B3x32sIIIQQ'...table_id, zfill, name, wildcards, max_entries,
# active_count, lookup_count, matched_count
table_id = {'buf': '\x5b', 'val': 91}
zfill = '\x00' * 3
name = 'name'.ljust(32)
wildcards = {'buf': '\xc5\xaf\x6e\x12', 'val': 3316608530}
max_entries = {'buf': '\x95\x6c\x78\x4d', 'val': 2506913869}
active_count = {'buf': '\x78\xac\xa8\x1e', 'val': 2024581150}
lookup_count = {'buf': '\x40\x1d\x9c\x39\x19\xec\xd4\x1c',
'val': 4620020561814017052}
matched_count = {'buf': '\x27\x35\x02\xb6\xc5\x5e\x17\x65',
'val': 2825167325263435621}
buf += table_id['buf'] \
+ zfill \
+ name \
+ wildcards['buf'] \
+ max_entries['buf'] \
+ active_count['buf'] \
+ lookup_count['buf'] \
+ matched_count['buf']
res = OFPTableStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(table_id['val'], body.table_id)
eq_(name, body.name)
eq_(wildcards['val'], body.wildcards)
eq_(max_entries['val'], body.max_entries)
eq_(active_count['val'], body.active_count)
eq_(lookup_count['val'], body.lookup_count)
eq_(matched_count['val'], body.matched_count)
def test_serialize(self):
# Not used.
pass
class TestOFPPortStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPortStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPPortStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_PORT_STATS_SIZE
msg_len = {'buf': '\x00\x74', 'val': msg_len_val}
xid = {'buf': '\xc2\xaf\x3d\xff', 'val': 3266264575}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x04', 'val': ofproto.OFPST_PORT}
flags = {'buf': '\xda\xde', 'val': 56030}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPPortStats
# OFP_PORT_STATS_PACK_STR
# '!H6xQQQQQQQQQQQQ'... port_no, zfill, rx_packets, tx_packets,
# rx_bytes, tx_bytes, rx_dropped, tx_dropped,
# rx_errors, tx_errors, rx_frame_err,
# rx_over_err, rx_crc_err, collisions
port_no = {'buf': '\xe7\x6b', 'val': 59243}
zfill = '\x00' * 6
rx_packets = {'buf': '\x53\x44\x36\x61\xc4\x86\xc0\x37',
'val': 5999980397101236279}
tx_packets = {'buf': '\x27\xa4\x41\xd7\xd4\x53\x9e\x42',
'val': 2856480458895760962}
rx_bytes = {'buf': '\x55\xa1\x38\x60\x43\x97\x0d\x89',
'val': 6170274950576278921}
tx_bytes = {'buf': '\x77\xe1\xd5\x63\x18\xae\x63\xaa',
'val': 8638420181865882538}
rx_dropped = {'buf': '\x60\xe6\x20\x01\x24\xda\x4e\x5a',
'val': 6982303461569875546}
tx_dropped = {'buf': '\x09\x2d\x5d\x71\x71\xb6\x8e\xc7',
'val': 661287462113808071}
rx_errors = {'buf': '\x2f\x7e\x35\xb3\x66\x3c\x19\x0d',
'val': 3422231811478788365}
tx_errors = {'buf': '\x57\x32\x08\x2f\x88\x32\x40\x6b',
'val': 6283093430376743019}
rx_frame_err = {'buf': '\x0c\x28\x6f\xad\xce\x66\x6e\x8b',
'val': 876072919806406283}
rx_over_err = {'buf': '\x5a\x90\x8f\x9b\xfc\x82\x2e\xa0',
'val': 6525873760178941600}
rx_crc_err = {'buf': '\x73\x3a\x71\x17\xd6\x74\x69\x47',
'val': 8303073210207070535}
collisions = {'buf': '\x2f\x52\x0c\x79\x96\x03\x6e\x79',
'val': 3409801584220270201}
buf += port_no['buf'] \
+ zfill \
+ rx_packets['buf'] \
+ tx_packets['buf'] \
+ rx_bytes['buf'] \
+ tx_bytes['buf'] \
+ rx_dropped['buf'] \
+ tx_dropped['buf'] \
+ rx_errors['buf'] \
+ tx_errors['buf'] \
+ rx_frame_err['buf'] \
+ rx_over_err['buf'] \
+ rx_crc_err['buf'] \
+ collisions['buf']
res = OFPPortStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(port_no['val'], body.port_no)
eq_(rx_packets['val'], body.rx_packets)
eq_(tx_packets['val'], body.tx_packets)
eq_(rx_bytes['val'], body.rx_bytes)
eq_(tx_bytes['val'], body.tx_bytes)
eq_(rx_dropped['val'], body.rx_dropped)
eq_(tx_dropped['val'], body.tx_dropped)
eq_(rx_errors['val'], body.rx_errors)
eq_(tx_errors['val'], body.tx_errors)
eq_(rx_frame_err['val'], body.rx_frame_err)
eq_(rx_over_err['val'], body.rx_over_err)
eq_(rx_crc_err['val'], body.rx_crc_err)
eq_(collisions['val'], body.collisions)
def test_serialize(self):
# Not used.
pass
class TestOFPQueueStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueueStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPQueueStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
msg_len_val = ofproto.OFP_STATS_MSG_SIZE \
+ ofproto.OFP_QUEUE_STATS_SIZE
msg_len = {'buf': '\x00\x2c', 'val': msg_len_val}
xid = {'buf': '\x19\xfc\x28\x6c', 'val': 435955820}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\x00\x05', 'val': ofproto.OFPST_QUEUE}
flags = {'buf': '\x3b\x2b', 'val': 15147}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPQueueStats
# OFP_QUEUE_STATS_PACK_STR
# '!H2xIQQQ...port_no, queue_id, tx_bytes, tx_packets, tx_errors
port_no = {'buf': '\xe7\x6b', 'val': 59243}
zfill = '\x00' * 2
queue_id = {'buf': '\x2a\xa8\x7f\x32', 'val': 715685682}
tx_bytes = {'buf': '\x77\xe1\xd5\x63\x18\xae\x63\xaa',
'val': 8638420181865882538}
tx_packets = {'buf': '\x27\xa4\x41\xd7\xd4\x53\x9e\x42',
'val': 2856480458895760962}
tx_errors = {'buf': '\x57\x32\x08\x2f\x88\x32\x40\x6b',
'val': 6283093430376743019}
buf += port_no['buf'] \
+ zfill \
+ queue_id['buf'] \
+ tx_bytes['buf'] \
+ tx_packets['buf'] \
+ tx_errors['buf']
res = OFPQueueStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(port_no['val'], body.port_no)
eq_(queue_id['val'], body.queue_id)
eq_(tx_bytes['val'], body.tx_bytes)
eq_(tx_packets['val'], body.tx_packets)
eq_(tx_errors['val'], body.tx_errors)
def test_serialize(self):
# Not used.
pass
class TestOFPVendorStatsReply(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPVendorStatsReply
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPVendorStatsReply(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
version = {'buf': '\x01', 'val': ofproto.OFP_VERSION}
msg_type = {'buf': '\x11', 'val': ofproto.OFPT_STATS_REPLY}
# ofproto.OFP_STATS_MSG_SIZE + len(specific_data)
msg_len = {'buf': '\x00\x18',
'val': ofproto.OFP_STATS_MSG_SIZE + 12}
xid = {'buf': '\x94\xc4\xd2\xcd', 'val': 2495926989}
buf = version['buf'] \
+ msg_type['buf'] \
+ msg_len['buf'] \
+ xid['buf']
# OFP_STATS_MSG_PACK_STR
# '!HH'...type_, flags
type_ = {'buf': '\xff\xff', 'val': ofproto.OFPST_VENDOR}
flags = {'buf': '\x30\xd9', 'val': 12505}
buf += type_['buf'] \
+ flags['buf']
# stats_type_cls = OFPVendorStats
specific_data = 'specific_data'
buf += specific_data
res = OFPVendorStatsReply.parser(object,
version['val'],
msg_type['val'],
msg_len['val'],
xid['val'],
buf)
eq_(version['val'], res.version)
eq_(msg_type['val'], res.msg_type)
eq_(msg_len['val'], res.msg_len)
eq_(xid['val'], res.xid)
eq_(type_['val'], res.type)
eq_(flags['val'], res.flags)
# body
body = res.body[0]
eq_(specific_data, body)
def test_serialize(self):
# Not used.
pass
class TestOFPFeaturesRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFeaturesRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPFeaturesRequest(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_FEATURES_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = ofproto.OFP_HEADER_PACK_STR
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_FEATURES_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
class TestOFPGetConfigRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPGetConfigRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPGetConfigRequest(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_GET_CONFIG_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = ofproto.OFP_HEADER_PACK_STR
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_GET_CONFIG_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
class TestOFPSetConfig(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPSetConfig
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
# OFP_SWITCH_CONFIG_PACK_STR
# '!HH'...flags, miss_send_len
flags = {'buf': '\xa0\xe2', 'val': 41186}
miss_send_len = {'buf': '\x36\x0e', 'val': 13838}
c = OFPSetConfig(Datapath,
flags['val'],
miss_send_len['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.flags['val'], self.c.flags)
eq_(self.miss_send_len['val'], self.c.miss_send_len)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_SET_CONFIG, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_SWITCH_CONFIG_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_SET_CONFIG, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
eq_(self.flags['val'], res[4])
eq_(self.miss_send_len['val'], res[5])
class TestOFPPacketOut(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPacketOut
"""
port = 0x2ae0
actions = [OFPActionOutput(port, max_len=0)]
def setUp(self):
pass
def tearDown(self):
pass
def _get_obj(self, buffer_id, in_port, data=None):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPPacketOut(Datapath,
buffer_id,
in_port,
self.actions,
data)
return c
def test_init(self):
buffer_id = 0xffffffff
in_port = 0x40455
data = 'Message'
c = self._get_obj(buffer_id, in_port, data)
eq_(buffer_id, c.buffer_id)
eq_(in_port, c.in_port)
eq_(data, c.data)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
buffer_id = 0xffffffff
in_port = 0x9e07
data = 'Message'
c = self._get_obj(buffer_id, in_port, data)
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_PACKET_OUT, c.msg_type)
eq_(0, c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_PACKET_OUT_PACK_STR.replace('!', '') \
+ ofproto.OFP_ACTION_OUTPUT_PACK_STR.replace('!', '') \
+ str(len(data)) + 's'
res = struct.unpack(fmt, str(c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_PACKET_OUT, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
# OFP_PACKET_OUT_PACK_STR
eq_(buffer_id, res[4])
eq_(in_port, res[5])
eq_(ofproto.OFP_ACTION_OUTPUT_SIZE, res[6])
# OFP_ACTION_OUTPUT_PACK_STR
eq_(ofproto.OFPAT_OUTPUT, res[7])
eq_(ofproto.OFP_ACTION_OUTPUT_SIZE, res[8])
eq_(self.port, res[9])
eq_(0, res[10])
# data
eq_(data, res[11])
@raises(AssertionError)
def test_serialize_check_buffer_id(self):
buffer_id = 0xffffff00
in_port = 0xaa92
data = 'Message'
c = self._get_obj(buffer_id, in_port, data)
c.serialize()
class TestOFPFlowMod(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFlowMod
"""
# OFP_FLOW_MOD_PACK_STR0
# '!QHHHHIHH'...cookie, command, idle_timeout, hard_timeout,
# priority, buffer_id, out_port, flags
cookie = {'buf': '\x1d\x86\xce\x6e\x8d\xc0\xbe\xa8',
'val': 2127614848199081640}
command = {'buf': '\xe1\x55', 'val': 57685}
idle_timeout = {'buf': '\xf3\x6d', 'val': 62317}
hard_timeout = {'buf': '\x1c\xc5', 'val': 7365}
priority = {'buf': '\x9c\xe3', 'val': 40163}
buffer_id = {'buf': '\xf0\xa1\x80\x33', 'val': 4037115955}
out_port = {'buf': '\xfe\x0d', 'val': 65037}
flags = {'buf': '\x00\x87', 'val': 135}
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
# dl_vlan_pcp, dl_type, nw_tos, nw_proto,
# nw_src, nw_dst, tp_src, tp_dst
wildcards = {'buf': '\xd2\x71\x25\x23', 'val': 3530630435}
in_port = {'buf': '\x37\x8b', 'val': 14219}
dl_src = '\xdf\xcf\xe1\x5d\xcf\xc0'
dl_dst = '\x76\xb3\xfb\xc6\x21\x2f'
dl_vlan = {'buf': '\xc1\xf9', 'val': 49657}
dl_vlan_pcp = {'buf': '\x79', 'val': 121}
zfill0 = '\x00'
dl_type = {'buf': '\xa6\x9e', 'val': 42654}
nw_tos = {'buf': '\xde', 'val': 222}
nw_proto = {'buf': '\xe5', 'val': 229}
zfil11 = '\x00' * 2
nw_src = {'buf': '\x1b\x6d\x8d\x4b', 'val': 460164427}
nw_dst = {'buf': '\xab\x25\xe1\x20', 'val': 2871386400}
tp_src = {'buf': '\xd5\xc3', 'val': 54723}
tp_dst = {'buf': '\x78\xb9', 'val': 30905}
match = OFPMatch(wildcards['val'],
in_port['val'],
dl_src,
dl_dst,
dl_vlan['val'],
dl_vlan_pcp['val'],
dl_type['val'],
nw_tos['val'],
nw_proto['val'],
nw_src['val'],
nw_dst['val'],
tp_src['val'],
tp_dst['val'])
port = 0x2ae0
actions = [OFPActionOutput(port, max_len=1000)]
def setUp(self):
pass
def tearDown(self):
pass
def _get_obj(self, actions=None):
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPFlowMod(Datapath,
self.match,
self.cookie['val'],
self.command['val'],
self.idle_timeout['val'],
self.hard_timeout['val'],
self.priority['val'],
self.buffer_id['val'],
self.out_port['val'],
self.flags['val'],
actions)
return c
def test_init(self):
c = self._get_obj()
eq_(self.cookie['val'], c.cookie)
eq_(self.command['val'], c.command)
eq_(self.idle_timeout['val'], c.idle_timeout)
eq_(self.hard_timeout['val'], c.hard_timeout)
eq_(self.priority['val'], c.priority)
eq_(self.buffer_id['val'], c.buffer_id)
eq_(self.out_port['val'], c.out_port)
eq_(self.flags['val'], c.flags)
def test_init_actions(self):
c = self._get_obj(self.actions)
action = c.actions[0]
eq_(self.port, action.port)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
c = self._get_obj(self.actions)
c.serialize()
eq_(ofproto.OFP_VERSION, c.version)
eq_(ofproto.OFPT_FLOW_MOD, c.msg_type)
eq_(0, c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_MATCH_PACK_STR.replace('!', '') \
+ ofproto.OFP_FLOW_MOD_PACK_STR0.replace('!', '') \
+ ofproto.OFP_ACTION_OUTPUT_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_FLOW_MOD, res[1])
eq_(len(c.buf), res[2])
eq_(0, res[3])
# OFP_MATCH_PACK_STR
eq_(self.wildcards['val'], res[4])
eq_(self.in_port['val'], res[5])
eq_(self.dl_src, res[6])
eq_(self.dl_dst, res[7])
eq_(self.dl_vlan['val'], res[8])
eq_(self.dl_vlan_pcp['val'], res[9])
eq_(self.dl_type['val'], res[10])
eq_(self.nw_tos['val'], res[11])
eq_(self.nw_proto['val'], res[12])
eq_(self.nw_src['val'], res[13])
eq_(self.nw_dst['val'], res[14])
eq_(self.tp_src['val'], res[15])
eq_(self.tp_dst['val'], res[16])
# OFP_FLOW_MOD_PACK_STR0
eq_(self.cookie['val'], res[17])
eq_(self.command['val'], res[18])
eq_(self.idle_timeout['val'], res[19])
eq_(self.hard_timeout['val'], res[20])
eq_(self.priority['val'], res[21])
eq_(self.buffer_id['val'], res[22])
eq_(self.out_port['val'], res[23])
eq_(self.flags['val'], res[24])
# OFP_ACTION_OUTPUT_PACK_STR
eq_(ofproto.OFPAT_OUTPUT, res[25])
eq_(ofproto.OFP_ACTION_OUTPUT_SIZE, res[26])
eq_(self.port, res[27])
eq_(1000, res[28])
class TestOFPBarrierRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPBarrierRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
c = OFPBarrierRequest(Datapath)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
pass
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_BARRIER_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = ofproto.OFP_HEADER_PACK_STR
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_BARRIER_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
class TestOFPQueueGetConfigRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueueGetConfigRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
# OFP_QUEUE_GET_CONFIG_REQUEST_PACK_STR
# '!H2x'...port, zfill
port = {'buf': '\xa0\xe2', 'val': 41186}
zfill = '\x00' * 2
c = OFPQueueGetConfigRequest(Datapath,
port['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(self.port['val'], self.c.port)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_QUEUE_GET_CONFIG_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
a = ofproto.OFP_HEADER_PACK_STR.replace('!', '')
b = ofproto.OFP_QUEUE_GET_CONFIG_REQUEST_PACK_STR.replace('!', '')
fmt = '!' + a + b
res = struct.unpack(fmt, str(self.c.buf))
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_QUEUE_GET_CONFIG_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
eq_(self.port['val'], res[4])
class TestOFPDescStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPDescStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
c = OFPDescStatsRequest(Datapath, flags['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_DESC, self.c.type)
eq_(self.flags['val'], self.c.flags)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_DESC, res[4])
eq_(self.flags['val'], res[5])
class TestOFPFlowStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPFlowStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
# dl_vlan_pcp, dl_type, nw_tos, nw_proto,
# nw_src, nw_dst, tp_src, tp_dst
wildcards = {'buf': '\xd2\x71\x25\x23', 'val': 3530630435}
in_port = {'buf': '\x37\x8b', 'val': 14219}
dl_src = '\x58\xd0\x8a\x69\xa4\xfc'
dl_dst = '\xb6\xe2\xef\xb1\xa6\x2d'
dl_vlan = {'buf': '\xc1\xf9', 'val': 49657}
dl_vlan_pcp = {'buf': '\x79', 'val': 121}
zfill0 = '\x00'
dl_type = {'buf': '\xa6\x9e', 'val': 42654}
nw_tos = {'buf': '\xde', 'val': 222}
nw_proto = {'buf': '\xe5', 'val': 229}
zfil11 = '\x00' * 2
nw_src = {'buf': '\x1b\x6d\x8d\x4b', 'val': 460164427}
nw_dst = {'buf': '\xab\x25\xe1\x20', 'val': 2871386400}
tp_src = {'buf': '\xd5\xc3', 'val': 54723}
tp_dst = {'buf': '\x78\xb9', 'val': 30905}
match = OFPMatch(wildcards['val'],
in_port['val'],
dl_src,
dl_dst,
dl_vlan['val'],
dl_vlan_pcp['val'],
dl_type['val'],
nw_tos['val'],
nw_proto['val'],
nw_src['val'],
nw_dst['val'],
tp_src['val'],
tp_dst['val'])
# OFP_FLOW_STATS_REQUEST_ID_PORT_STR
# '!BxH'...table_id, zfill, out_port
table_id = {'buf': '\xd1', 'val': 209}
zfill = '\x00' * 1
out_port = {'buf': '\xe4\x9a', 'val': 58522}
c = OFPFlowStatsRequest(Datapath,
flags['val'],
match,
table_id['val'],
out_port['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_FLOW, self.c.type)
eq_(self.flags['val'], self.c.flags)
eq_(self.table_id['val'], self.c.table_id)
eq_(self.out_port['val'], self.c.out_port)
# match
match = self.c.match
eq_(self.match.__hash__(), match.__hash__())
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '') \
+ ofproto.OFP_MATCH_PACK_STR.replace('!', '') \
+ ofproto.OFP_FLOW_STATS_REQUEST_ID_PORT_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_FLOW, res[4])
eq_(self.flags['val'], res[5])
# OFP_MATCH_PACK_STR
eq_(self.wildcards['val'], res[6])
eq_(self.in_port['val'], res[7])
eq_(self.dl_src, res[8])
eq_(self.dl_dst, res[9])
eq_(self.dl_vlan['val'], res[10])
eq_(self.dl_vlan_pcp['val'], res[11])
eq_(self.dl_type['val'], res[12])
eq_(self.nw_tos['val'], res[13])
eq_(self.nw_proto['val'], res[14])
eq_(self.nw_src['val'], res[15])
eq_(self.nw_dst['val'], res[16])
eq_(self.tp_src['val'], res[17])
eq_(self.tp_dst['val'], res[18])
# OFP_FLOW_STATS_REQUEST_ID_PORT_STR
eq_(self.table_id['val'], res[19])
eq_(self.out_port['val'], res[20])
class TestOFPAggregateStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPAggregateStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
# OFP_MATCH_PACK_STR
# '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
# dl_vlan_pcp, dl_type, nw_tos, nw_proto,
# nw_src, nw_dst, tp_src, tp_dst
wildcards = {'buf': '\xea\x66\x4a\xd4', 'val': 3932572372}
in_port = {'buf': '\x64\xac', 'val': 25772}
dl_src = '\x90\x13\x60\x5e\x20\x4d'
dl_dst = '\xb5\x5d\x14\x5e\xb9\x22'
dl_vlan = {'buf': '\x8b\xeb', 'val': 35819}
dl_vlan_pcp = {'buf': '\xe8', 'val': 232}
zfill0 = '\x00'
dl_type = {'buf': '\62\xc9', 'val': 25289}
nw_tos = {'buf': '\xb5', 'val': 181}
nw_proto = {'buf': '\xc4', 'val': 196}
zfil11 = '\x00' * 2
nw_src = {'buf': '\xb7\xd1\xb7\xef', 'val': 3083974639}
nw_dst = {'buf': '\x7c\xc6\x18\x15', 'val': 2093357077}
tp_src = {'buf': '\x26\x9a', 'val': 9882}
tp_dst = {'buf': '\x7a\x89', 'val': 31369}
match = OFPMatch(wildcards['val'],
in_port['val'],
dl_src,
dl_dst,
dl_vlan['val'],
dl_vlan_pcp['val'],
dl_type['val'],
nw_tos['val'],
nw_proto['val'],
nw_src['val'],
nw_dst['val'],
tp_src['val'],
tp_dst['val'])
# OFP_FLOW_STATS_REQUEST_ID_PORT_STR
# '!BxH'...table_id, zfill, out_port
table_id = {'buf': '\xd1', 'val': 209}
zfill = '\x00' * 1
out_port = {'buf': '\xb5\xe8', 'val': 46568}
c = OFPAggregateStatsRequest(Datapath,
flags['val'],
match,
table_id['val'],
out_port['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_AGGREGATE, self.c.type)
eq_(self.flags['val'], self.c.flags)
eq_(self.table_id['val'], self.c.table_id)
eq_(self.out_port['val'], self.c.out_port)
# match
match = self.c.match
eq_(self.match.__hash__(), match.__hash__())
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '') \
+ ofproto.OFP_MATCH_PACK_STR.replace('!', '') \
+ ofproto.OFP_FLOW_STATS_REQUEST_ID_PORT_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_AGGREGATE, res[4])
eq_(self.flags['val'], res[5])
# OFP_MATCH_PACK_STR
eq_(self.wildcards['val'], res[6])
eq_(self.in_port['val'], res[7])
eq_(self.dl_src, res[8])
eq_(self.dl_dst, res[9])
eq_(self.dl_vlan['val'], res[10])
eq_(self.dl_vlan_pcp['val'], res[11])
eq_(self.dl_type['val'], res[12])
eq_(self.nw_tos['val'], res[13])
eq_(self.nw_proto['val'], res[14])
eq_(self.nw_src['val'], res[15])
eq_(self.nw_dst['val'], res[16])
eq_(self.tp_src['val'], res[17])
eq_(self.tp_dst['val'], res[18])
# OFP_FLOW_STATS_REQUEST_ID_PORT_STR
eq_(self.table_id['val'], res[19])
eq_(self.out_port['val'], res[20])
class TestOFPTableStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPTableStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
c = OFPTableStatsRequest(Datapath, flags['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_TABLE, self.c.type)
eq_(self.flags['val'], self.c.flags)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_TABLE, res[4])
eq_(self.flags['val'], res[5])
class TestOFPPortStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPPortStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
# OFP_PORT_STATS_REQUEST_PACK_STR
# '!H6x'...port_no, zfill
port_no = {'buf': '\x6d\x27', 'val': 27943}
c = OFPPortStatsRequest(Datapath,
flags['val'],
port_no['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_PORT, self.c.type)
eq_(self.flags['val'], self.c.flags)
eq_(self.port_no['val'], self.c.port_no)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '') \
+ ofproto.OFP_PORT_STATS_REQUEST_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_PORT, res[4])
eq_(self.flags['val'], res[5])
# OFP_PORT_STATS_REQUEST_PACK_STR
eq_(self.port_no['val'], res[6])
class TestOFPQueueStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPQueueStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
# OFP_QUEUE_STATS_REQUEST_PACK_STR
# '!HxxI'...port_no, zfill, zfill, queue_id
port_no = {'buf': '\x0c\x2d', 'val': 3117}
queue_id = {'buf': '\x1b\xe6\xba\x36', 'val': 468105782}
c = OFPQueueStatsRequest(Datapath,
flags['val'],
port_no['val'],
queue_id['val'])
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_QUEUE, self.c.type)
eq_(self.flags['val'], self.c.flags)
eq_(self.port_no['val'], self.c.port_no)
eq_(self.queue_id['val'], self.c.queue_id)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '') \
+ ofproto.OFP_QUEUE_STATS_REQUEST_PACK_STR.replace('!', '')
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_QUEUE, res[4])
eq_(self.flags['val'], res[5])
# OFP_QUEUE_STATS_REQUEST_PACK_STR
eq_(self.port_no['val'], res[6])
eq_(self.queue_id['val'], res[7])
class TestOFPVendorStatsRequest(unittest.TestCase):
""" Test case for ofproto_v1_0_parser.OFPVendorStatsRequest
"""
class Datapath(object):
ofproto = ofproto # copy to class attribute
ofproto_parser = ofproto_v1_0_parser
flags = {'buf': '\x00\x00', 'val': 0}
# OFP_VENDOR_STATS_MSG_PACK_STR
# '!I'...vendor
vendor = {'buf': '\xff\xff\xff\xff', 'val': ofproto.OFPAT_VENDOR}
specific_data = 'specific_data'
c = OFPVendorStatsRequest(Datapath,
flags['val'],
vendor['val'],
specific_data)
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
eq_(ofproto.OFPST_VENDOR, self.c.type)
eq_(self.flags['val'], self.c.flags)
eq_(self.vendor['val'], self.c.vendor)
eq_(self.specific_data, self.c.specific_data)
def test_parser(self):
# Not used.
pass
def test_serialize(self):
self.c.serialize()
eq_(ofproto.OFP_VERSION, self.c.version)
eq_(ofproto.OFPT_STATS_REQUEST, self.c.msg_type)
eq_(0, self.c.xid)
fmt = '!' \
+ ofproto.OFP_HEADER_PACK_STR.replace('!', '') \
+ ofproto.OFP_STATS_MSG_PACK_STR.replace('!', '') \
+ ofproto.OFP_VENDOR_STATS_MSG_PACK_STR.replace('!', '') \
+ str(len(self.specific_data)) + 's'
res = struct.unpack(fmt, str(self.c.buf))
# OFP_HEADER_PACK_STR
eq_(ofproto.OFP_VERSION, res[0])
eq_(ofproto.OFPT_STATS_REQUEST, res[1])
eq_(len(self.c.buf), res[2])
eq_(0, res[3])
# OFP_STATS_MSG_PACK_STR
eq_(ofproto.OFPST_VENDOR, res[4])
eq_(self.flags['val'], res[5])
# OFP_VENDOR_STATS_MSG_PACK_STR
eq_(self.vendor['val'], res[6])
# specific_data
eq_(self.specific_data, res[7])
| 30.293091
| 78
| 0.53324
| 21,405
| 170,126
| 3.985424
| 0.045457
| 0.043396
| 0.022952
| 0.021944
| 0.809197
| 0.780654
| 0.750903
| 0.723426
| 0.706112
| 0.653913
| 0
| 0.052422
| 0.30391
| 170,126
| 5,615
| 79
| 30.298486
| 0.667945
| 0.088905
| 0
| 0.738714
| 0
| 0
| 0.093817
| 0.013438
| 0
| 0
| 0.000435
| 0
| 0.006305
| 1
| 0.104918
| false
| 0.053216
| 0.001513
| 0
| 0.253216
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
dbeb90bc5600e5c3da557d3d51bdefaff559df2c
| 10,024
|
py
|
Python
|
tests/test_endpoint.py
|
sa-bpelakh/sparql-endpoint-fixture
|
b88d1fd5189da4a8652fcd0dc1bfad65c1a4a6a6
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_endpoint.py
|
sa-bpelakh/sparql-endpoint-fixture
|
b88d1fd5189da4a8652fcd0dc1bfad65c1a4a6a6
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_endpoint.py
|
sa-bpelakh/sparql-endpoint-fixture
|
b88d1fd5189da4a8652fcd0dc1bfad65c1a4a6a6
|
[
"BSD-3-Clause"
] | null | null | null |
from SPARQLWrapper import SPARQLWrapper, JSON, POST
import json
import requests
def test_wrapper_select(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files)
sparql = SPARQLWrapper(endpoint=repo_uri)
query = "select distinct ?class where { [] a ?class } order by ?class"
sparql.setQuery(query)
sparql.setReturnFormat(JSON)
results = sparql.query().convert()
expected = json.loads(endpoint.graph.query(query).serialize(format='json'))
assert results == expected
def test_wrapper_ask(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files)
sparql = SPARQLWrapper(endpoint=repo_uri)
query = "ASK { ?instance a ?class }"
sparql.setQuery(query)
sparql.setReturnFormat(JSON)
results = sparql.query().convert()
expected = json.loads(endpoint.graph.query(query).serialize(format='json'))
assert results == expected
def test_wrapper_update(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
sparql = SPARQLWrapper(endpoint=repo_uri)
sparql.setReturnFormat(JSON)
sparql.setMethod(POST)
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
sparql.setQuery(query)
results = sparql.query().convert()
assert results['results']['bindings'][0]['num']['value'] == '1'
update = "insert { ?instance a ?super } " \
"where { ?instance a/<http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super }"
sparql.setQuery(update)
results = sparql.query()
assert results.info()['status'] == '200'
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
sparql.setQuery(query)
results = sparql.query().convert()
assert results['results']['bindings'][0]['num']['value'] == '3'
def test_request_get(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files)
query = "select distinct ?class where { [] a ?class } order by ?class"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
results = response.text
expected = endpoint.graph.query(query).serialize(format='json').decode('utf-8')
assert results == expected
query = 'construct { <http://example.com/_t1> ?p ?o } where { <http://example.com/_t1> ?p ?o }'
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'text/turtle'})
results = response.text
expected = endpoint.graph.query(query).serialize(format='turtle').decode('utf-8')
assert results == expected
def test_multiple_graphs(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = [{'http://example.com/graph/upper': 'tests/upper_ontology.ttl',
'http://example.com/graph/domain': 'tests/domain_ontology.ttl',
'http://example.com/graph/instance': 'tests/instance_data.ttl'}]
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
query = "select ?graph (count(?s) as ?size) where { graph ?graph { ?s ?p ?o } } group by ?graph"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
results = dict(
(row['graph']['value'], row['size']['value'])
for row in response.json()['results']['bindings'])
expected = {'http://example.com/graph/upper': '18',
'http://example.com/graph/domain': '21',
'http://example.com/graph/instance': '15'}
assert results == expected
def test_multiple_graphs_inline(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = [{'http://example.com/graph/upper': open('tests/upper_ontology.ttl', 'r').read(),
'http://example.com/graph/domain': open('tests/domain_ontology.ttl', 'r').read(),
'http://example.com/graph/instance': open('tests/instance_data.ttl', 'r').read()}]
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
query = "select ?graph (count(?s) as ?size) where { graph ?graph { ?s ?p ?o } } group by ?graph"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
results = dict(
(row['graph']['value'], row['size']['value'])
for row in response.json()['results']['bindings'])
expected = {'http://example.com/graph/upper': '18',
'http://example.com/graph/domain': '21',
'http://example.com/graph/instance': '15'}
assert results == expected
def test_request_update_get(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '1'
update = "insert { ?instance a ?super } " \
"where { ?instance a/<http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super }"
response = requests.get(url=repo_uri, params={'update': update})
assert response.status_code == 200
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '3'
def test_request_update_post(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.post(url=repo_uri, data={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '1'
update = "insert { ?instance a ?super } " \
"where { ?instance a/<http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super }"
response = requests.post(url=repo_uri, data={'update': update})
assert response.status_code == 200
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '3'
def test_request_update_post_raw(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files) # noqa: F841
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '1'
update = "insert { ?instance a ?super } " \
"where { ?instance a/<http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super }"
response = requests.post(url=repo_uri, data=update.encode('utf-8'),
headers={'Content-Type': 'application/sparql-update'})
assert response.status_code == 200
query = "select (count(?person) as ?num) where { ?person a <http://example.com/Person> }"
response = requests.get(url=repo_uri, params={'query': query}, headers={'Accept': 'application/json'})
assert response.json()['results']['bindings'][0]['num']['value'] == '3'
def test_request_post(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files)
query = "select distinct ?class where { [] a ?class } order by ?class"
response = requests.post(url=repo_uri, data={'query': query}, headers={'Accept': 'application/json'})
results = response.text
expected = endpoint.graph.query(query).serialize(format='json').decode('utf-8')
assert results == expected
def test_request_post_raw(sparql_endpoint):
repo_uri = 'https://my.rdfdb.com/repo/sparql'
rdf_files = ['tests/upper_ontology.ttl',
'tests/domain_ontology.ttl',
'tests/instance_data.ttl']
endpoint = sparql_endpoint(repo_uri, rdf_files)
query = "select distinct ?class where { [] a ?class } order by ?class"
expected = endpoint.graph.query(query).serialize(format='json').decode('utf-8')
response = requests.post(url=repo_uri, data=query.encode('utf-8'),
headers={'Content-Type': 'application/sparql-query',
'Accept': 'application/json'})
results = response.text
assert results == expected
| 47.283019
| 106
| 0.640662
| 1,237
| 10,024
| 5.070331
| 0.088925
| 0.044643
| 0.05979
| 0.073661
| 0.941645
| 0.93176
| 0.907844
| 0.900351
| 0.861448
| 0.859056
| 0
| 0.011559
| 0.188747
| 10,024
| 211
| 107
| 47.507109
| 0.759715
| 0.006484
| 0
| 0.782353
| 0
| 0.088235
| 0.386455
| 0.084506
| 0
| 0
| 0
| 0
| 0.117647
| 1
| 0.064706
| false
| 0
| 0.017647
| 0
| 0.082353
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e021fb9efe8bed6a0737eae3491ad950f0d0294f
| 19,203
|
py
|
Python
|
solder_joint.py
|
chinthysl/AXI_PCB_defect_detection
|
fe81c1d8e144ce5434aee78548cdc026d0d53d1c
|
[
"MIT"
] | 26
|
2019-10-13T08:40:11.000Z
|
2022-02-16T21:01:53.000Z
|
solder_joint.py
|
chinthysl/AXI_PCB_defect_detection
|
fe81c1d8e144ce5434aee78548cdc026d0d53d1c
|
[
"MIT"
] | 2
|
2020-02-20T16:56:17.000Z
|
2020-04-26T14:17:34.000Z
|
solder_joint.py
|
chinthysl/AXI_PCB_defect_detection
|
fe81c1d8e144ce5434aee78548cdc026d0d53d1c
|
[
"MIT"
] | 13
|
2019-10-13T11:29:56.000Z
|
2021-06-09T09:50:40.000Z
|
import cv2
import numpy as np
import logging
class SolderJoint:
def __init__(self, component_name, defect_id, defect_name, roi):
self.component_name = component_name
self.defect_id = defect_id
self.defect_name = defect_name
self.roi = roi
self.x_min, self.y_min, self.x_max, self.y_max = roi[0], roi[1], roi[2], roi[3]
self.slice_dict = {}
logging.info('Created solder join, component_name:%s defect_id:%d defect_name:%s roi:%d,%d,%d,%d',
self.component_name, self.defect_id, self.defect_name, self.roi[0], self.roi[1], self.roi[2],
self.roi[3])
def is_square(self):
if (self.x_max - self.x_min) == (self.y_max - self.y_min):
return True
else:
return False
def add_slice(self, slice_id, file_location):
self.slice_dict[slice_id] = file_location
logging.info('slice id: %d added to the joint, image name: %s', slice_id, file_location)
# this method concat 0,1,2,3 slices in 2d plain if those slices exist and roi is square
# if you want to concat slices in different method write a new function like this
def concat_first_four_slices_2d(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
slices_list = [None, None, None, None]
for slice_id in range(4):
# check whether 1st 4 slices are available
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
if img_roi_gray is None:
logging.error('Slice read is None, canceling concatenation')
return None, None
resized_image = cv2.resize(img_roi_gray, (128, 128), interpolation=cv2.INTER_AREA)
if resized_image is None:
logging.error('Error occured in opencv ROI extraction')
return None, None
slices_list[slice_id] = resized_image
im_h1 = cv2.hconcat(slices_list[0:2])
im_h2 = cv2.hconcat(slices_list[2:4])
im_concat = cv2.vconcat([im_h1, im_h2])
if im_concat is None:
logging.error('Error occured in opencv ROI concat, is none, skipping concatenation')
return None, None
logging.debug('First 4 slices available, concatenation done')
return im_concat, self.defect_name
def concat_first_four_slices_2d_4rotated(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
slices_list = [None, None, None, None]
try:
for slice_id in range(4):
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
resized_image = cv2.resize(img_roi_gray, (64, 64), interpolation=cv2.INTER_LINEAR)
slices_list[slice_id] = resized_image
im_h1 = cv2.hconcat(slices_list[0:2])
im_h2 = cv2.hconcat(slices_list[2:4])
im_concat = cv2.vconcat([im_h1, im_h2])
im_concat = im_concat.astype(np.float32) / 255.0
im_concat = np.expand_dims(im_concat, axis=2)
(h, w) = im_concat.shape[:2]
center = (w / 2, h / 2)
rot_mat = cv2.getRotationMatrix2D(center, 90, 1.0)
rotated90 = cv2.warpAffine(im_concat, rot_mat, (h, w))
rotated90 = np.expand_dims(rotated90, axis=2)
rot_mat = cv2.getRotationMatrix2D(center, 180, 1.0)
rotated180 = cv2.warpAffine(im_concat, rot_mat, (w, h))
rotated180 = np.expand_dims(rotated180, axis=2)
rot_mat = cv2.getRotationMatrix2D(center, 270, 1.0)
rotated270 = cv2.warpAffine(im_concat, rot_mat, (h, w))
rotated270 = np.expand_dims(rotated270, axis=2)
except cv2.error as e:
logging.error('OpenCV Error: %s, canceling concatenation', e)
return None, None
logging.debug('First 4 slices available, concatenation done')
return [im_concat, rotated90, rotated180, rotated270], self.defect_name
def concat_first_four_slices_list_rgb(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
slices_list = [None, None, None, None]
for slice_id in range(4):
# check whether 1st 4 slices are available
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
try:
img = cv2.imread(self.slice_dict[slice_id])
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
resized_image = cv2.resize(img_roi, (299, 299), interpolation=cv2.INTER_LINEAR)
# resized_image = resized_image.astype(np.float32) // 255.0
slices_list[slice_id] = resized_image
except cv2.error as e:
logging.error('OpenCV Error: %s, canceling concatenation', e)
return None, None
logging.debug('First 4 slices available, concatenation done')
return slices_list, self.defect_name
def concat_first_four_slices_list(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
slices_list = [None, None, None, None]
for slice_id in range(4):
# check whether 1st 4 slices are available
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
try:
img = cv2.imread(self.slice_dict[slice_id])
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
resized_image = cv2.resize(img_roi, (128, 128), interpolation=cv2.INTER_LINEAR)
resized_image = cv2.cvtColor(resized_image, cv2.COLOR_BGR2GRAY)
resized_image = resized_image.astype(np.float32) / 255.0
slices_list[slice_id] = resized_image
except cv2.error as e:
logging.error('OpenCV Error: %s, canceling concatenation', e)
return None, None
logging.debug('First 4 slices available, concatenation done')
return slices_list, self.defect_name
def concat_first_four_slices_list_4rotated(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
slices_list = [None, None, None, None]
for slice_id in range(4):
# check whether 1st 4 slices are available
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
try:
img = cv2.imread(self.slice_dict[slice_id])
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
resized_image = cv2.resize(img_roi, (128, 128), interpolation=cv2.INTER_LINEAR)
resized_image = cv2.cvtColor(resized_image, cv2.COLOR_BGR2GRAY)
resized_image = np.expand_dims(resized_image, axis=2)
resized_image = resized_image.astype(np.float32) / 255.0
slices_list[slice_id] = resized_image
except cv2.error as e:
logging.error('OpenCV Error: %s, canceling concatenation', e)
return None, None
img_list_of_lists = [slices_list, None, None, None]
rotated_list = [None, None, None, None]
for j, angle in enumerate([90, 180, 270]):
(h, w) = slices_list[0].shape[:2]
center = (w / 2, h / 2)
for i in range(4):
rot_mat = cv2.getRotationMatrix2D(center, angle, 1.0)
rotated = cv2.warpAffine(slices_list[i], rot_mat, (h, w))
rotated = np.expand_dims(rotated, axis=2)
rotated_list[i] = rotated
img_list_of_lists[j+1] = rotated_list
logging.debug('First 4 slices available, concatenation done')
return img_list_of_lists, self.defect_name
def concat_first_four_slices_3d(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.debug('joint roi is rectangular, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) < 4:
logging.error('Number of slice < 4, canceling concatenation')
return None, None
if len(self.slice_dict.keys()) > 4:
logging.error('Number of slice > 4, canceling concatenation')
return None, None
logging.debug('start concatenating image, joint type: %s', self.defect_name)
slices_list = [None, None, None, None]
for slice_id in range(4):
# check whether 1st 4 slices are available
if slice_id not in self.slice_dict.keys():
logging.error('First 4 slices not available, canceling concatenation')
return None, None
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
if img_roi_gray is None:
logging.error('Slice read is None, canceling concatenation')
return None, None
resized_image = cv2.resize(img_roi_gray, (128, 128), interpolation=cv2.INTER_AREA)
resized_image = resized_image.astype(np.float32) / 255
if resized_image is None:
logging.error('Error occured in opencv ROI extraction')
return None, None
slices_list[slice_id] = resized_image
# logging.debug(slices_list[0].shape)
stacked_np_array = np.stack(slices_list, axis=2)
# logging.debug(stacked_np_array.shape)
stacked_np_array = np.expand_dims(stacked_np_array, axis=4)
logging.debug('3d image shape: %s', stacked_np_array.shape)
logging.debug('First 4 slices available, concatenation done')
return stacked_np_array, self.defect_name
def concat_pad_all_slices_2d(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.error('joint roi is rectangular, canceling concatenation')
return None, None
blank_image = np.zeros(shape=[128, 128], dtype=np.uint8)
slices_list = [None, None, None, None, None, None]
for slice_id in range(6):
if slice_id in self.slice_dict.keys():
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
if img_roi_gray is None:
logging.error('Slice read is None, canceling concatenation')
return None, None
resized_image = cv2.resize(img_roi_gray, (128, 128), interpolation=cv2.INTER_AREA)
if resized_image is None:
logging.error('Error occured in opencv ROI extraction')
return None, None
slices_list[slice_id] = resized_image
else:
slices_list[slice_id] = blank_image
logging.debug('blank slice added to slice: %d', slice_id)
im_h1 = cv2.hconcat(slices_list[0:3])
im_h2 = cv2.hconcat(slices_list[3:6])
im_concat = cv2.vconcat([im_h1, im_h2])
if im_concat is None:
logging.error('im_concat is none, skipping concatenation')
return None, None
logging.debug('concatenation done')
return im_concat, self.defect_name
def concat_pad_all_slices_3d(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.error('joint roi is rectangular, canceling concatenation')
return None, None
blank_image = np.zeros(shape=[128, 128], dtype=np.uint8)
slices_list = [None, None, None, None, None, None]
for slice_id in range(6):
if slice_id in self.slice_dict.keys():
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
if img_roi_gray is None:
logging.error('Slice read is None, canceling concatenation')
return None, None
resized_image = cv2.resize(img_roi_gray, (128, 128), interpolation=cv2.INTER_AREA)
resized_image = resized_image.astype(np.float32) / 255
if resized_image is None:
logging.error('Error occured in opencv ROI extraction')
return None, None
slices_list[slice_id] = resized_image
else:
slices_list[slice_id] = blank_image
logging.debug('blank slice added to slice: %d', slice_id)
# logging.debug('xmax, xmin, ymax, ymin: %d, %d, %d, %d', self.x_max, self.x_min, self.y_max, self.y_min)
# logging.debug('Slices shapes: %s, %s, %s, %s, %s, %s', slices_list[0].shape, slices_list[1].shape,
# slices_list[2].shape, slices_list[3].shape, slices_list[4].shape, slices_list[5].shape)
# logging.debug(slices_list[0].shape)
stacked_np_array = np.stack(slices_list, axis=2)
# logging.debug(stacked_np_array.shape)
stacked_np_array = np.expand_dims(stacked_np_array, axis=4)
logging.debug('3d image shape: %s', stacked_np_array.shape)
logging.debug('Padded and concatenated 6 slices in 3d')
return stacked_np_array, self.defect_name
def concat_pad_all_slices_inverse_3d(self):
logging.debug('start concatenating image, joint type: %s', self.defect_name)
if not self.is_square():
logging.error('joint roi is rectangular, canceling concatenation')
return None, None
blank_image = np.ones(shape=[128, 128], dtype=np.uint8)
slices_list = [None, None, None, None, None, None]
for slice_id in range(6):
if slice_id in self.slice_dict.keys():
img = cv2.imread(self.slice_dict[slice_id])
# there's a bug here. image slicing doesn't give a perfect square sometimes
img_roi = img[self.y_min:self.y_max, self.x_min:self.x_max]
img_roi_gray = cv2.cvtColor(img_roi, cv2.COLOR_BGR2GRAY)
img_roi_gray = cv2.bitwise_not(img_roi_gray)
if img_roi_gray is None:
logging.error('Slice read is None, canceling concatenation')
return None, None
resized_image = cv2.resize(img_roi_gray, (128, 128), interpolation=cv2.INTER_AREA)
resized_image = resized_image.astype(np.float32) / 255
if resized_image is None:
logging.error('Error occured in opencv ROI extraction')
return None, None
slices_list[slice_id] = resized_image
else:
slices_list[slice_id] = blank_image
logging.debug('blank slice added to slice: %d', slice_id)
# logging.debug(slices_list[0].shape)
stacked_np_array = np.stack(slices_list, axis=2)
# logging.debug(stacked_np_array.shape)
stacked_np_array = np.expand_dims(stacked_np_array, axis=4)
logging.debug('3d image shape: %s', stacked_np_array.shape)
logging.debug('Padded and concatenated 6 slices in 3d')
return stacked_np_array, self.defect_name
| 45.077465
| 114
| 0.611519
| 2,544
| 19,203
| 4.428852
| 0.069969
| 0.057513
| 0.05343
| 0.081477
| 0.888169
| 0.869353
| 0.853998
| 0.839265
| 0.829413
| 0.815301
| 0
| 0.028274
| 0.294589
| 19,203
| 425
| 115
| 45.183529
| 0.803484
| 0.073114
| 0
| 0.798742
| 0
| 0.003145
| 0.169058
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037736
| false
| 0
| 0.009434
| 0
| 0.220126
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e0545f98af39dd234fce67ae36c8ac218ebe53f8
| 42,376
|
py
|
Python
|
ckan/tests/functional/api/test_follow.py
|
dadosgovbr/ckan
|
f2ed9a03581c3229cf01209baa9a02a71642e0b6
|
[
"BSD-3-Clause"
] | 2
|
2015-11-05T12:04:52.000Z
|
2017-08-09T11:29:11.000Z
|
ckan/tests/functional/api/test_follow.py
|
dadosgovbr/ckan
|
f2ed9a03581c3229cf01209baa9a02a71642e0b6
|
[
"BSD-3-Clause"
] | null | null | null |
ckan/tests/functional/api/test_follow.py
|
dadosgovbr/ckan
|
f2ed9a03581c3229cf01209baa9a02a71642e0b6
|
[
"BSD-3-Clause"
] | null | null | null |
import datetime
import paste
import pylons.test
import ckan
from ckan.lib.helpers import json
from ckan.tests import are_foreign_keys_supported, SkipTest
def datetime_from_string(s):
'''Return a standard datetime.datetime object initialised from a string in
the same format used for timestamps in dictized activities (the format
produced by datetime.datetime.isoformat())
'''
return datetime.datetime.strptime(s, '%Y-%m-%dT%H:%M:%S.%f')
def follow_user(app, follower_id, apikey, object_id, object_arg):
'''Test a user starting to follow another user via the API.
:param follower_id: id of the user that will be following something.
:param apikey: API key of the user that will be following something.
:param object_id: id of the user that will be followed.
:param object_arg: the argument to pass to follow_user as the id of
the object that will be followed, could be the object's id or name.
'''
# Record the user's number of followers before.
params = json.dumps({'id': object_id})
response = app.post('/api/action/user_follower_count',
params=params).json
assert response['success'] is True
count_before = response['result']
# Check that the user is not already following the object.
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is False
# Make the user start following the object.
before = datetime.datetime.now()
params = {'id': object_arg}
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/follow_user',
params=json.dumps(params), extra_environ=extra_environ).json
after = datetime.datetime.now()
assert response['success'] is True
assert response['result']
follower = response['result']
assert follower['follower_id'] == follower_id
assert follower['object_id'] == object_id
timestamp = datetime_from_string(follower['datetime'])
assert (timestamp >= before and timestamp <= after), str(timestamp)
# Check that am_following_user now returns True.
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is True
# Check that the user appears in the object's list of followers.
params = json.dumps({'id': object_id})
response = app.post('/api/action/user_follower_list',
params=params).json
assert response['success'] is True
assert response['result']
followers = response['result']
assert len(followers) == count_before + 1
assert len([follower for follower in followers if follower['id'] ==
follower_id]) == 1
# Check that the object's follower count has increased by 1.
params = json.dumps({'id': object_id})
response = app.post('/api/action/user_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == count_before + 1
def follow_dataset(app, follower_id, apikey, dataset_id, dataset_arg):
'''Test a user starting to follow a dataset via the API.
:param follower_id: id of the user.
:param apikey: API key of the user.
:param dataset_id: id of the dataset.
:param dataset_arg: the argument to pass to follow_dataset as the id of
the dataset that will be followed, could be the dataset's id or name.
'''
# Record the dataset's number of followers before.
params = json.dumps({'id': dataset_id})
response = app.post('/api/action/dataset_follower_count',
params=params).json
assert response['success'] is True
count_before = response['result']
# Check that the user is not already following the dataset.
params = json.dumps({'id': dataset_id})
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is False
# Make the user start following the dataset.
before = datetime.datetime.now()
params = {'id': dataset_arg}
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/follow_dataset',
params=json.dumps(params), extra_environ=extra_environ).json
after = datetime.datetime.now()
assert response['success'] is True
assert response['result']
follower = response['result']
assert follower['follower_id'] == follower_id
assert follower['object_id'] == dataset_id
timestamp = datetime_from_string(follower['datetime'])
assert (timestamp >= before and timestamp <= after), str(timestamp)
# Check that am_following_dataset now returns True.
params = json.dumps({'id': dataset_id})
extra_environ = {'Authorization': str(apikey)}
response = app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is True
# Check that the user appears in the dataset's list of followers.
params = json.dumps({'id': dataset_id})
response = app.post('/api/action/dataset_follower_list',
params=params).json
assert response['success'] is True
assert response['result']
followers = response['result']
assert len(followers) == count_before + 1
assert len([follower for follower in followers if follower['id'] ==
follower_id]) == 1
# Check that the dataset's follower count has increased by 1.
params = json.dumps({'id': dataset_id})
response = app.post('/api/action/dataset_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == count_before + 1
class TestFollow(object):
'''Tests for the follower API.'''
@classmethod
def setup_class(self):
ckan.tests.CreateTestData.create()
self.testsysadmin = ckan.model.User.get('testsysadmin')
self.annafan = ckan.model.User.get('annafan')
self.russianfan = ckan.model.User.get('russianfan')
self.tester = ckan.model.User.get('tester')
self.joeadmin = ckan.model.User.get('joeadmin')
self.warandpeace = ckan.model.Package.get('warandpeace')
self.annakarenina = ckan.model.Package.get('annakarenina')
self.app = paste.fixture.TestApp(pylons.test.pylonsapp)
@classmethod
def teardown_class(self):
ckan.model.repo.rebuild_db()
def test_01_user_follow_user_bad_apikey(self):
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({'id': self.russianfan.id})
extra_environ = {
'Authorization': apikey,
}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_user_follow_dataset_bad_apikey(self):
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({'id': self.warandpeace.id})
extra_environ = {
'Authorization': 'bad api key'
}
response = self.app.post('/api/action/follow_dataset',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_user_follow_user_missing_apikey(self):
params = json.dumps({'id': self.russianfan.id})
response = self.app.post('/api/action/follow_user',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_user_follow_dataset_missing_apikey(self):
params = json.dumps({'id': self.warandpeace.id})
response = self.app.post('/api/action/follow_dataset',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_user_follow_user_bad_object_id(self):
for object_id in ('bad id', '', ' ', None, 3, 35.7, 'xxx'):
params = json.dumps({'id': 'bad id'})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == ['Not found: User']
def test_01_user_follow_dataset_bad_object_id(self):
for object_id in ('bad id', '', ' ', None, 3, 35.7, 'xxx'):
params = json.dumps({'id': 'bad id'})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == ['Not found: Dataset']
def test_01_user_follow_user_missing_object_id(self):
params = json.dumps({})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == ['Missing value']
def test_01_user_follow_dataset_missing_object_id(self):
params = json.dumps({})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == ['Missing value']
def test_02_user_follow_user_by_id(self):
follow_user(self.app, self.annafan.id, self.annafan.apikey,
self.russianfan.id, self.russianfan.id)
def test_02_user_follow_dataset_by_id(self):
follow_dataset(self.app, self.annafan.id, self.annafan.apikey,
self.warandpeace.id, self.warandpeace.id)
def test_02_user_follow_user_by_name(self):
follow_user(self.app, self.annafan.id, self.annafan.apikey,
self.testsysadmin.id, self.testsysadmin.name)
def test_02_user_follow_dataset_by_name(self):
follow_dataset(self.app, self.joeadmin.id, self.joeadmin.apikey,
self.warandpeace.id, self.warandpeace.name)
def test_03_user_follow_user_already_following(self):
for object_id in (self.russianfan.id, self.russianfan.name,
self.testsysadmin.id, self.testsysadmin.name):
params = json.dumps({'id': object_id})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['message'].startswith(
'You are already following ')
def test_03_user_follow_dataset_already_following(self):
for object_id in (self.warandpeace.id, self.warandpeace.name):
params = json.dumps({'id': object_id})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['message'].startswith(
'You are already following ')
def test_03_user_cannot_follow_herself(self):
params = json.dumps({'id': self.annafan.id})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['message'] == 'You cannot follow yourself'
def test_04_user_follower_count_bad_id(self):
# user_follower_count always succeeds, but just returns 0 for bad IDs.
for object_id in ('bad id', ' ', 3, 35.7, 'xxx', ''):
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/user_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
def test_04_dataset_follower_count_bad_id(self):
# dataset_follower_count always succeeds, but just returns 0 for bad
# IDs.
for object_id in ('bad id', ' ', 3, 35.7, 'xxx', ''):
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/dataset_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
def test_04_user_follower_count_missing_id(self):
params = json.dumps({})
response = self.app.post('/api/action/user_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Missing value']
def test_04_dataset_follower_count_missing_id(self):
params = json.dumps({})
response = self.app.post('/api/action/dataset_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Missing value']
def test_04_user_follower_count_no_followers(self):
params = json.dumps({'id': self.annafan.id})
response = self.app.post('/api/action/user_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == 0
def test_04_dataset_follower_count_no_followers(self):
params = json.dumps({'id': self.annakarenina.id})
response = self.app.post('/api/action/dataset_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == 0
def test_04_user_follower_list_bad_id(self):
for object_id in ('bad id', ' ', 3, 35.7, 'xxx', ''):
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/user_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id']
def test_04_dataset_follower_list_bad_id(self):
for object_id in ('bad id', ' ', 3, 35.7, 'xxx', ''):
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/dataset_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id']
def test_04_user_follower_list_missing_id(self):
params = json.dumps({})
response = self.app.post('/api/action/user_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Missing value']
def test_04_dataset_follower_list_missing_id(self):
params = json.dumps({})
response = self.app.post('/api/action/dataset_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Missing value']
def test_04_user_follower_list_no_followers(self):
params = json.dumps({'id': self.annafan.id})
response = self.app.post('/api/action/user_follower_list',
params=params).json
assert response['success'] is True
assert response['result'] == []
def test_04_dataset_follower_list_no_followers(self):
params = json.dumps({'id': self.annakarenina.id})
response = self.app.post('/api/action/dataset_follower_list',
params=params).json
assert response['success'] is True
assert response['result'] == []
def test_04_am_following_dataset_bad_id(self):
for object_id in ('bad id', ' ', 3, 35.7, 'xxx'):
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ,
status=409).json
assert response['success'] is False
assert response['error']['id'] == [u'Not found: Dataset']
def test_04_am_following_dataset_missing_id(self):
for id in ('missing', None, ''):
if id == 'missing':
params = json.dumps({})
else:
params = json.dumps({'id':id})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error']['id'] == [u'Missing value']
def test_04_am_following_dataset_bad_apikey(self):
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({'id': self.warandpeace.id})
extra_environ = {'Authorization': apikey}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_04_am_following_dataset_missing_apikey(self):
params = json.dumps({'id': self.warandpeace.id})
response = self.app.post('/api/action/am_following_dataset',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_04_am_following_user_bad_id(self):
for object_id in ('bad id', ' ', 3, 35.7, 'xxx'):
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ,
status=409).json
assert response['success'] is False
assert response['error']['id'] == [u'Not found: User']
def test_04_am_following_user_missing_id(self):
for id in ('missing', None, ''):
if id == 'missing':
params = json.dumps({})
else:
params = json.dumps({'id':id})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error']['id'] == [u'Missing value']
def test_04_am_following_user_bad_apikey(self):
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({'id': self.annafan.id})
extra_environ = {'Authorization': apikey}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_04_am_following_user_missing_apikey(self):
params = json.dumps({'id': self.annafan.id})
response = self.app.post('/api/action/am_following_user',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
class TestFollowerDelete(object):
'''Tests for the unfollow_user and unfollow_dataset APIs.'''
@classmethod
def setup_class(self):
ckan.tests.CreateTestData.create()
self.testsysadmin = ckan.model.User.get('testsysadmin')
self.annafan = ckan.model.User.get('annafan')
self.russianfan = ckan.model.User.get('russianfan')
self.tester = ckan.model.User.get('tester')
self.joeadmin = ckan.model.User.get('joeadmin')
self.warandpeace = ckan.model.Package.get('warandpeace')
self.annakarenina = ckan.model.Package.get('annakarenina')
self.app = paste.fixture.TestApp(pylons.test.pylonsapp)
follow_user(self.app, self.testsysadmin.id, self.testsysadmin.apikey,
self.joeadmin.id, self.joeadmin.id)
follow_user(self.app, self.tester.id, self.tester.apikey,
self.joeadmin.id, self.joeadmin.id)
follow_user(self.app, self.russianfan.id, self.russianfan.apikey,
self.joeadmin.id, self.joeadmin.id)
follow_user(self.app, self.annafan.id, self.annafan.apikey,
self.joeadmin.id, self.joeadmin.id)
follow_user(self.app, self.annafan.id, self.annafan.apikey,
self.tester.id, self.tester.id)
follow_dataset(self.app, self.testsysadmin.id,
self.testsysadmin.apikey, self.warandpeace.id,
self.warandpeace.id)
follow_dataset(self.app, self.tester.id, self.tester.apikey,
self.warandpeace.id, self.warandpeace.id)
follow_dataset(self.app, self.russianfan.id, self.russianfan.apikey,
self.warandpeace.id, self.warandpeace.id)
follow_dataset(self.app, self.annafan.id, self.annafan.apikey,
self.warandpeace.id, self.warandpeace.id)
@classmethod
def teardown_class(self):
ckan.model.repo.rebuild_db()
def test_01_unfollow_user_not_exists(self):
'''Test the error response when a user tries to unfollow a user that
she is not following.
'''
params = json.dumps({'id': self.russianfan.id})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/unfollow_user',
params=params, extra_environ=extra_environ, status=404).json
assert response['success'] == False
assert response['error']['message'].startswith(
'Not found: Could not find follower ')
def test_01_unfollow_dataset_not_exists(self):
'''Test the error response when a user tries to unfollow a dataset that
she is not following.
'''
params = json.dumps({'id': self.annakarenina.id})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/unfollow_dataset',
params=params, extra_environ=extra_environ, status=404).json
assert response['success'] == False
assert response['error']['message'].startswith(
'Not found: Could not find follower ')
def test_01_unfollow_user_bad_apikey(self):
'''Test the error response when a user tries to unfollow a user
but provides a bad API key.
'''
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({
'id': self.joeadmin.id,
})
extra_environ = {
'Authorization': apikey,
}
response = self.app.post('/api/action/unfollow_user',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_unfollow_dataset_bad_apikey(self):
'''Test the error response when a user tries to unfollow a dataset
but provides a bad API key.
'''
for apikey in ('bad api key', '', ' ', 'None', '3', '35.7', 'xxx'):
params = json.dumps({
'id': self.warandpeace.id,
})
extra_environ = {
'Authorization': apikey,
}
response = self.app.post('/api/action/unfollow_dataset',
params=params, extra_environ=extra_environ, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_unfollow_user_missing_apikey(self):
params = json.dumps({
'id': self.joeadmin.id,
})
response = self.app.post('/api/action/unfollow_user',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_unfollow_dataset_missing_apikey(self):
params = json.dumps({
'id': self.warandpeace.id,
})
response = self.app.post('/api/action/unfollow_dataset',
params=params, status=403).json
assert response['success'] == False
assert response['error']['message'] == 'Access denied'
def test_01_unfollow_user_bad_object_id(self):
'''Test error response when calling unfollow_user with a bad object
id.
'''
for object_id in ('bad id', ' ', 3, 35.7, 'xxx'):
params = json.dumps({
'id': object_id,
})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/unfollow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == [u'Not found: User']
def test_01_unfollow_dataset_bad_object_id(self):
'''Test error response when calling unfollow_dataset with a bad object
id.
'''
for object_id in ('bad id', ' ', 3, 35.7, 'xxx'):
params = json.dumps({
'id': object_id,
})
extra_environ = {
'Authorization': str(self.annafan.apikey),
}
response = self.app.post('/api/action/unfollow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == [u'Not found: Dataset']
def test_01_unfollow_user_missing_object_id(self):
for id in ('missing', None, ''):
if id == 'missing':
params = json.dumps({})
else:
params = json.dumps({'id':id})
extra_environ = {'Authorization': str(self.annafan.apikey),}
response = self.app.post('/api/action/unfollow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == [u'Missing value']
def test_01_unfollow_dataset_missing_object_id(self):
params = json.dumps({})
extra_environ = {'Authorization': str(self.annafan.apikey),}
response = self.app.post('/api/action/unfollow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] == False
assert response['error']['id'] == ['Missing value']
def _unfollow_user(self, follower_id, apikey, object_id, object_arg):
'''Test a user unfollowing a user via the API.
:param follower_id: id of the follower.
:param apikey: API key of the follower.
:param object_id: id of the object to unfollow.
:param object_arg: the argument to pass to unfollow_user as the id of
the object to unfollow, could be the object's id or name.
'''
# Record the user's number of followers before.
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/user_follower_count',
params=params).json
assert response['success'] is True
count_before = response['result']
# Check that the user is following the object.
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is True
# Make the user unfollow the object.
params = {
'id': object_arg,
}
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/unfollow_user',
params=json.dumps(params), extra_environ=extra_environ).json
assert response['success'] is True
# Check that am_following_user now returns False.
params = json.dumps({'id': object_id})
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is False
# Check that the user doesn't appear in the object's list of followers.
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/user_follower_list',
params=params).json
assert response['success'] is True
assert response['result']
followers = response['result']
assert len([follower for follower in followers if follower['id'] ==
follower_id]) == 0
# Check that the object's follower count has decreased by 1.
params = json.dumps({'id': object_id})
response = self.app.post('/api/action/user_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == count_before - 1
def _unfollow_dataset(self, user_id, apikey, dataset_id, dataset_arg):
'''Test a user unfollowing a dataset via the API.
:param user_id: id of the follower.
:param apikey: API key of the follower.
:param dataset_id: id of the object to unfollow.
:param dataset_arg: the argument to pass to unfollow_dataset as the id
of the object to unfollow, could be the object's id or name.
'''
# Record the dataset's number of followers before.
params = json.dumps({'id': dataset_id})
response = self.app.post('/api/action/dataset_follower_count',
params=params).json
assert response['success'] is True
count_before = response['result']
# Check that the user is following the dataset.
params = json.dumps({'id': dataset_id})
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is True
# Make the user unfollow the dataset.
params = {
'id': dataset_arg,
}
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/unfollow_dataset',
params=json.dumps(params), extra_environ=extra_environ).json
assert response['success'] is True
# Check that am_following_dataset now returns False.
params = json.dumps({'id': dataset_id})
extra_environ = {'Authorization': str(apikey)}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ).json
assert response['success'] is True
assert response['result'] is False
# Check that the user doesn't appear in the dataset's list of
# followers.
params = json.dumps({'id': dataset_id})
response = self.app.post('/api/action/dataset_follower_list',
params=params).json
assert response['success'] is True
assert response['result']
followers = response['result']
assert len([follower for follower in followers if follower['id'] ==
user_id]) == 0
# Check that the dataset's follower count has decreased by 1.
params = json.dumps({'id': dataset_id})
response = self.app.post('/api/action/dataset_follower_count',
params=params).json
assert response['success'] is True
assert response['result'] == count_before - 1
def test_02_follower_delete_by_id(self):
self._unfollow_user(self.annafan.id, self.annafan.apikey,
self.joeadmin.id, self.joeadmin.id)
self._unfollow_dataset(self.annafan.id, self.annafan.apikey,
self.warandpeace.id, self.warandpeace.id)
class TestFollowerCascade(object):
'''Tests for on delete cascade of follower table rows.'''
@classmethod
def setup_class(self):
ckan.tests.CreateTestData.create()
self.testsysadmin = ckan.model.User.get('testsysadmin')
self.annafan = ckan.model.User.get('annafan')
self.russianfan = ckan.model.User.get('russianfan')
self.tester = ckan.model.User.get('tester')
self.joeadmin = ckan.model.User.get('joeadmin')
self.warandpeace = ckan.model.Package.get('warandpeace')
self.annakarenina = ckan.model.Package.get('annakarenina')
self.app = paste.fixture.TestApp(pylons.test.pylonsapp)
follow_user(self.app, self.joeadmin.id, self.joeadmin.apikey,
self.testsysadmin.id, self.testsysadmin.id)
follow_user(self.app, self.annafan.id, self.annafan.apikey,
self.testsysadmin.id, self.testsysadmin.id)
follow_user(self.app, self.russianfan.id, self.russianfan.apikey,
self.testsysadmin.id, self.testsysadmin.id)
follow_dataset(self.app, self.joeadmin.id, self.joeadmin.apikey,
self.annakarenina.id, self.annakarenina.id)
follow_dataset(self.app, self.annafan.id, self.annafan.apikey,
self.annakarenina.id, self.annakarenina.id)
follow_dataset(self.app, self.russianfan.id, self.russianfan.apikey,
self.annakarenina.id, self.annakarenina.id)
follow_user(self.app, self.tester.id, self.tester.apikey,
self.joeadmin.id, self.joeadmin.id)
follow_dataset(self.app, self.testsysadmin.id,
self.testsysadmin.apikey, self.warandpeace.id,
self.warandpeace.id)
session = ckan.model.Session()
session.delete(self.joeadmin)
session.commit()
session.delete(self.warandpeace)
session.commit()
@classmethod
def teardown_class(self):
ckan.model.repo.rebuild_db()
def test_01_on_delete_cascade_api(self):
'''
Test that UserFollowingUser and UserFollowingDataset rows cascade.
'''
# It should no longer be possible to get joeadmin's follower list.
params = json.dumps({'id': 'joeadmin'})
response = self.app.post('/api/action/user_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to get warandpeace's follower list.
params = json.dumps({'id': 'warandpeace'})
response = self.app.post('/api/action/dataset_follower_list',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to get joeadmin's follower count.
params = json.dumps({'id': 'joeadmin'})
response = self.app.post('/api/action/user_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to get warandpeace's follower count.
params = json.dumps({'id': 'warandpeace'})
response = self.app.post('/api/action/dataset_follower_count',
params=params, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to get am_following for joeadmin.
params = json.dumps({'id': 'joeadmin'})
extra_environ = {'Authorization': str(self.testsysadmin.apikey)}
response = self.app.post('/api/action/am_following_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to get am_following for warandpeace.
params = json.dumps({'id': 'warandpeace'})
extra_environ = {'Authorization': str(self.testsysadmin.apikey)}
response = self.app.post('/api/action/am_following_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to unfollow joeadmin.
params = json.dumps({'id': 'joeadmin'})
extra_environ = {'Authorization': str(self.tester.apikey)}
response = self.app.post('/api/action/unfollow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Not found: User']
# It should no longer be possible to unfollow warandpeace.
params = json.dumps({'id': 'warandpeace'})
extra_environ = {'Authorization': str(self.testsysadmin.apikey)}
response = self.app.post('/api/action/unfollow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error']['id'] == ['Not found: Dataset']
# It should no longer be possible to follow joeadmin.
params = json.dumps({'id': 'joeadmin'})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/follow_user',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# It should no longer be possible to follow warandpeace.
params = json.dumps({'id': 'warandpeace'})
extra_environ = {'Authorization': str(self.annafan.apikey)}
response = self.app.post('/api/action/follow_dataset',
params=params, extra_environ=extra_environ, status=409).json
assert response['success'] is False
assert response['error'].has_key('id')
# Users who joeadmin was following should no longer have him in their
# follower list.
params = json.dumps({'id': self.testsysadmin.id})
response = self.app.post('/api/action/user_follower_list',
params=params).json
assert response['success'] is True
followers = [follower['name'] for follower in response['result']]
assert 'joeadmin' not in followers
# Datasets who joeadmin was following should no longer have him in
# their follower list.
params = json.dumps({'id': self.annakarenina.id})
response = self.app.post('/api/action/dataset_follower_list',
params=params).json
assert response['success'] is True
followers = [follower['name'] for follower in response['result']]
assert 'joeadmin' not in followers
def test_02_on_delete_cascade_db(self):
if not are_foreign_keys_supported():
raise SkipTest("Search not supported")
# After the previous test above there should be no rows with joeadmin's
# id in the UserFollowingUser or UserFollowingDataset tables.
from ckan.model import UserFollowingUser, UserFollowingDataset
session = ckan.model.Session()
query = session.query(UserFollowingUser)
query = query.filter(UserFollowingUser.follower_id==self.joeadmin.id)
assert query.count() == 0
query = session.query(UserFollowingUser)
query = query.filter(UserFollowingUser.object_id==self.joeadmin.id)
assert query.count() == 0
query = session.query(UserFollowingDataset)
query = query.filter(UserFollowingUser.follower_id==self.joeadmin.id)
assert query.count() == 0
# There should be no rows with warandpeace's id either.
query = session.query(UserFollowingUser)
query = query.filter(UserFollowingUser.object_id==self.warandpeace.id)
assert query.count() == 0
query = session.query(UserFollowingDataset)
query = query.filter(UserFollowingUser.object_id==self.warandpeace.id)
assert query.count() == 0
| 45.080851
| 80
| 0.622829
| 5,075
| 42,376
| 5.060493
| 0.04197
| 0.079589
| 0.046725
| 0.047971
| 0.947551
| 0.942022
| 0.924344
| 0.903668
| 0.882603
| 0.870688
| 0
| 0.010271
| 0.255616
| 42,376
| 939
| 81
| 45.12886
| 0.803893
| 0.108009
| 0
| 0.840336
| 0
| 0
| 0.145433
| 0.060104
| 0
| 0
| 0
| 0
| 0.231092
| 1
| 0.082633
| false
| 0
| 0.009804
| 0
| 0.098039
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ee038e9fbae804f22f819394864f34e56d85ae0
| 5,041
|
py
|
Python
|
src/IceRayPy/utility/material/pattern/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | 2
|
2020-09-04T12:27:15.000Z
|
2022-01-17T14:49:40.000Z
|
src/IceRayPy/utility/material/pattern/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | null | null | null |
src/IceRayPy/utility/material/pattern/__init__.py
|
dmilos/IceRay
|
4e01f141363c0d126d3c700c1f5f892967e3d520
|
[
"MIT-0"
] | 1
|
2020-09-04T12:27:52.000Z
|
2020-09-04T12:27:52.000Z
|
print( '<' + __name__ + ' name=\'' + __file__ + '\'>' )
import IceRayPy.utility.material.pattern.noise
# TODO import IceRayPy.utility.material.pattern.size
def Constant(
P_dll
,P_config
,P_color = IceRayPy.type.color.RGB(0.5,0.5,0.5)
):
I_pattern = IceRayPy.core.material.pattern.Checker( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_color, result ) )
return I_surface
def Image(
P_dll
,P_config
,P_filename = "z:\\work\\code\\cpp\\prj\\github\\IceRay\\work\\data\\di.pnm"
):
I_picture = IceRayPy.type.graph.Picture( P_dll )
I_picture.load( P_filename )
I_image = IceRayPy.core.material.pattern.Image( P_dll, I_picture )
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
point = IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT
I_surface.append( IceRayPy.core.material.instruction.pattern.Color( P_dll, I_image, result, point ) )
return I_surface
def Checker(
P_dll
,P_config
,P_black = IceRayPy.type.color.RGB(0,0,0)
,P_white = IceRayPy.type.color.RGB(1,1,1)
):
I_pattern = IceRayPy.core.material.pattern.Checker( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
point = IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT
switch = IceRayPy.core.material.instruction.label.size.temp._BEGIN
temp = IceRayPy.core.material.instruction.label.color.temp._BEGIN
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
I_surface.append( IceRayPy.core.material.instruction.pattern.Size( P_dll, I_pattern, switch, point ) )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_black, temp + 0 ) )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_white, temp + 1 ) )
I_surface.append( IceRayPy.core.material.instruction.operation.switch.Color( P_dll, result, switch, temp + 0 ) )
return I_surface
def Hexagon(
P_dll
,P_config
,P_red = IceRayPy.type.color.RGB(1,0,0)
,P_green = IceRayPy.type.color.RGB(0,1,0)
,P_blue = IceRayPy.type.color.RGB(0,0,1)
):
I_pattern = IceRayPy.core.material.pattern.Hexagon( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
point = IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT
switch = IceRayPy.core.material.instruction.label.size.temp._BEGIN
temp = IceRayPy.core.material.instruction.label.color.temp._BEGIN
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
I_surface.append( IceRayPy.core.material.instruction.pattern.Size( P_dll, I_pattern, switch, point ) )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_red, temp + 0 ) )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_green, temp + 1 ) )
I_surface.append( IceRayPy.core.material.instruction.constant.Color( P_dll, P_blue, temp + 2 ) )
I_surface.append( IceRayPy.core.material.instruction.operation.switch.Color( P_dll, result, switch, temp + 0 ) )
return I_surface
def Onion(
P_dll
,P_config
):
I_pattern = IceRayPy.core.material.pattern.Onion( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
point = IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT
value = IceRayPy.core.material.instruction.label.scalar.temp._BEGIN
temp = IceRayPy.core.material.instruction.label.color.temp._BEGIN
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
I_surface.append( IceRayPy.core.material.instruction.pattern.Scalar( P_dll, I_pattern, value, point ) )
I_surface.append( IceRayPy.core.material.instruction.convert.Scalar2Color( P_dll, result, value ) )
return I_surface
def Level(
P_dll
,P_config
):
I_pattern = IceRayPy.core.material.pattern.Level( P_dll )
result = IceRayPy.core.material.instruction.label.color.dynamic.RESULT
point = IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT
value = IceRayPy.core.material.instruction.label.scalar.temp._BEGIN
temp = IceRayPy.core.material.instruction.label.color.temp._BEGIN
I_surface = IceRayPy.core.material.pigment.Surface( P_dll )
I_surface.append( IceRayPy.core.material.instruction.pattern.Scalar( P_dll, I_pattern, value, point ) )
I_surface.append( IceRayPy.core.material.instruction.convert.Scalar2Color( P_dll, result, value ) )
return I_surface
print( '</' + __name__ + ' name=\'' + __file__ + '>' )
print( '</' + __name__ + ' name=\'' + __file__ + '>' )
| 40.653226
| 118
| 0.706209
| 665
| 5,041
| 5.162406
| 0.100752
| 0.160792
| 0.267987
| 0.30702
| 0.878241
| 0.818817
| 0.806001
| 0.795223
| 0.780076
| 0.764929
| 0
| 0.008391
| 0.172585
| 5,041
| 124
| 119
| 40.653226
| 0.814673
| 0.009919
| 0
| 0.685393
| 0
| 0.011236
| 0.027738
| 0.012328
| 0
| 0
| 0
| 0.008065
| 0
| 1
| 0.067416
| false
| 0
| 0.011236
| 0
| 0.146067
| 0.033708
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0eece5e2d6f3aa9fa700036d19768a48339ddcba
| 180
|
py
|
Python
|
Python3-built-in-functions/0x63min.py
|
DropsDevopsOrg/PythonWiki
|
0c344edad37ed34c03cf066df991922cb4bdeee0
|
[
"Apache-2.0"
] | 15
|
2019-04-09T04:20:21.000Z
|
2022-02-08T20:33:42.000Z
|
Python3-built-in-functions/0x63min.py
|
sep8dog/PythonWiki
|
0c344edad37ed34c03cf066df991922cb4bdeee0
|
[
"Apache-2.0"
] | 1
|
2019-07-22T07:27:10.000Z
|
2020-10-09T08:00:17.000Z
|
Python3-built-in-functions/0x63min.py
|
sep8dog/PythonWiki
|
0c344edad37ed34c03cf066df991922cb4bdeee0
|
[
"Apache-2.0"
] | 16
|
2019-09-13T14:06:42.000Z
|
2022-03-15T06:02:01.000Z
|
#max() 方法返回给定参数的最小值,可比较字符.汉字和表达式
print(min(1, 2, 3, 45, 4))
print(min([1, 2, 3, 4, 5, 6]))
print(min('a', 'b', 'c', 'd'))
print(min('梁', '伟', '洋'))
print(min(8+2, 1+1, 9+9))
| 25.714286
| 33
| 0.505556
| 38
| 180
| 2.394737
| 0.578947
| 0.43956
| 0.197802
| 0.21978
| 0.241758
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119205
| 0.161111
| 180
| 7
| 34
| 25.714286
| 0.483444
| 0.172222
| 0
| 0
| 0
| 0
| 0.048951
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
0efb30ad308d4e73887bf7fb402f69bbb41e43b5
| 243
|
py
|
Python
|
simple_xapi_client/__init__.py
|
IngoKl/simple-xapi-client
|
23258d2af5d461f95d431265f8af6674f7f05b32
|
[
"MIT"
] | null | null | null |
simple_xapi_client/__init__.py
|
IngoKl/simple-xapi-client
|
23258d2af5d461f95d431265f8af6674f7f05b32
|
[
"MIT"
] | null | null | null |
simple_xapi_client/__init__.py
|
IngoKl/simple-xapi-client
|
23258d2af5d461f95d431265f8af6674f7f05b32
|
[
"MIT"
] | null | null | null |
from simple_xapi_client.xapi_client import LRS
from simple_xapi_client.actor import XapiActor
from simple_xapi_client.statement import XapiStatement
from simple_xapi_client.object import XapiObject
from simple_xapi_client.verb import XapiVerb
| 40.5
| 54
| 0.897119
| 36
| 243
| 5.75
| 0.388889
| 0.289855
| 0.338164
| 0.483092
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082305
| 243
| 5
| 55
| 48.6
| 0.928251
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
160b4363a7377a49c41fdd8c41d2184ffe6bd60b
| 311,914
|
py
|
Python
|
.venv/lib/python3.8/site-packages/aws_cdk/aws_iam/__init__.py
|
sandipganguly/cdkpipeline
|
aecde04724a99e55d20a62cd3ccded6ceedbe967
|
[
"MIT-0"
] | null | null | null |
.venv/lib/python3.8/site-packages/aws_cdk/aws_iam/__init__.py
|
sandipganguly/cdkpipeline
|
aecde04724a99e55d20a62cd3ccded6ceedbe967
|
[
"MIT-0"
] | null | null | null |
.venv/lib/python3.8/site-packages/aws_cdk/aws_iam/__init__.py
|
sandipganguly/cdkpipeline
|
aecde04724a99e55d20a62cd3ccded6ceedbe967
|
[
"MIT-0"
] | null | null | null |
"""
## AWS Identity and Access Management Construct Library
<!--BEGIN STABILITY BANNER-->---


---
<!--END STABILITY BANNER-->
Define a role and add permissions to it. This will automatically create and
attach an IAM policy to the role:
```python
# Example automatically generated. See https://github.com/aws/jsii/issues/826
role = Role(self, "MyRole",
assumed_by=ServicePrincipal("sns.amazonaws.com")
)
role.add_to_policy(PolicyStatement(
resources=["*"],
actions=["lambda:InvokeFunction"]
))
```
Define a policy and attach it to groups, users and roles. Note that it is possible to attach
the policy either by calling `xxx.attachInlinePolicy(policy)` or `policy.attachToXxx(xxx)`.
```python
# Example automatically generated. See https://github.com/aws/jsii/issues/826
user = User(self, "MyUser", password=cdk.SecretValue.plain_text("1234"))
group = Group(self, "MyGroup")
policy = Policy(self, "MyPolicy")
policy.attach_to_user(user)
group.attach_inline_policy(policy)
```
Managed policies can be attached using `xxx.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))`:
```python
# Example automatically generated. See https://github.com/aws/jsii/issues/826
group = Group(self, "MyGroup")
group.add_managed_policy(ManagedPolicy.from_aws_managed_policy_name("AdministratorAccess"))
```
### Granting permissions to resources
Many of the AWS CDK resources have `grant*` methods that allow you to grant other resources access to that resource. As an example, the following code gives a Lambda function write permissions (Put, Update, Delete) to a DynamoDB table.
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
fn = lambda.Function(...)
table = dynamodb.Table(...)
table.grant_write_data(fn)
```
The more generic `grant` method allows you to give specific permissions to a resource:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
fn = lambda.Function(...)
table = dynamodb.Table(...)
table.grant(fn, "dynamodb:PutItem")
```
The `grant*` methods accept an `IGrantable` object. This interface is implemented by IAM principlal resources (groups, users and roles) and resources that assume a role such as a Lambda function, EC2 instance or a Codebuild project.
You can find which `grant*` methods exist for a resource in the [AWS CDK API Reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-construct-library.html).
### Roles
Many AWS resources require *Roles* to operate. These Roles define the AWS API
calls an instance or other AWS service is allowed to make.
Creating Roles and populating them with the right permissions *Statements* is
a necessary but tedious part of setting up AWS infrastructure. In order to
help you focus on your business logic, CDK will take care of creating
roles and populating them with least-privilege permissions automatically.
All constructs that require Roles will create one for you if don't specify
one at construction time. Permissions will be added to that role
automatically if you associate the construct with other constructs from the
AWS Construct Library (for example, if you tell an *AWS CodePipeline* to trigger
an *AWS Lambda Function*, the Pipeline's Role will automatically get
`lambda:InvokeFunction` permissions on that particular Lambda Function),
or if you explicitly grant permissions using `grant` functions (see the
previous section).
#### Opting out of automatic permissions management
You may prefer to manage a Role's permissions yourself instead of having the
CDK automatically manage them for you. This may happen in one of the
following cases:
* You don't like the permissions that CDK automatically generates and
want to substitute your own set.
* The least-permissions policy that the CDK generates is becoming too
big for IAM to store, and you need to add some wildcards to keep the
policy size down.
To prevent constructs from updating your Role's policy, pass the object
returned by `myRole.withoutPolicyUpdates()` instead of `myRole` itself.
For example, to have an AWS CodePipeline *not* automatically add the required
permissions to trigger the expected targets, do the following:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
role = iam.Role(self, "Role",
assumed_by=iam.ServicePrincipal("codepipeline.amazonaws.com"),
# custom description if desired
description="This is a custom role..."
)
codepipeline.Pipeline(self, "Pipeline",
# Give the Pipeline an immutable view of the Role
role=role.without_policy_updates()
)
# You now have to manage the Role policies yourself
role.add_to_policy(iam.PolicyStatement(
action=[],
resource=[]
))
```
#### Using existing roles
If there are Roles in your account that have already been created which you
would like to use in your CDK application, you can use `Role.fromRoleArn` to
import them, as follows:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
role = iam.Role.from_role_arn(self, "Role", "arn:aws:iam::123456789012:role/MyExistingRole",
# Set 'mutable' to 'false' to use the role as-is and prevent adding new
# policies to it. The default is 'true', which means the role may be
# modified as part of the deployment.
mutable=False
)
```
### Configuring an ExternalId
If you need to create Roles that will be assumed by third parties, it is generally a good idea to [require an `ExternalId`
to assume them](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html). Configuring
an `ExternalId` works like this:
```python
# Example automatically generated. See https://github.com/aws/jsii/issues/826
role = iam.Role(self, "MyRole",
assumed_by=iam.AccountPrincipal("123456789012"),
external_ids=["SUPPLY-ME"]
)
```
### Principals vs Identities
When we say *Principal*, we mean an entity you grant permissions to. This
entity can be an AWS Service, a Role, or something more abstract such as "all
users in this account" or even "all users in this organization". An
*Identity* is an IAM representing a single IAM entity that can have
a policy attached, one of `Role`, `User`, or `Group`.
### IAM Principals
When defining policy statements as part of an AssumeRole policy or as part of a
resource policy, statements would usually refer to a specific IAM principal
under `Principal`.
IAM principals are modeled as classes that derive from the `iam.PolicyPrincipal`
abstract class. Principal objects include principal type (string) and value
(array of string), optional set of conditions and the action that this principal
requires when it is used in an assume role policy document.
To add a principal to a policy statement you can either use the abstract
`statement.addPrincipal`, one of the concrete `addXxxPrincipal` methods:
* `addAwsPrincipal`, `addArnPrincipal` or `new ArnPrincipal(arn)` for `{ "AWS": arn }`
* `addAwsAccountPrincipal` or `new AccountPrincipal(accountId)` for `{ "AWS": account-arn }`
* `addServicePrincipal` or `new ServicePrincipal(service)` for `{ "Service": service }`
* `addAccountRootPrincipal` or `new AccountRootPrincipal()` for `{ "AWS": { "Ref: "AWS::AccountId" } }`
* `addCanonicalUserPrincipal` or `new CanonicalUserPrincipal(id)` for `{ "CanonicalUser": id }`
* `addFederatedPrincipal` or `new FederatedPrincipal(federated, conditions, assumeAction)` for
`{ "Federated": arn }` and a set of optional conditions and the assume role action to use.
* `addAnyPrincipal` or `new AnyPrincipal` for `{ "AWS": "*" }`
If multiple principals are added to the policy statement, they will be merged together:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
statement = PolicyStatement()
statement.add_service_principal("cloudwatch.amazonaws.com")
statement.add_service_principal("ec2.amazonaws.com")
statement.add_arn_principal("arn:aws:boom:boom")
```
Will result in:
```json
{
"Principal": {
"Service": [ "cloudwatch.amazonaws.com", "ec2.amazonaws.com" ],
"AWS": "arn:aws:boom:boom"
}
}
```
The `CompositePrincipal` class can also be used to define complex principals, for example:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
role = iam.Role(self, "MyRole",
assumed_by=iam.CompositePrincipal(
iam.ServicePrincipal("ec2.amazonaws.com"),
iam.AccountPrincipal("1818188181818187272"))
)
```
The `PrincipalWithConditions` class can be used to add conditions to a
principal, especially those that don't take a `conditions` parameter in their
constructor. The `principal.withConditions()` method can be used to create a
`PrincipalWithConditions` from an existing principal, for example:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
principal = iam.AccountPrincipal("123456789000").with_conditions(StringEquals={"foo": "baz"})
```
> NOTE: If you need to define an IAM condition that uses a token (such as a
> deploy-time attribute of another resource) in a JSON map key, use `CfnJson` to
> render this condition. See [this test](./test/integ-condition-with-ref.ts) for
> an example.
The `WebIdentityPrincipal` class can be used as a principal for web identities like
Cognito, Amazon, Google or Facebook, for example:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
principal = iam.WebIdentityPrincipal("cognito-identity.amazonaws.com").with_conditions(
StringEquals={"cognito-identity.amazonaws.com:aud": "us-east-2:12345678-abcd-abcd-abcd-123456"},
ForAnyValue:StringLike={"cognito-identity.amazonaws.com:amr": "unauthenticated"}
)
```
### Parsing JSON Policy Documents
The `PolicyDocument.fromJson` and `PolicyStatement.fromJson` static methods can be used to parse JSON objects. For example:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
policy_document = {
"Version": "2012-10-17",
"Statement": [{
"Sid": "FirstStatement",
"Effect": "Allow",
"Action": ["iam:ChangePassword"],
"Resource": "*"
}, {
"Sid": "SecondStatement",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
}, {
"Sid": "ThirdStatement",
"Effect": "Allow",
"Action": ["s3:List*", "s3:Get*"
],
"Resource": ["arn:aws:s3:::confidential-data", "arn:aws:s3:::confidential-data/*"
],
"Condition": {"Bool": {"aws:_multi_factor_auth_present": "true"}}
}
]
}
new_policy_document = PolicyDocument.from_json(policy_document)
```
### OpenID Connect Providers
OIDC identity providers are entities in IAM that describe an external identity
provider (IdP) service that supports the [OpenID Connect](http://openid.net/connect) (OIDC) standard, such
as Google or Salesforce. You use an IAM OIDC identity provider when you want to
establish trust between an OIDC-compatible IdP and your AWS account. This is
useful when creating a mobile app or web application that requires access to AWS
resources, but you don't want to create custom sign-in code or manage your own
user identities. For more information about this scenario, see [About Web
Identity Federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html) and the relevant documentation in the [Amazon Cognito
Identity Pools Developer Guide](https://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html).
The following examples defines an OpenID Connect provider. Two client IDs
(audiences) are will be able to send authentication requests to
https://openid/connect.
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
provider = OpenIdConnectProvider(self, "MyProvider",
url="https://openid/connect",
clients=["myclient1", "myclient2"]
)
```
You can specify an optional list of `thumbprints`. If not specified, the
thumbprint of the root certificate authority (CA) will automatically be obtained
from the host as described
[here](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html).
Once you define an OpenID connect provider, you can use it with AWS services
that expect an IAM OIDC provider. For example, when you define an [Amazon
Cognito identity
pool](https://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html)
you can reference the provider's ARN as follows:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
cognito.CfnIdentityPool(self, "IdentityPool",
open_id_connect_provider_aRNs=[provider.open_id_connect_provider_arn]
)
```
The `OpenIdConnectPrincipal` class can be used as a principal used with a `OpenIdConnectProvider`, for example:
```python
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
provider = OpenIdConnectProvider(self, "MyProvider",
url="https://openid/connect",
clients=["myclient1", "myclient2"]
)
principal = iam.OpenIdConnectPrincipal(provider)
```
### Features
* Policy name uniqueness is enforced. If two policies by the same name are attached to the same
principal, the attachment will fail.
* Policy names are not required - the CDK logical ID will be used and ensured to be unique.
"""
import abc
import builtins
import datetime
import enum
import typing
import jsii
import jsii.compat
import publication
from ._jsii import *
import aws_cdk.core
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.AddToPrincipalPolicyResult",
jsii_struct_bases=[],
name_mapping={
"statement_added": "statementAdded",
"policy_dependable": "policyDependable",
},
)
class AddToPrincipalPolicyResult:
def __init__(
self,
*,
statement_added: bool,
policy_dependable: typing.Optional[aws_cdk.core.IDependable] = None,
) -> None:
"""Result of calling ``addToPrincipalPolicy``.
:param statement_added: Whether the statement was added to the identity's policies.
:param policy_dependable: Dependable which allows depending on the policy change being applied. Default: - Required if ``statementAdded`` is true.
"""
self._values = {
"statement_added": statement_added,
}
if policy_dependable is not None:
self._values["policy_dependable"] = policy_dependable
@builtins.property
def statement_added(self) -> bool:
"""Whether the statement was added to the identity's policies.
stability
:stability: experimental
"""
return self._values.get("statement_added")
@builtins.property
def policy_dependable(self) -> typing.Optional[aws_cdk.core.IDependable]:
"""Dependable which allows depending on the policy change being applied.
default
:default: - Required if ``statementAdded`` is true.
stability
:stability: experimental
"""
return self._values.get("policy_dependable")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "AddToPrincipalPolicyResult(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.AddToResourcePolicyResult",
jsii_struct_bases=[],
name_mapping={
"statement_added": "statementAdded",
"policy_dependable": "policyDependable",
},
)
class AddToResourcePolicyResult:
def __init__(
self,
*,
statement_added: bool,
policy_dependable: typing.Optional[aws_cdk.core.IDependable] = None,
) -> None:
"""Result of calling addToResourcePolicy.
:param statement_added: Whether the statement was added.
:param policy_dependable: Dependable which allows depending on the policy change being applied. Default: - If ``statementAdded`` is true, the resource object itself. Otherwise, no dependable.
"""
self._values = {
"statement_added": statement_added,
}
if policy_dependable is not None:
self._values["policy_dependable"] = policy_dependable
@builtins.property
def statement_added(self) -> bool:
"""Whether the statement was added."""
return self._values.get("statement_added")
@builtins.property
def policy_dependable(self) -> typing.Optional[aws_cdk.core.IDependable]:
"""Dependable which allows depending on the policy change being applied.
default
:default:
- If ``statementAdded`` is true, the resource object itself.
Otherwise, no dependable.
"""
return self._values.get("policy_dependable")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "AddToResourcePolicyResult(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnAccessKey(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnAccessKey",
):
"""A CloudFormation ``AWS::IAM::AccessKey``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::AccessKey
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
user_name: str,
serial: typing.Optional[jsii.Number] = None,
status: typing.Optional[str] = None,
) -> None:
"""Create a new ``AWS::IAM::AccessKey``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param user_name: ``AWS::IAM::AccessKey.UserName``.
:param serial: ``AWS::IAM::AccessKey.Serial``.
:param status: ``AWS::IAM::AccessKey.Status``.
"""
props = CfnAccessKeyProps(user_name=user_name, serial=serial, status=status)
jsii.create(CfnAccessKey, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnAccessKey":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="attrSecretAccessKey")
def attr_secret_access_key(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: SecretAccessKey
"""
return jsii.get(self, "attrSecretAccessKey")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="userName")
def user_name(self) -> str:
"""``AWS::IAM::AccessKey.UserName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-username
"""
return jsii.get(self, "userName")
@user_name.setter
def user_name(self, value: str) -> None:
jsii.set(self, "userName", value)
@builtins.property
@jsii.member(jsii_name="serial")
def serial(self) -> typing.Optional[jsii.Number]:
"""``AWS::IAM::AccessKey.Serial``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-serial
"""
return jsii.get(self, "serial")
@serial.setter
def serial(self, value: typing.Optional[jsii.Number]) -> None:
jsii.set(self, "serial", value)
@builtins.property
@jsii.member(jsii_name="status")
def status(self) -> typing.Optional[str]:
"""``AWS::IAM::AccessKey.Status``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-status
"""
return jsii.get(self, "status")
@status.setter
def status(self, value: typing.Optional[str]) -> None:
jsii.set(self, "status", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnAccessKeyProps",
jsii_struct_bases=[],
name_mapping={"user_name": "userName", "serial": "serial", "status": "status"},
)
class CfnAccessKeyProps:
def __init__(
self,
*,
user_name: str,
serial: typing.Optional[jsii.Number] = None,
status: typing.Optional[str] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::AccessKey``.
:param user_name: ``AWS::IAM::AccessKey.UserName``.
:param serial: ``AWS::IAM::AccessKey.Serial``.
:param status: ``AWS::IAM::AccessKey.Status``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html
"""
self._values = {
"user_name": user_name,
}
if serial is not None:
self._values["serial"] = serial
if status is not None:
self._values["status"] = status
@builtins.property
def user_name(self) -> str:
"""``AWS::IAM::AccessKey.UserName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-username
"""
return self._values.get("user_name")
@builtins.property
def serial(self) -> typing.Optional[jsii.Number]:
"""``AWS::IAM::AccessKey.Serial``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-serial
"""
return self._values.get("serial")
@builtins.property
def status(self) -> typing.Optional[str]:
"""``AWS::IAM::AccessKey.Status``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html#cfn-iam-accesskey-status
"""
return self._values.get("status")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnAccessKeyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnGroup(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnGroup",
):
"""A CloudFormation ``AWS::IAM::Group``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::Group
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
group_name: typing.Optional[str] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
path: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
] = None,
) -> None:
"""Create a new ``AWS::IAM::Group``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param group_name: ``AWS::IAM::Group.GroupName``.
:param managed_policy_arns: ``AWS::IAM::Group.ManagedPolicyArns``.
:param path: ``AWS::IAM::Group.Path``.
:param policies: ``AWS::IAM::Group.Policies``.
"""
props = CfnGroupProps(
group_name=group_name,
managed_policy_arns=managed_policy_arns,
path=path,
policies=policies,
)
jsii.create(CfnGroup, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnGroup":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: Arn
"""
return jsii.get(self, "attrArn")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="groupName")
def group_name(self) -> typing.Optional[str]:
"""``AWS::IAM::Group.GroupName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-groupname
"""
return jsii.get(self, "groupName")
@group_name.setter
def group_name(self, value: typing.Optional[str]) -> None:
jsii.set(self, "groupName", value)
@builtins.property
@jsii.member(jsii_name="managedPolicyArns")
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Group.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-managepolicyarns
"""
return jsii.get(self, "managedPolicyArns")
@managed_policy_arns.setter
def managed_policy_arns(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "managedPolicyArns", value)
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::Group.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-path
"""
return jsii.get(self, "path")
@path.setter
def path(self, value: typing.Optional[str]) -> None:
jsii.set(self, "path", value)
@builtins.property
@jsii.member(jsii_name="policies")
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
]:
"""``AWS::IAM::Group.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-policies
"""
return jsii.get(self, "policies")
@policies.setter
def policies(
self,
value: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
],
) -> None:
jsii.set(self, "policies", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnGroup.PolicyProperty",
jsii_struct_bases=[],
name_mapping={"policy_document": "policyDocument", "policy_name": "policyName"},
)
class PolicyProperty:
def __init__(self, *, policy_document: typing.Any, policy_name: str) -> None:
"""
:param policy_document: ``CfnGroup.PolicyProperty.PolicyDocument``.
:param policy_name: ``CfnGroup.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html
"""
self._values = {
"policy_document": policy_document,
"policy_name": policy_name,
}
@builtins.property
def policy_document(self) -> typing.Any:
"""``CfnGroup.PolicyProperty.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument
"""
return self._values.get("policy_document")
@builtins.property
def policy_name(self) -> str:
"""``CfnGroup.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname
"""
return self._values.get("policy_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyProperty(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnGroupProps",
jsii_struct_bases=[],
name_mapping={
"group_name": "groupName",
"managed_policy_arns": "managedPolicyArns",
"path": "path",
"policies": "policies",
},
)
class CfnGroupProps:
def __init__(
self,
*,
group_name: typing.Optional[str] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
path: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnGroup.PolicyProperty"]
],
]
] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::Group``.
:param group_name: ``AWS::IAM::Group.GroupName``.
:param managed_policy_arns: ``AWS::IAM::Group.ManagedPolicyArns``.
:param path: ``AWS::IAM::Group.Path``.
:param policies: ``AWS::IAM::Group.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html
"""
self._values = {}
if group_name is not None:
self._values["group_name"] = group_name
if managed_policy_arns is not None:
self._values["managed_policy_arns"] = managed_policy_arns
if path is not None:
self._values["path"] = path
if policies is not None:
self._values["policies"] = policies
@builtins.property
def group_name(self) -> typing.Optional[str]:
"""``AWS::IAM::Group.GroupName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-groupname
"""
return self._values.get("group_name")
@builtins.property
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Group.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-managepolicyarns
"""
return self._values.get("managed_policy_arns")
@builtins.property
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::Group.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-path
"""
return self._values.get("path")
@builtins.property
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnGroup.PolicyProperty"]
],
]
]:
"""``AWS::IAM::Group.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html#cfn-iam-group-policies
"""
return self._values.get("policies")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnGroupProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnInstanceProfile(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnInstanceProfile",
):
"""A CloudFormation ``AWS::IAM::InstanceProfile``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::InstanceProfile
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
roles: typing.List[str],
instance_profile_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
) -> None:
"""Create a new ``AWS::IAM::InstanceProfile``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param roles: ``AWS::IAM::InstanceProfile.Roles``.
:param instance_profile_name: ``AWS::IAM::InstanceProfile.InstanceProfileName``.
:param path: ``AWS::IAM::InstanceProfile.Path``.
"""
props = CfnInstanceProfileProps(
roles=roles, instance_profile_name=instance_profile_name, path=path
)
jsii.create(CfnInstanceProfile, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnInstanceProfile":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: Arn
"""
return jsii.get(self, "attrArn")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="roles")
def roles(self) -> typing.List[str]:
"""``AWS::IAM::InstanceProfile.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-roles
"""
return jsii.get(self, "roles")
@roles.setter
def roles(self, value: typing.List[str]) -> None:
jsii.set(self, "roles", value)
@builtins.property
@jsii.member(jsii_name="instanceProfileName")
def instance_profile_name(self) -> typing.Optional[str]:
"""``AWS::IAM::InstanceProfile.InstanceProfileName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-instanceprofilename
"""
return jsii.get(self, "instanceProfileName")
@instance_profile_name.setter
def instance_profile_name(self, value: typing.Optional[str]) -> None:
jsii.set(self, "instanceProfileName", value)
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::InstanceProfile.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-path
"""
return jsii.get(self, "path")
@path.setter
def path(self, value: typing.Optional[str]) -> None:
jsii.set(self, "path", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnInstanceProfileProps",
jsii_struct_bases=[],
name_mapping={
"roles": "roles",
"instance_profile_name": "instanceProfileName",
"path": "path",
},
)
class CfnInstanceProfileProps:
def __init__(
self,
*,
roles: typing.List[str],
instance_profile_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::InstanceProfile``.
:param roles: ``AWS::IAM::InstanceProfile.Roles``.
:param instance_profile_name: ``AWS::IAM::InstanceProfile.InstanceProfileName``.
:param path: ``AWS::IAM::InstanceProfile.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html
"""
self._values = {
"roles": roles,
}
if instance_profile_name is not None:
self._values["instance_profile_name"] = instance_profile_name
if path is not None:
self._values["path"] = path
@builtins.property
def roles(self) -> typing.List[str]:
"""``AWS::IAM::InstanceProfile.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-roles
"""
return self._values.get("roles")
@builtins.property
def instance_profile_name(self) -> typing.Optional[str]:
"""``AWS::IAM::InstanceProfile.InstanceProfileName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-instanceprofilename
"""
return self._values.get("instance_profile_name")
@builtins.property
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::InstanceProfile.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html#cfn-iam-instanceprofile-path
"""
return self._values.get("path")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnInstanceProfileProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnManagedPolicy(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnManagedPolicy",
):
"""A CloudFormation ``AWS::IAM::ManagedPolicy``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::ManagedPolicy
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
policy_document: typing.Any,
description: typing.Optional[str] = None,
groups: typing.Optional[typing.List[str]] = None,
managed_policy_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
roles: typing.Optional[typing.List[str]] = None,
users: typing.Optional[typing.List[str]] = None,
) -> None:
"""Create a new ``AWS::IAM::ManagedPolicy``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param policy_document: ``AWS::IAM::ManagedPolicy.PolicyDocument``.
:param description: ``AWS::IAM::ManagedPolicy.Description``.
:param groups: ``AWS::IAM::ManagedPolicy.Groups``.
:param managed_policy_name: ``AWS::IAM::ManagedPolicy.ManagedPolicyName``.
:param path: ``AWS::IAM::ManagedPolicy.Path``.
:param roles: ``AWS::IAM::ManagedPolicy.Roles``.
:param users: ``AWS::IAM::ManagedPolicy.Users``.
"""
props = CfnManagedPolicyProps(
policy_document=policy_document,
description=description,
groups=groups,
managed_policy_name=managed_policy_name,
path=path,
roles=roles,
users=users,
)
jsii.create(CfnManagedPolicy, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnManagedPolicy":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="policyDocument")
def policy_document(self) -> typing.Any:
"""``AWS::IAM::ManagedPolicy.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-policydocument
"""
return jsii.get(self, "policyDocument")
@policy_document.setter
def policy_document(self, value: typing.Any) -> None:
jsii.set(self, "policyDocument", value)
@builtins.property
@jsii.member(jsii_name="description")
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description
"""
return jsii.get(self, "description")
@description.setter
def description(self, value: typing.Optional[str]) -> None:
jsii.set(self, "description", value)
@builtins.property
@jsii.member(jsii_name="groups")
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups
"""
return jsii.get(self, "groups")
@groups.setter
def groups(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "groups", value)
@builtins.property
@jsii.member(jsii_name="managedPolicyName")
def managed_policy_name(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.ManagedPolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname
"""
return jsii.get(self, "managedPolicyName")
@managed_policy_name.setter
def managed_policy_name(self, value: typing.Optional[str]) -> None:
jsii.set(self, "managedPolicyName", value)
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path
"""
return jsii.get(self, "path")
@path.setter
def path(self, value: typing.Optional[str]) -> None:
jsii.set(self, "path", value)
@builtins.property
@jsii.member(jsii_name="roles")
def roles(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles
"""
return jsii.get(self, "roles")
@roles.setter
def roles(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "roles", value)
@builtins.property
@jsii.member(jsii_name="users")
def users(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users
"""
return jsii.get(self, "users")
@users.setter
def users(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "users", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnManagedPolicyProps",
jsii_struct_bases=[],
name_mapping={
"policy_document": "policyDocument",
"description": "description",
"groups": "groups",
"managed_policy_name": "managedPolicyName",
"path": "path",
"roles": "roles",
"users": "users",
},
)
class CfnManagedPolicyProps:
def __init__(
self,
*,
policy_document: typing.Any,
description: typing.Optional[str] = None,
groups: typing.Optional[typing.List[str]] = None,
managed_policy_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
roles: typing.Optional[typing.List[str]] = None,
users: typing.Optional[typing.List[str]] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::ManagedPolicy``.
:param policy_document: ``AWS::IAM::ManagedPolicy.PolicyDocument``.
:param description: ``AWS::IAM::ManagedPolicy.Description``.
:param groups: ``AWS::IAM::ManagedPolicy.Groups``.
:param managed_policy_name: ``AWS::IAM::ManagedPolicy.ManagedPolicyName``.
:param path: ``AWS::IAM::ManagedPolicy.Path``.
:param roles: ``AWS::IAM::ManagedPolicy.Roles``.
:param users: ``AWS::IAM::ManagedPolicy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html
"""
self._values = {
"policy_document": policy_document,
}
if description is not None:
self._values["description"] = description
if groups is not None:
self._values["groups"] = groups
if managed_policy_name is not None:
self._values["managed_policy_name"] = managed_policy_name
if path is not None:
self._values["path"] = path
if roles is not None:
self._values["roles"] = roles
if users is not None:
self._values["users"] = users
@builtins.property
def policy_document(self) -> typing.Any:
"""``AWS::IAM::ManagedPolicy.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-policydocument
"""
return self._values.get("policy_document")
@builtins.property
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description
"""
return self._values.get("description")
@builtins.property
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups
"""
return self._values.get("groups")
@builtins.property
def managed_policy_name(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.ManagedPolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname
"""
return self._values.get("managed_policy_name")
@builtins.property
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::ManagedPolicy.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path
"""
return self._values.get("path")
@builtins.property
def roles(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles
"""
return self._values.get("roles")
@builtins.property
def users(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::ManagedPolicy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users
"""
return self._values.get("users")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnManagedPolicyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnPolicy(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnPolicy",
):
"""A CloudFormation ``AWS::IAM::Policy``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::Policy
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
policy_document: typing.Any,
policy_name: str,
groups: typing.Optional[typing.List[str]] = None,
roles: typing.Optional[typing.List[str]] = None,
users: typing.Optional[typing.List[str]] = None,
) -> None:
"""Create a new ``AWS::IAM::Policy``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param policy_document: ``AWS::IAM::Policy.PolicyDocument``.
:param policy_name: ``AWS::IAM::Policy.PolicyName``.
:param groups: ``AWS::IAM::Policy.Groups``.
:param roles: ``AWS::IAM::Policy.Roles``.
:param users: ``AWS::IAM::Policy.Users``.
"""
props = CfnPolicyProps(
policy_document=policy_document,
policy_name=policy_name,
groups=groups,
roles=roles,
users=users,
)
jsii.create(CfnPolicy, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnPolicy":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="policyDocument")
def policy_document(self) -> typing.Any:
"""``AWS::IAM::Policy.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policydocument
"""
return jsii.get(self, "policyDocument")
@policy_document.setter
def policy_document(self, value: typing.Any) -> None:
jsii.set(self, "policyDocument", value)
@builtins.property
@jsii.member(jsii_name="policyName")
def policy_name(self) -> str:
"""``AWS::IAM::Policy.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policyname
"""
return jsii.get(self, "policyName")
@policy_name.setter
def policy_name(self, value: str) -> None:
jsii.set(self, "policyName", value)
@builtins.property
@jsii.member(jsii_name="groups")
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-groups
"""
return jsii.get(self, "groups")
@groups.setter
def groups(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "groups", value)
@builtins.property
@jsii.member(jsii_name="roles")
def roles(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-roles
"""
return jsii.get(self, "roles")
@roles.setter
def roles(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "roles", value)
@builtins.property
@jsii.member(jsii_name="users")
def users(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-users
"""
return jsii.get(self, "users")
@users.setter
def users(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "users", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnPolicyProps",
jsii_struct_bases=[],
name_mapping={
"policy_document": "policyDocument",
"policy_name": "policyName",
"groups": "groups",
"roles": "roles",
"users": "users",
},
)
class CfnPolicyProps:
def __init__(
self,
*,
policy_document: typing.Any,
policy_name: str,
groups: typing.Optional[typing.List[str]] = None,
roles: typing.Optional[typing.List[str]] = None,
users: typing.Optional[typing.List[str]] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::Policy``.
:param policy_document: ``AWS::IAM::Policy.PolicyDocument``.
:param policy_name: ``AWS::IAM::Policy.PolicyName``.
:param groups: ``AWS::IAM::Policy.Groups``.
:param roles: ``AWS::IAM::Policy.Roles``.
:param users: ``AWS::IAM::Policy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html
"""
self._values = {
"policy_document": policy_document,
"policy_name": policy_name,
}
if groups is not None:
self._values["groups"] = groups
if roles is not None:
self._values["roles"] = roles
if users is not None:
self._values["users"] = users
@builtins.property
def policy_document(self) -> typing.Any:
"""``AWS::IAM::Policy.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policydocument
"""
return self._values.get("policy_document")
@builtins.property
def policy_name(self) -> str:
"""``AWS::IAM::Policy.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-policyname
"""
return self._values.get("policy_name")
@builtins.property
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-groups
"""
return self._values.get("groups")
@builtins.property
def roles(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Roles``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-roles
"""
return self._values.get("roles")
@builtins.property
def users(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Policy.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html#cfn-iam-policy-users
"""
return self._values.get("users")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnPolicyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnRole(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnRole",
):
"""A CloudFormation ``AWS::IAM::Role``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::Role
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
assume_role_policy_document: typing.Any,
description: typing.Optional[str] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
max_session_duration: typing.Optional[jsii.Number] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
] = None,
role_name: typing.Optional[str] = None,
tags: typing.Optional[typing.List[aws_cdk.core.CfnTag]] = None,
) -> None:
"""Create a new ``AWS::IAM::Role``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param assume_role_policy_document: ``AWS::IAM::Role.AssumeRolePolicyDocument``.
:param description: ``AWS::IAM::Role.Description``.
:param managed_policy_arns: ``AWS::IAM::Role.ManagedPolicyArns``.
:param max_session_duration: ``AWS::IAM::Role.MaxSessionDuration``.
:param path: ``AWS::IAM::Role.Path``.
:param permissions_boundary: ``AWS::IAM::Role.PermissionsBoundary``.
:param policies: ``AWS::IAM::Role.Policies``.
:param role_name: ``AWS::IAM::Role.RoleName``.
:param tags: ``AWS::IAM::Role.Tags``.
"""
props = CfnRoleProps(
assume_role_policy_document=assume_role_policy_document,
description=description,
managed_policy_arns=managed_policy_arns,
max_session_duration=max_session_duration,
path=path,
permissions_boundary=permissions_boundary,
policies=policies,
role_name=role_name,
tags=tags,
)
jsii.create(CfnRole, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnRole":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: Arn
"""
return jsii.get(self, "attrArn")
@builtins.property
@jsii.member(jsii_name="attrRoleId")
def attr_role_id(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: RoleId
"""
return jsii.get(self, "attrRoleId")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="tags")
def tags(self) -> aws_cdk.core.TagManager:
"""``AWS::IAM::Role.Tags``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags
"""
return jsii.get(self, "tags")
@builtins.property
@jsii.member(jsii_name="assumeRolePolicyDocument")
def assume_role_policy_document(self) -> typing.Any:
"""``AWS::IAM::Role.AssumeRolePolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-assumerolepolicydocument
"""
return jsii.get(self, "assumeRolePolicyDocument")
@assume_role_policy_document.setter
def assume_role_policy_document(self, value: typing.Any) -> None:
jsii.set(self, "assumeRolePolicyDocument", value)
@builtins.property
@jsii.member(jsii_name="description")
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-description
"""
return jsii.get(self, "description")
@description.setter
def description(self, value: typing.Optional[str]) -> None:
jsii.set(self, "description", value)
@builtins.property
@jsii.member(jsii_name="managedPolicyArns")
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Role.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-managepolicyarns
"""
return jsii.get(self, "managedPolicyArns")
@managed_policy_arns.setter
def managed_policy_arns(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "managedPolicyArns", value)
@builtins.property
@jsii.member(jsii_name="maxSessionDuration")
def max_session_duration(self) -> typing.Optional[jsii.Number]:
"""``AWS::IAM::Role.MaxSessionDuration``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-maxsessionduration
"""
return jsii.get(self, "maxSessionDuration")
@max_session_duration.setter
def max_session_duration(self, value: typing.Optional[jsii.Number]) -> None:
jsii.set(self, "maxSessionDuration", value)
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-path
"""
return jsii.get(self, "path")
@path.setter
def path(self, value: typing.Optional[str]) -> None:
jsii.set(self, "path", value)
@builtins.property
@jsii.member(jsii_name="permissionsBoundary")
def permissions_boundary(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.PermissionsBoundary``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-permissionsboundary
"""
return jsii.get(self, "permissionsBoundary")
@permissions_boundary.setter
def permissions_boundary(self, value: typing.Optional[str]) -> None:
jsii.set(self, "permissionsBoundary", value)
@builtins.property
@jsii.member(jsii_name="policies")
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
]:
"""``AWS::IAM::Role.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-policies
"""
return jsii.get(self, "policies")
@policies.setter
def policies(
self,
value: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
],
) -> None:
jsii.set(self, "policies", value)
@builtins.property
@jsii.member(jsii_name="roleName")
def role_name(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.RoleName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename
"""
return jsii.get(self, "roleName")
@role_name.setter
def role_name(self, value: typing.Optional[str]) -> None:
jsii.set(self, "roleName", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnRole.PolicyProperty",
jsii_struct_bases=[],
name_mapping={"policy_document": "policyDocument", "policy_name": "policyName"},
)
class PolicyProperty:
def __init__(self, *, policy_document: typing.Any, policy_name: str) -> None:
"""
:param policy_document: ``CfnRole.PolicyProperty.PolicyDocument``.
:param policy_name: ``CfnRole.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html
"""
self._values = {
"policy_document": policy_document,
"policy_name": policy_name,
}
@builtins.property
def policy_document(self) -> typing.Any:
"""``CfnRole.PolicyProperty.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument
"""
return self._values.get("policy_document")
@builtins.property
def policy_name(self) -> str:
"""``CfnRole.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname
"""
return self._values.get("policy_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyProperty(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnRoleProps",
jsii_struct_bases=[],
name_mapping={
"assume_role_policy_document": "assumeRolePolicyDocument",
"description": "description",
"managed_policy_arns": "managedPolicyArns",
"max_session_duration": "maxSessionDuration",
"path": "path",
"permissions_boundary": "permissionsBoundary",
"policies": "policies",
"role_name": "roleName",
"tags": "tags",
},
)
class CfnRoleProps:
def __init__(
self,
*,
assume_role_policy_document: typing.Any,
description: typing.Optional[str] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
max_session_duration: typing.Optional[jsii.Number] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnRole.PolicyProperty"]
],
]
] = None,
role_name: typing.Optional[str] = None,
tags: typing.Optional[typing.List[aws_cdk.core.CfnTag]] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::Role``.
:param assume_role_policy_document: ``AWS::IAM::Role.AssumeRolePolicyDocument``.
:param description: ``AWS::IAM::Role.Description``.
:param managed_policy_arns: ``AWS::IAM::Role.ManagedPolicyArns``.
:param max_session_duration: ``AWS::IAM::Role.MaxSessionDuration``.
:param path: ``AWS::IAM::Role.Path``.
:param permissions_boundary: ``AWS::IAM::Role.PermissionsBoundary``.
:param policies: ``AWS::IAM::Role.Policies``.
:param role_name: ``AWS::IAM::Role.RoleName``.
:param tags: ``AWS::IAM::Role.Tags``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html
"""
self._values = {
"assume_role_policy_document": assume_role_policy_document,
}
if description is not None:
self._values["description"] = description
if managed_policy_arns is not None:
self._values["managed_policy_arns"] = managed_policy_arns
if max_session_duration is not None:
self._values["max_session_duration"] = max_session_duration
if path is not None:
self._values["path"] = path
if permissions_boundary is not None:
self._values["permissions_boundary"] = permissions_boundary
if policies is not None:
self._values["policies"] = policies
if role_name is not None:
self._values["role_name"] = role_name
if tags is not None:
self._values["tags"] = tags
@builtins.property
def assume_role_policy_document(self) -> typing.Any:
"""``AWS::IAM::Role.AssumeRolePolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-assumerolepolicydocument
"""
return self._values.get("assume_role_policy_document")
@builtins.property
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-description
"""
return self._values.get("description")
@builtins.property
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::Role.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-managepolicyarns
"""
return self._values.get("managed_policy_arns")
@builtins.property
def max_session_duration(self) -> typing.Optional[jsii.Number]:
"""``AWS::IAM::Role.MaxSessionDuration``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-maxsessionduration
"""
return self._values.get("max_session_duration")
@builtins.property
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-path
"""
return self._values.get("path")
@builtins.property
def permissions_boundary(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.PermissionsBoundary``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-permissionsboundary
"""
return self._values.get("permissions_boundary")
@builtins.property
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnRole.PolicyProperty"]
],
]
]:
"""``AWS::IAM::Role.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-policies
"""
return self._values.get("policies")
@builtins.property
def role_name(self) -> typing.Optional[str]:
"""``AWS::IAM::Role.RoleName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename
"""
return self._values.get("role_name")
@builtins.property
def tags(self) -> typing.Optional[typing.List[aws_cdk.core.CfnTag]]:
"""``AWS::IAM::Role.Tags``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags
"""
return self._values.get("tags")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnRoleProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnServiceLinkedRole(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnServiceLinkedRole",
):
"""A CloudFormation ``AWS::IAM::ServiceLinkedRole``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::ServiceLinkedRole
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
aws_service_name: str,
custom_suffix: typing.Optional[str] = None,
description: typing.Optional[str] = None,
) -> None:
"""Create a new ``AWS::IAM::ServiceLinkedRole``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param aws_service_name: ``AWS::IAM::ServiceLinkedRole.AWSServiceName``.
:param custom_suffix: ``AWS::IAM::ServiceLinkedRole.CustomSuffix``.
:param description: ``AWS::IAM::ServiceLinkedRole.Description``.
"""
props = CfnServiceLinkedRoleProps(
aws_service_name=aws_service_name,
custom_suffix=custom_suffix,
description=description,
)
jsii.create(CfnServiceLinkedRole, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnServiceLinkedRole":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="awsServiceName")
def aws_service_name(self) -> str:
"""``AWS::IAM::ServiceLinkedRole.AWSServiceName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-awsservicename
"""
return jsii.get(self, "awsServiceName")
@aws_service_name.setter
def aws_service_name(self, value: str) -> None:
jsii.set(self, "awsServiceName", value)
@builtins.property
@jsii.member(jsii_name="customSuffix")
def custom_suffix(self) -> typing.Optional[str]:
"""``AWS::IAM::ServiceLinkedRole.CustomSuffix``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-customsuffix
"""
return jsii.get(self, "customSuffix")
@custom_suffix.setter
def custom_suffix(self, value: typing.Optional[str]) -> None:
jsii.set(self, "customSuffix", value)
@builtins.property
@jsii.member(jsii_name="description")
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::ServiceLinkedRole.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-description
"""
return jsii.get(self, "description")
@description.setter
def description(self, value: typing.Optional[str]) -> None:
jsii.set(self, "description", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnServiceLinkedRoleProps",
jsii_struct_bases=[],
name_mapping={
"aws_service_name": "awsServiceName",
"custom_suffix": "customSuffix",
"description": "description",
},
)
class CfnServiceLinkedRoleProps:
def __init__(
self,
*,
aws_service_name: str,
custom_suffix: typing.Optional[str] = None,
description: typing.Optional[str] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::ServiceLinkedRole``.
:param aws_service_name: ``AWS::IAM::ServiceLinkedRole.AWSServiceName``.
:param custom_suffix: ``AWS::IAM::ServiceLinkedRole.CustomSuffix``.
:param description: ``AWS::IAM::ServiceLinkedRole.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html
"""
self._values = {
"aws_service_name": aws_service_name,
}
if custom_suffix is not None:
self._values["custom_suffix"] = custom_suffix
if description is not None:
self._values["description"] = description
@builtins.property
def aws_service_name(self) -> str:
"""``AWS::IAM::ServiceLinkedRole.AWSServiceName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-awsservicename
"""
return self._values.get("aws_service_name")
@builtins.property
def custom_suffix(self) -> typing.Optional[str]:
"""``AWS::IAM::ServiceLinkedRole.CustomSuffix``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-customsuffix
"""
return self._values.get("custom_suffix")
@builtins.property
def description(self) -> typing.Optional[str]:
"""``AWS::IAM::ServiceLinkedRole.Description``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-servicelinkedrole.html#cfn-iam-servicelinkedrole-description
"""
return self._values.get("description")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnServiceLinkedRoleProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnUser(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnUser",
):
"""A CloudFormation ``AWS::IAM::User``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::User
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
groups: typing.Optional[typing.List[str]] = None,
login_profile: typing.Optional[
typing.Union[aws_cdk.core.IResolvable, "LoginProfileProperty"]
] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
] = None,
tags: typing.Optional[typing.List[aws_cdk.core.CfnTag]] = None,
user_name: typing.Optional[str] = None,
) -> None:
"""Create a new ``AWS::IAM::User``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param groups: ``AWS::IAM::User.Groups``.
:param login_profile: ``AWS::IAM::User.LoginProfile``.
:param managed_policy_arns: ``AWS::IAM::User.ManagedPolicyArns``.
:param path: ``AWS::IAM::User.Path``.
:param permissions_boundary: ``AWS::IAM::User.PermissionsBoundary``.
:param policies: ``AWS::IAM::User.Policies``.
:param tags: ``AWS::IAM::User.Tags``.
:param user_name: ``AWS::IAM::User.UserName``.
"""
props = CfnUserProps(
groups=groups,
login_profile=login_profile,
managed_policy_arns=managed_policy_arns,
path=path,
permissions_boundary=permissions_boundary,
policies=policies,
tags=tags,
user_name=user_name,
)
jsii.create(CfnUser, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnUser":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> str:
"""
cloudformationAttribute:
:cloudformationAttribute:: Arn
"""
return jsii.get(self, "attrArn")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="tags")
def tags(self) -> aws_cdk.core.TagManager:
"""``AWS::IAM::User.Tags``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-tags
"""
return jsii.get(self, "tags")
@builtins.property
@jsii.member(jsii_name="groups")
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::User.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-groups
"""
return jsii.get(self, "groups")
@groups.setter
def groups(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "groups", value)
@builtins.property
@jsii.member(jsii_name="loginProfile")
def login_profile(
self,
) -> typing.Optional[
typing.Union[aws_cdk.core.IResolvable, "LoginProfileProperty"]
]:
"""``AWS::IAM::User.LoginProfile``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-loginprofile
"""
return jsii.get(self, "loginProfile")
@login_profile.setter
def login_profile(
self,
value: typing.Optional[
typing.Union[aws_cdk.core.IResolvable, "LoginProfileProperty"]
],
) -> None:
jsii.set(self, "loginProfile", value)
@builtins.property
@jsii.member(jsii_name="managedPolicyArns")
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::User.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-managepolicyarns
"""
return jsii.get(self, "managedPolicyArns")
@managed_policy_arns.setter
def managed_policy_arns(self, value: typing.Optional[typing.List[str]]) -> None:
jsii.set(self, "managedPolicyArns", value)
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::User.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-path
"""
return jsii.get(self, "path")
@path.setter
def path(self, value: typing.Optional[str]) -> None:
jsii.set(self, "path", value)
@builtins.property
@jsii.member(jsii_name="permissionsBoundary")
def permissions_boundary(self) -> typing.Optional[str]:
"""``AWS::IAM::User.PermissionsBoundary``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-permissionsboundary
"""
return jsii.get(self, "permissionsBoundary")
@permissions_boundary.setter
def permissions_boundary(self, value: typing.Optional[str]) -> None:
jsii.set(self, "permissionsBoundary", value)
@builtins.property
@jsii.member(jsii_name="policies")
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
]:
"""``AWS::IAM::User.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-policies
"""
return jsii.get(self, "policies")
@policies.setter
def policies(
self,
value: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[typing.Union[aws_cdk.core.IResolvable, "PolicyProperty"]],
]
],
) -> None:
jsii.set(self, "policies", value)
@builtins.property
@jsii.member(jsii_name="userName")
def user_name(self) -> typing.Optional[str]:
"""``AWS::IAM::User.UserName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-username
"""
return jsii.get(self, "userName")
@user_name.setter
def user_name(self, value: typing.Optional[str]) -> None:
jsii.set(self, "userName", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnUser.LoginProfileProperty",
jsii_struct_bases=[],
name_mapping={
"password": "password",
"password_reset_required": "passwordResetRequired",
},
)
class LoginProfileProperty:
def __init__(
self,
*,
password: str,
password_reset_required: typing.Optional[
typing.Union[bool, aws_cdk.core.IResolvable]
] = None,
) -> None:
"""
:param password: ``CfnUser.LoginProfileProperty.Password``.
:param password_reset_required: ``CfnUser.LoginProfileProperty.PasswordResetRequired``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html
"""
self._values = {
"password": password,
}
if password_reset_required is not None:
self._values["password_reset_required"] = password_reset_required
@builtins.property
def password(self) -> str:
"""``CfnUser.LoginProfileProperty.Password``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html#cfn-iam-user-loginprofile-password
"""
return self._values.get("password")
@builtins.property
def password_reset_required(
self,
) -> typing.Optional[typing.Union[bool, aws_cdk.core.IResolvable]]:
"""``CfnUser.LoginProfileProperty.PasswordResetRequired``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user-loginprofile.html#cfn-iam-user-loginprofile-passwordresetrequired
"""
return self._values.get("password_reset_required")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "LoginProfileProperty(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnUser.PolicyProperty",
jsii_struct_bases=[],
name_mapping={"policy_document": "policyDocument", "policy_name": "policyName"},
)
class PolicyProperty:
def __init__(self, *, policy_document: typing.Any, policy_name: str) -> None:
"""
:param policy_document: ``CfnUser.PolicyProperty.PolicyDocument``.
:param policy_name: ``CfnUser.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html
"""
self._values = {
"policy_document": policy_document,
"policy_name": policy_name,
}
@builtins.property
def policy_document(self) -> typing.Any:
"""``CfnUser.PolicyProperty.PolicyDocument``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policydocument
"""
return self._values.get("policy_document")
@builtins.property
def policy_name(self) -> str:
"""``CfnUser.PolicyProperty.PolicyName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html#cfn-iam-policies-policyname
"""
return self._values.get("policy_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyProperty(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnUserProps",
jsii_struct_bases=[],
name_mapping={
"groups": "groups",
"login_profile": "loginProfile",
"managed_policy_arns": "managedPolicyArns",
"path": "path",
"permissions_boundary": "permissionsBoundary",
"policies": "policies",
"tags": "tags",
"user_name": "userName",
},
)
class CfnUserProps:
def __init__(
self,
*,
groups: typing.Optional[typing.List[str]] = None,
login_profile: typing.Optional[
typing.Union[aws_cdk.core.IResolvable, "CfnUser.LoginProfileProperty"]
] = None,
managed_policy_arns: typing.Optional[typing.List[str]] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional[str] = None,
policies: typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnUser.PolicyProperty"]
],
]
] = None,
tags: typing.Optional[typing.List[aws_cdk.core.CfnTag]] = None,
user_name: typing.Optional[str] = None,
) -> None:
"""Properties for defining a ``AWS::IAM::User``.
:param groups: ``AWS::IAM::User.Groups``.
:param login_profile: ``AWS::IAM::User.LoginProfile``.
:param managed_policy_arns: ``AWS::IAM::User.ManagedPolicyArns``.
:param path: ``AWS::IAM::User.Path``.
:param permissions_boundary: ``AWS::IAM::User.PermissionsBoundary``.
:param policies: ``AWS::IAM::User.Policies``.
:param tags: ``AWS::IAM::User.Tags``.
:param user_name: ``AWS::IAM::User.UserName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html
"""
self._values = {}
if groups is not None:
self._values["groups"] = groups
if login_profile is not None:
self._values["login_profile"] = login_profile
if managed_policy_arns is not None:
self._values["managed_policy_arns"] = managed_policy_arns
if path is not None:
self._values["path"] = path
if permissions_boundary is not None:
self._values["permissions_boundary"] = permissions_boundary
if policies is not None:
self._values["policies"] = policies
if tags is not None:
self._values["tags"] = tags
if user_name is not None:
self._values["user_name"] = user_name
@builtins.property
def groups(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::User.Groups``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-groups
"""
return self._values.get("groups")
@builtins.property
def login_profile(
self,
) -> typing.Optional[
typing.Union[aws_cdk.core.IResolvable, "CfnUser.LoginProfileProperty"]
]:
"""``AWS::IAM::User.LoginProfile``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-loginprofile
"""
return self._values.get("login_profile")
@builtins.property
def managed_policy_arns(self) -> typing.Optional[typing.List[str]]:
"""``AWS::IAM::User.ManagedPolicyArns``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-managepolicyarns
"""
return self._values.get("managed_policy_arns")
@builtins.property
def path(self) -> typing.Optional[str]:
"""``AWS::IAM::User.Path``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-path
"""
return self._values.get("path")
@builtins.property
def permissions_boundary(self) -> typing.Optional[str]:
"""``AWS::IAM::User.PermissionsBoundary``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-permissionsboundary
"""
return self._values.get("permissions_boundary")
@builtins.property
def policies(
self,
) -> typing.Optional[
typing.Union[
aws_cdk.core.IResolvable,
typing.List[
typing.Union[aws_cdk.core.IResolvable, "CfnUser.PolicyProperty"]
],
]
]:
"""``AWS::IAM::User.Policies``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-policies
"""
return self._values.get("policies")
@builtins.property
def tags(self) -> typing.Optional[typing.List[aws_cdk.core.CfnTag]]:
"""``AWS::IAM::User.Tags``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-tags
"""
return self._values.get("tags")
@builtins.property
def user_name(self) -> typing.Optional[str]:
"""``AWS::IAM::User.UserName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html#cfn-iam-user-username
"""
return self._values.get("user_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnUserProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IInspectable)
class CfnUserToGroupAddition(
aws_cdk.core.CfnResource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CfnUserToGroupAddition",
):
"""A CloudFormation ``AWS::IAM::UserToGroupAddition``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html
cloudformationResource:
:cloudformationResource:: AWS::IAM::UserToGroupAddition
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
group_name: str,
users: typing.List[str],
) -> None:
"""Create a new ``AWS::IAM::UserToGroupAddition``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param group_name: ``AWS::IAM::UserToGroupAddition.GroupName``.
:param users: ``AWS::IAM::UserToGroupAddition.Users``.
"""
props = CfnUserToGroupAdditionProps(group_name=group_name, users=users)
jsii.create(CfnUserToGroupAddition, self, [scope, id, props])
@jsii.member(jsii_name="fromCloudFormation")
@builtins.classmethod
def from_cloud_formation(
cls,
scope: aws_cdk.core.Construct,
id: str,
resource_attributes: typing.Any,
*,
finder: aws_cdk.core.ICfnFinder,
) -> "CfnUserToGroupAddition":
"""A factory method that creates a new instance of this class from an object containing the CloudFormation properties of this resource.
Used in the @aws-cdk/cloudformation-include module.
:param scope: -
:param id: -
:param resource_attributes: -
:param finder: The finder interface used to resolve references across the template.
stability
:stability: experimental
"""
options = aws_cdk.core.FromCloudFormationOptions(finder=finder)
return jsii.sinvoke(
cls, "fromCloudFormation", [scope, id, resource_attributes, options]
)
@jsii.member(jsii_name="inspect")
def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None:
"""Examines the CloudFormation resource and discloses attributes.
:param inspector: - tree inspector to collect and process attributes.
stability
:stability: experimental
"""
return jsii.invoke(self, "inspect", [inspector])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self, props: typing.Mapping[str, typing.Any]
) -> typing.Mapping[str, typing.Any]:
"""
:param props: -
"""
return jsii.invoke(self, "renderProperties", [props])
@jsii.python.classproperty
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
def CFN_RESOURCE_TYPE_NAME(cls) -> str:
"""The CloudFormation resource type name for this resource class."""
return jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")
@builtins.property
@jsii.member(jsii_name="cfnProperties")
def _cfn_properties(self) -> typing.Mapping[str, typing.Any]:
return jsii.get(self, "cfnProperties")
@builtins.property
@jsii.member(jsii_name="groupName")
def group_name(self) -> str:
"""``AWS::IAM::UserToGroupAddition.GroupName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-groupname
"""
return jsii.get(self, "groupName")
@group_name.setter
def group_name(self, value: str) -> None:
jsii.set(self, "groupName", value)
@builtins.property
@jsii.member(jsii_name="users")
def users(self) -> typing.List[str]:
"""``AWS::IAM::UserToGroupAddition.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-users
"""
return jsii.get(self, "users")
@users.setter
def users(self, value: typing.List[str]) -> None:
jsii.set(self, "users", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CfnUserToGroupAdditionProps",
jsii_struct_bases=[],
name_mapping={"group_name": "groupName", "users": "users"},
)
class CfnUserToGroupAdditionProps:
def __init__(self, *, group_name: str, users: typing.List[str]) -> None:
"""Properties for defining a ``AWS::IAM::UserToGroupAddition``.
:param group_name: ``AWS::IAM::UserToGroupAddition.GroupName``.
:param users: ``AWS::IAM::UserToGroupAddition.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html
"""
self._values = {
"group_name": group_name,
"users": users,
}
@builtins.property
def group_name(self) -> str:
"""``AWS::IAM::UserToGroupAddition.GroupName``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-groupname
"""
return self._values.get("group_name")
@builtins.property
def users(self) -> typing.List[str]:
"""``AWS::IAM::UserToGroupAddition.Users``.
see
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html#cfn-iam-addusertogroup-users
"""
return self._values.get("users")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CfnUserToGroupAdditionProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.CommonGrantOptions",
jsii_struct_bases=[],
name_mapping={
"actions": "actions",
"grantee": "grantee",
"resource_arns": "resourceArns",
},
)
class CommonGrantOptions:
def __init__(
self,
*,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
) -> None:
"""Basic options for a grant operation.
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
stability
:stability: experimental
"""
self._values = {
"actions": actions,
"grantee": grantee,
"resource_arns": resource_arns,
}
@builtins.property
def actions(self) -> typing.List[str]:
"""The actions to grant.
stability
:stability: experimental
"""
return self._values.get("actions")
@builtins.property
def grantee(self) -> "IGrantable":
"""The principal to grant to.
default
:default: if principal is undefined, no work is done.
stability
:stability: experimental
"""
return self._values.get("grantee")
@builtins.property
def resource_arns(self) -> typing.List[str]:
"""The resource ARNs to grant to.
stability
:stability: experimental
"""
return self._values.get("resource_arns")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "CommonGrantOptions(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IDependable)
class CompositeDependable(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.CompositeDependable"
):
"""Composite dependable.
Not as simple as eagerly getting the dependency roots from the
inner dependables, as they may be mutable so we need to defer
the query.
"""
def __init__(self, *dependables: aws_cdk.core.IDependable) -> None:
"""
:param dependables: -
"""
jsii.create(CompositeDependable, self, [*dependables])
@jsii.enum(jsii_type="@aws-cdk/aws-iam.Effect")
class Effect(enum.Enum):
"""The Effect element of an IAM policy.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_effect.html
"""
ALLOW = "ALLOW"
"""Allows access to a resource in an IAM policy statement.
By default, access to resources are denied.
"""
DENY = "DENY"
"""Explicitly deny access to a resource.
By default, all requests are denied implicitly.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html
"""
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.FromRoleArnOptions",
jsii_struct_bases=[],
name_mapping={"mutable": "mutable"},
)
class FromRoleArnOptions:
def __init__(self, *, mutable: typing.Optional[bool] = None) -> None:
"""Options allowing customizing the behavior of {@link Role.fromRoleArn}.
:param mutable: Whether the imported role can be modified by attaching policy resources to it. Default: true
"""
self._values = {}
if mutable is not None:
self._values["mutable"] = mutable
@builtins.property
def mutable(self) -> typing.Optional[bool]:
"""Whether the imported role can be modified by attaching policy resources to it.
default
:default: true
stability
:stability: experimental
"""
return self._values.get("mutable")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "FromRoleArnOptions(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(aws_cdk.core.IDependable)
class Grant(metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.Grant"):
"""Result of a grant() operation.
This class is not instantiable by consumers on purpose, so that they will be
required to call the Grant factory functions.
"""
@jsii.member(jsii_name="addToPrincipal")
@builtins.classmethod
def add_to_principal(
cls,
*,
scope: typing.Optional[aws_cdk.core.IConstruct] = None,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
) -> "Grant":
"""Try to grant the given permissions to the given principal.
Absence of a principal leads to a warning, but failing to add
the permissions to a present principal is not an error.
:param scope: Construct to report warnings on in case grant could not be registered. Default: - the construct in which this construct is defined
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
"""
options = GrantOnPrincipalOptions(
scope=scope, actions=actions, grantee=grantee, resource_arns=resource_arns
)
return jsii.sinvoke(cls, "addToPrincipal", [options])
@jsii.member(jsii_name="addToPrincipalAndResource")
@builtins.classmethod
def add_to_principal_and_resource(
cls,
*,
resource: "IResourceWithPolicy",
resource_policy_principal: typing.Optional["IPrincipal"] = None,
resource_self_arns: typing.Optional[typing.List[str]] = None,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
) -> "Grant":
"""Add a grant both on the principal and on the resource.
As long as any principal is given, granting on the principal may fail (in
case of a non-identity principal), but granting on the resource will
never fail.
Statement will be the resource statement.
:param resource: The resource with a resource policy. The statement will always be added to the resource policy.
:param resource_policy_principal: The principal to use in the statement for the resource policy. Default: - the principal of the grantee will be used
:param resource_self_arns: When referring to the resource in a resource policy, use this as ARN. (Depending on the resource type, this needs to be '*' in a resource policy). Default: Same as regular resource ARNs
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
"""
options = GrantOnPrincipalAndResourceOptions(
resource=resource,
resource_policy_principal=resource_policy_principal,
resource_self_arns=resource_self_arns,
actions=actions,
grantee=grantee,
resource_arns=resource_arns,
)
return jsii.sinvoke(cls, "addToPrincipalAndResource", [options])
@jsii.member(jsii_name="addToPrincipalOrResource")
@builtins.classmethod
def add_to_principal_or_resource(
cls,
*,
resource: "IResourceWithPolicy",
resource_self_arns: typing.Optional[typing.List[str]] = None,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
) -> "Grant":
"""Grant the given permissions to the principal.
The permissions will be added to the principal policy primarily, falling
back to the resource policy if necessary. The permissions must be granted
somewhere.
- Trying to grant permissions to a principal that does not admit adding to
the principal policy while not providing a resource with a resource policy
is an error.
- Trying to grant permissions to an absent principal (possible in the
case of imported resources) leads to a warning being added to the
resource construct.
:param resource: The resource with a resource policy. The statement will be added to the resource policy if it couldn't be added to the principal policy.
:param resource_self_arns: When referring to the resource in a resource policy, use this as ARN. (Depending on the resource type, this needs to be '*' in a resource policy). Default: Same as regular resource ARNs
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
"""
options = GrantWithResourceOptions(
resource=resource,
resource_self_arns=resource_self_arns,
actions=actions,
grantee=grantee,
resource_arns=resource_arns,
)
return jsii.sinvoke(cls, "addToPrincipalOrResource", [options])
@jsii.member(jsii_name="drop")
@builtins.classmethod
def drop(cls, grantee: "IGrantable", _intent: str) -> "Grant":
"""Returns a "no-op" ``Grant`` object which represents a "dropped grant".
This can be used for e.g. imported resources where you may not be able to modify
the resource's policy or some underlying policy which you don't know about.
:param grantee: The intended grantee.
:param _intent: The user's intent (will be ignored at the moment).
"""
return jsii.sinvoke(cls, "drop", [grantee, _intent])
@jsii.member(jsii_name="applyBefore")
def apply_before(self, *constructs: aws_cdk.core.IConstruct) -> None:
"""Make sure this grant is applied before the given constructs are deployed.
The same as construct.node.addDependency(grant), but slightly nicer to read.
:param constructs: -
"""
return jsii.invoke(self, "applyBefore", [*constructs])
@jsii.member(jsii_name="assertSuccess")
def assert_success(self) -> None:
"""Throw an error if this grant wasn't successful."""
return jsii.invoke(self, "assertSuccess", [])
@builtins.property
@jsii.member(jsii_name="success")
def success(self) -> bool:
"""Whether the grant operation was successful."""
return jsii.get(self, "success")
@builtins.property
@jsii.member(jsii_name="principalStatement")
def principal_statement(self) -> typing.Optional["PolicyStatement"]:
"""The statement that was added to the principal's policy.
Can be accessed to (e.g.) add additional conditions to the statement.
"""
return jsii.get(self, "principalStatement")
@builtins.property
@jsii.member(jsii_name="resourceStatement")
def resource_statement(self) -> typing.Optional["PolicyStatement"]:
"""The statement that was added to the resource policy.
Can be accessed to (e.g.) add additional conditions to the statement.
"""
return jsii.get(self, "resourceStatement")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.GrantOnPrincipalAndResourceOptions",
jsii_struct_bases=[CommonGrantOptions],
name_mapping={
"actions": "actions",
"grantee": "grantee",
"resource_arns": "resourceArns",
"resource": "resource",
"resource_policy_principal": "resourcePolicyPrincipal",
"resource_self_arns": "resourceSelfArns",
},
)
class GrantOnPrincipalAndResourceOptions(CommonGrantOptions):
def __init__(
self,
*,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
resource: "IResourceWithPolicy",
resource_policy_principal: typing.Optional["IPrincipal"] = None,
resource_self_arns: typing.Optional[typing.List[str]] = None,
) -> None:
"""Options for a grant operation to both identity and resource.
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
:param resource: The resource with a resource policy. The statement will always be added to the resource policy.
:param resource_policy_principal: The principal to use in the statement for the resource policy. Default: - the principal of the grantee will be used
:param resource_self_arns: When referring to the resource in a resource policy, use this as ARN. (Depending on the resource type, this needs to be '*' in a resource policy). Default: Same as regular resource ARNs
stability
:stability: experimental
"""
self._values = {
"actions": actions,
"grantee": grantee,
"resource_arns": resource_arns,
"resource": resource,
}
if resource_policy_principal is not None:
self._values["resource_policy_principal"] = resource_policy_principal
if resource_self_arns is not None:
self._values["resource_self_arns"] = resource_self_arns
@builtins.property
def actions(self) -> typing.List[str]:
"""The actions to grant.
stability
:stability: experimental
"""
return self._values.get("actions")
@builtins.property
def grantee(self) -> "IGrantable":
"""The principal to grant to.
default
:default: if principal is undefined, no work is done.
stability
:stability: experimental
"""
return self._values.get("grantee")
@builtins.property
def resource_arns(self) -> typing.List[str]:
"""The resource ARNs to grant to.
stability
:stability: experimental
"""
return self._values.get("resource_arns")
@builtins.property
def resource(self) -> "IResourceWithPolicy":
"""The resource with a resource policy.
The statement will always be added to the resource policy.
stability
:stability: experimental
"""
return self._values.get("resource")
@builtins.property
def resource_policy_principal(self) -> typing.Optional["IPrincipal"]:
"""The principal to use in the statement for the resource policy.
default
:default: - the principal of the grantee will be used
stability
:stability: experimental
"""
return self._values.get("resource_policy_principal")
@builtins.property
def resource_self_arns(self) -> typing.Optional[typing.List[str]]:
"""When referring to the resource in a resource policy, use this as ARN.
(Depending on the resource type, this needs to be '*' in a resource policy).
default
:default: Same as regular resource ARNs
stability
:stability: experimental
"""
return self._values.get("resource_self_arns")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "GrantOnPrincipalAndResourceOptions(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.GrantOnPrincipalOptions",
jsii_struct_bases=[CommonGrantOptions],
name_mapping={
"actions": "actions",
"grantee": "grantee",
"resource_arns": "resourceArns",
"scope": "scope",
},
)
class GrantOnPrincipalOptions(CommonGrantOptions):
def __init__(
self,
*,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
scope: typing.Optional[aws_cdk.core.IConstruct] = None,
) -> None:
"""Options for a grant operation that only applies to principals.
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
:param scope: Construct to report warnings on in case grant could not be registered. Default: - the construct in which this construct is defined
stability
:stability: experimental
"""
self._values = {
"actions": actions,
"grantee": grantee,
"resource_arns": resource_arns,
}
if scope is not None:
self._values["scope"] = scope
@builtins.property
def actions(self) -> typing.List[str]:
"""The actions to grant.
stability
:stability: experimental
"""
return self._values.get("actions")
@builtins.property
def grantee(self) -> "IGrantable":
"""The principal to grant to.
default
:default: if principal is undefined, no work is done.
stability
:stability: experimental
"""
return self._values.get("grantee")
@builtins.property
def resource_arns(self) -> typing.List[str]:
"""The resource ARNs to grant to.
stability
:stability: experimental
"""
return self._values.get("resource_arns")
@builtins.property
def scope(self) -> typing.Optional[aws_cdk.core.IConstruct]:
"""Construct to report warnings on in case grant could not be registered.
default
:default: - the construct in which this construct is defined
stability
:stability: experimental
"""
return self._values.get("scope")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "GrantOnPrincipalOptions(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.GrantWithResourceOptions",
jsii_struct_bases=[CommonGrantOptions],
name_mapping={
"actions": "actions",
"grantee": "grantee",
"resource_arns": "resourceArns",
"resource": "resource",
"resource_self_arns": "resourceSelfArns",
},
)
class GrantWithResourceOptions(CommonGrantOptions):
def __init__(
self,
*,
actions: typing.List[str],
grantee: "IGrantable",
resource_arns: typing.List[str],
resource: "IResourceWithPolicy",
resource_self_arns: typing.Optional[typing.List[str]] = None,
) -> None:
"""Options for a grant operation.
:param actions: The actions to grant.
:param grantee: The principal to grant to. Default: if principal is undefined, no work is done.
:param resource_arns: The resource ARNs to grant to.
:param resource: The resource with a resource policy. The statement will be added to the resource policy if it couldn't be added to the principal policy.
:param resource_self_arns: When referring to the resource in a resource policy, use this as ARN. (Depending on the resource type, this needs to be '*' in a resource policy). Default: Same as regular resource ARNs
stability
:stability: experimental
"""
self._values = {
"actions": actions,
"grantee": grantee,
"resource_arns": resource_arns,
"resource": resource,
}
if resource_self_arns is not None:
self._values["resource_self_arns"] = resource_self_arns
@builtins.property
def actions(self) -> typing.List[str]:
"""The actions to grant.
stability
:stability: experimental
"""
return self._values.get("actions")
@builtins.property
def grantee(self) -> "IGrantable":
"""The principal to grant to.
default
:default: if principal is undefined, no work is done.
stability
:stability: experimental
"""
return self._values.get("grantee")
@builtins.property
def resource_arns(self) -> typing.List[str]:
"""The resource ARNs to grant to.
stability
:stability: experimental
"""
return self._values.get("resource_arns")
@builtins.property
def resource(self) -> "IResourceWithPolicy":
"""The resource with a resource policy.
The statement will be added to the resource policy if it couldn't be
added to the principal policy.
stability
:stability: experimental
"""
return self._values.get("resource")
@builtins.property
def resource_self_arns(self) -> typing.Optional[typing.List[str]]:
"""When referring to the resource in a resource policy, use this as ARN.
(Depending on the resource type, this needs to be '*' in a resource policy).
default
:default: Same as regular resource ARNs
stability
:stability: experimental
"""
return self._values.get("resource_self_arns")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "GrantWithResourceOptions(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.GroupProps",
jsii_struct_bases=[],
name_mapping={
"group_name": "groupName",
"managed_policies": "managedPolicies",
"path": "path",
},
)
class GroupProps:
def __init__(
self,
*,
group_name: typing.Optional[str] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
path: typing.Optional[str] = None,
) -> None:
"""Properties for defining an IAM group.
:param group_name: A name for the IAM group. For valid values, see the GroupName parameter for the CreateGroup action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the group name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: Generated by CloudFormation (recommended)
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param path: The path to the group. For more information about paths, see `IAM Identifiers <http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html>`_ in the IAM User Guide. Default: /
"""
self._values = {}
if group_name is not None:
self._values["group_name"] = group_name
if managed_policies is not None:
self._values["managed_policies"] = managed_policies
if path is not None:
self._values["path"] = path
@builtins.property
def group_name(self) -> typing.Optional[str]:
"""A name for the IAM group.
For valid values, see the GroupName parameter
for the CreateGroup action in the IAM API Reference. If you don't specify
a name, AWS CloudFormation generates a unique physical ID and uses that
ID for the group name.
If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to
acknowledge your template's capabilities. For more information, see
Acknowledging IAM Resources in AWS CloudFormation Templates.
default
:default: Generated by CloudFormation (recommended)
"""
return self._values.get("group_name")
@builtins.property
def managed_policies(self) -> typing.Optional[typing.List["IManagedPolicy"]]:
"""A list of managed policies associated with this role.
You can add managed policies later using
``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``.
default
:default: - No managed policies.
"""
return self._values.get("managed_policies")
@builtins.property
def path(self) -> typing.Optional[str]:
"""The path to the group.
For more information about paths, see `IAM
Identifiers <http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html>`_
in the IAM User Guide.
default
:default: /
"""
return self._values.get("path")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "GroupProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IGrantable")
class IGrantable(jsii.compat.Protocol):
"""Any object that has an associated principal that a permission can be granted to."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IGrantableProxy
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
...
class _IGrantableProxy:
"""Any object that has an associated principal that a permission can be granted to."""
__jsii_type__ = "@aws-cdk/aws-iam.IGrantable"
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IManagedPolicy")
class IManagedPolicy(jsii.compat.Protocol):
"""A managed policy."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IManagedPolicyProxy
@builtins.property
@jsii.member(jsii_name="managedPolicyArn")
def managed_policy_arn(self) -> str:
"""The ARN of the managed policy.
attribute:
:attribute:: true
"""
...
class _IManagedPolicyProxy:
"""A managed policy."""
__jsii_type__ = "@aws-cdk/aws-iam.IManagedPolicy"
@builtins.property
@jsii.member(jsii_name="managedPolicyArn")
def managed_policy_arn(self) -> str:
"""The ARN of the managed policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "managedPolicyArn")
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IOpenIdConnectProvider")
class IOpenIdConnectProvider(aws_cdk.core.IResource, jsii.compat.Protocol):
"""Represents an IAM OpenID Connect provider.
stability
:stability: experimental
"""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IOpenIdConnectProviderProxy
@builtins.property
@jsii.member(jsii_name="openIdConnectProviderArn")
def open_id_connect_provider_arn(self) -> str:
"""The Amazon Resource Name (ARN) of the IAM OpenID Connect provider.
stability
:stability: experimental
"""
...
class _IOpenIdConnectProviderProxy(jsii.proxy_for(aws_cdk.core.IResource)):
"""Represents an IAM OpenID Connect provider.
stability
:stability: experimental
"""
__jsii_type__ = "@aws-cdk/aws-iam.IOpenIdConnectProvider"
@builtins.property
@jsii.member(jsii_name="openIdConnectProviderArn")
def open_id_connect_provider_arn(self) -> str:
"""The Amazon Resource Name (ARN) of the IAM OpenID Connect provider.
stability
:stability: experimental
"""
return jsii.get(self, "openIdConnectProviderArn")
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IPolicy")
class IPolicy(aws_cdk.core.IResource, jsii.compat.Protocol):
"""Represents an IAM Policy.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage.html
"""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IPolicyProxy
@builtins.property
@jsii.member(jsii_name="policyName")
def policy_name(self) -> str:
"""The name of this policy.
attribute:
:attribute:: true
"""
...
class _IPolicyProxy(jsii.proxy_for(aws_cdk.core.IResource)):
"""Represents an IAM Policy.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage.html
"""
__jsii_type__ = "@aws-cdk/aws-iam.IPolicy"
@builtins.property
@jsii.member(jsii_name="policyName")
def policy_name(self) -> str:
"""The name of this policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "policyName")
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IPrincipal")
class IPrincipal(IGrantable, jsii.compat.Protocol):
"""Represents a logical IAM principal.
An IPrincipal describes a logical entity that can perform AWS API calls
against sets of resources, optionally under certain conditions.
Examples of simple principals are IAM objects that you create, such
as Users or Roles.
An example of a more complex principals is a ``ServicePrincipal`` (such as
``new ServicePrincipal("sns.amazonaws.com")``, which represents the Simple
Notifications Service).
A single logical Principal may also map to a set of physical principals.
For example, ``new OrganizationPrincipal('o-1234')`` represents all
identities that are part of the given AWS Organization.
"""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IPrincipalProxy
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
...
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
...
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
return
:return:
true if the statement was added, false if the principal in
question does not have a policy document to add the statement to.
deprecated
:deprecated: Use ``addToPrincipalPolicy`` instead.
stability
:stability: deprecated
"""
...
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Add to the policy of this principal.
:param statement: -
"""
...
class _IPrincipalProxy(jsii.proxy_for(IGrantable)):
"""Represents a logical IAM principal.
An IPrincipal describes a logical entity that can perform AWS API calls
against sets of resources, optionally under certain conditions.
Examples of simple principals are IAM objects that you create, such
as Users or Roles.
An example of a more complex principals is a ``ServicePrincipal`` (such as
``new ServicePrincipal("sns.amazonaws.com")``, which represents the Simple
Notifications Service).
A single logical Principal may also map to a set of physical principals.
For example, ``new OrganizationPrincipal('o-1234')`` represents all
identities that are part of the given AWS Organization.
"""
__jsii_type__ = "@aws-cdk/aws-iam.IPrincipal"
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
return
:return:
true if the statement was added, false if the principal in
question does not have a policy document to add the statement to.
deprecated
:deprecated: Use ``addToPrincipalPolicy`` instead.
stability
:stability: deprecated
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IResourceWithPolicy")
class IResourceWithPolicy(aws_cdk.core.IConstruct, jsii.compat.Protocol):
"""A resource with a resource policy that can be added to."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IResourceWithPolicyProxy
@jsii.member(jsii_name="addToResourcePolicy")
def add_to_resource_policy(
self, statement: "PolicyStatement"
) -> "AddToResourcePolicyResult":
"""Add a statement to the resource's resource policy.
:param statement: -
"""
...
class _IResourceWithPolicyProxy(jsii.proxy_for(aws_cdk.core.IConstruct)):
"""A resource with a resource policy that can be added to."""
__jsii_type__ = "@aws-cdk/aws-iam.IResourceWithPolicy"
@jsii.member(jsii_name="addToResourcePolicy")
def add_to_resource_policy(
self, statement: "PolicyStatement"
) -> "AddToResourcePolicyResult":
"""Add a statement to the resource's resource policy.
:param statement: -
"""
return jsii.invoke(self, "addToResourcePolicy", [statement])
@jsii.implements(IManagedPolicy)
class ManagedPolicy(
aws_cdk.core.Resource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.ManagedPolicy",
):
"""Managed policy."""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
description: typing.Optional[str] = None,
document: typing.Optional["PolicyDocument"] = None,
groups: typing.Optional[typing.List["IGroup"]] = None,
managed_policy_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
roles: typing.Optional[typing.List["IRole"]] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
users: typing.Optional[typing.List["IUser"]] = None,
) -> None:
"""
:param scope: -
:param id: -
:param description: A description of the managed policy. Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables." The policy description is immutable. After a value is assigned, it cannot be changed. Default: - empty
:param document: Initial PolicyDocument to use for this ManagedPolicy. If omited, any ``PolicyStatement`` provided in the ``statements`` property will be applied against the empty default ``PolicyDocument``. Default: - An empty policy.
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
:param managed_policy_name: The name of the managed policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - A name is automatically generated.
:param path: The path for the policy. This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters. For more information about paths, see IAM Identifiers in the IAM User Guide. Default: - "/"
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
:param statements: Initial set of permissions to add to this policy document. You can also use ``addPermission(statement)`` to add permissions later. Default: - No statements.
:param users: Users to attach this policy to. You can also use ``attachToUser(user)`` to attach this policy to a user. Default: - No users.
"""
props = ManagedPolicyProps(
description=description,
document=document,
groups=groups,
managed_policy_name=managed_policy_name,
path=path,
roles=roles,
statements=statements,
users=users,
)
jsii.create(ManagedPolicy, self, [scope, id, props])
@jsii.member(jsii_name="fromAwsManagedPolicyName")
@builtins.classmethod
def from_aws_managed_policy_name(cls, managed_policy_name: str) -> "IManagedPolicy":
"""Import a managed policy from one of the policies that AWS manages.
For this managed policy, you only need to know the name to be able to use it.
Some managed policy names start with "service-role/", some start with
"job-function/", and some don't start with anything. Do include the
prefix when constructing this object.
:param managed_policy_name: -
"""
return jsii.sinvoke(cls, "fromAwsManagedPolicyName", [managed_policy_name])
@jsii.member(jsii_name="fromManagedPolicyArn")
@builtins.classmethod
def from_managed_policy_arn(
cls, scope: aws_cdk.core.Construct, id: str, managed_policy_arn: str
) -> "IManagedPolicy":
"""Import an external managed policy by ARN.
For this managed policy, you only need to know the ARN to be able to use it.
This can be useful if you got the ARN from a CloudFormation Export.
If the imported Managed Policy ARN is a Token (such as a
``CfnParameter.valueAsString`` or a ``Fn.importValue()``) *and* the referenced
managed policy has a ``path`` (like ``arn:...:policy/AdminPolicy/AdminAllow``), the
``managedPolicyName`` property will not resolve to the correct value. Instead it
will resolve to the first path component. We unfortunately cannot express
the correct calculation of the full path name as a CloudFormation
expression. In this scenario the Managed Policy ARN should be supplied without the
``path`` in order to resolve the correct managed policy resource.
:param scope: construct scope.
:param id: construct id.
:param managed_policy_arn: the ARN of the managed policy to import.
"""
return jsii.sinvoke(
cls, "fromManagedPolicyArn", [scope, id, managed_policy_arn]
)
@jsii.member(jsii_name="fromManagedPolicyName")
@builtins.classmethod
def from_managed_policy_name(
cls, scope: aws_cdk.core.Construct, id: str, managed_policy_name: str
) -> "IManagedPolicy":
"""Import a customer managed policy from the managedPolicyName.
For this managed policy, you only need to know the name to be able to use it.
:param scope: -
:param id: -
:param managed_policy_name: -
"""
return jsii.sinvoke(
cls, "fromManagedPolicyName", [scope, id, managed_policy_name]
)
@jsii.member(jsii_name="addStatements")
def add_statements(self, *statement: "PolicyStatement") -> None:
"""Adds a statement to the policy document.
:param statement: -
"""
return jsii.invoke(self, "addStatements", [*statement])
@jsii.member(jsii_name="attachToGroup")
def attach_to_group(self, group: "IGroup") -> None:
"""Attaches this policy to a group.
:param group: -
"""
return jsii.invoke(self, "attachToGroup", [group])
@jsii.member(jsii_name="attachToRole")
def attach_to_role(self, role: "IRole") -> None:
"""Attaches this policy to a role.
:param role: -
"""
return jsii.invoke(self, "attachToRole", [role])
@jsii.member(jsii_name="attachToUser")
def attach_to_user(self, user: "IUser") -> None:
"""Attaches this policy to a user.
:param user: -
"""
return jsii.invoke(self, "attachToUser", [user])
@jsii.member(jsii_name="validate")
def _validate(self) -> typing.List[str]:
"""Validate the current construct.
This method can be implemented by derived constructs in order to perform
validation logic. It is called on all constructs before synthesis.
"""
return jsii.invoke(self, "validate", [])
@builtins.property
@jsii.member(jsii_name="description")
def description(self) -> str:
"""The description of this policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "description")
@builtins.property
@jsii.member(jsii_name="document")
def document(self) -> "PolicyDocument":
"""The policy document."""
return jsii.get(self, "document")
@builtins.property
@jsii.member(jsii_name="managedPolicyArn")
def managed_policy_arn(self) -> str:
"""Returns the ARN of this managed policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "managedPolicyArn")
@builtins.property
@jsii.member(jsii_name="managedPolicyName")
def managed_policy_name(self) -> str:
"""The name of this policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "managedPolicyName")
@builtins.property
@jsii.member(jsii_name="path")
def path(self) -> str:
"""The path of this policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "path")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.ManagedPolicyProps",
jsii_struct_bases=[],
name_mapping={
"description": "description",
"document": "document",
"groups": "groups",
"managed_policy_name": "managedPolicyName",
"path": "path",
"roles": "roles",
"statements": "statements",
"users": "users",
},
)
class ManagedPolicyProps:
def __init__(
self,
*,
description: typing.Optional[str] = None,
document: typing.Optional["PolicyDocument"] = None,
groups: typing.Optional[typing.List["IGroup"]] = None,
managed_policy_name: typing.Optional[str] = None,
path: typing.Optional[str] = None,
roles: typing.Optional[typing.List["IRole"]] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
users: typing.Optional[typing.List["IUser"]] = None,
) -> None:
"""Properties for defining an IAM managed policy.
:param description: A description of the managed policy. Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables." The policy description is immutable. After a value is assigned, it cannot be changed. Default: - empty
:param document: Initial PolicyDocument to use for this ManagedPolicy. If omited, any ``PolicyStatement`` provided in the ``statements`` property will be applied against the empty default ``PolicyDocument``. Default: - An empty policy.
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
:param managed_policy_name: The name of the managed policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - A name is automatically generated.
:param path: The path for the policy. This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters. For more information about paths, see IAM Identifiers in the IAM User Guide. Default: - "/"
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
:param statements: Initial set of permissions to add to this policy document. You can also use ``addPermission(statement)`` to add permissions later. Default: - No statements.
:param users: Users to attach this policy to. You can also use ``attachToUser(user)`` to attach this policy to a user. Default: - No users.
"""
self._values = {}
if description is not None:
self._values["description"] = description
if document is not None:
self._values["document"] = document
if groups is not None:
self._values["groups"] = groups
if managed_policy_name is not None:
self._values["managed_policy_name"] = managed_policy_name
if path is not None:
self._values["path"] = path
if roles is not None:
self._values["roles"] = roles
if statements is not None:
self._values["statements"] = statements
if users is not None:
self._values["users"] = users
@builtins.property
def description(self) -> typing.Optional[str]:
"""A description of the managed policy.
Typically used to store information about the
permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
default
:default: - empty
"""
return self._values.get("description")
@builtins.property
def document(self) -> typing.Optional["PolicyDocument"]:
"""Initial PolicyDocument to use for this ManagedPolicy.
If omited, any
``PolicyStatement`` provided in the ``statements`` property will be applied
against the empty default ``PolicyDocument``.
default
:default: - An empty policy.
"""
return self._values.get("document")
@builtins.property
def groups(self) -> typing.Optional[typing.List["IGroup"]]:
"""Groups to attach this policy to.
You can also use ``attachToGroup(group)`` to attach this policy to a group.
default
:default: - No groups.
"""
return self._values.get("groups")
@builtins.property
def managed_policy_name(self) -> typing.Optional[str]:
"""The name of the managed policy.
If you specify multiple policies for an entity,
specify unique names. For example, if you specify a list of policies for
an IAM role, each policy must have a unique name.
default
:default: - A name is automatically generated.
"""
return self._values.get("managed_policy_name")
@builtins.property
def path(self) -> typing.Optional[str]:
"""The path for the policy.
This parameter allows (through its regex pattern) a string of characters
consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes.
In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F),
including most punctuation characters, digits, and upper and lowercased letters.
For more information about paths, see IAM Identifiers in the IAM User Guide.
default
:default: - "/"
"""
return self._values.get("path")
@builtins.property
def roles(self) -> typing.Optional[typing.List["IRole"]]:
"""Roles to attach this policy to.
You can also use ``attachToRole(role)`` to attach this policy to a role.
default
:default: - No roles.
"""
return self._values.get("roles")
@builtins.property
def statements(self) -> typing.Optional[typing.List["PolicyStatement"]]:
"""Initial set of permissions to add to this policy document.
You can also use ``addPermission(statement)`` to add permissions later.
default
:default: - No statements.
"""
return self._values.get("statements")
@builtins.property
def users(self) -> typing.Optional[typing.List["IUser"]]:
"""Users to attach this policy to.
You can also use ``attachToUser(user)`` to attach this policy to a user.
default
:default: - No users.
"""
return self._values.get("users")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "ManagedPolicyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(IOpenIdConnectProvider)
class OpenIdConnectProvider(
aws_cdk.core.Construct,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.OpenIdConnectProvider",
):
"""IAM OIDC identity providers are entities in IAM that describe an external identity provider (IdP) service that supports the OpenID Connect (OIDC) standard, such as Google or Salesforce.
You use an IAM OIDC identity provider
when you want to establish trust between an OIDC-compatible IdP and your AWS
account. This is useful when creating a mobile app or web application that
requires access to AWS resources, but you don't want to create custom sign-in
code or manage your own user identities.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html
stability
:stability: experimental
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
url: str,
client_ids: typing.Optional[typing.List[str]] = None,
thumbprints: typing.Optional[typing.List[str]] = None,
) -> None:
"""Defines an OpenID Connect provider.
:param scope: The definition scope.
:param id: Construct ID.
:param url: The URL of the identity provider. The URL must begin with https:// and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a hostname, like https://server.example.org or https://example.com. You cannot register the same provider multiple times in a single AWS account. If you try to submit a URL that has already been used for an OpenID Connect provider in the AWS account, you will get an error.
:param client_ids: A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) You can register multiple client IDs with the same provider. For example, you might have multiple applications that use the same OIDC provider. You cannot register more than 100 client IDs with a single IAM OIDC provider. Client IDs are up to 255 characters long. Default: - no clients are allowed
:param thumbprints: A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificates. Typically this list includes only one entry. However, IAM lets you have up to five thumbprints for an OIDC provider. This lets you maintain multiple thumbprints if the identity provider is rotating certificates. The server certificate thumbprint is the hex-encoded SHA-1 hash value of the X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string. You must provide at least one thumbprint when creating an IAM OIDC provider. For example, assume that the OIDC provider is server.example.com and the provider stores its keys at https://keys.server.example.com/openid-connect. In that case, the thumbprint string would be the hex-encoded SHA-1 hash value of the certificate used by https://keys.server.example.com. Default: - If no thumbprints are specified (an empty array or ``undefined``), the thumbprint of the root certificate authority will be obtained from the provider's server as described in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html
stability
:stability: experimental
"""
props = OpenIdConnectProviderProps(
url=url, client_ids=client_ids, thumbprints=thumbprints
)
jsii.create(OpenIdConnectProvider, self, [scope, id, props])
@jsii.member(jsii_name="fromOpenIdConnectProviderArn")
@builtins.classmethod
def from_open_id_connect_provider_arn(
cls, scope: aws_cdk.core.Construct, id: str, open_id_connect_provider_arn: str
) -> "IOpenIdConnectProvider":
"""Imports an Open ID connect provider from an ARN.
:param scope: The definition scope.
:param id: ID of the construct.
:param open_id_connect_provider_arn: the ARN to import.
stability
:stability: experimental
"""
return jsii.sinvoke(
cls,
"fromOpenIdConnectProviderArn",
[scope, id, open_id_connect_provider_arn],
)
@builtins.property
@jsii.member(jsii_name="openIdConnectProviderArn")
def open_id_connect_provider_arn(self) -> str:
"""The Amazon Resource Name (ARN) of the IAM OpenID Connect provider.
stability
:stability: experimental
"""
return jsii.get(self, "openIdConnectProviderArn")
@builtins.property
@jsii.member(jsii_name="stack")
def stack(self) -> aws_cdk.core.Stack:
"""The stack in which this resource is defined.
stability
:stability: experimental
"""
return jsii.get(self, "stack")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.OpenIdConnectProviderProps",
jsii_struct_bases=[],
name_mapping={
"url": "url",
"client_ids": "clientIds",
"thumbprints": "thumbprints",
},
)
class OpenIdConnectProviderProps:
def __init__(
self,
*,
url: str,
client_ids: typing.Optional[typing.List[str]] = None,
thumbprints: typing.Optional[typing.List[str]] = None,
) -> None:
"""Initialization properties for ``OpenIdConnectProvider``.
:param url: The URL of the identity provider. The URL must begin with https:// and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a hostname, like https://server.example.org or https://example.com. You cannot register the same provider multiple times in a single AWS account. If you try to submit a URL that has already been used for an OpenID Connect provider in the AWS account, you will get an error.
:param client_ids: A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) You can register multiple client IDs with the same provider. For example, you might have multiple applications that use the same OIDC provider. You cannot register more than 100 client IDs with a single IAM OIDC provider. Client IDs are up to 255 characters long. Default: - no clients are allowed
:param thumbprints: A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificates. Typically this list includes only one entry. However, IAM lets you have up to five thumbprints for an OIDC provider. This lets you maintain multiple thumbprints if the identity provider is rotating certificates. The server certificate thumbprint is the hex-encoded SHA-1 hash value of the X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string. You must provide at least one thumbprint when creating an IAM OIDC provider. For example, assume that the OIDC provider is server.example.com and the provider stores its keys at https://keys.server.example.com/openid-connect. In that case, the thumbprint string would be the hex-encoded SHA-1 hash value of the certificate used by https://keys.server.example.com. Default: - If no thumbprints are specified (an empty array or ``undefined``), the thumbprint of the root certificate authority will be obtained from the provider's server as described in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html
stability
:stability: experimental
"""
self._values = {
"url": url,
}
if client_ids is not None:
self._values["client_ids"] = client_ids
if thumbprints is not None:
self._values["thumbprints"] = thumbprints
@builtins.property
def url(self) -> str:
"""The URL of the identity provider.
The URL must begin with https:// and
should correspond to the iss claim in the provider's OpenID Connect ID
tokens. Per the OIDC standard, path components are allowed but query
parameters are not. Typically the URL consists of only a hostname, like
https://server.example.org or https://example.com.
You cannot register the same provider multiple times in a single AWS
account. If you try to submit a URL that has already been used for an
OpenID Connect provider in the AWS account, you will get an error.
stability
:stability: experimental
"""
return self._values.get("url")
@builtins.property
def client_ids(self) -> typing.Optional[typing.List[str]]:
"""A list of client IDs (also known as audiences).
When a mobile or web app
registers with an OpenID Connect provider, they establish a value that
identifies the application. (This is the value that's sent as the client_id
parameter on OAuth requests.)
You can register multiple client IDs with the same provider. For example,
you might have multiple applications that use the same OIDC provider. You
cannot register more than 100 client IDs with a single IAM OIDC provider.
Client IDs are up to 255 characters long.
default
:default: - no clients are allowed
stability
:stability: experimental
"""
return self._values.get("client_ids")
@builtins.property
def thumbprints(self) -> typing.Optional[typing.List[str]]:
"""A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificates.
Typically this list includes only one entry. However, IAM lets you have up
to five thumbprints for an OIDC provider. This lets you maintain multiple
thumbprints if the identity provider is rotating certificates.
The server certificate thumbprint is the hex-encoded SHA-1 hash value of
the X.509 certificate used by the domain where the OpenID Connect provider
makes its keys available. It is always a 40-character string.
You must provide at least one thumbprint when creating an IAM OIDC
provider. For example, assume that the OIDC provider is server.example.com
and the provider stores its keys at
https://keys.server.example.com/openid-connect. In that case, the
thumbprint string would be the hex-encoded SHA-1 hash value of the
certificate used by https://keys.server.example.com.
default
:default:
- If no thumbprints are specified (an empty array or ``undefined``),
the thumbprint of the root certificate authority will be obtained from the
provider's server as described in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html
stability
:stability: experimental
"""
return self._values.get("thumbprints")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "OpenIdConnectProviderProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(IPolicy)
class Policy(
aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.Policy"
):
"""The AWS::IAM::Policy resource associates an IAM policy with IAM users, roles, or groups.
For more information about IAM policies, see `Overview of IAM
Policies <http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html>`_
in the IAM User Guide guide.
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
force: typing.Optional[bool] = None,
groups: typing.Optional[typing.List["IGroup"]] = None,
policy_name: typing.Optional[str] = None,
roles: typing.Optional[typing.List["IRole"]] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
users: typing.Optional[typing.List["IUser"]] = None,
) -> None:
"""
:param scope: -
:param id: -
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it, you can se this to ``true``. Default: false
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
:param policy_name: The name of the policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - Uses the logical ID of the policy resource, which is ensured to be unique within the stack.
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
:param statements: Initial set of permissions to add to this policy document. You can also use ``addStatements(...statement)`` to add permissions later. Default: - No statements.
:param users: Users to attach this policy to. You can also use ``attachToUser(user)`` to attach this policy to a user. Default: - No users.
"""
props = PolicyProps(
force=force,
groups=groups,
policy_name=policy_name,
roles=roles,
statements=statements,
users=users,
)
jsii.create(Policy, self, [scope, id, props])
@jsii.member(jsii_name="fromPolicyName")
@builtins.classmethod
def from_policy_name(
cls, scope: aws_cdk.core.Construct, id: str, policy_name: str
) -> "IPolicy":
"""Import a policy in this app based on its name.
:param scope: -
:param id: -
:param policy_name: -
"""
return jsii.sinvoke(cls, "fromPolicyName", [scope, id, policy_name])
@jsii.member(jsii_name="addStatements")
def add_statements(self, *statement: "PolicyStatement") -> None:
"""Adds a statement to the policy document.
:param statement: -
"""
return jsii.invoke(self, "addStatements", [*statement])
@jsii.member(jsii_name="attachToGroup")
def attach_to_group(self, group: "IGroup") -> None:
"""Attaches this policy to a group.
:param group: -
"""
return jsii.invoke(self, "attachToGroup", [group])
@jsii.member(jsii_name="attachToRole")
def attach_to_role(self, role: "IRole") -> None:
"""Attaches this policy to a role.
:param role: -
"""
return jsii.invoke(self, "attachToRole", [role])
@jsii.member(jsii_name="attachToUser")
def attach_to_user(self, user: "IUser") -> None:
"""Attaches this policy to a user.
:param user: -
"""
return jsii.invoke(self, "attachToUser", [user])
@jsii.member(jsii_name="prepare")
def _prepare(self) -> None:
"""Perform final modifications before synthesis.
This method can be implemented by derived constructs in order to perform
final changes before synthesis. prepare() will be called after child
constructs have been prepared.
This is an advanced framework feature. Only use this if you
understand the implications.
"""
return jsii.invoke(self, "prepare", [])
@jsii.member(jsii_name="validate")
def _validate(self) -> typing.List[str]:
"""Validate the current construct.
This method can be implemented by derived constructs in order to perform
validation logic. It is called on all constructs before synthesis.
"""
return jsii.invoke(self, "validate", [])
@builtins.property
@jsii.member(jsii_name="document")
def document(self) -> "PolicyDocument":
"""The policy document."""
return jsii.get(self, "document")
@builtins.property
@jsii.member(jsii_name="policyName")
def policy_name(self) -> str:
"""The name of this policy.
attribute:
:attribute:: true
"""
return jsii.get(self, "policyName")
@jsii.implements(aws_cdk.core.IResolvable)
class PolicyDocument(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.PolicyDocument"
):
"""A PolicyDocument is a collection of statements."""
def __init__(
self,
*,
assign_sids: typing.Optional[bool] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
) -> None:
"""
:param assign_sids: Automatically assign Statement Ids to all statements. Default: false
:param statements: Initial statements to add to the policy document. Default: - No statements
"""
props = PolicyDocumentProps(assign_sids=assign_sids, statements=statements)
jsii.create(PolicyDocument, self, [props])
@jsii.member(jsii_name="fromJson")
@builtins.classmethod
def from_json(cls, obj: typing.Any) -> "PolicyDocument":
"""Creates a new PolicyDocument based on the object provided.
This will accept an object created from the ``.toJSON()`` call
:param obj: the PolicyDocument in object form.
"""
return jsii.sinvoke(cls, "fromJson", [obj])
@jsii.member(jsii_name="addStatements")
def add_statements(self, *statement: "PolicyStatement") -> None:
"""Adds a statement to the policy document.
:param statement: the statement to add.
"""
return jsii.invoke(self, "addStatements", [*statement])
@jsii.member(jsii_name="resolve")
def resolve(self, context: aws_cdk.core.IResolveContext) -> typing.Any:
"""Produce the Token's value at resolution time.
:param context: -
"""
return jsii.invoke(self, "resolve", [context])
@jsii.member(jsii_name="toJSON")
def to_json(self) -> typing.Any:
"""JSON-ify the document.
Used when JSON.stringify() is called
"""
return jsii.invoke(self, "toJSON", [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Encode the policy document as a string."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="creationStack")
def creation_stack(self) -> typing.List[str]:
"""The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
"""
return jsii.get(self, "creationStack")
@builtins.property
@jsii.member(jsii_name="isEmpty")
def is_empty(self) -> bool:
"""Whether the policy document contains any statements."""
return jsii.get(self, "isEmpty")
@builtins.property
@jsii.member(jsii_name="statementCount")
def statement_count(self) -> jsii.Number:
"""The number of statements already added to this policy.
Can be used, for example, to generate unique "sid"s within the policy.
"""
return jsii.get(self, "statementCount")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.PolicyDocumentProps",
jsii_struct_bases=[],
name_mapping={"assign_sids": "assignSids", "statements": "statements"},
)
class PolicyDocumentProps:
def __init__(
self,
*,
assign_sids: typing.Optional[bool] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
) -> None:
"""Properties for a new PolicyDocument.
:param assign_sids: Automatically assign Statement Ids to all statements. Default: false
:param statements: Initial statements to add to the policy document. Default: - No statements
"""
self._values = {}
if assign_sids is not None:
self._values["assign_sids"] = assign_sids
if statements is not None:
self._values["statements"] = statements
@builtins.property
def assign_sids(self) -> typing.Optional[bool]:
"""Automatically assign Statement Ids to all statements.
default
:default: false
"""
return self._values.get("assign_sids")
@builtins.property
def statements(self) -> typing.Optional[typing.List["PolicyStatement"]]:
"""Initial statements to add to the policy document.
default
:default: - No statements
"""
return self._values.get("statements")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyDocumentProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.PolicyProps",
jsii_struct_bases=[],
name_mapping={
"force": "force",
"groups": "groups",
"policy_name": "policyName",
"roles": "roles",
"statements": "statements",
"users": "users",
},
)
class PolicyProps:
def __init__(
self,
*,
force: typing.Optional[bool] = None,
groups: typing.Optional[typing.List["IGroup"]] = None,
policy_name: typing.Optional[str] = None,
roles: typing.Optional[typing.List["IRole"]] = None,
statements: typing.Optional[typing.List["PolicyStatement"]] = None,
users: typing.Optional[typing.List["IUser"]] = None,
) -> None:
"""Properties for defining an IAM inline policy document.
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it, you can se this to ``true``. Default: false
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
:param policy_name: The name of the policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - Uses the logical ID of the policy resource, which is ensured to be unique within the stack.
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
:param statements: Initial set of permissions to add to this policy document. You can also use ``addStatements(...statement)`` to add permissions later. Default: - No statements.
:param users: Users to attach this policy to. You can also use ``attachToUser(user)`` to attach this policy to a user. Default: - No users.
"""
self._values = {}
if force is not None:
self._values["force"] = force
if groups is not None:
self._values["groups"] = groups
if policy_name is not None:
self._values["policy_name"] = policy_name
if roles is not None:
self._values["roles"] = roles
if statements is not None:
self._values["statements"] = statements
if users is not None:
self._values["users"] = users
@builtins.property
def force(self) -> typing.Optional[bool]:
"""Force creation of an ``AWS::IAM::Policy``.
Unless set to ``true``, this ``Policy`` construct will not materialize to an
``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect
(for example, if it remains unattached to an IAM identity or if it has no
statements). This is generally desired behavior, since it prevents
creating invalid--and hence undeployable--CloudFormation templates.
In cases where you know the policy must be created and it is actually
an error if no statements have been added to it, you can se this to ``true``.
default
:default: false
"""
return self._values.get("force")
@builtins.property
def groups(self) -> typing.Optional[typing.List["IGroup"]]:
"""Groups to attach this policy to.
You can also use ``attachToGroup(group)`` to attach this policy to a group.
default
:default: - No groups.
"""
return self._values.get("groups")
@builtins.property
def policy_name(self) -> typing.Optional[str]:
"""The name of the policy.
If you specify multiple policies for an entity,
specify unique names. For example, if you specify a list of policies for
an IAM role, each policy must have a unique name.
default
:default:
- Uses the logical ID of the policy resource, which is ensured
to be unique within the stack.
"""
return self._values.get("policy_name")
@builtins.property
def roles(self) -> typing.Optional[typing.List["IRole"]]:
"""Roles to attach this policy to.
You can also use ``attachToRole(role)`` to attach this policy to a role.
default
:default: - No roles.
"""
return self._values.get("roles")
@builtins.property
def statements(self) -> typing.Optional[typing.List["PolicyStatement"]]:
"""Initial set of permissions to add to this policy document.
You can also use ``addStatements(...statement)`` to add permissions later.
default
:default: - No statements.
"""
return self._values.get("statements")
@builtins.property
def users(self) -> typing.Optional[typing.List["IUser"]]:
"""Users to attach this policy to.
You can also use ``attachToUser(user)`` to attach this policy to a user.
default
:default: - No users.
"""
return self._values.get("users")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class PolicyStatement(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.PolicyStatement"
):
"""Represents a statement in an IAM policy document."""
def __init__(
self,
*,
actions: typing.Optional[typing.List[str]] = None,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
effect: typing.Optional["Effect"] = None,
not_actions: typing.Optional[typing.List[str]] = None,
not_principals: typing.Optional[typing.List["IPrincipal"]] = None,
not_resources: typing.Optional[typing.List[str]] = None,
principals: typing.Optional[typing.List["IPrincipal"]] = None,
resources: typing.Optional[typing.List[str]] = None,
sid: typing.Optional[str] = None,
) -> None:
"""
:param actions: List of actions to add to the statement. Default: - no actions
:param conditions: Conditions to add to the statement. Default: - no condition
:param effect: Whether to allow or deny the actions in this statement. Default: Effect.ALLOW
:param not_actions: List of not actions to add to the statement. Default: - no not-actions
:param not_principals: List of not principals to add to the statement. Default: - no not principals
:param not_resources: NotResource ARNs to add to the statement. Default: - no not-resources
:param principals: List of principals to add to the statement. Default: - no principals
:param resources: Resource ARNs to add to the statement. Default: - no resources
:param sid: The Sid (statement ID) is an optional identifier that you provide for the policy statement. You can assign a Sid value to each statement in a statement array. In services that let you specify an ID element, such as SQS and SNS, the Sid value is just a sub-ID of the policy document's ID. In IAM, the Sid value must be unique within a JSON policy. Default: - no sid
"""
props = PolicyStatementProps(
actions=actions,
conditions=conditions,
effect=effect,
not_actions=not_actions,
not_principals=not_principals,
not_resources=not_resources,
principals=principals,
resources=resources,
sid=sid,
)
jsii.create(PolicyStatement, self, [props])
@jsii.member(jsii_name="fromJson")
@builtins.classmethod
def from_json(cls, obj: typing.Any) -> "PolicyStatement":
"""Creates a new PolicyStatement based on the object provided.
This will accept an object created from the ``.toJSON()`` call
:param obj: the PolicyStatement in object form.
"""
return jsii.sinvoke(cls, "fromJson", [obj])
@jsii.member(jsii_name="addAccountCondition")
def add_account_condition(self, account_id: str) -> None:
"""Add a condition that limits to a given account.
:param account_id: -
"""
return jsii.invoke(self, "addAccountCondition", [account_id])
@jsii.member(jsii_name="addAccountRootPrincipal")
def add_account_root_principal(self) -> None:
"""Adds an AWS account root user principal to this policy statement."""
return jsii.invoke(self, "addAccountRootPrincipal", [])
@jsii.member(jsii_name="addActions")
def add_actions(self, *actions: str) -> None:
"""Specify allowed actions into the "Action" section of the policy statement.
:param actions: actions that will be allowed.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_action.html
"""
return jsii.invoke(self, "addActions", [*actions])
@jsii.member(jsii_name="addAllResources")
def add_all_resources(self) -> None:
"""Adds a ``"*"`` resource to this statement."""
return jsii.invoke(self, "addAllResources", [])
@jsii.member(jsii_name="addAnyPrincipal")
def add_any_principal(self) -> None:
"""Adds all identities in all accounts ("*") to this policy statement."""
return jsii.invoke(self, "addAnyPrincipal", [])
@jsii.member(jsii_name="addArnPrincipal")
def add_arn_principal(self, arn: str) -> None:
"""Specify a principal using the ARN identifier of the principal.
You cannot specify IAM groups and instance profiles as principals.
:param arn: ARN identifier of AWS account, IAM user, or IAM role (i.e. arn:aws:iam::123456789012:user/user-name).
"""
return jsii.invoke(self, "addArnPrincipal", [arn])
@jsii.member(jsii_name="addAwsAccountPrincipal")
def add_aws_account_principal(self, account_id: str) -> None:
"""Specify AWS account ID as the principal entity to the "Principal" section of a policy statement.
:param account_id: -
"""
return jsii.invoke(self, "addAwsAccountPrincipal", [account_id])
@jsii.member(jsii_name="addCanonicalUserPrincipal")
def add_canonical_user_principal(self, canonical_user_id: str) -> None:
"""Adds a canonical user ID principal to this policy document.
:param canonical_user_id: unique identifier assigned by AWS for every account.
"""
return jsii.invoke(self, "addCanonicalUserPrincipal", [canonical_user_id])
@jsii.member(jsii_name="addCondition")
def add_condition(self, key: str, value: typing.Any) -> None:
"""Add a condition to the Policy.
:param key: -
:param value: -
"""
return jsii.invoke(self, "addCondition", [key, value])
@jsii.member(jsii_name="addConditions")
def add_conditions(self, conditions: typing.Mapping[str, typing.Any]) -> None:
"""Add multiple conditions to the Policy.
:param conditions: -
"""
return jsii.invoke(self, "addConditions", [conditions])
@jsii.member(jsii_name="addFederatedPrincipal")
def add_federated_principal(
self, federated: typing.Any, conditions: typing.Mapping[str, typing.Any]
) -> None:
"""Adds a federated identity provider such as Amazon Cognito to this policy statement.
:param federated: federated identity provider (i.e. 'cognito-identity.amazonaws.com').
:param conditions: The conditions under which the policy is in effect. See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
"""
return jsii.invoke(self, "addFederatedPrincipal", [federated, conditions])
@jsii.member(jsii_name="addNotActions")
def add_not_actions(self, *not_actions: str) -> None:
"""Explicitly allow all actions except the specified list of actions into the "NotAction" section of the policy document.
:param not_actions: actions that will be denied. All other actions will be permitted.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notaction.html
"""
return jsii.invoke(self, "addNotActions", [*not_actions])
@jsii.member(jsii_name="addNotPrincipals")
def add_not_principals(self, *not_principals: "IPrincipal") -> None:
"""Specify principals that is not allowed or denied access to the "NotPrincipal" section of a policy statement.
:param not_principals: IAM principals that will be denied access.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notprincipal.html
"""
return jsii.invoke(self, "addNotPrincipals", [*not_principals])
@jsii.member(jsii_name="addNotResources")
def add_not_resources(self, *arns: str) -> None:
"""Specify resources that this policy statement will not apply to in the "NotResource" section of this policy statement.
All resources except the specified list will be matched.
:param arns: Amazon Resource Names (ARNs) of the resources that this policy statement does not apply to.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notresource.html
"""
return jsii.invoke(self, "addNotResources", [*arns])
@jsii.member(jsii_name="addPrincipals")
def add_principals(self, *principals: "IPrincipal") -> None:
"""Adds principals to the "Principal" section of a policy statement.
:param principals: IAM principals that will be added.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
"""
return jsii.invoke(self, "addPrincipals", [*principals])
@jsii.member(jsii_name="addResources")
def add_resources(self, *arns: str) -> None:
"""Specify resources that this policy statement applies into the "Resource" section of this policy statement.
:param arns: Amazon Resource Names (ARNs) of the resources that this policy statement applies to.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html
"""
return jsii.invoke(self, "addResources", [*arns])
@jsii.member(jsii_name="addServicePrincipal")
def add_service_principal(
self,
service: str,
*,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
region: typing.Optional[str] = None,
) -> None:
"""Adds a service principal to this policy statement.
:param service: the service name for which a service principal is requested (e.g: ``s3.amazonaws.com``).
:param conditions: Additional conditions to add to the Service Principal. Default: - No conditions
:param region: The region in which the service is operating. Default: the current Stack's region.
"""
opts = ServicePrincipalOpts(conditions=conditions, region=region)
return jsii.invoke(self, "addServicePrincipal", [service, opts])
@jsii.member(jsii_name="toJSON")
def to_json(self) -> typing.Any:
"""JSON-ify the statement.
Used when JSON.stringify() is called
"""
return jsii.invoke(self, "toJSON", [])
@jsii.member(jsii_name="toStatementJson")
def to_statement_json(self) -> typing.Any:
"""JSON-ify the policy statement.
Used when JSON.stringify() is called
"""
return jsii.invoke(self, "toStatementJson", [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""String representation of this policy statement."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="hasPrincipal")
def has_principal(self) -> bool:
"""Indicates if this permission has a "Principal" section."""
return jsii.get(self, "hasPrincipal")
@builtins.property
@jsii.member(jsii_name="hasResource")
def has_resource(self) -> bool:
"""Indicates if this permission as at least one resource associated with it."""
return jsii.get(self, "hasResource")
@builtins.property
@jsii.member(jsii_name="effect")
def effect(self) -> "Effect":
"""Whether to allow or deny the actions in this statement."""
return jsii.get(self, "effect")
@effect.setter
def effect(self, value: "Effect") -> None:
jsii.set(self, "effect", value)
@builtins.property
@jsii.member(jsii_name="sid")
def sid(self) -> typing.Optional[str]:
"""Statement ID for this statement."""
return jsii.get(self, "sid")
@sid.setter
def sid(self, value: typing.Optional[str]) -> None:
jsii.set(self, "sid", value)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.PolicyStatementProps",
jsii_struct_bases=[],
name_mapping={
"actions": "actions",
"conditions": "conditions",
"effect": "effect",
"not_actions": "notActions",
"not_principals": "notPrincipals",
"not_resources": "notResources",
"principals": "principals",
"resources": "resources",
"sid": "sid",
},
)
class PolicyStatementProps:
def __init__(
self,
*,
actions: typing.Optional[typing.List[str]] = None,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
effect: typing.Optional["Effect"] = None,
not_actions: typing.Optional[typing.List[str]] = None,
not_principals: typing.Optional[typing.List["IPrincipal"]] = None,
not_resources: typing.Optional[typing.List[str]] = None,
principals: typing.Optional[typing.List["IPrincipal"]] = None,
resources: typing.Optional[typing.List[str]] = None,
sid: typing.Optional[str] = None,
) -> None:
"""Interface for creating a policy statement.
:param actions: List of actions to add to the statement. Default: - no actions
:param conditions: Conditions to add to the statement. Default: - no condition
:param effect: Whether to allow or deny the actions in this statement. Default: Effect.ALLOW
:param not_actions: List of not actions to add to the statement. Default: - no not-actions
:param not_principals: List of not principals to add to the statement. Default: - no not principals
:param not_resources: NotResource ARNs to add to the statement. Default: - no not-resources
:param principals: List of principals to add to the statement. Default: - no principals
:param resources: Resource ARNs to add to the statement. Default: - no resources
:param sid: The Sid (statement ID) is an optional identifier that you provide for the policy statement. You can assign a Sid value to each statement in a statement array. In services that let you specify an ID element, such as SQS and SNS, the Sid value is just a sub-ID of the policy document's ID. In IAM, the Sid value must be unique within a JSON policy. Default: - no sid
"""
self._values = {}
if actions is not None:
self._values["actions"] = actions
if conditions is not None:
self._values["conditions"] = conditions
if effect is not None:
self._values["effect"] = effect
if not_actions is not None:
self._values["not_actions"] = not_actions
if not_principals is not None:
self._values["not_principals"] = not_principals
if not_resources is not None:
self._values["not_resources"] = not_resources
if principals is not None:
self._values["principals"] = principals
if resources is not None:
self._values["resources"] = resources
if sid is not None:
self._values["sid"] = sid
@builtins.property
def actions(self) -> typing.Optional[typing.List[str]]:
"""List of actions to add to the statement.
default
:default: - no actions
"""
return self._values.get("actions")
@builtins.property
def conditions(self) -> typing.Optional[typing.Mapping[str, typing.Any]]:
"""Conditions to add to the statement.
default
:default: - no condition
"""
return self._values.get("conditions")
@builtins.property
def effect(self) -> typing.Optional["Effect"]:
"""Whether to allow or deny the actions in this statement.
default
:default: Effect.ALLOW
"""
return self._values.get("effect")
@builtins.property
def not_actions(self) -> typing.Optional[typing.List[str]]:
"""List of not actions to add to the statement.
default
:default: - no not-actions
"""
return self._values.get("not_actions")
@builtins.property
def not_principals(self) -> typing.Optional[typing.List["IPrincipal"]]:
"""List of not principals to add to the statement.
default
:default: - no not principals
"""
return self._values.get("not_principals")
@builtins.property
def not_resources(self) -> typing.Optional[typing.List[str]]:
"""NotResource ARNs to add to the statement.
default
:default: - no not-resources
"""
return self._values.get("not_resources")
@builtins.property
def principals(self) -> typing.Optional[typing.List["IPrincipal"]]:
"""List of principals to add to the statement.
default
:default: - no principals
"""
return self._values.get("principals")
@builtins.property
def resources(self) -> typing.Optional[typing.List[str]]:
"""Resource ARNs to add to the statement.
default
:default: - no resources
"""
return self._values.get("resources")
@builtins.property
def sid(self) -> typing.Optional[str]:
"""The Sid (statement ID) is an optional identifier that you provide for the policy statement.
You can assign a Sid value to each statement in a
statement array. In services that let you specify an ID element, such as
SQS and SNS, the Sid value is just a sub-ID of the policy document's ID. In
IAM, the Sid value must be unique within a JSON policy.
default
:default: - no sid
"""
return self._values.get("sid")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "PolicyStatementProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(IPrincipal)
class PrincipalBase(
metaclass=jsii.JSIIAbstractClass, jsii_type="@aws-cdk/aws-iam.PrincipalBase"
):
"""Base class for policy principals."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _PrincipalBaseProxy
def __init__(self) -> None:
jsii.create(PrincipalBase, self, [])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, _statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Add to the policy of this principal.
:param _statement: -
"""
return jsii.invoke(self, "addToPrincipalPolicy", [_statement])
@jsii.member(jsii_name="toJSON")
def to_json(self) -> typing.Mapping[str, typing.List[str]]:
"""JSON-ify the principal.
Used when JSON.stringify() is called
"""
return jsii.invoke(self, "toJSON", [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@jsii.member(jsii_name="withConditions")
def with_conditions(
self, conditions: typing.Mapping[str, typing.Any]
) -> "IPrincipal":
"""Returns a new PrincipalWithConditions using this principal as the base, with the passed conditions added.
When there is a value for the same operator and key in both the principal and the
conditions parameter, the value from the conditions parameter will be used.
:param conditions: -
return
:return: a new PrincipalWithConditions object.
"""
return jsii.invoke(self, "withConditions", [conditions])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
@abc.abstractmethod
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
...
class _PrincipalBaseProxy(PrincipalBase):
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
class PrincipalPolicyFragment(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.PrincipalPolicyFragment"
):
"""A collection of the fields in a PolicyStatement that can be used to identify a principal.
This consists of the JSON used in the "Principal" field, and optionally a
set of "Condition"s that need to be applied to the policy.
"""
def __init__(
self,
principal_json: typing.Mapping[str, typing.List[str]],
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
) -> None:
"""
:param principal_json: JSON of the "Principal" section in a policy statement.
:param conditions: The conditions under which the policy is in effect. See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_. conditions that need to be applied to this policy
"""
jsii.create(PrincipalPolicyFragment, self, [principal_json, conditions])
@builtins.property
@jsii.member(jsii_name="conditions")
def conditions(self) -> typing.Mapping[str, typing.Any]:
"""The conditions under which the policy is in effect.
See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
conditions that need to be applied to this policy
"""
return jsii.get(self, "conditions")
@builtins.property
@jsii.member(jsii_name="principalJson")
def principal_json(self) -> typing.Mapping[str, typing.List[str]]:
"""JSON of the "Principal" section in a policy statement."""
return jsii.get(self, "principalJson")
@jsii.implements(IPrincipal)
class PrincipalWithConditions(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.PrincipalWithConditions"
):
"""An IAM principal with additional conditions specifying when the policy is in effect.
For more information about conditions, see:
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
"""
def __init__(
self, principal: "IPrincipal", conditions: typing.Mapping[str, typing.Any]
) -> None:
"""
:param principal: -
:param conditions: -
"""
jsii.create(PrincipalWithConditions, self, [principal, conditions])
@jsii.member(jsii_name="addCondition")
def add_condition(self, key: str, value: typing.Any) -> None:
"""Add a condition to the principal.
:param key: -
:param value: -
"""
return jsii.invoke(self, "addCondition", [key, value])
@jsii.member(jsii_name="addConditions")
def add_conditions(self, conditions: typing.Mapping[str, typing.Any]) -> None:
"""Adds multiple conditions to the principal.
Values from the conditions parameter will overwrite existing values with the same operator
and key.
:param conditions: -
"""
return jsii.invoke(self, "addConditions", [conditions])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.member(jsii_name="toJSON")
def to_json(self) -> typing.Mapping[str, typing.List[str]]:
"""JSON-ify the principal.
Used when JSON.stringify() is called
"""
return jsii.invoke(self, "toJSON", [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="conditions")
def conditions(self) -> typing.Mapping[str, typing.Any]:
"""The conditions under which the policy is in effect.
See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
"""
return jsii.get(self, "conditions")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.RoleProps",
jsii_struct_bases=[],
name_mapping={
"assumed_by": "assumedBy",
"description": "description",
"external_id": "externalId",
"external_ids": "externalIds",
"inline_policies": "inlinePolicies",
"managed_policies": "managedPolicies",
"max_session_duration": "maxSessionDuration",
"path": "path",
"permissions_boundary": "permissionsBoundary",
"role_name": "roleName",
},
)
class RoleProps:
def __init__(
self,
*,
assumed_by: "IPrincipal",
description: typing.Optional[str] = None,
external_id: typing.Optional[str] = None,
external_ids: typing.Optional[typing.List[str]] = None,
inline_policies: typing.Optional[typing.Mapping[str, "PolicyDocument"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
max_session_duration: typing.Optional[aws_cdk.core.Duration] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
role_name: typing.Optional[str] = None,
) -> None:
"""Properties for defining an IAM Role.
:param assumed_by: The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role. You can later modify the assume role policy document by accessing it via the ``assumeRolePolicy`` property.
:param description: A description of the role. It can be up to 1000 characters long. Default: - No description.
:param external_id: ID that the role assumer needs to provide when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param external_ids: List of IDs that the role assumer needs to provide one of when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param inline_policies: A list of named policies to inline into this role. These policies will be created with the role, whereas those added by ``addToPolicy`` are added using a separate CloudFormation resource (allowing a way around circular dependencies that could otherwise be introduced). Default: - No policy is inlined in the Role resource.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param max_session_duration: The maximum session duration that you want to set for the specified role. This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours. Anyone who assumes the role from the AWS CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. Default: Duration.hours(1)
:param path: The path associated with this role. For information about IAM paths, see Friendly Names and Paths in IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param role_name: A name for the IAM role. For valid values, see the RoleName parameter for the CreateRole action in the IAM API Reference. IMPORTANT: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
"""
self._values = {
"assumed_by": assumed_by,
}
if description is not None:
self._values["description"] = description
if external_id is not None:
self._values["external_id"] = external_id
if external_ids is not None:
self._values["external_ids"] = external_ids
if inline_policies is not None:
self._values["inline_policies"] = inline_policies
if managed_policies is not None:
self._values["managed_policies"] = managed_policies
if max_session_duration is not None:
self._values["max_session_duration"] = max_session_duration
if path is not None:
self._values["path"] = path
if permissions_boundary is not None:
self._values["permissions_boundary"] = permissions_boundary
if role_name is not None:
self._values["role_name"] = role_name
@builtins.property
def assumed_by(self) -> "IPrincipal":
"""The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role.
You can later modify the assume role policy document by accessing it via
the ``assumeRolePolicy`` property.
"""
return self._values.get("assumed_by")
@builtins.property
def description(self) -> typing.Optional[str]:
"""A description of the role.
It can be up to 1000 characters long.
default
:default: - No description.
"""
return self._values.get("description")
@builtins.property
def external_id(self) -> typing.Optional[str]:
"""ID that the role assumer needs to provide when assuming this role.
If the configured and provided external IDs do not match, the
AssumeRole operation will fail.
default
:default: No external ID required
deprecated
:deprecated: see {@link externalIds}
stability
:stability: deprecated
"""
return self._values.get("external_id")
@builtins.property
def external_ids(self) -> typing.Optional[typing.List[str]]:
"""List of IDs that the role assumer needs to provide one of when assuming this role.
If the configured and provided external IDs do not match, the
AssumeRole operation will fail.
default
:default: No external ID required
"""
return self._values.get("external_ids")
@builtins.property
def inline_policies(self) -> typing.Optional[typing.Mapping[str, "PolicyDocument"]]:
"""A list of named policies to inline into this role.
These policies will be
created with the role, whereas those added by ``addToPolicy`` are added
using a separate CloudFormation resource (allowing a way around circular
dependencies that could otherwise be introduced).
default
:default: - No policy is inlined in the Role resource.
"""
return self._values.get("inline_policies")
@builtins.property
def managed_policies(self) -> typing.Optional[typing.List["IManagedPolicy"]]:
"""A list of managed policies associated with this role.
You can add managed policies later using
``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``.
default
:default: - No managed policies.
"""
return self._values.get("managed_policies")
@builtins.property
def max_session_duration(self) -> typing.Optional[aws_cdk.core.Duration]:
"""The maximum session duration that you want to set for the specified role.
This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours.
Anyone who assumes the role from the AWS CLI or API can use the
DurationSeconds API parameter or the duration-seconds CLI parameter to
request a longer session. The MaxSessionDuration setting determines the
maximum duration that can be requested using the DurationSeconds
parameter.
If users don't specify a value for the DurationSeconds parameter, their
security credentials are valid for one hour by default. This applies when
you use the AssumeRole* API operations or the assume-role* CLI operations
but does not apply when you use those operations to create a console URL.
default
:default: Duration.hours(1)
link:
:link:: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
"""
return self._values.get("max_session_duration")
@builtins.property
def path(self) -> typing.Optional[str]:
"""The path associated with this role.
For information about IAM paths, see
Friendly Names and Paths in IAM User Guide.
default
:default: /
"""
return self._values.get("path")
@builtins.property
def permissions_boundary(self) -> typing.Optional["IManagedPolicy"]:
"""AWS supports permissions boundaries for IAM entities (users or roles).
A permissions boundary is an advanced feature for using a managed policy
to set the maximum permissions that an identity-based policy can grant to
an IAM entity. An entity's permissions boundary allows it to perform only
the actions that are allowed by both its identity-based policies and its
permissions boundaries.
default
:default: - No permissions boundary.
link:
:link:: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
"""
return self._values.get("permissions_boundary")
@builtins.property
def role_name(self) -> typing.Optional[str]:
"""A name for the IAM role.
For valid values, see the RoleName parameter for
the CreateRole action in the IAM API Reference.
IMPORTANT: If you specify a name, you cannot perform updates that require
replacement of this resource. You can perform updates that require no or
some interruption. If you must replace the resource, specify a new name.
If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to
acknowledge your template's capabilities. For more information, see
Acknowledging IAM Resources in AWS CloudFormation Templates.
default
:default:
- AWS CloudFormation generates a unique physical ID and uses that ID
for the group name.
"""
return self._values.get("role_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "RoleProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class ServicePrincipal(
PrincipalBase,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.ServicePrincipal",
):
"""An IAM principal that represents an AWS service (i.e. sqs.amazonaws.com)."""
def __init__(
self,
service: str,
*,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
region: typing.Optional[str] = None,
) -> None:
"""
:param service: AWS service (i.e. sqs.amazonaws.com).
:param conditions: Additional conditions to add to the Service Principal. Default: - No conditions
:param region: The region in which the service is operating. Default: the current Stack's region.
"""
opts = ServicePrincipalOpts(conditions=conditions, region=region)
jsii.create(ServicePrincipal, self, [service, opts])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@builtins.property
@jsii.member(jsii_name="service")
def service(self) -> str:
"""AWS service (i.e. sqs.amazonaws.com)."""
return jsii.get(self, "service")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.ServicePrincipalOpts",
jsii_struct_bases=[],
name_mapping={"conditions": "conditions", "region": "region"},
)
class ServicePrincipalOpts:
def __init__(
self,
*,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
region: typing.Optional[str] = None,
) -> None:
"""Options for a service principal.
:param conditions: Additional conditions to add to the Service Principal. Default: - No conditions
:param region: The region in which the service is operating. Default: the current Stack's region.
"""
self._values = {}
if conditions is not None:
self._values["conditions"] = conditions
if region is not None:
self._values["region"] = region
@builtins.property
def conditions(self) -> typing.Optional[typing.Mapping[str, typing.Any]]:
"""Additional conditions to add to the Service Principal.
default
:default: - No conditions
"""
return self._values.get("conditions")
@builtins.property
def region(self) -> typing.Optional[str]:
"""The region in which the service is operating.
default
:default: the current Stack's region.
"""
return self._values.get("region")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "ServicePrincipalOpts(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.implements(IPrincipal)
class UnknownPrincipal(
metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.UnknownPrincipal"
):
"""A principal for use in resources that need to have a role but it's unknown.
Some resources have roles associated with them which they assume, such as
Lambda Functions, CodeBuild projects, StepFunctions machines, etc.
When those resources are imported, their actual roles are not always
imported with them. When that happens, we use an instance of this class
instead, which will add user warnings when statements are attempted to be
added to it.
"""
def __init__(self, *, resource: aws_cdk.core.IConstruct) -> None:
"""
:param resource: The resource the role proxy is for.
"""
props = UnknownPrincipalProps(resource=resource)
jsii.create(UnknownPrincipal, self, [props])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.UnknownPrincipalProps",
jsii_struct_bases=[],
name_mapping={"resource": "resource"},
)
class UnknownPrincipalProps:
def __init__(self, *, resource: aws_cdk.core.IConstruct) -> None:
"""Properties for an UnknownPrincipal.
:param resource: The resource the role proxy is for.
"""
self._values = {
"resource": resource,
}
@builtins.property
def resource(self) -> aws_cdk.core.IConstruct:
"""The resource the role proxy is for."""
return self._values.get("resource")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "UnknownPrincipalProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.UserProps",
jsii_struct_bases=[],
name_mapping={
"groups": "groups",
"managed_policies": "managedPolicies",
"password": "password",
"password_reset_required": "passwordResetRequired",
"path": "path",
"permissions_boundary": "permissionsBoundary",
"user_name": "userName",
},
)
class UserProps:
def __init__(
self,
*,
groups: typing.Optional[typing.List["IGroup"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
password: typing.Optional[aws_cdk.core.SecretValue] = None,
password_reset_required: typing.Optional[bool] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
user_name: typing.Optional[str] = None,
) -> None:
"""Properties for defining an IAM user.
:param groups: Groups to add this user to. You can also use ``addToGroup`` to add this user to a group. Default: - No groups.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param password: The password for the user. This is required so the user can access the AWS Management Console. You can use ``SecretValue.plainText`` to specify a password in plain text or use ``secretsmanager.Secret.fromSecretAttributes`` to reference a secret in Secrets Manager. Default: - User won't be able to access the management console without a password.
:param password_reset_required: Specifies whether the user is required to set a new password the next time the user logs in to the AWS Management Console. If this is set to 'true', you must also specify "initialPassword". Default: false
:param path: The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param user_name: A name for the IAM user. For valid values, see the UserName parameter for the CreateUser action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the user name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - Generated by CloudFormation (recommended)
"""
self._values = {}
if groups is not None:
self._values["groups"] = groups
if managed_policies is not None:
self._values["managed_policies"] = managed_policies
if password is not None:
self._values["password"] = password
if password_reset_required is not None:
self._values["password_reset_required"] = password_reset_required
if path is not None:
self._values["path"] = path
if permissions_boundary is not None:
self._values["permissions_boundary"] = permissions_boundary
if user_name is not None:
self._values["user_name"] = user_name
@builtins.property
def groups(self) -> typing.Optional[typing.List["IGroup"]]:
"""Groups to add this user to.
You can also use ``addToGroup`` to add this
user to a group.
default
:default: - No groups.
"""
return self._values.get("groups")
@builtins.property
def managed_policies(self) -> typing.Optional[typing.List["IManagedPolicy"]]:
"""A list of managed policies associated with this role.
You can add managed policies later using
``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``.
default
:default: - No managed policies.
"""
return self._values.get("managed_policies")
@builtins.property
def password(self) -> typing.Optional[aws_cdk.core.SecretValue]:
"""The password for the user. This is required so the user can access the AWS Management Console.
You can use ``SecretValue.plainText`` to specify a password in plain text or
use ``secretsmanager.Secret.fromSecretAttributes`` to reference a secret in
Secrets Manager.
default
:default: - User won't be able to access the management console without a password.
"""
return self._values.get("password")
@builtins.property
def password_reset_required(self) -> typing.Optional[bool]:
"""Specifies whether the user is required to set a new password the next time the user logs in to the AWS Management Console.
If this is set to 'true', you must also specify "initialPassword".
default
:default: false
"""
return self._values.get("password_reset_required")
@builtins.property
def path(self) -> typing.Optional[str]:
"""The path for the user name.
For more information about paths, see IAM
Identifiers in the IAM User Guide.
default
:default: /
"""
return self._values.get("path")
@builtins.property
def permissions_boundary(self) -> typing.Optional["IManagedPolicy"]:
"""AWS supports permissions boundaries for IAM entities (users or roles).
A permissions boundary is an advanced feature for using a managed policy
to set the maximum permissions that an identity-based policy can grant to
an IAM entity. An entity's permissions boundary allows it to perform only
the actions that are allowed by both its identity-based policies and its
permissions boundaries.
default
:default: - No permissions boundary.
link:
:link:: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
"""
return self._values.get("permissions_boundary")
@builtins.property
def user_name(self) -> typing.Optional[str]:
"""A name for the IAM user.
For valid values, see the UserName parameter for
the CreateUser action in the IAM API Reference. If you don't specify a
name, AWS CloudFormation generates a unique physical ID and uses that ID
for the user name.
If you specify a name, you cannot perform updates that require
replacement of this resource. You can perform updates that require no or
some interruption. If you must replace the resource, specify a new name.
If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to
acknowledge your template's capabilities. For more information, see
Acknowledging IAM Resources in AWS CloudFormation Templates.
default
:default: - Generated by CloudFormation (recommended)
"""
return self._values.get("user_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "UserProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class ArnPrincipal(
PrincipalBase, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.ArnPrincipal"
):
"""Specify a principal by the Amazon Resource Name (ARN).
You can specify AWS accounts, IAM users, Federated SAML users, IAM roles, and specific assumed-role sessions.
You cannot specify IAM groups or instance profiles as principals
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
"""
def __init__(self, arn: str) -> None:
"""
:param arn: Amazon Resource Name (ARN) of the principal entity (i.e. arn:aws:iam::123456789012:user/user-name).
"""
jsii.create(ArnPrincipal, self, [arn])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="arn")
def arn(self) -> str:
"""Amazon Resource Name (ARN) of the principal entity (i.e. arn:aws:iam::123456789012:user/user-name)."""
return jsii.get(self, "arn")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
class CanonicalUserPrincipal(
PrincipalBase,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CanonicalUserPrincipal",
):
"""A policy principal for canonicalUserIds - useful for S3 bucket policies that use Origin Access identities.
See https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html
and
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
for more details.
"""
def __init__(self, canonical_user_id: str) -> None:
"""
:param canonical_user_id: unique identifier assigned by AWS for every account. root user and IAM users for an account all see the same ID. (i.e. 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be)
"""
jsii.create(CanonicalUserPrincipal, self, [canonical_user_id])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="canonicalUserId")
def canonical_user_id(self) -> str:
"""unique identifier assigned by AWS for every account.
root user and IAM users for an account all see the same ID.
(i.e. 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be)
"""
return jsii.get(self, "canonicalUserId")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
class CompositePrincipal(
PrincipalBase,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.CompositePrincipal",
):
"""Represents a principal that has multiple types of principals.
A composite principal cannot
have conditions. i.e. multiple ServicePrincipals that form a composite principal
"""
def __init__(self, *principals: "PrincipalBase") -> None:
"""
:param principals: -
"""
jsii.create(CompositePrincipal, self, [*principals])
@jsii.member(jsii_name="addPrincipals")
def add_principals(self, *principals: "PrincipalBase") -> "CompositePrincipal":
"""Adds IAM principals to the composite principal.
Composite principals cannot have
conditions.
:param principals: IAM principals that will be added to the composite principal.
"""
return jsii.invoke(self, "addPrincipals", [*principals])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
class FederatedPrincipal(
PrincipalBase,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.FederatedPrincipal",
):
"""Principal entity that represents a federated identity provider such as Amazon Cognito, that can be used to provide temporary security credentials to users who have been authenticated.
Additional condition keys are available when the temporary security credentials are used to make a request.
You can use these keys to write policies that limit the access of federated users.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#condition-keys-wif
"""
def __init__(
self,
federated: str,
conditions: typing.Mapping[str, typing.Any],
assume_role_action: typing.Optional[str] = None,
) -> None:
"""
:param federated: federated identity provider (i.e. 'cognito-identity.amazonaws.com' for users authenticated through Cognito).
:param conditions: The conditions under which the policy is in effect. See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
:param assume_role_action: -
"""
jsii.create(
FederatedPrincipal, self, [federated, conditions, assume_role_action]
)
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="conditions")
def conditions(self) -> typing.Mapping[str, typing.Any]:
"""The conditions under which the policy is in effect.
See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
"""
return jsii.get(self, "conditions")
@builtins.property
@jsii.member(jsii_name="federated")
def federated(self) -> str:
"""federated identity provider (i.e. 'cognito-identity.amazonaws.com' for users authenticated through Cognito)."""
return jsii.get(self, "federated")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IIdentity")
class IIdentity(IPrincipal, aws_cdk.core.IResource, jsii.compat.Protocol):
"""A construct that represents an IAM principal, such as a user, group or role."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IIdentityProxy
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to this principal.
:param policy: The managed policy.
"""
...
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches an inline policy to this principal.
This is the same as calling ``policy.addToXxx(principal)``.
:param policy: The policy resource to attach to this principal [disable-awslint:ref-via-interface].
"""
...
class _IIdentityProxy(
jsii.proxy_for(IPrincipal), jsii.proxy_for(aws_cdk.core.IResource)
):
"""A construct that represents an IAM principal, such as a user, group or role."""
__jsii_type__ = "@aws-cdk/aws-iam.IIdentity"
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to this principal.
:param policy: The managed policy.
"""
return jsii.invoke(self, "addManagedPolicy", [policy])
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches an inline policy to this principal.
This is the same as calling ``policy.addToXxx(principal)``.
:param policy: The policy resource to attach to this principal [disable-awslint:ref-via-interface].
"""
return jsii.invoke(self, "attachInlinePolicy", [policy])
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IRole")
class IRole(IIdentity, jsii.compat.Protocol):
"""A Role object."""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IRoleProxy
@builtins.property
@jsii.member(jsii_name="roleArn")
def role_arn(self) -> str:
"""Returns the ARN of this role.
attribute:
:attribute:: true
"""
...
@builtins.property
@jsii.member(jsii_name="roleName")
def role_name(self) -> str:
"""Returns the name of this role.
attribute:
:attribute:: true
"""
...
@jsii.member(jsii_name="grant")
def grant(self, grantee: "IPrincipal", *actions: str) -> "Grant":
"""Grant the actions defined in actions to the identity Principal on this resource.
:param grantee: -
:param actions: -
"""
...
@jsii.member(jsii_name="grantPassRole")
def grant_pass_role(self, grantee: "IPrincipal") -> "Grant":
"""Grant permissions to the given principal to pass this role.
:param grantee: -
"""
...
class _IRoleProxy(jsii.proxy_for(IIdentity)):
"""A Role object."""
__jsii_type__ = "@aws-cdk/aws-iam.IRole"
@builtins.property
@jsii.member(jsii_name="roleArn")
def role_arn(self) -> str:
"""Returns the ARN of this role.
attribute:
:attribute:: true
"""
return jsii.get(self, "roleArn")
@builtins.property
@jsii.member(jsii_name="roleName")
def role_name(self) -> str:
"""Returns the name of this role.
attribute:
:attribute:: true
"""
return jsii.get(self, "roleName")
@jsii.member(jsii_name="grant")
def grant(self, grantee: "IPrincipal", *actions: str) -> "Grant":
"""Grant the actions defined in actions to the identity Principal on this resource.
:param grantee: -
:param actions: -
"""
return jsii.invoke(self, "grant", [grantee, *actions])
@jsii.member(jsii_name="grantPassRole")
def grant_pass_role(self, grantee: "IPrincipal") -> "Grant":
"""Grant permissions to the given principal to pass this role.
:param grantee: -
"""
return jsii.invoke(self, "grantPassRole", [grantee])
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IUser")
class IUser(IIdentity, jsii.compat.Protocol):
"""Represents an IAM user.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
"""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IUserProxy
@builtins.property
@jsii.member(jsii_name="userArn")
def user_arn(self) -> str:
"""The user's ARN.
attribute:
:attribute:: true
"""
...
@builtins.property
@jsii.member(jsii_name="userName")
def user_name(self) -> str:
"""The user's name.
attribute:
:attribute:: true
"""
...
@jsii.member(jsii_name="addToGroup")
def add_to_group(self, group: "IGroup") -> None:
"""Adds this user to a group.
:param group: -
"""
...
class _IUserProxy(jsii.proxy_for(IIdentity)):
"""Represents an IAM user.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
"""
__jsii_type__ = "@aws-cdk/aws-iam.IUser"
@builtins.property
@jsii.member(jsii_name="userArn")
def user_arn(self) -> str:
"""The user's ARN.
attribute:
:attribute:: true
"""
return jsii.get(self, "userArn")
@builtins.property
@jsii.member(jsii_name="userName")
def user_name(self) -> str:
"""The user's name.
attribute:
:attribute:: true
"""
return jsii.get(self, "userName")
@jsii.member(jsii_name="addToGroup")
def add_to_group(self, group: "IGroup") -> None:
"""Adds this user to a group.
:param group: -
"""
return jsii.invoke(self, "addToGroup", [group])
@jsii.implements(IRole)
class LazyRole(
aws_cdk.core.Resource,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.LazyRole",
):
"""An IAM role that only gets attached to the construct tree once it gets used, not before.
This construct can be used to simplify logic in other constructs
which need to create a role but only if certain configurations occur
(such as when AutoScaling is configured). The role can be configured in one
place, but if it never gets used it doesn't get instantiated and will
not be synthesized or deployed.
resource:
:resource:: AWS::IAM::Role
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
assumed_by: "IPrincipal",
description: typing.Optional[str] = None,
external_id: typing.Optional[str] = None,
external_ids: typing.Optional[typing.List[str]] = None,
inline_policies: typing.Optional[typing.Mapping[str, "PolicyDocument"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
max_session_duration: typing.Optional[aws_cdk.core.Duration] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
role_name: typing.Optional[str] = None,
) -> None:
"""
:param scope: -
:param id: -
:param assumed_by: The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role. You can later modify the assume role policy document by accessing it via the ``assumeRolePolicy`` property.
:param description: A description of the role. It can be up to 1000 characters long. Default: - No description.
:param external_id: ID that the role assumer needs to provide when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param external_ids: List of IDs that the role assumer needs to provide one of when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param inline_policies: A list of named policies to inline into this role. These policies will be created with the role, whereas those added by ``addToPolicy`` are added using a separate CloudFormation resource (allowing a way around circular dependencies that could otherwise be introduced). Default: - No policy is inlined in the Role resource.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param max_session_duration: The maximum session duration that you want to set for the specified role. This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours. Anyone who assumes the role from the AWS CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. Default: Duration.hours(1)
:param path: The path associated with this role. For information about IAM paths, see Friendly Names and Paths in IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param role_name: A name for the IAM role. For valid values, see the RoleName parameter for the CreateRole action in the IAM API Reference. IMPORTANT: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
"""
props = LazyRoleProps(
assumed_by=assumed_by,
description=description,
external_id=external_id,
external_ids=external_ids,
inline_policies=inline_policies,
managed_policies=managed_policies,
max_session_duration=max_session_duration,
path=path,
permissions_boundary=permissions_boundary,
role_name=role_name,
)
jsii.create(LazyRole, self, [scope, id, props])
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to this role.
:param policy: The managed policy to attach.
"""
return jsii.invoke(self, "addManagedPolicy", [policy])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Adds a permission to the role's default policy document.
If there is no default policy attached to this role, it will be created.
:param statement: The permission statement to add to the policy document.
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches a policy to this role.
:param policy: The policy to attach.
"""
return jsii.invoke(self, "attachInlinePolicy", [policy])
@jsii.member(jsii_name="grant")
def grant(self, identity: "IPrincipal", *actions: str) -> "Grant":
"""Grant the actions defined in actions to the identity Principal on this resource.
:param identity: -
:param actions: -
"""
return jsii.invoke(self, "grant", [identity, *actions])
@jsii.member(jsii_name="grantPassRole")
def grant_pass_role(self, identity: "IPrincipal") -> "Grant":
"""Grant permissions to the given principal to pass this role.
:param identity: -
"""
return jsii.invoke(self, "grantPassRole", [identity])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@builtins.property
@jsii.member(jsii_name="roleArn")
def role_arn(self) -> str:
"""Returns the ARN of this role."""
return jsii.get(self, "roleArn")
@builtins.property
@jsii.member(jsii_name="roleId")
def role_id(self) -> str:
"""Returns the stable and unique string identifying the role (i.e. AIDAJQABLZS4A3QDU576Q).
attribute:
:attribute:: true
"""
return jsii.get(self, "roleId")
@builtins.property
@jsii.member(jsii_name="roleName")
def role_name(self) -> str:
"""Returns the name of this role."""
return jsii.get(self, "roleName")
@jsii.data_type(
jsii_type="@aws-cdk/aws-iam.LazyRoleProps",
jsii_struct_bases=[RoleProps],
name_mapping={
"assumed_by": "assumedBy",
"description": "description",
"external_id": "externalId",
"external_ids": "externalIds",
"inline_policies": "inlinePolicies",
"managed_policies": "managedPolicies",
"max_session_duration": "maxSessionDuration",
"path": "path",
"permissions_boundary": "permissionsBoundary",
"role_name": "roleName",
},
)
class LazyRoleProps(RoleProps):
def __init__(
self,
*,
assumed_by: "IPrincipal",
description: typing.Optional[str] = None,
external_id: typing.Optional[str] = None,
external_ids: typing.Optional[typing.List[str]] = None,
inline_policies: typing.Optional[typing.Mapping[str, "PolicyDocument"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
max_session_duration: typing.Optional[aws_cdk.core.Duration] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
role_name: typing.Optional[str] = None,
) -> None:
"""Properties for defining a LazyRole.
:param assumed_by: The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role. You can later modify the assume role policy document by accessing it via the ``assumeRolePolicy`` property.
:param description: A description of the role. It can be up to 1000 characters long. Default: - No description.
:param external_id: ID that the role assumer needs to provide when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param external_ids: List of IDs that the role assumer needs to provide one of when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param inline_policies: A list of named policies to inline into this role. These policies will be created with the role, whereas those added by ``addToPolicy`` are added using a separate CloudFormation resource (allowing a way around circular dependencies that could otherwise be introduced). Default: - No policy is inlined in the Role resource.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param max_session_duration: The maximum session duration that you want to set for the specified role. This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours. Anyone who assumes the role from the AWS CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. Default: Duration.hours(1)
:param path: The path associated with this role. For information about IAM paths, see Friendly Names and Paths in IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param role_name: A name for the IAM role. For valid values, see the RoleName parameter for the CreateRole action in the IAM API Reference. IMPORTANT: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
"""
self._values = {
"assumed_by": assumed_by,
}
if description is not None:
self._values["description"] = description
if external_id is not None:
self._values["external_id"] = external_id
if external_ids is not None:
self._values["external_ids"] = external_ids
if inline_policies is not None:
self._values["inline_policies"] = inline_policies
if managed_policies is not None:
self._values["managed_policies"] = managed_policies
if max_session_duration is not None:
self._values["max_session_duration"] = max_session_duration
if path is not None:
self._values["path"] = path
if permissions_boundary is not None:
self._values["permissions_boundary"] = permissions_boundary
if role_name is not None:
self._values["role_name"] = role_name
@builtins.property
def assumed_by(self) -> "IPrincipal":
"""The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role.
You can later modify the assume role policy document by accessing it via
the ``assumeRolePolicy`` property.
"""
return self._values.get("assumed_by")
@builtins.property
def description(self) -> typing.Optional[str]:
"""A description of the role.
It can be up to 1000 characters long.
default
:default: - No description.
"""
return self._values.get("description")
@builtins.property
def external_id(self) -> typing.Optional[str]:
"""ID that the role assumer needs to provide when assuming this role.
If the configured and provided external IDs do not match, the
AssumeRole operation will fail.
default
:default: No external ID required
deprecated
:deprecated: see {@link externalIds}
stability
:stability: deprecated
"""
return self._values.get("external_id")
@builtins.property
def external_ids(self) -> typing.Optional[typing.List[str]]:
"""List of IDs that the role assumer needs to provide one of when assuming this role.
If the configured and provided external IDs do not match, the
AssumeRole operation will fail.
default
:default: No external ID required
"""
return self._values.get("external_ids")
@builtins.property
def inline_policies(self) -> typing.Optional[typing.Mapping[str, "PolicyDocument"]]:
"""A list of named policies to inline into this role.
These policies will be
created with the role, whereas those added by ``addToPolicy`` are added
using a separate CloudFormation resource (allowing a way around circular
dependencies that could otherwise be introduced).
default
:default: - No policy is inlined in the Role resource.
"""
return self._values.get("inline_policies")
@builtins.property
def managed_policies(self) -> typing.Optional[typing.List["IManagedPolicy"]]:
"""A list of managed policies associated with this role.
You can add managed policies later using
``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``.
default
:default: - No managed policies.
"""
return self._values.get("managed_policies")
@builtins.property
def max_session_duration(self) -> typing.Optional[aws_cdk.core.Duration]:
"""The maximum session duration that you want to set for the specified role.
This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours.
Anyone who assumes the role from the AWS CLI or API can use the
DurationSeconds API parameter or the duration-seconds CLI parameter to
request a longer session. The MaxSessionDuration setting determines the
maximum duration that can be requested using the DurationSeconds
parameter.
If users don't specify a value for the DurationSeconds parameter, their
security credentials are valid for one hour by default. This applies when
you use the AssumeRole* API operations or the assume-role* CLI operations
but does not apply when you use those operations to create a console URL.
default
:default: Duration.hours(1)
link:
:link:: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
"""
return self._values.get("max_session_duration")
@builtins.property
def path(self) -> typing.Optional[str]:
"""The path associated with this role.
For information about IAM paths, see
Friendly Names and Paths in IAM User Guide.
default
:default: /
"""
return self._values.get("path")
@builtins.property
def permissions_boundary(self) -> typing.Optional["IManagedPolicy"]:
"""AWS supports permissions boundaries for IAM entities (users or roles).
A permissions boundary is an advanced feature for using a managed policy
to set the maximum permissions that an identity-based policy can grant to
an IAM entity. An entity's permissions boundary allows it to perform only
the actions that are allowed by both its identity-based policies and its
permissions boundaries.
default
:default: - No permissions boundary.
link:
:link:: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
"""
return self._values.get("permissions_boundary")
@builtins.property
def role_name(self) -> typing.Optional[str]:
"""A name for the IAM role.
For valid values, see the RoleName parameter for
the CreateRole action in the IAM API Reference.
IMPORTANT: If you specify a name, you cannot perform updates that require
replacement of this resource. You can perform updates that require no or
some interruption. If you must replace the resource, specify a new name.
If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to
acknowledge your template's capabilities. For more information, see
Acknowledging IAM Resources in AWS CloudFormation Templates.
default
:default:
- AWS CloudFormation generates a unique physical ID and uses that ID
for the group name.
"""
return self._values.get("role_name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
return "LazyRoleProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class OrganizationPrincipal(
PrincipalBase,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.OrganizationPrincipal",
):
"""A principal that represents an AWS Organization."""
def __init__(self, organization_id: str) -> None:
"""
:param organization_id: The unique identifier (ID) of an organization (i.e. o-12345abcde).
"""
jsii.create(OrganizationPrincipal, self, [organization_id])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="organizationId")
def organization_id(self) -> str:
"""The unique identifier (ID) of an organization (i.e. o-12345abcde)."""
return jsii.get(self, "organizationId")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.implements(IRole)
class Role(
aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.Role"
):
"""IAM Role.
Defines an IAM role. The role is created with an assume policy document associated with
the specified AWS service principal defined in ``serviceAssumeRole``.
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
assumed_by: "IPrincipal",
description: typing.Optional[str] = None,
external_id: typing.Optional[str] = None,
external_ids: typing.Optional[typing.List[str]] = None,
inline_policies: typing.Optional[typing.Mapping[str, "PolicyDocument"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
max_session_duration: typing.Optional[aws_cdk.core.Duration] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
role_name: typing.Optional[str] = None,
) -> None:
"""
:param scope: -
:param id: -
:param assumed_by: The IAM principal (i.e. ``new ServicePrincipal('sns.amazonaws.com')``) which can assume this role. You can later modify the assume role policy document by accessing it via the ``assumeRolePolicy`` property.
:param description: A description of the role. It can be up to 1000 characters long. Default: - No description.
:param external_id: ID that the role assumer needs to provide when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param external_ids: List of IDs that the role assumer needs to provide one of when assuming this role. If the configured and provided external IDs do not match, the AssumeRole operation will fail. Default: No external ID required
:param inline_policies: A list of named policies to inline into this role. These policies will be created with the role, whereas those added by ``addToPolicy`` are added using a separate CloudFormation resource (allowing a way around circular dependencies that could otherwise be introduced). Default: - No policy is inlined in the Role resource.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param max_session_duration: The maximum session duration that you want to set for the specified role. This setting can have a value from 1 hour (3600sec) to 12 (43200sec) hours. Anyone who assumes the role from the AWS CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. Default: Duration.hours(1)
:param path: The path associated with this role. For information about IAM paths, see Friendly Names and Paths in IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param role_name: A name for the IAM role. For valid values, see the RoleName parameter for the CreateRole action in the IAM API Reference. IMPORTANT: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
"""
props = RoleProps(
assumed_by=assumed_by,
description=description,
external_id=external_id,
external_ids=external_ids,
inline_policies=inline_policies,
managed_policies=managed_policies,
max_session_duration=max_session_duration,
path=path,
permissions_boundary=permissions_boundary,
role_name=role_name,
)
jsii.create(Role, self, [scope, id, props])
@jsii.member(jsii_name="fromRoleArn")
@builtins.classmethod
def from_role_arn(
cls,
scope: aws_cdk.core.Construct,
id: str,
role_arn: str,
*,
mutable: typing.Optional[bool] = None,
) -> "IRole":
"""Import an external role by ARN.
If the imported Role ARN is a Token (such as a
``CfnParameter.valueAsString`` or a ``Fn.importValue()``) *and* the referenced
role has a ``path`` (like ``arn:...:role/AdminRoles/Alice``), the
``roleName`` property will not resolve to the correct value. Instead it
will resolve to the first path component. We unfortunately cannot express
the correct calculation of the full path name as a CloudFormation
expression. In this scenario the Role ARN should be supplied without the
``path`` in order to resolve the correct role resource.
:param scope: construct scope.
:param id: construct id.
:param role_arn: the ARN of the role to import.
:param mutable: Whether the imported role can be modified by attaching policy resources to it. Default: true
"""
options = FromRoleArnOptions(mutable=mutable)
return jsii.sinvoke(cls, "fromRoleArn", [scope, id, role_arn, options])
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to this role.
:param policy: The the managed policy to attach.
"""
return jsii.invoke(self, "addManagedPolicy", [policy])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Adds a permission to the role's default policy document.
If there is no default policy attached to this role, it will be created.
:param statement: The permission statement to add to the policy document.
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches a policy to this role.
:param policy: The policy to attach.
"""
return jsii.invoke(self, "attachInlinePolicy", [policy])
@jsii.member(jsii_name="grant")
def grant(self, grantee: "IPrincipal", *actions: str) -> "Grant":
"""Grant the actions defined in actions to the identity Principal on this resource.
:param grantee: -
:param actions: -
"""
return jsii.invoke(self, "grant", [grantee, *actions])
@jsii.member(jsii_name="grantPassRole")
def grant_pass_role(self, identity: "IPrincipal") -> "Grant":
"""Grant permissions to the given principal to pass this role.
:param identity: -
"""
return jsii.invoke(self, "grantPassRole", [identity])
@jsii.member(jsii_name="withoutPolicyUpdates")
def without_policy_updates(self) -> "IRole":
"""Return a copy of this Role object whose Policies will not be updated.
Use the object returned by this method if you want this Role to be used by
a construct without it automatically updating the Role's Policies.
If you do, you are responsible for adding the correct statements to the
Role's policies yourself.
"""
return jsii.invoke(self, "withoutPolicyUpdates", [])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Returns the role."""
return jsii.get(self, "policyFragment")
@builtins.property
@jsii.member(jsii_name="roleArn")
def role_arn(self) -> str:
"""Returns the ARN of this role."""
return jsii.get(self, "roleArn")
@builtins.property
@jsii.member(jsii_name="roleId")
def role_id(self) -> str:
"""Returns the stable and unique string identifying the role.
For example,
AIDAJQABLZS4A3QDU576Q.
attribute:
:attribute:: true
"""
return jsii.get(self, "roleId")
@builtins.property
@jsii.member(jsii_name="roleName")
def role_name(self) -> str:
"""Returns the name of the role."""
return jsii.get(self, "roleName")
@builtins.property
@jsii.member(jsii_name="assumeRolePolicy")
def assume_role_policy(self) -> typing.Optional["PolicyDocument"]:
"""The assume role policy document associated with this role."""
return jsii.get(self, "assumeRolePolicy")
@builtins.property
@jsii.member(jsii_name="permissionsBoundary")
def permissions_boundary(self) -> typing.Optional["IManagedPolicy"]:
"""Returns the permissions boundary attached to this role."""
return jsii.get(self, "permissionsBoundary")
@jsii.implements(IIdentity, IUser)
class User(
aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.User"
):
"""Define a new IAM user."""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
groups: typing.Optional[typing.List["IGroup"]] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
password: typing.Optional[aws_cdk.core.SecretValue] = None,
password_reset_required: typing.Optional[bool] = None,
path: typing.Optional[str] = None,
permissions_boundary: typing.Optional["IManagedPolicy"] = None,
user_name: typing.Optional[str] = None,
) -> None:
"""
:param scope: -
:param id: -
:param groups: Groups to add this user to. You can also use ``addToGroup`` to add this user to a group. Default: - No groups.
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param password: The password for the user. This is required so the user can access the AWS Management Console. You can use ``SecretValue.plainText`` to specify a password in plain text or use ``secretsmanager.Secret.fromSecretAttributes`` to reference a secret in Secrets Manager. Default: - User won't be able to access the management console without a password.
:param password_reset_required: Specifies whether the user is required to set a new password the next time the user logs in to the AWS Management Console. If this is set to 'true', you must also specify "initialPassword". Default: false
:param path: The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide. Default: /
:param permissions_boundary: AWS supports permissions boundaries for IAM entities (users or roles). A permissions boundary is an advanced feature for using a managed policy to set the maximum permissions that an identity-based policy can grant to an IAM entity. An entity's permissions boundary allows it to perform only the actions that are allowed by both its identity-based policies and its permissions boundaries. Default: - No permissions boundary.
:param user_name: A name for the IAM user. For valid values, see the UserName parameter for the CreateUser action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the user name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: - Generated by CloudFormation (recommended)
"""
props = UserProps(
groups=groups,
managed_policies=managed_policies,
password=password,
password_reset_required=password_reset_required,
path=path,
permissions_boundary=permissions_boundary,
user_name=user_name,
)
jsii.create(User, self, [scope, id, props])
@jsii.member(jsii_name="fromUserName")
@builtins.classmethod
def from_user_name(
cls, scope: aws_cdk.core.Construct, id: str, user_name: str
) -> "IUser":
"""Import an existing user given a username.
:param scope: construct scope.
:param id: construct id.
:param user_name: the username of the existing user to import.
"""
return jsii.sinvoke(cls, "fromUserName", [scope, id, user_name])
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to the user.
:param policy: The managed policy to attach.
"""
return jsii.invoke(self, "addManagedPolicy", [policy])
@jsii.member(jsii_name="addToGroup")
def add_to_group(self, group: "IGroup") -> None:
"""Adds this user to a group.
:param group: -
"""
return jsii.invoke(self, "addToGroup", [group])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Adds an IAM statement to the default policy.
:param statement: -
return
:return: true
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches a policy to this user.
:param policy: -
"""
return jsii.invoke(self, "attachInlinePolicy", [policy])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@builtins.property
@jsii.member(jsii_name="userArn")
def user_arn(self) -> str:
"""An attribute that represents the user's ARN.
attribute:
:attribute:: true
"""
return jsii.get(self, "userArn")
@builtins.property
@jsii.member(jsii_name="userName")
def user_name(self) -> str:
"""An attribute that represents the user name.
attribute:
:attribute:: true
"""
return jsii.get(self, "userName")
@builtins.property
@jsii.member(jsii_name="permissionsBoundary")
def permissions_boundary(self) -> typing.Optional["IManagedPolicy"]:
"""Returns the permissions boundary attached to this user."""
return jsii.get(self, "permissionsBoundary")
class WebIdentityPrincipal(
FederatedPrincipal,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.WebIdentityPrincipal",
):
"""A principal that represents a federated identity provider as Web Identity such as Cognito, Amazon, Facebook, Google, etc."""
def __init__(
self,
identity_provider: str,
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
) -> None:
"""
:param identity_provider: identity provider (i.e. 'cognito-identity.amazonaws.com' for users authenticated through Cognito).
:param conditions: The conditions under which the policy is in effect. See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
"""
jsii.create(WebIdentityPrincipal, self, [identity_provider, conditions])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
class AccountPrincipal(
ArnPrincipal, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.AccountPrincipal"
):
"""Specify AWS account ID as the principal entity in a policy to delegate authority to the account."""
def __init__(self, account_id: typing.Any) -> None:
"""
:param account_id: AWS account ID (i.e. 123456789012).
"""
jsii.create(AccountPrincipal, self, [account_id])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="accountId")
def account_id(self) -> typing.Any:
"""AWS account ID (i.e. 123456789012)."""
return jsii.get(self, "accountId")
class AccountRootPrincipal(
AccountPrincipal,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.AccountRootPrincipal",
):
"""Use the AWS account into which a stack is deployed as the principal entity in a policy."""
def __init__(self) -> None:
jsii.create(AccountRootPrincipal, self, [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
class AnyPrincipal(
ArnPrincipal, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.AnyPrincipal"
):
"""A principal representing all identities in all accounts."""
def __init__(self) -> None:
jsii.create(AnyPrincipal, self, [])
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
class Anyone(
AnyPrincipal, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.Anyone"
):
"""A principal representing all identities in all accounts.
deprecated
:deprecated: use ``AnyPrincipal``
stability
:stability: deprecated
"""
def __init__(self) -> None:
jsii.create(Anyone, self, [])
@jsii.interface(jsii_type="@aws-cdk/aws-iam.IGroup")
class IGroup(IIdentity, jsii.compat.Protocol):
"""Represents an IAM Group.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html
"""
@builtins.staticmethod
def __jsii_proxy_class__():
return _IGroupProxy
@builtins.property
@jsii.member(jsii_name="groupArn")
def group_arn(self) -> str:
"""Returns the IAM Group ARN.
attribute:
:attribute:: true
"""
...
@builtins.property
@jsii.member(jsii_name="groupName")
def group_name(self) -> str:
"""Returns the IAM Group Name.
attribute:
:attribute:: true
"""
...
class _IGroupProxy(jsii.proxy_for(IIdentity)):
"""Represents an IAM Group.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html
"""
__jsii_type__ = "@aws-cdk/aws-iam.IGroup"
@builtins.property
@jsii.member(jsii_name="groupArn")
def group_arn(self) -> str:
"""Returns the IAM Group ARN.
attribute:
:attribute:: true
"""
return jsii.get(self, "groupArn")
@builtins.property
@jsii.member(jsii_name="groupName")
def group_name(self) -> str:
"""Returns the IAM Group Name.
attribute:
:attribute:: true
"""
return jsii.get(self, "groupName")
class OpenIdConnectPrincipal(
WebIdentityPrincipal,
metaclass=jsii.JSIIMeta,
jsii_type="@aws-cdk/aws-iam.OpenIdConnectPrincipal",
):
"""A principal that represents a federated identity provider as from a OpenID Connect provider."""
def __init__(
self,
open_id_connect_provider: "IOpenIdConnectProvider",
conditions: typing.Optional[typing.Mapping[str, typing.Any]] = None,
) -> None:
"""
:param open_id_connect_provider: OpenID Connect provider.
:param conditions: The conditions under which the policy is in effect. See `the IAM documentation <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html>`_.
"""
jsii.create(
OpenIdConnectPrincipal, self, [open_id_connect_provider, conditions]
)
@jsii.member(jsii_name="toString")
def to_string(self) -> str:
"""Returns a string representation of an object."""
return jsii.invoke(self, "toString", [])
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
@jsii.implements(IGroup)
class Group(
aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-iam.Group"
):
"""An IAM Group (collection of IAM users) lets you specify permissions for multiple users, which can make it easier to manage permissions for those users.
see
:see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html
"""
def __init__(
self,
scope: aws_cdk.core.Construct,
id: str,
*,
group_name: typing.Optional[str] = None,
managed_policies: typing.Optional[typing.List["IManagedPolicy"]] = None,
path: typing.Optional[str] = None,
) -> None:
"""
:param scope: -
:param id: -
:param group_name: A name for the IAM group. For valid values, see the GroupName parameter for the CreateGroup action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the group name. If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates. Default: Generated by CloudFormation (recommended)
:param managed_policies: A list of managed policies associated with this role. You can add managed policies later using ``addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))``. Default: - No managed policies.
:param path: The path to the group. For more information about paths, see `IAM Identifiers <http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html>`_ in the IAM User Guide. Default: /
"""
props = GroupProps(
group_name=group_name, managed_policies=managed_policies, path=path
)
jsii.create(Group, self, [scope, id, props])
@jsii.member(jsii_name="fromGroupArn")
@builtins.classmethod
def from_group_arn(
cls, scope: aws_cdk.core.Construct, id: str, group_arn: str
) -> "IGroup":
"""Import an external group by ARN.
If the imported Group ARN is a Token (such as a
``CfnParameter.valueAsString`` or a ``Fn.importValue()``) *and* the referenced
group has a ``path`` (like ``arn:...:group/AdminGroup/NetworkAdmin``), the
``groupName`` property will not resolve to the correct value. Instead it
will resolve to the first path component. We unfortunately cannot express
the correct calculation of the full path name as a CloudFormation
expression. In this scenario the Group ARN should be supplied without the
``path`` in order to resolve the correct group resource.
:param scope: construct scope.
:param id: construct id.
:param group_arn: the ARN of the group to import (e.g. ``arn:aws:iam::account-id:group/group-name``).
"""
return jsii.sinvoke(cls, "fromGroupArn", [scope, id, group_arn])
@jsii.member(jsii_name="addManagedPolicy")
def add_managed_policy(self, policy: "IManagedPolicy") -> None:
"""Attaches a managed policy to this group.
:param policy: The managed policy to attach.
"""
return jsii.invoke(self, "addManagedPolicy", [policy])
@jsii.member(jsii_name="addToPolicy")
def add_to_policy(self, statement: "PolicyStatement") -> bool:
"""Add to the policy of this principal.
:param statement: -
"""
return jsii.invoke(self, "addToPolicy", [statement])
@jsii.member(jsii_name="addToPrincipalPolicy")
def add_to_principal_policy(
self, statement: "PolicyStatement"
) -> "AddToPrincipalPolicyResult":
"""Adds an IAM statement to the default policy.
:param statement: -
"""
return jsii.invoke(self, "addToPrincipalPolicy", [statement])
@jsii.member(jsii_name="addUser")
def add_user(self, user: "IUser") -> None:
"""Adds a user to this group.
:param user: -
"""
return jsii.invoke(self, "addUser", [user])
@jsii.member(jsii_name="attachInlinePolicy")
def attach_inline_policy(self, policy: "Policy") -> None:
"""Attaches a policy to this group.
:param policy: The policy to attach.
"""
return jsii.invoke(self, "attachInlinePolicy", [policy])
@builtins.property
@jsii.member(jsii_name="assumeRoleAction")
def assume_role_action(self) -> str:
"""When this Principal is used in an AssumeRole policy, the action to use."""
return jsii.get(self, "assumeRoleAction")
@builtins.property
@jsii.member(jsii_name="grantPrincipal")
def grant_principal(self) -> "IPrincipal":
"""The principal to grant permissions to."""
return jsii.get(self, "grantPrincipal")
@builtins.property
@jsii.member(jsii_name="groupArn")
def group_arn(self) -> str:
"""Returns the IAM Group ARN."""
return jsii.get(self, "groupArn")
@builtins.property
@jsii.member(jsii_name="groupName")
def group_name(self) -> str:
"""Returns the IAM Group Name."""
return jsii.get(self, "groupName")
@builtins.property
@jsii.member(jsii_name="policyFragment")
def policy_fragment(self) -> "PrincipalPolicyFragment":
"""Return the policy fragment that identifies this principal in a Policy."""
return jsii.get(self, "policyFragment")
__all__ = [
"AccountPrincipal",
"AccountRootPrincipal",
"AddToPrincipalPolicyResult",
"AddToResourcePolicyResult",
"AnyPrincipal",
"Anyone",
"ArnPrincipal",
"CanonicalUserPrincipal",
"CfnAccessKey",
"CfnAccessKeyProps",
"CfnGroup",
"CfnGroupProps",
"CfnInstanceProfile",
"CfnInstanceProfileProps",
"CfnManagedPolicy",
"CfnManagedPolicyProps",
"CfnPolicy",
"CfnPolicyProps",
"CfnRole",
"CfnRoleProps",
"CfnServiceLinkedRole",
"CfnServiceLinkedRoleProps",
"CfnUser",
"CfnUserProps",
"CfnUserToGroupAddition",
"CfnUserToGroupAdditionProps",
"CommonGrantOptions",
"CompositeDependable",
"CompositePrincipal",
"Effect",
"FederatedPrincipal",
"FromRoleArnOptions",
"Grant",
"GrantOnPrincipalAndResourceOptions",
"GrantOnPrincipalOptions",
"GrantWithResourceOptions",
"Group",
"GroupProps",
"IGrantable",
"IGroup",
"IIdentity",
"IManagedPolicy",
"IOpenIdConnectProvider",
"IPolicy",
"IPrincipal",
"IResourceWithPolicy",
"IRole",
"IUser",
"LazyRole",
"LazyRoleProps",
"ManagedPolicy",
"ManagedPolicyProps",
"OpenIdConnectPrincipal",
"OpenIdConnectProvider",
"OpenIdConnectProviderProps",
"OrganizationPrincipal",
"Policy",
"PolicyDocument",
"PolicyDocumentProps",
"PolicyProps",
"PolicyStatement",
"PolicyStatementProps",
"PrincipalBase",
"PrincipalPolicyFragment",
"PrincipalWithConditions",
"Role",
"RoleProps",
"ServicePrincipal",
"ServicePrincipalOpts",
"UnknownPrincipal",
"UnknownPrincipalProps",
"User",
"UserProps",
"WebIdentityPrincipal",
]
publication.publish()
| 38.493644
| 1,215
| 0.658839
| 37,009
| 311,914
| 5.451485
| 0.032587
| 0.026091
| 0.021373
| 0.027479
| 0.850749
| 0.830155
| 0.812727
| 0.798968
| 0.784564
| 0.768307
| 0
| 0.001936
| 0.231471
| 311,914
| 8,102
| 1,216
| 38.498395
| 0.839705
| 0.444757
| 0
| 0.749935
| 0
| 0
| 0.140961
| 0.040025
| 0
| 0
| 0
| 0
| 0.000782
| 1
| 0.171578
| false
| 0.009909
| 0.002608
| 0.029465
| 0.33794
| 0.002086
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
160d0f9497b35faafe0d6190d80883e6fb237bef
| 22,800
|
py
|
Python
|
webapp/tests/test_dashboard.py
|
romanek-adam/graphite-web
|
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
|
[
"Apache-2.0"
] | 4,281
|
2015-01-01T12:35:03.000Z
|
2022-03-31T20:06:59.000Z
|
webapp/tests/test_dashboard.py
|
romanek-adam/graphite-web
|
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
|
[
"Apache-2.0"
] | 1,809
|
2015-01-01T21:16:36.000Z
|
2022-03-31T21:25:13.000Z
|
webapp/tests/test_dashboard.py
|
romanek-adam/graphite-web
|
f6d7d16551a6953a5d0a1c19978efbf93fd3f869
|
[
"Apache-2.0"
] | 970
|
2015-01-02T19:49:21.000Z
|
2022-03-27T09:48:44.000Z
|
import copy
import errno
import mock
import os
from . import TEST_CONF_DIR
from django.conf import settings
try:
from django.urls import reverse
except ImportError: # Django < 1.10
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from .base import TestCase
from django.test.utils import override_settings
from graphite.util import json
try:
from django.contrib.auth import get_user_model
User = get_user_model()
except ImportError:
from django.contrib.auth.models import User
class DashboardTest(TestCase):
# Set config to the test config file
settings.DASHBOARD_CONF = os.path.join(TEST_CONF_DIR, 'dashboard.conf')
# Define a testtemplate
testtemplate = {"state": '{"graphs": [[ "target=a.b.c.*.__VALUE__.d", { "from":"-2days", "target":[ "a.b.c.*.__VALUE__.d" ], "until":"now" }, "/render?width=400&from=-2days&until=now&height=250&target=a.b.c.*.__VALUE__.d&_uniq=0.6526056618895382&title=a.b.c.*.__VALUE__.d" ]]}'}
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing'))
def test_dashboard_missing_conf(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing'))
def test_dashboard_template_missing_template(self):
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@mock.patch('graphite.dashboard.views.DashboardConfig.check')
def test_dashboard_conf_read_failure(self, check):
check.side_effect = OSError(errno.EPERM, 'Operation not permitted')
url = reverse('dashboard')
with self.assertRaises(Exception):
_ = self.client.get(url)
@mock.patch('graphite.dashboard.views.DashboardConfig.check')
def test_dashboard_template_conf_read_failure(self, check):
check.side_effect = OSError(errno.EPERM, 'Operation not permitted')
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
with self.assertRaises(Exception):
_ = self.client.get(url)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing_ui'))
def test_dashboard_conf_missing_ui(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing_ui'))
def test_dashboard_template_missing_ui(self):
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing_keyboard-shortcuts'))
def test_dashboard_conf_missing_keyboard_shortcuts(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.missing_keyboard-shortcuts'))
def test_dashboard_template_missing_keyboard_shortcuts(self):
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.invalid_theme'))
def test_dashboard_conf_invalid_theme(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@override_settings(DASHBOARD_CONF=os.path.join(TEST_CONF_DIR, 'dashboard.conf.invalid_theme'))
def test_dashboard_template_invalid_theme(self):
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard_no_user(self):
url = reverse('dashboard')
request = {"user": '', "state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
def test_dashboard_pass_valid(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard', args=['testdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard_pass_invalid_name(self):
url = reverse('dashboard', args=['bogusdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard_find_empty(self):
url = reverse('dashboard_find')
request = {"query": ""}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"dashboards": []}')
def test_dashboard_save_empty(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
def test_dashboard_save_overwrite(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
def test_dashboard_find_existing(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_find')
request = {"query": "test"}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"dashboards": [{"name": "testdashboard"}]}')
def test_dashboard_find_not_existing(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_find')
request = {"query": "not here"}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"dashboards": []}')
def test_dashboard_load_not_existing(self):
url = reverse('dashboard_load', args=['bogusdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Dashboard \'bogusdashboard\' does not exist. "}')
def test_dashboard_load_existing(self):
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_load', args=['testdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"state": {}}')
def test_dashboard_delete_nonexisting(self):
url = reverse('dashboard_delete', args=['bogusdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Dashboard \'bogusdashboard\' does not exist. "}')
def test_dashboard_delete_existing(self):
# Create a dashboard entry
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
# Delete it
url = reverse('dashboard_delete', args=['testdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"success": true}')
# Confirm it was deleted
url = reverse('dashboard_find')
request = {"query": ""}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"dashboards": []}')
def test_dashboard_create_temporary(self):
url = reverse('dashboard_create_temporary')
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"name": "temporary-0"}')
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"name": "temporary-1"}')
url = reverse('dashboard_find')
request = {"query": ""}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"dashboards": []}')
def test_dashboard_template_pass_invalid(self):
url = reverse('dashboard_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard_template_pass_valid(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_template', args=['testtemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_dashboard_find_template_empty(self):
url = reverse('dashboard_find_template')
request = {"query": ""}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"templates": []}')
def test_dashboard_save_template(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
# Save again after it now exists
def test_dashboard_save_template_overwrite(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
def test_dashboard_find_template(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_find_template')
request = {"query": "test"}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"templates": [{"name": "testtemplate"}]}')
def test_dashboard_find_template_nonexistent(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_find_template')
request = {"query": "not here"}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"templates": []}')
def test_dashboard_load_template_nonexistent(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_load_template', args=['bogustemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Template \'bogustemplate\' does not exist. "}')
def test_dashboard_load_template_existing(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_load_template', args=['testtemplate', 'testkey'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
data = json.loads(response.content)
graph_data = json.loads(self.testtemplate["state"].replace('__VALUE__', 'testkey'))
self.assertEqual(data, json.loads('{"state": {"name": "testtemplate/testkey", "graphs": ' + json.dumps(graph_data['graphs']) + '}}'))
def test_dashboard_delete_template_nonexisting(self):
# Delete nonexistent template
url = reverse('dashboard_delete_template', args=['bogustemplate'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Template \'bogustemplate\' does not exist. "}')
def test_dashboard_delete_template_existing(self):
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
url = reverse('dashboard_delete_template', args=['testtemplate'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"success": true}')
url = reverse('dashboard_find_template')
request = {"query": ""}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"templates": []}')
def test_dashboard_help(self):
url = reverse('dashboard_help')
request = {}
response = self.client.get(url, request)
self.assertEqual(response.status_code, 200)
def test_dashboard_email(self):
url = reverse('dashboard_email')
request = {"sender": "noreply@localhost",
"recipients": "noreply@localhost",
"subject": "Test email",
"message": "Here is the test graph",
"graph_params": '{"target":["sumSeries(a.b.c.d)"],"title":"Test","width":"500","from":"-55minutes","until":"now","height":"400"}'}
response = self.client.post(url, request)
self.assertEqual(response.content, b'{"success": true}')
@mock.patch('graphite.dashboard.views.renderView')
def test_dashboard_email_mock_renderView(self, rv):
url = reverse('dashboard_email')
request = {"sender": "noreply@localhost",
"recipients": "noreply@localhost",
"subject": "Test email",
"message": "Here is the test graph",
"graph_params": '{"target":["sumSeries(a.b.c.d)"],"title":"Test","width":"500","from":"-55minutes","until":"now","height":"400"}'}
responseObject = HttpResponse()
responseObject.content = ''
rv.return_value = responseObject
response = self.client.post(url, request)
self.assertEqual(response.content, b'{"success": true}')
def test_dashboard_login_invalid_authenticate(self):
url = reverse('dashboard_login')
request = {"username": "testuser",
"password": "testpassword"}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(json.loads(response.content), json.loads('{"errors": {"reason": "Username and/or password invalid."}, "success": false, "text": {}, "permissions": []}'))
@mock.patch('graphite.dashboard.views.authenticate')
def test_dashboard_login_valid_authenticate(self, authenticate):
url = reverse('dashboard_login')
request = {"username": "testuser",
"password": "testpassword"}
user = User.objects.create(email='testuser@test.com')
user.backend = ''
authenticate.return_value = user
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(json.loads(response.content), json.loads('{"permissions": ["change", "delete"], "success": true, "text": {}, "errors": {}}'))
@mock.patch('graphite.dashboard.views.authenticate')
def test_dashboard_login_valid_authenticate_not_active(self, authenticate):
url = reverse('dashboard_login')
request = {"username": "testuser",
"password": "testpassword"}
user = User.objects.create(email='testuser@test.com')
user.backend = ''
user.is_active = False
authenticate.return_value = user
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(json.loads(response.content), json.loads('{"permissions": [], "success": false, "errors": {"reason": "Account disabled."}, "text": {}}'))
def test_dashboard_logout(self):
url = reverse('dashboard_logout')
request = {"username": "testuser"}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(json.loads(response.content), json.loads('{"errors": {}, "success": true, "text": {}}'))
@mock.patch('graphite.dashboard.views.getPermissions')
def test_dashboard_save_no_permissions(self, gp):
gp.return_value = [None]
url = reverse('dashboard_save', args=['testdashboard'])
request = {"state": '{}'}
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Must be logged in with appropriate permissions to save"}')
@mock.patch('graphite.dashboard.views.getPermissions')
def test_dashboard_delete_no_permissions(self, gp):
gp.return_value = [None]
url = reverse('dashboard_delete', args=['testdashboard'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Must be logged in with appropriate permissions to delete"}')
@mock.patch('graphite.dashboard.views.getPermissions')
def test_dashboard_save_template_no_permissions(self, gp):
gp.return_value = [None]
url = reverse('dashboard_save_template', args=['testtemplate', 'testkey'])
request = copy.deepcopy(self.testtemplate)
response = self.client.post(url, request)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Must be logged in with appropriate permissions to save the template"}')
@mock.patch('graphite.dashboard.views.getPermissions')
def test_dashboard_delete_template_no_permissions(self, gp):
gp.return_value = [None]
url = reverse('dashboard_delete_template', args=['testtemplate'])
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'{"error": "Must be logged in with appropriate permissions to delete the template"}')
def test_getPermissions_no_user(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=False
settings.DASHBOARD_REQUIRE_PERMISSIONS=False
settings.DASHBOARD_REQUIRE_EDIT_GROUP=False
from graphite.dashboard.views import getPermissions
self.assertEqual(getPermissions(False), ['change', 'delete'])
def test_getPermissions_no_user_require_auth(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=True
settings.DASHBOARD_REQUIRE_PERMISSIONS=False
settings.DASHBOARD_REQUIRE_EDIT_GROUP=False
from graphite.dashboard.views import getPermissions
self.assertEqual(getPermissions(False), [])
def test_getPermissions_valid_user(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=True
settings.DASHBOARD_REQUIRE_PERMISSIONS=False
settings.DASHBOARD_REQUIRE_EDIT_GROUP=False
from graphite.dashboard.views import getPermissions
user = User.objects.create(email='testuser@test.com')
user.backend = ''
self.assertEqual(getPermissions(user), ['change', 'delete'])
def test_getPermissions_valid_user_require_perm(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=True
settings.DASHBOARD_REQUIRE_PERMISSIONS=True
settings.DASHBOARD_REQUIRE_EDIT_GROUP=False
from graphite.dashboard.views import getPermissions
user = User.objects.create(email='testuser@test.com')
user.backend = ''
self.assertEqual(getPermissions(user), [])
def test_getPermissions_valid_user_edit_group(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=True
settings.DASHBOARD_REQUIRE_PERMISSIONS=False
settings.DASHBOARD_REQUIRE_EDIT_GROUP=True
from graphite.dashboard.views import getPermissions
user = User.objects.create(email='testuser@test.com')
user.backend = ''
self.assertEqual(getPermissions(user), [])
def test_getPermissions_valid_user_require_perms_edit_group(self):
settings.DASHBOARD_REQUIRE_AUTHENTICATION=True
settings.DASHBOARD_REQUIRE_PERMISSIONS=True
settings.DASHBOARD_REQUIRE_EDIT_GROUP=True
from graphite.dashboard.views import getPermissions
user = User.objects.create(email='testuser@test.com')
user.backend = ''
self.assertEqual(getPermissions(user), [])
| 46.530612
| 284
| 0.675
| 2,519
| 22,800
| 5.92894
| 0.078206
| 0.094409
| 0.127821
| 0.114563
| 0.886575
| 0.86468
| 0.845196
| 0.837563
| 0.831537
| 0.827051
| 0
| 0.012139
| 0.194254
| 22,800
| 489
| 285
| 46.625767
| 0.800827
| 0.008202
| 0
| 0.730392
| 0
| 0.014706
| 0.202531
| 0.065608
| 0
| 0
| 0
| 0
| 0.235294
| 1
| 0.127451
| false
| 0.019608
| 0.053922
| 0
| 0.186275
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1615bd3658255000f1c95f3f2901e16a933bd098
| 8,597
|
py
|
Python
|
Python/resallocPoA/core.py
|
rahul-chandan/poa-res-alloc
|
6155b17281764f73b802b232169e7941ce332d33
|
[
"MIT"
] | 1
|
2021-06-21T01:58:32.000Z
|
2021-06-21T01:58:32.000Z
|
Python/resallocPoA/core.py
|
rahul-chandan/poa-res-alloc
|
6155b17281764f73b802b232169e7941ce332d33
|
[
"MIT"
] | null | null | null |
Python/resallocPoA/core.py
|
rahul-chandan/poa-res-alloc
|
6155b17281764f73b802b232169e7941ce332d33
|
[
"MIT"
] | 2
|
2020-03-05T10:27:45.000Z
|
2021-06-21T01:58:28.000Z
|
from .helpers import dualLP, optimalLP, optimalLPConstant
import numpy as np
def computeCostMinPoA(n, B, f, options=None):
''' Authors: Rahul Chandan, Dario Paccagnan and Jason Marden
Copyright(c) 2020 Rahul Chandan, Dario Paccagnan, Jason Marden.
All rights reserved. See LICENSE file in the project root for full license information.
Description
-----------
Computes the price-of-anarchy of atomic congestion games
with congestion functions obtained as linear combinations of
{b_1(x),...,b_m(x)}, and n players
Parameters
----------
n : int
Number of players.
B : (m,n) ndarray
Basis congestion functions defined for 'N = {1, 2, ..., n}'.
f : (m,n) ndarray
Player cost functions defined for 'N = {1, 2, ..., n}'.
options : dict, optional
Optimization options.
Returns
-------
PoA : float
Price-of-anarchy.
'''
if options is None:
try:
from scipy.optimize import linprog
options = { 'solver' : linprog,
'method' : 'revised simplex' }
except ImportError:
msg = 'No optimization options were specified, and SciPy is not installed.'
raise RuntimeError(msg)
Btemp = np.pad(B, pad_width=((0,0),(1,1)), mode='constant').T
ftemp = np.pad(f, pad_width=((0,0),(1,1)), mode='constant').T
x, _, exitFlag, output = dualLP( n, Btemp, ftemp, True, options)
if exitFlag:
raise RuntimeError(output)
PoA = 1./x[1]
return PoA
def computeWelfareMaxPoA(n, B, f, options=None):
''' Authors: Rahul Chandan, Dario Paccagnan and Jason Marden
Copyright(c) 2020 Rahul Chandan, Dario Paccagnan, Jason Marden.
All rights reserved. See LICENSE file in the project root for full license information.
Description
-----------
Computes the price-of-anarchy of atomic congestion games
with welfare functions obtained as linear combinations of
{b_1(x),...,b_m(x)}, utility functions obtained as linear
combinations of {f_1(x),...,f_m(x)}, and n players.
Parameters
----------
n : int
Number of players.
B : (m,n) ndarray
Basis welfare functions defined for 'N = {1, 2, ..., n}'.
f : (m,n) ndarray
Player utility functions defined for 'N = {1, 2, ..., n}'.
options : dict, optional
Optimization options.
Returns
-------
PoA : float
Price-of-anarchy of optimal constant tolls.
'''
if options is None:
try:
from scipy.optimize import linprog
options = { 'solver' : linprog,
'method' : 'revised simplex' }
except ImportError:
msg = 'No optimization options were specified, and SciPy is not installed.'
raise RuntimeError(msg)
Btemp = np.pad(B, pad_width=((0,0),(1,1)), mode='constant').T
ftemp = np.pad(f, pad_width=((0,0),(1,1)), mode='constant').T
x, _, exitFlag, output = dualLP( n, Btemp, ftemp, False, options)
if exitFlag:
raise RuntimeError(output)
PoA = x[1]
return PoA
def optimizeCostMinPoA(n, B, options=None):
''' Authors: Rahul Chandan, Dario Paccagnan and Jason Marden
Copyright(c) 2020 Rahul Chandan, Dario Paccagnan, Jason Marden.
All rights reserved. See LICENSE file in the project root for full license information.
Description
-----------
Optimizes the price-of-anarchy of atomic congestion games
with congestion functions obtained as linear combination of
basis {b_1(x),...,b_m(x)}, and n players.
Parameters
----------
n : int
Number of players.
B : (m,n) ndarray
Basis cost functions defined for 'N = {1, 2, ..., n}'.
options : dict, optional
Optimization options.
Returns
-------
OptPoA : float
Price-of-anarchy of optimal constant tolls.
Optf : (m,n) ndarray
Functions used to generate optimal mechanism.
'''
if options is None:
try:
from scipy.optimize import linprog
options = { 'solver' : linprog,
'method' : 'revised simplex' }
except ImportError:
msg = 'No optimization options were specified, and SciPy is not installed.'
raise RuntimeError(msg)
m = np.shape( B )[0]
OptPoA = 0.
Optf = np.zeros( (m,n), dtype=np.float )
for currentBasis in np.arange(m):
w = B[currentBasis,:]
x, _, exitFlag, output = optimalLP(n, np.pad(w, pad_width=1, mode='constant'), True, options)
if exitFlag:
raise RuntimeError(output)
Optf[currentBasis,:] = x[0:n]
currentPoA = 1./x[n]
OptPoA = max(OptPoA, currentPoA)
return [ OptPoA, Optf ]
def optimizeCostMinPoAConstant(n, B, options=None):
''' Authors: Rahul Chandan, Dario Paccagnan and Jason Marden
Copyright(c) 2020 Rahul Chandan, Dario Paccagnan, Jason Marden.
All rights reserved. See LICENSE file in the project root for full license information.
Description
-----------
Optimizes the price-of-anarchy (using *constant* tolls) of atomic
congestion games with congestion functions obtained as linear combination
of basis {b_1(x),...,b_m(x)}, and n players.
Parameters
----------
n : int
Number of players.
B : (m,n) ndarray
Basis congestion functions defined for 'N = {1, 2, ..., n}'.
options : dict, optional
Optimization options.
Returns
-------
OptPoA : float
Price-of-anarchy of optimal constant mechanism.
OptTau : (m,) ndarray
Values used to generate optimal constant mechanism.
'''
if options is None:
try:
from scipy.optimize import linprog
options = { 'solver' : linprog,
'method' : 'revised simplex' }
except ImportError:
msg = 'No optimization options were specified, and SciPy is not installed.'
raise RuntimeError(msg)
m = np.shape( B )[0]
Btemp = np.pad(B, pad_width=((0,0),(1,1)), mode='constant').T
x, _, exitFlag, output = optimalLPConstant(n, Btemp, True, options)
if exitFlag:
raise RuntimeError(output)
OptPoA = 1./x[m+1]
OptTau = x[0:m]/x[m]
return [ OptPoA, OptTau ]
def optimizeWelfareMaxPoA(n, B, options=None):
''' Authors: Rahul Chandan, Dario Paccagnan and Jason Marden
Copyright(c) 2020 Rahul Chandan, Dario Paccagnan, Jason Marden.
All rights reserved. See LICENSE file in the project root for full license information.
Description
-----------
Optimizes the price-of-anarchy of atomic congestion games
with welfare functions obtained as linear combination of basis
{b_1(x),...,b_m(x)}, and n players.
Parameters
----------
n : int
Number of players.
B : (m,n) ndarray
Resource welfare function defined for 'N = {1, 2, ..., n}'.
options : dict, optional
Choice of solver and options.
Returns
-------
OptPoA : float
Optimal price-of-anarchy.
Optf : (m,n) ndarray
Functions used to generate optimal mechanism.
'''
if options is None:
try:
from scipy.optimize import linprog
options = { 'solver' : linprog,
'method' : 'revised simplex' }
except ImportError:
msg = 'No optimization options were specified, and SciPy is not installed.'
raise RuntimeError(msg)
m = np.shape( B )[0]
OptPoA = 0.
Optf = np.zeros( (m,n), dtype=np.float )
for currentBasis in np.arange(m):
w = B[currentBasis,:]
x, _, exitFlag, output = optimalLP(n, np.pad(w, pad_width=1, mode='constant'), False, options)
if exitFlag:
raise RuntimeError(output)
Optf[currentBasis,:] = x[0:n]
currentPoA = x[n]
OptPoA = max(OptPoA, currentPoA)
return [ OptPoA, Optf ]
| 30.485816
| 102
| 0.559846
| 988
| 8,597
| 4.847166
| 0.13664
| 0.004594
| 0.035498
| 0.054291
| 0.911046
| 0.905199
| 0.897056
| 0.866152
| 0.860514
| 0.835665
| 0
| 0.013236
| 0.332093
| 8,597
| 281
| 103
| 30.594306
| 0.820794
| 0.43457
| 0
| 0.795699
| 0
| 0
| 0.132929
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.053763
| false
| 0
| 0.129032
| 0
| 0.236559
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
165577b041f8254ec09704fb2fb3c090aa734caa
| 9,858
|
py
|
Python
|
bot.py
|
cs3219-team6/assignment-5
|
f79bec0aa4749f912ab552ca43389b20eefbdf92
|
[
"MIT"
] | null | null | null |
bot.py
|
cs3219-team6/assignment-5
|
f79bec0aa4749f912ab552ca43389b20eefbdf92
|
[
"MIT"
] | 8
|
2017-04-09T14:15:56.000Z
|
2021-06-01T21:46:50.000Z
|
bot.py
|
cs3219-team6/assignment-5
|
f79bec0aa4749f912ab552ca43389b20eefbdf92
|
[
"MIT"
] | null | null | null |
import datetime
import gitguard
import visualizer
import logging
import settings_secret
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',\
level=logging.INFO)
logger = logging.getLogger(__name__)
updater = Updater(token= settings_secret.TELEGRAM_API_TOKEN)
dispatcher = updater.dispatcher
def parse_datetime(input):
"""
Github date parser.
Args:
input (str): date in format of yyy/mm/dd
Returns:
datetime.date: If correct format. None if otherwise.
"""
try:
return datetime.datetime.strptime(input, '%Y/%m/%d').date()
except ValueError:
return None
def start(bot, update):
bot.sendMessage(chat_id=update.message.chat_id, text="I'm a bot, please talk to me!\nYou can use /top_three /top_contributor /commit_history /team_contribution /team_lines_contribution and /last_commit")
start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)
def top_three(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/top_three <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if len(args) == 1 and not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
if not gitguard.is_repo_link_valid(args[0], args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
if len(args) == 1:
res = gitguard.get_top_n_contributors(args[0], 3)
else:
res = gitguard.get_top_n_contributors(args[0], 3, args[1], args[2])
#TODO(tjonganthony): change the message returned
bot.sendMessage(chat_id=update.message.chat_id, text=str(map(lambda x: str(x['username']), res)))
top_three_handler = CommandHandler('top_three', top_three, pass_args=True)
dispatcher.add_handler(top_three_handler)
def top_contributor(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/top_contributor <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if len(args) == 1 and not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
if not gitguard.is_repo_link_valid(args[0], args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
if len(args) == 1:
res = gitguard.get_top_contributor_in_past_week(args[0])
else:
res = gitguard.get_top_contributor_in_past_week(args[0], args[1], args[2])
#TODO(tjonganthony): change the message returned
bot.sendMessage(chat_id=update.message.chat_id, text=str(res))
top_contributor_handler = CommandHandler('top_contributor', top_contributor, pass_args=True)
dispatcher.add_handler(top_contributor_handler)
def last_commit(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/last_commit <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if len(args) == 1 and not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
if not gitguard.is_repo_link_valid(args[0], args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
if len(args) == 1:
res = gitguard.get_latest_commit_summary(args[0])
else:
res = gitguard.get_latest_commit_summary(args[0], args[1], args[2])
#TODO(tjonganthony): change output format
bot.sendMessage(chat_id=update.message.chat_id, text=str(res))
last_commit_handler = CommandHandler('last_commit', last_commit, pass_args=True)
dispatcher.add_handler(last_commit_handler)
def commit_history(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/commit_history <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
viz_file = 'tmp.png'
if len(args) == 1:
visualizer.get_team_commit_history(args[0], viz_file)
else:
visualizer.get_team_commit_history(args[0], viz_file, username=args[1], password=args[2])
#TODO(tjonganthony): change the message returned
bot.sendPhoto(chat_id=update.message.chat_id, photo=open(viz_file, 'rb'))
commit_history_handler = CommandHandler('commit_history', commit_history, pass_args=True)
dispatcher.add_handler(commit_history_handler)
def team_contribution(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/team_contribution <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
viz_file = 'tmp.png'
if len(args) == 1:
visualizer.get_team_contribution_summary(args[0], viz_file)
else:
visualizer.get_team_contribution_summary(args[0], viz_file, username=args[1], password=args[2])
#TODO(tjonganthony): change the message returned
bot.sendPhoto(chat_id=update.message.chat_id, photo=open(viz_file, 'rb'))
team_contribution_handler = CommandHandler('team_contribution', team_contribution, pass_args=True)
dispatcher.add_handler(team_contribution_handler)
def team_lines_contribution(bot, update, args):
# check length of argument. 3 if username and credentials is given, 1 if otherwise.
if len(args) != 1 and len(args) != 3:
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong format. Format must follow `/team_lines_contribution <repo_link> [<username> <password]`", parse_mode='Markdown')
return
# first argument is always the repo link
if not gitguard.is_repo_link_valid(args[0]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong or invalid github repo. Repo format must follow `<username>/<repo_name>`", parse_mode='Markdown')
return
# check validity of credentials
if len(args) == 3 and not gitguard.is_user_valid(args[1], args[2]):
bot.sendMessage(chat_id=update.message.chat_id, text="Wrong github credentials.")
return
viz_file = 'tmp.png'
if len(args) == 1:
visualizer.get_team_total_lines_summary(args[0], viz_file)
else:
visualizer.get_team_total_lines_summary(args[0], viz_file, username=args[1], password=args[2])
#TODO(tjonganthony): change the message returned
bot.sendPhoto(chat_id=update.message.chat_id, photo=open(viz_file, 'rb'))
team_lines_contribution_handler = CommandHandler('team_lines_contribution', team_lines_contribution, pass_args=True)
dispatcher.add_handler(team_lines_contribution_handler)
updater.start_polling()
| 45.428571
| 207
| 0.714039
| 1,412
| 9,858
| 4.79745
| 0.09915
| 0.049601
| 0.049601
| 0.078536
| 0.803809
| 0.803218
| 0.792589
| 0.782256
| 0.759079
| 0.720992
| 0
| 0.011244
| 0.170014
| 9,858
| 216
| 208
| 45.638889
| 0.816671
| 0.133901
| 0
| 0.57037
| 0
| 0.007407
| 0.2149
| 0.03395
| 0
| 0
| 0
| 0.00463
| 0
| 1
| 0.059259
| false
| 0.111111
| 0.044444
| 0
| 0.274074
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
16b0fa0a9bb1de0bdc0327f8b119851e6e0f6966
| 37,885
|
py
|
Python
|
dual_encoder/losses_test.py
|
Abhin02/federated
|
5fd8f69284c2784b635faadfaf6c66ce843f7701
|
[
"Apache-2.0"
] | 1
|
2022-03-16T02:13:39.000Z
|
2022-03-16T02:13:39.000Z
|
dual_encoder/losses_test.py
|
notminusone/federated
|
6a709f5598450232b918c046cfeba849f479d5cb
|
[
"Apache-2.0"
] | null | null | null |
dual_encoder/losses_test.py
|
notminusone/federated
|
6a709f5598450232b918c046cfeba849f479d5cb
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2021, Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from absl.testing import absltest
import tensorflow as tf
from dual_encoder import losses
from dual_encoder import model_utils as utils
class LossesTest(absltest.TestCase):
def test_batch_softmax(self):
loss = losses.BatchSoftmax()
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_similarities(self):
loss = losses.BatchSoftmax(expect_embeddings=False)
y_pred = tf.constant(
[[0.9999999, 0.97463185, 0.92582005, 0.92582005, -0.9999999],
[0.97463185, 1.0000001, 0.98692757, 0.98692757, -0.97463185],
[0.92582005, 0.98692757, 0.99999994, 0.99999994, -0.92582005],
[0.92582005, 0.98692757, 0.99999994, 0.99999994, -0.92582005],
[0.98198044, 0.9770084, 0.942809, 0.942809, -0.98198044]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.7907718
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.7907718
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_y_true_expand_dims(self):
loss = losses.BatchSoftmax()
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1]])
y_true = tf.expand_dims(tf.constant([1.0, 1.0, 1.0, 1.0]), -1)
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_context_label_spreadout_no_embeddings(self):
with self.assertRaises(ValueError):
losses.BatchSoftmax(expect_embeddings=False, spreadout_context_lambda=0.1)
with self.assertRaises(ValueError):
losses.BatchSoftmax(expect_embeddings=False, spreadout_label_lambda=0.1)
with self.assertRaises(ValueError):
losses.BatchSoftmax(
expect_embeddings=False,
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.1)
def test_batch_softmax_y_true_2d(self):
loss = losses.BatchSoftmax()
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1]])
y_true = tf.constant([[1.0], [1.0], [1.0], [1.0]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3616819
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_weighted(self):
loss = losses.BatchSoftmax()
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 1, 2], [1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1],
[1, 1, 1], [-1, -2, -3]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0, 3.0])
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.2404877798897878
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_weighted_y_true_2d(self):
loss = losses.BatchSoftmax()
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 1, 2], [1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1],
[1, 1, 1], [-1, -2, -3]])
y_true = tf.constant([[1.0], [1.0], [1.0], [1.0], [3.0]])
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.2404877798897878
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_dot_product(self):
loss = losses.BatchSoftmax(normalization_fn=None)
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 10.500068
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 10.500068
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_spreadout(self):
loss = losses.BatchSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [-1, -2, -3], [1, 1, 1],
[1, 2, 3], [4.0, 5.0, 6.0], [-2, 4, 6], [1, 1, 1]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 3.1863585
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 3.1863585
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_spreadout_weighted(self):
loss = losses.BatchSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1], [1, 1, 1],
[1, 1, 2], [1, 2, 3], [4.0, 5.0, 6.0], [1, 1, 1],
[1, 1, 1], [-1, -2, -3]])
y_true = tf.constant([1.0, 1.0, 1.0, 1.0, 3.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 4.8267508
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 4.8267508
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_spreadout_weighted_dot_product(self):
loss = losses.BatchSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
y_pred = tf.constant(
[[1, 0, 0], [2, 0, 0], [0, 1, 0], [0, 2, 0], [0, 0, 1], [1, 0, 0],
[2, 0, 0], [0, 1, 0], [0, 2, 0], [0, 0, 1]],
dtype=tf.float32)
# All 0 weights to test spreadout only.
y_true = tf.constant([0.0, 0.0, 0.0, 0.0, 0.0])
# Similarities (context, label, and cross):
# 1, 2, 0, 0, 0
# 2, 4, 0, 0, 0
# 0, 0, 1, 2, 0
# 0, 0, 2, 4, 0
# 0, 0, 0, 0, 1
# Off-diagonal elements:
# 0, 2, 0, 0, 0
# 2, 0, 0, 0, 0
# 0, 0, 0, 2, 0
# 0, 0, 2, 0, 0
# 0, 0, 0, 0, 0
# Spreadout loss value (for each of context, label, cross):
# sqrt(4 * 2^2) = 4
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.4
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 2.4
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_spreadout_weighted_dot_product_multiple_similarities(
self):
loss = losses.BatchSoftmax(
spreadout_context_lambda=0.4,
spreadout_label_lambda=0.3,
spreadout_cross_lambda=0.7,
normalization_fn=None)
y_pred = tf.constant(
[[1, 0, 0], [2, 0, 0], [0, 1, 0], [0, 2, 0], [0, 0, 1], [1, 0, 0],
[2, 1, 0], [0, 1, 0], [0, 2, 0], [0, 2, 1]],
dtype=tf.float32)
# All 0 weights to test spreadout only.
y_true = tf.constant([0.0, 0.0, 0.0, 0.0, 0.0])
# Context off-diagonal elements:
# 0, 2, 0, 0, 0
# 2, 0, 0, 0, 0
# 0, 0, 0, 2, 0
# 0, 0, 2, 0, 0
# 0, 0, 0, 0, 0
# Spreadout loss: sqrt(4 * 2^2) = 4
# Label off-diagonal elements:
# 0, 2, 0, 0, 0
# 2, 0, 1, 2, 2
# 0, 1, 0, 2, 2
# 0, 2, 2, 0, 4
# 0, 2, 2, 4, 0
# Spreadout loss: sqrt(2 * 1^2 + 10 * 2^2 + 2 * 4^2) = 8.602325267
# Cross off-diagonal elements:
# 0, 2, 0, 0, 0
# 2, 0, 0, 0, 0
# 0, 1, 0, 2, 2
# 0, 2, 2, 0, 4
# 0, 0, 0, 0, 0
# Spreadout loss: sqrt(1 * 1^2 + 6 * 2^2 + 1 * 4^2) = 6.4031242374
# Weighted spreadout loss value:
# 0.4 * 4 + 0.3 * 8.602325267 + 0.7 * 6.4031242374 = 8.6628845463
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 8.6628845463
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 8.6628845463
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_get_config(self):
loss = losses.BatchSoftmax()
config = loss.get_config()
expected_config = {
'normalization_fn': utils.l2_normalize_fn,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.0,
'name': None,
'reduction': 'auto',
'label_indices_fn': tf.range,
}
self.assertEqual(config, expected_config)
def test_batch_softmax_get_config_keyword_args(self):
label_indices_fn_instance = lambda x: tf.cast(tf.zeros((x,)), tf.int32)
loss = losses.BatchSoftmax(
normalization_fn=None,
expect_embeddings=False,
spreadout_context_lambda=0.0,
spreadout_label_lambda=0.0,
spreadout_cross_lambda=0.1,
label_indices_fn=label_indices_fn_instance,
name='my_loss')
config = loss.get_config()
expected_config = {
'normalization_fn': None,
'expect_embeddings': False,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.1,
'name': 'my_loss',
'reduction': 'auto',
'label_indices_fn': label_indices_fn_instance,
}
self.assertEqual(config, expected_config)
def test_batch_softmax_with_global_similarity(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity()
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_batch_softmax_with_global_similarity_flat_y_true(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity()
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([1, 2])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_batch_softmax_and_batch_softmax_with_global_similarity(self):
loss_1 = losses.BatchSoftmaxWithGlobalSimilarity()
loss_2 = losses.BatchSoftmax()
y_pred_1 = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_pred_2 = tf.constant([[1, 0], [0.0, 1.0], [0, 1], [1, 0]])
y_true = tf.constant([[1], [2]])
loss_value_1 = loss_1(y_true, y_pred_1)
loss_value_2 = loss_2(y_true, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_batch_softmax_with_global_similarity_similarities(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity(expect_embeddings=False)
y_pred = tf.constant([[0.7071067, 0.0, 1.0, 1.0],
[0.7071067, 1.0, 0.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_batch_softmax_and_batch_softmax_with_global_similarity_similarities(self): # pylint: disable=line-too-long
loss_1 = losses.BatchSoftmaxWithGlobalSimilarity(expect_embeddings=False)
loss_2 = losses.BatchSoftmax(expect_embeddings=False)
y_pred_1 = tf.constant([[0.7071067, 0.0, 1.0, 1.0],
[0.7071067, 1.0, 0.0, 0.0]])
y_pred_2 = tf.constant([[0.0, 1.0], [1.0, 0.0]])
y_true = tf.constant([[1], [2]])
loss_value_1 = loss_1(y_true, y_pred_1)
loss_value_2 = loss_2(y_true, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_batch_softmax_with_global_similarity_context_label_spreadout_no_embeddings(self): # pylint: disable=line-too-long
with self.assertRaises(ValueError):
losses.BatchSoftmaxWithGlobalSimilarity(
expect_embeddings=False, spreadout_context_lambda=0.1)
with self.assertRaises(ValueError):
losses.BatchSoftmaxWithGlobalSimilarity(
expect_embeddings=False, spreadout_label_lambda=0.1)
with self.assertRaises(ValueError):
losses.BatchSoftmaxWithGlobalSimilarity(
expect_embeddings=False,
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.1)
def test_batch_softmax_with_global_similarity_dot_product(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity(normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.3132616
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_batch_softmax_and_batch_softmax_with_global_similarity_dot_product(self): # pylint: disable=line-too-long
loss_1 = losses.BatchSoftmaxWithGlobalSimilarity(normalization_fn=None)
loss_2 = losses.BatchSoftmax(normalization_fn=None)
y_pred_1 = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1, 0]])
y_pred_2 = tf.constant([[1.0, 0.0], [0, 1], [0.0, 1.0], [1, 0]])
y_true = tf.constant([[1], [2]])
loss_value_1 = loss_1(y_true, y_pred_1)
loss_value_2 = loss_2(y_true, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_batch_softmax_with_global_similarity_spreadout(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.7375257
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.7375257
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_batch_softmax_and_batch_softmax_with_global_similarity_spreadout(self): # pylint: disable=line-too-long
loss_1 = losses.BatchSoftmaxWithGlobalSimilarity(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
loss_2 = losses.BatchSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred_1 = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_pred_2 = tf.constant([[1, 0], [0.0, 1.0], [0, 1], [1, 0]])
y_true = tf.constant([[1], [2]])
loss_value_1 = loss_1(y_true, y_pred_1)
loss_value_2 = loss_2(y_true, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_batch_softmax_with_global_similarity_spreadout_dot_product(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.7375257
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.7375257
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_batch_softmax_and_batch_softmax_with_global_similarity_spreadout_dot_product(self): # pylint: disable=line-too-long
loss_1 = losses.BatchSoftmaxWithGlobalSimilarity(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
loss_2 = losses.BatchSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
y_pred_1 = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1, 0]])
y_pred_2 = tf.constant([[1.0, 0.0], [0, 1], [0.0, 1.0], [1, 0]])
y_true = tf.constant([[1], [2]])
loss_value_1 = loss_1(y_true, y_pred_1)
loss_value_2 = loss_2(y_true, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_batch_softmax_with_global_similarity_get_config(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity()
config = loss.get_config()
expected_config = {
'normalization_fn': utils.l2_normalize_fn,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.0,
'name': None,
'reduction': 'auto',
}
self.assertEqual(config, expected_config)
def test_batch_softmax_with_global_similarity_get_config_keyword_args(self):
loss = losses.BatchSoftmaxWithGlobalSimilarity(
normalization_fn=None,
expect_embeddings=False,
spreadout_context_lambda=0.0,
spreadout_label_lambda=0.0,
spreadout_cross_lambda=0.1,
name='my_loss')
config = loss.get_config()
expected_config = {
'normalization_fn': None,
'expect_embeddings': False,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.1,
'name': 'my_loss',
'reduction': 'auto'
}
self.assertEqual(config, expected_config)
def test_global_softmax(self):
loss = losses.GlobalSoftmax()
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_global_softmax_similarities(self):
loss = losses.GlobalSoftmax(expect_embeddings=False)
y_pred = tf.constant([[0.7071067, 0.0, 1.0, 1.0],
[0.7071067, 1.0, 0.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_global_softmax_context_label_spreadout_no_embeddings(self):
with self.assertRaises(ValueError):
losses.GlobalSoftmax(
expect_embeddings=False, spreadout_context_lambda=0.1)
with self.assertRaises(ValueError):
losses.GlobalSoftmax(expect_embeddings=False, spreadout_label_lambda=0.1)
with self.assertRaises(ValueError):
losses.GlobalSoftmax(
expect_embeddings=False,
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.1)
def test_global_softmax_dot_product(self):
loss = losses.GlobalSoftmax(normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 2.0224552
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_global_softmax_spreadout(self):
loss = losses.GlobalSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 3.0696688
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 3.0696688
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_global_softmax_spreadout_dot_product(self):
loss = losses.GlobalSoftmax(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([[1], [2]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 3.0696688
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 3.0696688
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_global_softmax_get_config(self):
loss = losses.GlobalSoftmax()
config = loss.get_config()
expected_config = {
'normalization_fn': utils.l2_normalize_fn,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.0,
'name': None,
'reduction': 'auto',
}
self.assertEqual(config, expected_config)
def test_global_softmax_get_config_keyword_args(self):
loss = losses.GlobalSoftmax(
normalization_fn=None,
expect_embeddings=False,
spreadout_context_lambda=0.0,
spreadout_label_lambda=0.0,
spreadout_cross_lambda=0.1,
name='my_loss')
config = loss.get_config()
expected_config = {
'normalization_fn': None,
'expect_embeddings': False,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.1,
'name': 'my_loss',
'reduction': 'auto'
}
self.assertEqual(config, expected_config)
def test_hinge(self):
loss = losses.Hinge()
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_with_global_similarity(self):
loss = losses.Hinge(use_global_similarity=True)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 1],
[1, 0]])
y_true = tf.constant([[0], [1], [3]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_compare_hinge_and_hinge_with_global_similarity(self):
loss_1 = losses.Hinge()
loss_2 = losses.Hinge(use_global_similarity=True)
y_pred_1 = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true_1 = tf.constant([1.0, 1.0, 1.0])
y_pred_2 = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 1],
[1, 0]])
y_true_2 = tf.constant([[0], [1], [3]])
loss_value_1 = loss_1(y_true_1, y_pred_1)
loss_value_2 = loss_2(y_true_2, y_pred_2)
tf.debugging.assert_near(loss_value_1, loss_value_2)
def test_hinge_similarities(self):
loss = losses.Hinge(expect_embeddings=False)
y_pred = tf.constant([[0.0, 1.0, 1.0], [1.0, 0.0, 0.0],
[0.7071067, 0.7071067, 0.7071067]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_similarities_with_global_similarity(self):
loss = losses.Hinge(expect_embeddings=False, use_global_similarity=True)
y_pred = tf.constant([[0.0, 1.0, 0.7071067, 1.0],
[1.0, 0.0, 0.7071067, 0.0],
[0.7071067, 0.7071067, 1.0, 0.7071067]])
y_true = tf.constant([[0], [1], [3]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_Hinge_context_label_spreadout_no_embeddings(self):
with self.assertRaises(ValueError):
losses.Hinge(expect_embeddings=False, spreadout_context_lambda=0.1)
with self.assertRaises(ValueError):
losses.Hinge(expect_embeddings=False, spreadout_label_lambda=0.1)
with self.assertRaises(ValueError):
losses.Hinge(
expect_embeddings=False,
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.1)
def test_hinge_dot_product(self):
loss = losses.Hinge(normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 0.552403
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_spreadout(self):
loss = losses.Hinge(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_spreadout_with_global_similarity(self):
loss = losses.Hinge(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
use_global_similarity=True)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [0, 0],
[1, 0]])
y_true = tf.constant([[0], [1], [3]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_spreadout_dot_product(self):
loss = losses.Hinge(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
normalization_fn=None)
y_pred = tf.constant([[1.0, 0.0], [0, 1], [0.7071067, 0.7071067],
[0.0, 1.0], [1, 0], [1.0, 0.0]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.576667
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_hinge_get_config(self):
loss = losses.Hinge()
config = loss.get_config()
expected_config = {
'normalization_fn': utils.l2_normalize_fn,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.0,
'name': None,
'reduction': 'auto',
}
self.assertEqual(config, expected_config)
def test_hinge_get_config_keyword_args(self):
loss = losses.Hinge(
normalization_fn=None,
expect_embeddings=False,
spreadout_context_lambda=0.0,
spreadout_label_lambda=0.0,
spreadout_cross_lambda=0.1,
name='my_loss')
config = loss.get_config()
expected_config = {
'normalization_fn': None,
'expect_embeddings': False,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.1,
'name': 'my_loss',
'reduction': 'auto'
}
self.assertEqual(config, expected_config)
def test_spreadout(self):
loss = losses.Spreadout(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [1, 0]])
y_true = tf.constant([1.0, 1.0, 1.0])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.024264
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.024264
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_spreadout_with_global_similarity(self):
loss = losses.Spreadout(
spreadout_context_lambda=0.1,
spreadout_label_lambda=0.2,
spreadout_cross_lambda=0.3,
use_global_similarity=True)
y_pred = tf.constant([[1, 0], [0.0, 1.0], [1, 1], [0, 1], [1, 0], [0, 0],
[1, 0]])
y_true = tf.constant([[0], [1], [3]])
# Test both Keras-internal call and external call since behavior may be
# slightly different due to type/shape conversion.
loss_value = loss(y_true, y_pred)
expected_loss_value = 1.024264
tf.debugging.assert_near(expected_loss_value, loss_value)
loss_value = loss.call(y_true, y_pred)
expected_loss_value = 1.024264
tf.debugging.assert_near(expected_loss_value, loss_value)
def test_spreadout_no_embeddings(self):
with self.assertRaises(ValueError):
losses.BatchSoftmax(expect_embeddings=False, spreadout_context_lambda=0.1)
def test_spreadout_get_config(self):
loss = losses.Spreadout()
config = loss.get_config()
expected_config = {
'normalization_fn': utils.l2_normalize_fn,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.0,
'name': None,
'reduction': 'auto',
}
self.assertEqual(config, expected_config)
def test_spreadout_get_config_keyword_args(self):
loss = losses.Spreadout(
normalization_fn=None,
expect_embeddings=True,
spreadout_context_lambda=0.0,
spreadout_label_lambda=0.0,
spreadout_cross_lambda=0.1,
name='my_loss')
config = loss.get_config()
expected_config = {
'normalization_fn': None,
'expect_embeddings': True,
'spreadout_context_lambda': 0.0,
'spreadout_label_lambda': 0.0,
'spreadout_cross_lambda': 0.1,
'name': 'my_loss',
'reduction': 'auto'
}
self.assertEqual(config, expected_config)
def test_update_loss_with_spreadout_loss(self):
loss = 0.1
context_embedding = tf.constant([[1, 0], [0.0, 1.0]])
label_embedding = tf.constant([[1.0, 1.0], [0, 1], [1, 0], [1, 0]])
similarity = tf.constant([[1, 0, 1, 1], [1, 1, 0, 0.]])
y_true = tf.constant([[1], [2]])
spreadout_context_lambda = 0.1
spreadout_label_lambda = 0.2
spreadout_cross_lambda = 0.3
loss_value = losses._update_loss_with_spreadout_loss(
loss=loss,
context_embedding=context_embedding,
label_embedding=label_embedding,
similarities=similarity,
spreadout_context_lambda=spreadout_context_lambda,
spreadout_label_lambda=spreadout_label_lambda,
spreadout_cross_lambda=spreadout_cross_lambda,
label_indices=tf.transpose(y_true)[0])
expected_loss_value = 1.3365058
tf.debugging.assert_near(expected_loss_value, loss_value)
if __name__ == '__main__':
absltest.main()
| 34.949262
| 135
| 0.660261
| 5,694
| 37,885
| 4.134352
| 0.036881
| 0.106283
| 0.085595
| 0.07111
| 0.93318
| 0.914914
| 0.902001
| 0.870269
| 0.855359
| 0.849879
| 0
| 0.083625
| 0.214359
| 37,885
| 1,083
| 136
| 34.981533
| 0.707297
| 0.136862
| 0
| 0.790665
| 0
| 0
| 0.039592
| 0.02087
| 0
| 0
| 0
| 0
| 0.130127
| 1
| 0.076379
| false
| 0
| 0.005658
| 0
| 0.083451
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
16dc0a9974afdb7fa11b4fc338987c6d59cf4b8a
| 48
|
py
|
Python
|
utest/resources/robotdata/libs/sub/libsi.py
|
ludovicurbain/SWIFT-RIDE
|
ab72df08a57101c433bfa5ad44949d9983e4e611
|
[
"ECL-2.0",
"Apache-2.0"
] | 775
|
2015-01-12T06:54:09.000Z
|
2022-03-25T05:18:05.000Z
|
utest/resources/robotdata/libs/sub/libsi.py
|
ludovicurbain/SWIFT-RIDE
|
ab72df08a57101c433bfa5ad44949d9983e4e611
|
[
"ECL-2.0",
"Apache-2.0"
] | 2,191
|
2015-05-19T16:49:09.000Z
|
2022-03-28T21:38:34.000Z
|
utest/resources/robotdata/libs/sub/libsi.py
|
ludovicurbain/SWIFT-RIDE
|
ab72df08a57101c433bfa5ad44949d9983e4e611
|
[
"ECL-2.0",
"Apache-2.0"
] | 382
|
2015-01-24T08:41:44.000Z
|
2022-03-13T10:14:20.000Z
|
def libsi_keyword():
print('libsi keyword')
| 16
| 26
| 0.6875
| 6
| 48
| 5.333333
| 0.666667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 48
| 2
| 27
| 24
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.270833
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
bc61d57432c789cdb436b4bc1c5183ead5243af6
| 352
|
py
|
Python
|
test1/myscript4.py
|
josephernest/vversioning
|
de09ab66c018a5aceee787101c5e307f957a2601
|
[
"MIT"
] | null | null | null |
test1/myscript4.py
|
josephernest/vversioning
|
de09ab66c018a5aceee787101c5e307f957a2601
|
[
"MIT"
] | null | null | null |
test1/myscript4.py
|
josephernest/vversioning
|
de09ab66c018a5aceee787101c5e307f957a2601
|
[
"MIT"
] | null | null | null |
"""
==CHANGELOG==
* support UTF8
==CHANGELOG==
"""
sqdgfhsqgfksqfkjgsqfkqsgdkfsqkgfqsdf
sqgjdfjsqdhfqgskdgfkqgsdjfsqdfggdsqjf
sqdgfhsqgfksqfkjgsqfkqsgdkfsqkgfqsdf
sqgjdfjsqdhfqgskdgfkqgsdjfsqdfggdsqjf
sqdgfhsqgfksqfkjgsqfkqsgdkfsqkgfqsdf
sqgjdfjsqdhfqgskdgfkqgsdjfsqdfggdsqjf
sqdgfhsqgfksqfkjgsqfkqsgdkfsqkgfqsdf
sqgjdfjsqdhfqgskdgfkqgsdjfsqdfggdsqjf
| 23.466667
| 37
| 0.911932
| 12
| 352
| 26.75
| 0.416667
| 0.909657
| 1.018692
| 1.364486
| 0.909657
| 0.909657
| 0
| 0
| 0
| 0
| 0
| 0.002976
| 0.045455
| 352
| 14
| 38
| 25.142857
| 0.952381
| 0.119318
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
bc9cdc84a93bc1ed4557cad1be2ed5a9947b46ee
| 885
|
py
|
Python
|
spark/util/helper_functions/triangle_functions.py
|
lawruble13/spark
|
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
|
[
"MIT"
] | 4
|
2020-10-17T00:33:00.000Z
|
2021-04-10T00:06:19.000Z
|
spark/util/helper_functions/triangle_functions.py
|
lawruble13/spark
|
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
|
[
"MIT"
] | 55
|
2020-10-22T03:20:54.000Z
|
2021-03-02T23:41:06.000Z
|
spark/util/helper_functions/triangle_functions.py
|
lawruble13/spark
|
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
|
[
"MIT"
] | 4
|
2020-10-19T19:13:39.000Z
|
2021-06-23T04:31:46.000Z
|
from ..decorators import *
from numbers import Real
@validate_args([Real, Real, Real, Real, Real, Real])
@ignite_global
def helper_triangle(self, *args):
self.fill_triangle(*args)
self.stroke_triangle(*args)
@validate_args([Real, Real, Real, Real, Real, Real])
@ignite_global
def helper_stroke_triangle(self, *args):
self.canvas.begin_path()
self.canvas.move_to(args[0], args[1])
self.canvas.line_to(args[2], args[3])
self.canvas.line_to(args[4], args[5])
self.canvas.close_path()
self.canvas.stroke()
@validate_args([Real, Real, Real, Real, Real, Real])
@ignite_global
def helper_fill_triangle(self, *args):
self.canvas.begin_path()
self.canvas.move_to(args[0], args[1])
self.canvas.line_to(args[2], args[3])
self.canvas.line_to(args[4], args[5])
self.canvas.close_path()
self.canvas.fill()
| 27.65625
| 53
| 0.674576
| 132
| 885
| 4.348485
| 0.212121
| 0.209059
| 0.250871
| 0.250871
| 0.792683
| 0.792683
| 0.792683
| 0.792683
| 0.792683
| 0.792683
| 0
| 0.016349
| 0.170621
| 885
| 31
| 54
| 28.548387
| 0.765668
| 0
| 0
| 0.64
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.12
| false
| 0
| 0.08
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
bca8ef7e4a0f2d64e1468720ba424fbb0c38e55a
| 21,085
|
py
|
Python
|
tests/commands/test_report.py
|
InvestWeMust/lean-cli
|
a7241a0af6202dc7d56c0f35d09e51798cc5d426
|
[
"Apache-2.0"
] | 76
|
2021-02-03T02:32:32.000Z
|
2022-03-28T17:04:03.000Z
|
tests/commands/test_report.py
|
InvestWeMust/lean-cli
|
a7241a0af6202dc7d56c0f35d09e51798cc5d426
|
[
"Apache-2.0"
] | 64
|
2021-02-28T23:14:17.000Z
|
2022-03-30T23:22:24.000Z
|
tests/commands/test_report.py
|
InvestWeMust/lean-cli
|
a7241a0af6202dc7d56c0f35d09e51798cc5d426
|
[
"Apache-2.0"
] | 50
|
2021-02-11T01:25:24.000Z
|
2022-03-17T03:56:29.000Z
|
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
from pathlib import Path
from unittest import mock
import pytest
from click.testing import CliRunner
from dependency_injector import providers
from lean.commands import lean
from lean.components.config.storage import Storage
from lean.constants import DEFAULT_ENGINE_IMAGE
from lean.container import container
from lean.models.docker import DockerImage
from tests.test_helpers import create_fake_lean_cli_directory
ENGINE_IMAGE = DockerImage.parse(DEFAULT_ENGINE_IMAGE)
@pytest.fixture(autouse=True)
def setup_backtest_results() -> None:
"""A pytest fixture which creates a backtest results file before every test."""
create_fake_lean_cli_directory()
results_path = Path.cwd() / "Python Project" / "backtests" / "2020-01-01_00-00-00" / "results.json"
results_path.parent.mkdir(parents=True, exist_ok=True)
with results_path.open("w+", encoding="utf-8") as file:
file.write("{}")
def run_image(image: DockerImage, **kwargs) -> bool:
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
results_path = next(key for key in kwargs["volumes"].keys() if kwargs["volumes"][key]["bind"] == "/Output")
output_file = Path(results_path) / Path(config["report-destination"]).name
output_file.parent.mkdir(parents=True, exist_ok=True)
with output_file.open("w+", encoding="utf-8") as file:
file.write("<html></html>")
return True
def test_report_runs_lean_container() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert args[0] == ENGINE_IMAGE
def test_report_runs_report_creator() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert kwargs["working_dir"] == "/Lean/Report/bin/Debug"
assert "dotnet QuantConnect.Report.dll" in kwargs["commands"]
def test_report_sets_container_name() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
output_config_manager = mock.Mock()
output_config_manager.get_backtest_id.return_value = 123
container.output_config_manager.override(providers.Object(output_config_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert kwargs["name"] == "lean_cli_report_123"
def test_report_runs_detached_container() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--detach"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert kwargs["detach"]
def test_report_mounts_report_config() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert any([mount["Target"] == "/Lean/Report/bin/Debug/config.json" for mount in kwargs["mounts"]])
def test_report_mounts_data_directory() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert any([volume["bind"] == "/Lean/Data" for volume in kwargs["volumes"].values()])
key = next(key for key in kwargs["volumes"].keys() if kwargs["volumes"][key]["bind"] == "/Lean/Data")
assert key == str(Path.cwd() / "data")
def test_report_mounts_output_directory() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert any([volume["bind"] == "/Output" for volume in kwargs["volumes"].values()])
def test_report_mounts_given_backtest_data_source_file() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
mount = [m for m in kwargs["mounts"] if m["Target"] == "/Lean/Report/bin/Debug/backtest-data-source-file.json"][0]
assert mount["Source"] == str(Path.cwd() / "Python Project" / "backtests" / "2020-01-01_00-00-00" / "results.json")
def test_report_finds_latest_backtest_data_source_file_when_not_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
mount = [m for m in kwargs["mounts"] if m["Target"] == "/Lean/Report/bin/Debug/backtest-data-source-file.json"][0]
assert mount["Source"] == str(Path.cwd() / "Python Project" / "backtests" / "2020-01-01_00-00-00" / "results.json")
def test_report_aborts_when_backtest_data_source_file_not_given_and_cannot_be_found() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
(Path.cwd() / "Python Project" / "backtests" / "2020-01-01_00-00-00" / "results.json").unlink()
result = CliRunner().invoke(lean, ["report"])
assert result.exit_code != 0
docker_manager.run_image.assert_not_called()
def test_report_mounts_live_data_source_file_when_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--live-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
mount = [m for m in kwargs["mounts"] if m["Target"] == "/Lean/Report/bin/Debug/live-data-source-file.json"][0]
assert mount["Source"] == str(Path.cwd() / "Python Project" / "backtests" / "2020-01-01_00-00-00" / "results.json")
def test_report_uses_project_directory_as_strategy_name_when_strategy_name_not_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-name"] == "Python Project"
def test_report_uses_given_strategy_name() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--strategy-name", "My Strategy"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-name"] == "My Strategy"
def test_report_uses_description_from_config_when_strategy_description_not_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
Storage(str(Path.cwd() / "Python Project" / "config.json")).set("description", "My description")
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-description"] == "My description"
def test_report_uses_given_strategy_description() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--strategy-description", "My strategy description"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-description"] == "My strategy description"
def test_report_uses_given_strategy_version() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--strategy-version", "1.2.3"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-version"] == "1.2.3"
def test_report_uses_given_blank_name_version_description_when_not_given_and_backtest_not_stored_in_project() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
with (Path.cwd() / "results.json").open("w+", encoding="utf-8") as file:
file.write("{}")
result = CliRunner().invoke(lean, ["report", "--backtest-results", "results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
config_mount = [mount for mount in kwargs["mounts"] if mount["Target"] == "/Lean/Report/bin/Debug/config.json"][0]
config = json.loads(Path(config_mount["Source"]).read_text(encoding="utf-8"))
assert config["strategy-name"] == ""
assert config["strategy-version"] == ""
assert config["strategy-description"] == ""
def test_report_writes_to_report_html_when_no_report_destination_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
assert (Path.cwd() / "report.html").is_file()
def test_report_writes_to_given_report_destination() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--report-destination", "path/to/report.html"])
assert result.exit_code == 0
assert (Path.cwd() / "path" / "to" / "report.html").is_file()
def test_report_aborts_when_report_destination_already_exists() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
output_path = Path.cwd() / "path" / "to" / "report.html"
output_path.parent.mkdir(parents=True, exist_ok=True)
with output_path.open("w+", encoding="utf-8") as file:
file.write("<h1>My strategy</h1>")
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--report-destination", "path/to/report.html"])
assert result.exit_code != 0
assert output_path.read_text(encoding="utf-8") == "<h1>My strategy</h1>"
def test_report_overwrites_report_destination_when_overwrite_flag_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
output_path = Path.cwd() / "path" / "to" / "report.html"
output_path.parent.mkdir(parents=True, exist_ok=True)
with output_path.open("w+", encoding="utf-8") as file:
file.write("<h1>My strategy</h1>")
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--report-destination", "path/to/report.html",
"--overwrite"])
assert result.exit_code == 0
assert output_path.read_text(encoding="utf-8") != "<h1>My strategy</h1>"
def test_report_aborts_when_run_image_fails() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.return_value = False
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code != 0
docker_manager.run_image.assert_called_once()
def test_report_forces_update_when_update_option_given() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
result = CliRunner().invoke(lean,
["report",
"--backtest-results", "Python Project/backtests/2020-01-01_00-00-00/results.json",
"--update"])
assert result.exit_code == 0
docker_manager.pull_image.assert_called_once_with(ENGINE_IMAGE)
docker_manager.run_image.assert_called_once()
def test_report_runs_custom_image_when_set_in_config() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
container.cli_config_manager().engine_image.set_value("custom/lean:123")
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert args[0] == DockerImage(name="custom/lean", tag="123")
def test_report_runs_custom_image_when_given_as_option() -> None:
docker_manager = mock.Mock()
docker_manager.run_image.side_effect = run_image
container.docker_manager.override(providers.Object(docker_manager))
container.cli_config_manager().engine_image.set_value("custom/lean:123")
result = CliRunner().invoke(lean, ["report",
"--backtest-results",
"Python Project/backtests/2020-01-01_00-00-00/results.json",
"--image", "custom/lean:456"])
assert result.exit_code == 0
docker_manager.run_image.assert_called_once()
args, kwargs = docker_manager.run_image.call_args
assert args[0] == DockerImage(name="custom/lean", tag="456")
| 40.704633
| 119
| 0.659995
| 2,601
| 21,085
| 5.105344
| 0.08689
| 0.137059
| 0.077114
| 0.101212
| 0.815799
| 0.794713
| 0.787484
| 0.767076
| 0.762633
| 0.748023
| 0
| 0.029586
| 0.216125
| 21,085
| 517
| 120
| 40.783366
| 0.773838
| 0.033863
| 0
| 0.706587
| 0
| 0
| 0.187727
| 0.08077
| 0
| 0
| 0
| 0
| 0.218563
| 1
| 0.080838
| false
| 0
| 0.035928
| 0
| 0.11976
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bcbef327eb1a4619c4c783b4a1cf679e69e8ce80
| 4,074
|
py
|
Python
|
sikr/resources/auth/basicauth.py
|
sikrvault/sikr
|
f76d99d27fd7ad5984d9e9fd41ca375e2e9043db
|
[
"MIT"
] | 32
|
2016-01-12T20:31:09.000Z
|
2022-03-05T16:17:55.000Z
|
sikr/resources/auth/basicauth.py
|
clione/sikre
|
f76d99d27fd7ad5984d9e9fd41ca375e2e9043db
|
[
"MIT"
] | 8
|
2015-02-11T22:33:58.000Z
|
2015-12-14T16:50:19.000Z
|
sikr/resources/auth/basicauth.py
|
sikrvault/sikr
|
f76d99d27fd7ad5984d9e9fd41ca375e2e9043db
|
[
"MIT"
] | 5
|
2016-05-17T14:56:51.000Z
|
2022-03-05T16:17:59.000Z
|
import falcon
import logging
import json
from sikre.models.models import User
class LoginResource(object):
"""
The login resource handles the login from all the
"""
def __init__(self):
self.logger = logging.getLogger('thingsapp.' + __name__)
def on_get(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_post(self, request, response, **kwargs):
"""
This method will check that the email and the token match, then logs
in the user.
"""
print(request.get_param('email'))
try:
user = User.get(username=request.get_param('login-email'))
valid = user.check_password(request.body['login-password'])
print("WHATEVER: " + request)
if valid:
pass
response.status = falcon.HTTP_200
response.body = 'Logged in'
except:
raise falcon.HTTPError(falcon.HTTP_500)
def on_put(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_update(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The UPDATE method is not allowed in this endpoint.")
def on_delete(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The DELETE method is not allowed in this endpoint.")
def on_options(self, request, response):
'''
Handles all OPTIONS requests.
Returns status code 200.
'''
resp.status = falcon.HTTP_200
class LogoutResource(object):
"""
The login resource handles the login from all the
"""
def on_get(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_post(self, request, response):
"""
This method will check that the email and the token match, then logs
in the user.
"""
response.status = falcon.HTTP_200
response.body = 'whatever, man'
def on_put(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_update(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The UPDATE method is not allowed in this endpoint.")
def on_delete(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The DELETE method is not allowed in this endpoint.")
class ForgotPasswordResource(object):
"""
The login resource handles the login from all the
"""
def on_get(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_post(self, request, response, provider):
"""
This method will check that the email and the token match, then logs
in the user.
"""
response.status = falcon.HTTP_200
response.body = 'whatever, man'
def on_put(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The GET method is not allowed in this endpoint.")
def on_update(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The UPDATE method is not allowed in this endpoint.")
def on_delete(self, request, response):
raise falcon.HTTPError(falcon.HTTP_405, "Client error",
"The DELETE method is not allowed in this endpoint.")
| 33.95
| 84
| 0.597202
| 483
| 4,074
| 4.94617
| 0.161491
| 0.071159
| 0.12725
| 0.141482
| 0.811218
| 0.798661
| 0.798661
| 0.782336
| 0.782336
| 0.780243
| 0
| 0.019362
| 0.315415
| 4,074
| 119
| 85
| 34.235294
| 0.837218
| 0.110457
| 0
| 0.630769
| 0
| 0
| 0.2348
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.261538
| false
| 0.046154
| 0.061538
| 0
| 0.369231
| 0.030769
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bcc7bc4975b06235285dd428baf683e2c020d1fd
| 25,012
|
py
|
Python
|
tests/test_message_sample.py
|
chyroc/pylark
|
a54cce6b814935fd3c72668b262b54c8ee461484
|
[
"Apache-2.0"
] | 7
|
2021-08-18T00:42:05.000Z
|
2022-03-14T09:49:15.000Z
|
tests/test_message_sample.py
|
chyroc/pylark
|
a54cce6b814935fd3c72668b262b54c8ee461484
|
[
"Apache-2.0"
] | null | null | null |
tests/test_message_sample.py
|
chyroc/pylark
|
a54cce6b814935fd3c72668b262b54c8ee461484
|
[
"Apache-2.0"
] | 1
|
2022-03-14T09:49:20.000Z
|
2022-03-14T09:49:20.000Z
|
# Code generated by lark_sdk_gen. DO NOT EDIT.
import unittest
import pylark
import pytest
from tests.test_conf import app_all_permission, app_no_permission
from tests.test_helper import mock_get_tenant_access_token_failed
def mock(*args, **kwargs):
raise pylark.PyLarkError(scope="scope", func="func", code=1, msg="mock-failed")
def mock_raw_request(*args, **kwargs):
raise pylark.PyLarkError(
scope="scope", func="func", code=1, msg="mock-raw-request-failed"
)
# mock get token
class TestMessageSampleMockGetTokenFailed(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestMessageSampleMockGetTokenFailed, self).__init__(*args, **kwargs)
self.cli = app_all_permission.ins()
self.cli.auth.get_tenant_access_token = mock_get_tenant_access_token_failed
self.cli.auth.get_app_access_token = mock_get_tenant_access_token_failed
self.module_cli = self.cli.message
def test_mock_get_token_send_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_ephemeral_message(pylark.SendEphemeralMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_send_urgent_app_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_app_message(pylark.SendUrgentAppMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_send_urgent_sms_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_sms_message(pylark.SendUrgentSmsMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_send_urgent_phone_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_phone_message(
pylark.SendUrgentPhoneMessageReq()
)
assert "msg=failed" in f"{e}"
def test_mock_get_token_send_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message(pylark.SendRawMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_send_raw_message_old(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message_old(pylark.SendRawMessageOldReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_batch_send_old_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_send_old_raw_message(
pylark.BatchSendOldRawMessageReq()
)
assert "msg=failed" in f"{e}"
def test_mock_get_token_reply_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.reply_raw_message(pylark.ReplyRawMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_message(pylark.DeleteMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_batch_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_delete_message(pylark.BatchDeleteMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_update_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.update_message(pylark.UpdateMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_get_message_read_user_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_read_user_list(
pylark.GetMessageReadUserListReq()
)
assert "msg=failed" in f"{e}"
def test_mock_get_token_get_batch_sent_message_read_user(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_batch_sent_message_read_user(
pylark.GetBatchSentMessageReadUserReq()
)
assert "msg=failed" in f"{e}"
def test_mock_get_token_get_message_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_list(pylark.GetMessageListReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_get_message_file(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_file(pylark.GetMessageFileReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_get_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message(pylark.GetMessageReq())
assert "msg=failed" in f"{e}"
def test_mock_get_token_delete_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_ephemeral_message(pylark.DeleteEphemeralMessageReq())
assert "msg=failed" in f"{e}"
# mock mock self func
class TestMessageSampleMockSelfFuncFailed(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestMessageSampleMockSelfFuncFailed, self).__init__(*args, **kwargs)
self.cli = app_all_permission.ins()
self.module_cli = self.cli.message
def test_mock_self_func_send_ephemeral_message(self):
origin_func = self.module_cli.send_ephemeral_message
self.module_cli.send_ephemeral_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_ephemeral_message(pylark.SendEphemeralMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_ephemeral_message = origin_func
def test_mock_self_func_send_urgent_app_message(self):
origin_func = self.module_cli.send_urgent_app_message
self.module_cli.send_urgent_app_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_app_message(pylark.SendUrgentAppMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_urgent_app_message = origin_func
def test_mock_self_func_send_urgent_sms_message(self):
origin_func = self.module_cli.send_urgent_sms_message
self.module_cli.send_urgent_sms_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_sms_message(pylark.SendUrgentSmsMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_urgent_sms_message = origin_func
def test_mock_self_func_send_urgent_phone_message(self):
origin_func = self.module_cli.send_urgent_phone_message
self.module_cli.send_urgent_phone_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_phone_message(
pylark.SendUrgentPhoneMessageReq()
)
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_urgent_phone_message = origin_func
def test_mock_self_func_send_raw_message(self):
origin_func = self.module_cli.send_raw_message
self.module_cli.send_raw_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message(pylark.SendRawMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_raw_message = origin_func
def test_mock_self_func_send_raw_message_old(self):
origin_func = self.module_cli.send_raw_message_old
self.module_cli.send_raw_message_old = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message_old(pylark.SendRawMessageOldReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.send_raw_message_old = origin_func
def test_mock_self_func_batch_send_old_raw_message(self):
origin_func = self.module_cli.batch_send_old_raw_message
self.module_cli.batch_send_old_raw_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_send_old_raw_message(
pylark.BatchSendOldRawMessageReq()
)
assert "msg=mock-failed" in f"{e}"
self.module_cli.batch_send_old_raw_message = origin_func
def test_mock_self_func_reply_raw_message(self):
origin_func = self.module_cli.reply_raw_message
self.module_cli.reply_raw_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.reply_raw_message(pylark.ReplyRawMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.reply_raw_message = origin_func
def test_mock_self_func_delete_message(self):
origin_func = self.module_cli.delete_message
self.module_cli.delete_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_message(pylark.DeleteMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.delete_message = origin_func
def test_mock_self_func_batch_delete_message(self):
origin_func = self.module_cli.batch_delete_message
self.module_cli.batch_delete_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_delete_message(pylark.BatchDeleteMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.batch_delete_message = origin_func
def test_mock_self_func_update_message(self):
origin_func = self.module_cli.update_message
self.module_cli.update_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.update_message(pylark.UpdateMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.update_message = origin_func
def test_mock_self_func_get_message_read_user_list(self):
origin_func = self.module_cli.get_message_read_user_list
self.module_cli.get_message_read_user_list = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_read_user_list(
pylark.GetMessageReadUserListReq()
)
assert "msg=mock-failed" in f"{e}"
self.module_cli.get_message_read_user_list = origin_func
def test_mock_self_func_get_batch_sent_message_read_user(self):
origin_func = self.module_cli.get_batch_sent_message_read_user
self.module_cli.get_batch_sent_message_read_user = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_batch_sent_message_read_user(
pylark.GetBatchSentMessageReadUserReq()
)
assert "msg=mock-failed" in f"{e}"
self.module_cli.get_batch_sent_message_read_user = origin_func
def test_mock_self_func_get_message_list(self):
origin_func = self.module_cli.get_message_list
self.module_cli.get_message_list = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_list(pylark.GetMessageListReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.get_message_list = origin_func
def test_mock_self_func_get_message_file(self):
origin_func = self.module_cli.get_message_file
self.module_cli.get_message_file = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_file(pylark.GetMessageFileReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.get_message_file = origin_func
def test_mock_self_func_get_message(self):
origin_func = self.module_cli.get_message
self.module_cli.get_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message(pylark.GetMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.get_message = origin_func
def test_mock_self_func_delete_ephemeral_message(self):
origin_func = self.module_cli.delete_ephemeral_message
self.module_cli.delete_ephemeral_message = mock
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_ephemeral_message(pylark.DeleteEphemeralMessageReq())
assert "msg=mock-failed" in f"{e}"
self.module_cli.delete_ephemeral_message = origin_func
# mock raw request
class TestMessageSampleMockRawRequestFailed(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestMessageSampleMockRawRequestFailed, self).__init__(*args, **kwargs)
self.cli = app_all_permission.ins()
self.module_cli = self.cli.message
self.cli.raw_request = mock_raw_request
def test_mock_raw_request_send_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_ephemeral_message(pylark.SendEphemeralMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_send_urgent_app_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_app_message(
pylark.SendUrgentAppMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_send_urgent_sms_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_sms_message(
pylark.SendUrgentSmsMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_send_urgent_phone_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_phone_message(
pylark.SendUrgentPhoneMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_send_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message(pylark.SendRawMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_send_raw_message_old(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message_old(pylark.SendRawMessageOldReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_batch_send_old_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_send_old_raw_message(
pylark.BatchSendOldRawMessageReq()
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_reply_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.reply_raw_message(
pylark.ReplyRawMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_message(
pylark.DeleteMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_batch_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_delete_message(
pylark.BatchDeleteMessageReq(
batch_message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_update_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.update_message(
pylark.UpdateMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_get_message_read_user_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_read_user_list(
pylark.GetMessageReadUserListReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_get_batch_sent_message_read_user(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_batch_sent_message_read_user(
pylark.GetBatchSentMessageReadUserReq(
batch_message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_get_message_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_list(pylark.GetMessageListReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_get_message_file(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_file(
pylark.GetMessageFileReq(
message_id="x",
file_key="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_get_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message(
pylark.GetMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
def test_mock_raw_request_delete_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_ephemeral_message(pylark.DeleteEphemeralMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
assert "mock-raw-request-failed" in e.value.msg
# real request
class TestMessageSampleRealRequestFailed(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestMessageSampleRealRequestFailed, self).__init__(*args, **kwargs)
self.cli = app_no_permission.ins()
self.module_cli = self.cli.message
def test_real_request_send_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_ephemeral_message(pylark.SendEphemeralMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_send_urgent_app_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_app_message(
pylark.SendUrgentAppMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_send_urgent_sms_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_sms_message(
pylark.SendUrgentSmsMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_send_urgent_phone_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_urgent_phone_message(
pylark.SendUrgentPhoneMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_send_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message(pylark.SendRawMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_send_raw_message_old(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.send_raw_message_old(pylark.SendRawMessageOldReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_batch_send_old_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_send_old_raw_message(
pylark.BatchSendOldRawMessageReq()
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_reply_raw_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.reply_raw_message(
pylark.ReplyRawMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_message(
pylark.DeleteMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_batch_delete_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.batch_delete_message(
pylark.BatchDeleteMessageReq(
batch_message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_update_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.update_message(
pylark.UpdateMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_get_message_read_user_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_read_user_list(
pylark.GetMessageReadUserListReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_get_batch_sent_message_read_user(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_batch_sent_message_read_user(
pylark.GetBatchSentMessageReadUserReq(
batch_message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_get_message_list(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_list(pylark.GetMessageListReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_get_message_file(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message_file(
pylark.GetMessageFileReq(
message_id="x",
file_key="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_get_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.get_message(
pylark.GetMessageReq(
message_id="x",
)
)
assert e.type is pylark.PyLarkError
assert e.value.code > 0
def test_real_request_delete_ephemeral_message(self):
with pytest.raises(pylark.PyLarkError) as e:
self.module_cli.delete_ephemeral_message(pylark.DeleteEphemeralMessageReq())
assert e.type is pylark.PyLarkError
assert e.value.code > 0
| 36.249275
| 88
| 0.664521
| 3,144
| 25,012
| 4.976145
| 0.032125
| 0.078619
| 0.102205
| 0.076063
| 0.959156
| 0.953659
| 0.934356
| 0.916523
| 0.875168
| 0.816874
| 0
| 0.001932
| 0.255198
| 25,012
| 689
| 89
| 36.301887
| 0.837887
| 0.004358
| 0
| 0.621622
| 1
| 0
| 0.039924
| 0.016629
| 0
| 0
| 0
| 0
| 0.22973
| 1
| 0.142857
| false
| 0
| 0.009653
| 0
| 0.160232
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bccdd29ad5fbcb1bc8eab2f6943af6cec8998bf7
| 188,524
|
py
|
Python
|
ableton/v2/control_surface/default_bank_definitions.py
|
isfopo/MacroPushScript
|
46c440aa3f6325d8767e88252c5520d76a9fa634
|
[
"MIT"
] | null | null | null |
ableton/v2/control_surface/default_bank_definitions.py
|
isfopo/MacroPushScript
|
46c440aa3f6325d8767e88252c5520d76a9fa634
|
[
"MIT"
] | null | null | null |
ableton/v2/control_surface/default_bank_definitions.py
|
isfopo/MacroPushScript
|
46c440aa3f6325d8767e88252c5520d76a9fa634
|
[
"MIT"
] | null | null | null |
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ableton/v2/control_surface/default_bank_definitions.py
from __future__ import absolute_import, print_function, unicode_literals
from ableton.v2.base.collection import IndexedDict
from ableton.v2.control_surface import BANK_MAIN_KEY, BANK_PARAMETERS_KEY, use
RACK_BANKS = IndexedDict(((u'Macros', {BANK_PARAMETERS_KEY: (u'Macro 1',
u'Macro 2',
u'Macro 3',
u'Macro 4',
u'Macro 5',
u'Macro 6',
u'Macro 7',
u'Macro 8')}), (u'Macros 2', {BANK_PARAMETERS_KEY: (u'Macro 9',
u'Macro 10',
u'Macro 11',
u'Macro 12',
u'Macro 13',
u'Macro 14',
u'Macro 15',
u'Macro 16')})))
BANK_DEFINITIONS = {u'AudioEffectGroupDevice': RACK_BANKS,
u'MidiEffectGroupDevice': RACK_BANKS,
u'InstrumentGroupDevice': RACK_BANKS,
u'DrumGroupDevice': RACK_BANKS,
u'UltraAnalog': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'OSC1 Shape').if_parameter(u'OSC1 On/Off').has_value(u'On').else_use(u'OSC2 Shape').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC1 Octave').if_parameter(u'OSC1 On/Off').has_value(u'On').else_use(u'OSC2 Octave').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC2 Shape').if_parameter(u'OSC1 On/Off').has_value(u'On').and_parameter(u'OSC2 On/Off').has_value(u'On').else_use(u'OSC1 Semi').if_parameter(u'OSC1 On/Off').has_value(u'On').else_use(u'OSC2 Semi').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC2 Octave').if_parameter(u'OSC1 On/Off').has_value(u'On').and_parameter(u'OSC2 On/Off').has_value(u'On').else_use(u'OSC1 Detune').if_parameter(u'OSC1 On/Off').has_value(u'On').else_use(u'OSC2 Detune').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'F1 Type').if_parameter(u'F1 On/Off').has_value(u'On').else_use(u'F2 Type').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F1 Freq').if_parameter(u'F1 On/Off').has_value(u'On').else_use(u'F2 Freq').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F1 Resonance').if_parameter(u'F1 On/Off').has_value(u'On').else_use(u'F2 Resonance').if_parameter(u'F2 On/Off').has_value(u'On'),
u'Volume')}),
(u'Osc. 1 Shape', {BANK_PARAMETERS_KEY: (u'OSC1 On/Off',
use(u'OSC1 Shape').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'OSC1 On/Off').has_value(u'Off').else_use(u'OSC1 PW').if_parameter(u'OSC1 Shape').has_value(u'Rect'),
use(u'').if_parameter(u'OSC1 On/Off').has_value(u'Off').else_use(u'O1 PW < LFO').if_parameter(u'OSC1 Shape').has_value(u'Rect').else_use(u'').if_parameter(u'LFO1 On/Off').has_value(u'Off'),
use(u'').if_parameter(u'OSC1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'OSC1 Shape').has_value(u'Noise').else_use(u'').if_parameter(u'OSC1 Shape').has_value(u'Sine').else_use(u'OSC1 Mode'),
use(u'').if_parameter(u'OSC1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'OSC1 Shape').has_value(u'Noise').else_use(u'O1 Sub/Sync'),
use(u'OSC1 Balance').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'OSC1 Level').if_parameter(u'OSC1 On/Off').has_value(u'On'))}),
(u'Osc. 1 Pitch', {BANK_PARAMETERS_KEY: (u'OSC1 On/Off',
use(u'OSC1 Octave').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'OSC1 Semi').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'OSC1 Detune').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'PEG1 Amount').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'PEG1 Time').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'O1 Keytrack').if_parameter(u'OSC1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'OSC1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'LFO1 On/Off').has_value(u'Off').else_use(u'OSC1 < LFO'))}),
(u'Osc. 2 Shape', {BANK_PARAMETERS_KEY: (u'OSC2 On/Off',
use(u'OSC2 Shape').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'OSC2 On/Off').has_value(u'Off').else_use(u'OSC2 PW').if_parameter(u'OSC2 Shape').has_value(u'Rect'),
use(u'').if_parameter(u'OSC2 On/Off').has_value(u'Off').else_use(u'O2 PW < LFO').if_parameter(u'OSC2 Shape').has_value(u'Rect').else_use(u'').if_parameter(u'LFO2 On/Off').has_value(u'Off'),
use(u'').if_parameter(u'OSC2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'OSC2 Shape').has_value(u'Noise').else_use(u'').if_parameter(u'OSC2 Shape').has_value(u'Sine').else_use(u'OSC2 Mode'),
use(u'').if_parameter(u'OSC2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'OSC2 Shape').has_value(u'Noise').else_use(u'O2 Sub/Sync'),
use(u'OSC2 Balance').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC2 Level').if_parameter(u'OSC2 On/Off').has_value(u'On'))}),
(u'Osc. 2 Pitch', {BANK_PARAMETERS_KEY: (u'OSC2 On/Off',
use(u'OSC2 Octave').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC2 Semi').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'OSC2 Detune').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'PEG2 Amount').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'PEG2 Time').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'O2 Keytrack').if_parameter(u'OSC2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'OSC2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'LFO2 On/Off').has_value(u'Off').else_use(u'OSC2 < LFO'))}),
(u'Filters', {BANK_PARAMETERS_KEY: (u'F1 On/Off',
use(u'F1 Type').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'F1 Freq').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'F1 Resonance').if_parameter(u'F1 On/Off').has_value(u'On'),
u'F2 On/Off',
use(u'F2 Type').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F2 Freq').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F2 Resonance').if_parameter(u'F2 On/Off').has_value(u'On'))}),
(u'Filt. 1 Env.', {BANK_PARAMETERS_KEY: (u'F1 On/Off',
use(u'FEG1 < Vel').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 A < Vel').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 Attack').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 Decay').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 Sustain').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 S Time').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'FEG1 Rel').if_parameter(u'F1 On/Off').has_value(u'On'))}),
(u'Filt. 2 Env.', {BANK_PARAMETERS_KEY: (u'F2 On/Off',
use(u'FEG2 < Vel').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 A < Vel').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 Attack').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 Decay').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 Sustain').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 S Time').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'FEG2 Rel').if_parameter(u'F2 On/Off').has_value(u'On'))}),
(u'Filt. Modulation', {BANK_PARAMETERS_KEY: (u'F1 On/Off',
use(u'F1 Freq < LFO').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'F1 Freq < Env').if_parameter(u'F1 On/Off').has_value(u'On'),
use(u'F1 Res < LFO').if_parameter(u'F1 On/Off').has_value(u'On'),
u'F2 On/Off',
use(u'F2 Freq < LFO').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F2 Freq < Env').if_parameter(u'F2 On/Off').has_value(u'On'),
use(u'F2 Res < LFO').if_parameter(u'F2 On/Off').has_value(u'On'))}),
(u'Amp', {BANK_PARAMETERS_KEY: (use(u'AMP1 Level').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AMP1 Pan').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AMP1 < LFO').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO1 On/Off').has_value(u'Off').else_use(u'LFO1 Speed').if_parameter(u'LFO1 Sync').has_value(u'Hertz').else_use(u'LFO1 SncRate'),
use(u'AMP2 Level').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AMP2 Pan').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AMP2 < LFO').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO2 On/Off').has_value(u'Off').else_use(u'LFO2 Speed').if_parameter(u'LFO2 Sync').has_value(u'Hertz').else_use(u'LFO2 SncRate'))}),
(u'Amp 1 Envelope', {BANK_PARAMETERS_KEY: (u'AMP1 On/Off',
use(u'AEG1 < Vel').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 A < Vel').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 Attack').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 Decay').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 Sustain').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 S Time').if_parameter(u'AMP1 On/Off').has_value(u'On'),
use(u'AEG1 Rel').if_parameter(u'AMP1 On/Off').has_value(u'On'))}),
(u'Amp 2 Envelope', {BANK_PARAMETERS_KEY: (u'AMP2 On/Off',
use(u'AEG2 < Vel').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 A < Vel').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 Attack').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 Decay').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 Sustain').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 S Time').if_parameter(u'AMP2 On/Off').has_value(u'On'),
use(u'AEG2 Rel').if_parameter(u'AMP2 On/Off').has_value(u'On'))}),
(u'Noise & Unison', {BANK_PARAMETERS_KEY: (u'Noise On/Off',
use(u'Noise Level').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Color').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Balance').if_parameter(u'Noise On/Off').has_value(u'On'),
u'Unison On/Off',
use(u'Unison Detune').if_parameter(u'Unison On/Off').has_value(u'On'),
use(u'Unison Delay').if_parameter(u'Unison On/Off').has_value(u'On'),
u'')}),
(u'Performance', {BANK_PARAMETERS_KEY: (u'Glide On/Off',
use(u'Glide Time').if_parameter(u'Glide On/Off').has_value(u'On'),
use(u'Glide Mode').if_parameter(u'Glide On/Off').has_value(u'On'),
use(u'Glide Legato').if_parameter(u'Glide On/Off').has_value(u'On'),
u'PB Range',
u'Key Stretch',
u'Key Error',
u'Voices')}),
(u'LFO 1', {BANK_PARAMETERS_KEY: (u'LFO1 On/Off',
use(u'LFO1 Sync').if_parameter(u'LFO1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO1 On/Off').has_value(u'Off').else_use(u'LFO1 Speed').if_parameter(u'LFO1 Sync').has_value(u'Hertz').else_use(u'LFO1 SncRate'),
use(u'LFO1 Shape').if_parameter(u'LFO1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO1 On/Off').has_value(u'Off').else_use(u'LFO1 PW').if_parameter(u'LFO1 Shape').has_value(u'Rect').else_use(u'LFO1 PW').if_parameter(u'LFO1 Shape').has_value(u'Tri'),
use(u'LFO1 Phase').if_parameter(u'LFO1 On/Off').has_value(u'On'),
use(u'LFO1 Delay').if_parameter(u'LFO1 On/Off').has_value(u'On'),
use(u'LFO1 Fade In').if_parameter(u'LFO1 On/Off').has_value(u'On'))}),
(u'LFO 2', {BANK_PARAMETERS_KEY: (u'LFO2 On/Off',
use(u'LFO2 Sync').if_parameter(u'LFO2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO2 On/Off').has_value(u'Off').else_use(u'LFO2 Speed').if_parameter(u'LFO2 Sync').has_value(u'Hertz').else_use(u'LFO2 SncRate'),
use(u'LFO2 Shape').if_parameter(u'LFO2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO2 On/Off').has_value(u'Off').else_use(u'LFO2 PW').if_parameter(u'LFO2 Shape').has_value(u'Rect').else_use(u'LFO2 PW').if_parameter(u'LFO2 Shape').has_value(u'Tri'),
use(u'LFO2 Phase').if_parameter(u'LFO2 On/Off').has_value(u'On'),
use(u'LFO2 Delay').if_parameter(u'LFO2 On/Off').has_value(u'On'),
use(u'LFO2 Fade In').if_parameter(u'LFO2 On/Off').has_value(u'On'))}),
(u'Vibrato', {BANK_PARAMETERS_KEY: (u'Vib On/Off',
use(u'Vib Amount').if_parameter(u'Vib On/Off').has_value(u'On'),
use(u'Vib Speed').if_parameter(u'Vib On/Off').has_value(u'On'),
use(u'Vib Delay').if_parameter(u'Vib On/Off').has_value(u'On'),
use(u'Vib Fade-In').if_parameter(u'Vib On/Off').has_value(u'On'),
use(u'Vib Error').if_parameter(u'Vib On/Off').has_value(u'On'),
use(u'Vib < ModWh').if_parameter(u'Vib On/Off').has_value(u'On'),
u'')}))),
u'ChannelEq': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Highpass On',
use(u'Low Gain').with_name(u'Low'),
use(u'Mid Gain').with_name(u'Mid'),
u'Mid Freq',
use(u'High Gain').with_name(u'High'),
use(u'Gain').with_name(u'Output'),
u'',
u'')}),)),
u'Collision': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Res 1 Type').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Brightness'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'Res 1 Opening').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Inharmonics'),
use(u'Res 1 Decay').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'Res 1 Radius').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'Res 1 Radius').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Material'),
use(u'Mallet Stiffness').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Amount').if_parameter(u'Mallet On/Off').has_value(u'On'),
u'Volume')}),
(u'Mix', {BANK_PARAMETERS_KEY: (use(u'Res 1 Volume').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Panorama').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Res 1 Bleed').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Res 2 Volume').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'Res 2 Panorama').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'Res 2 Bleed').if_parameter(u'Res 2 On/Off').has_value(u'On'),
u'Structure',
u'Volume')}),
(u'Mallet', {BANK_PARAMETERS_KEY: (u'Mallet On/Off',
use(u'Mallet Volume').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Amount').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Stiffness').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Color').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Modulation').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Volume < Vel').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Amount < Vel').if_parameter(u'Mallet On/Off').has_value(u'On'))}),
(u'Noise Envelope', {BANK_PARAMETERS_KEY: (u'Noise On/Off',
use(u'Noise Volume').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Volume < Key').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Volume < Vel').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Attack').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Sustain').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Decay').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Release').if_parameter(u'Noise On/Off').has_value(u'On'))}),
(u'Noise Filter', {BANK_PARAMETERS_KEY: (u'Noise On/Off',
use(u'Noise Volume').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Filter Type').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Filter Freq').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Filter Q').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Freq < Key').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Freq < Vel').if_parameter(u'Noise On/Off').has_value(u'On'),
use(u'Noise Freq < Env').if_parameter(u'Noise On/Off').has_value(u'On'))}),
(u'Res. 1 Body', {BANK_PARAMETERS_KEY: (u'Res 1 On/Off',
use(u'Res 1 Type').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'Res 1 Ratio').if_parameter(u'Res 1 Type').has_value(u'Plate').else_use(u'Res 1 Ratio').if_parameter(u'Res 1 Type').has_value(u'Membrane'),
use(u'Res 1 Decay').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'Res 1 Radius').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'Res 1 Radius').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Material'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Listening L'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Listening R'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Hit'))}),
(u'Res. 1 Tune', {BANK_PARAMETERS_KEY: (u'Res 1 On/Off',
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Brightness'),
use(u'Res 1 Quality').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 1 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 1 Type').has_value(u'Tube').else_use(u'Res 1 Opening').if_parameter(u'Res 1 Type').has_value(u'Pipe').else_use(u'Res 1 Inharmonics'),
use(u'Res 1 Tune').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Res 1 Fine Tune').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Res 1 Pitch Env.').if_parameter(u'Res 1 On/Off').has_value(u'On'),
use(u'Res 1 Pitch Env. Time').if_parameter(u'Res 1 On/Off').has_value(u'On'))}),
(u'Res. 2 Body', {BANK_PARAMETERS_KEY: (u'Res 2 On/Off',
use(u'Res 2 Type').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'Res 2 Ratio').if_parameter(u'Res 2 Type').has_value(u'Plate').else_use(u'Res 2 Ratio').if_parameter(u'Res 2 Type').has_value(u'Membrane'),
use(u'Res 2 Decay').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'Res 2 Radius').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'Res 2 Radius').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Material'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Listening L'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Listening R'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Hit'))}),
(u'Res. 2 Tune', {BANK_PARAMETERS_KEY: (u'Res 2 On/Off',
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Brightness'),
use(u'Res 2 Quality').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'Res 2 On/Off').has_value(u'Off').else_use(u'').if_parameter(u'Res 2 Type').has_value(u'Tube').else_use(u'Res 2 Opening').if_parameter(u'Res 2 Type').has_value(u'Pipe').else_use(u'Res 2 Inharmonics'),
use(u'Res 2 Tune').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'Res 2 Fine Tune').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'Res 2 Pitch Env.').if_parameter(u'Res 2 On/Off').has_value(u'On'),
use(u'Res 2 Pitch Env. Time').if_parameter(u'Res 2 On/Off').has_value(u'On'))}),
(u'LFO 1', {BANK_PARAMETERS_KEY: (u'LFO 1 On/Off',
use(u'LFO 1 Depth').if_parameter(u'LFO 1 On/Off').has_value(u'On'),
use(u'LFO 1 Shape').if_parameter(u'LFO 1 On/Off').has_value(u'On'),
use(u'LFO 1 Sync').if_parameter(u'LFO 1 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO 1 On/Off').has_value(u'Off').else_use(u'LFO 1 Sync Rate').if_parameter(u'LFO 1 Sync').has_value(u'Sync').else_use(u'LFO 1 Rate'),
use(u'LFO 1 Offset').if_parameter(u'LFO 1 On/Off').has_value(u'On'),
use(u'LFO 1 Destination A').if_parameter(u'LFO 1 On/Off').has_value(u'On'),
use(u'LFO 1 Destination A Amount').if_parameter(u'LFO 1 On/Off').has_value(u'On'))}),
(u'LFO 2', {BANK_PARAMETERS_KEY: (u'LFO 2 On/Off',
use(u'LFO 2 Depth').if_parameter(u'LFO 2 On/Off').has_value(u'On'),
use(u'LFO 2 Shape').if_parameter(u'LFO 2 On/Off').has_value(u'On'),
use(u'LFO 2 Sync').if_parameter(u'LFO 2 On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO 2 On/Off').has_value(u'Off').else_use(u'LFO 2 Sync Rate').if_parameter(u'LFO 2 Sync').has_value(u'Sync').else_use(u'LFO 2 Rate'),
use(u'LFO 2 Offset').if_parameter(u'LFO 2 On/Off').has_value(u'On'),
use(u'LFO 2 Destination A').if_parameter(u'LFO 2 On/Off').has_value(u'On'),
use(u'LFO 2 Destination A Amount').if_parameter(u'LFO 2 On/Off').has_value(u'On'))}),
(u'Mallet Mod.', {BANK_PARAMETERS_KEY: (u'Mallet On/Off',
use(u'Mallet Volume < Key').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Volume < Vel').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Amount < Key').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Noise Amount < Vel').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Stiffness < Key').if_parameter(u'Mallet On/Off').has_value(u'On'),
use(u'Mallet Stiffness < Vel').if_parameter(u'Mallet On/Off').has_value(u'On'),
u'')}))),
u'LoungeLizard': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'M Stiffness',
u'M Force',
u'Noise Amount',
u'F Tine Vol',
u'F Tone Vol',
u'F Release',
u'P Symmetry',
u'Volume')}),
(u'Mallet', {BANK_PARAMETERS_KEY: (u'M Stiffness',
u'M Force',
u'Noise Pitch',
u'Noise Decay',
u'Noise Amount',
u'M Stiff < Vel',
u'M Force < Vel',
u'Volume')}),
(u'Fork', {BANK_PARAMETERS_KEY: (u'F Tine Color',
u'F Tine Decay',
u'F Tine Vol',
u'F Tone Vol',
u'F Tone Decay',
u'F Release',
u'F Tine < Key',
u'Volume')}),
(u'Damper', {BANK_PARAMETERS_KEY: (u'Damp Tone',
u'Damp Balance',
u'Damp Amount',
u'',
u'',
u'',
u'',
u'Volume')}),
(u'Pickup', {BANK_PARAMETERS_KEY: (u'P Symmetry',
u'P Distance',
u'P Amp In',
u'P Amp Out',
u'Pickup Model',
u'P Amp < Key',
u'',
u'Volume')}),
(u'Modulation', {BANK_PARAMETERS_KEY: (u'M Stiff < Vel',
u'M Stiff < Key',
u'M Force < Vel',
u'M Force < Key',
u'Noise < Key',
u'F Tine < Key',
u'P Amp < Key',
u'Volume')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'KB Stretch',
u'PB Range',
u'',
u'',
u'Voices',
u'Semitone',
u'Detune',
u'Volume')}))),
u'InstrumentImpulse': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'1 Transpose',
u'1 Volume',
u'3 Transpose',
u'3 Volume',
u'7 Transpose',
u'7 Volume',
u'8 Transpose',
u'8 Volume')}),
(u'Pad 1', {BANK_PARAMETERS_KEY: (u'1 Start',
u'1 Envelope Decay',
u'1 Stretch Factor',
u'1 Saturator Drive',
u'1 Envelope Type',
u'1 Transpose',
u'1 Volume <- Vel',
u'1 Volume')}),
(u'1 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'1 Filter Freq',
u'1 Filter Res',
u'1 Filter Type',
u'1 Filter <- Vel',
u'1 Filter <- Random',
u'1 Pan',
u'1 Pan <- Vel',
u'1 Pan <- Random')}),
(u'Pad 2', {BANK_PARAMETERS_KEY: (u'2 Start',
u'2 Envelope Decay',
u'2 Stretch Factor',
u'2 Saturator Drive',
u'2 Envelope Type',
u'2 Transpose',
u'2 Volume <- Vel',
u'2 Volume')}),
(u'2 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'2 Filter Freq',
u'2 Filter Res',
u'2 Filter Type',
u'2 Filter <- Vel',
u'2 Filter <- Random',
u'2 Pan',
u'2 Pan <- Vel',
u'2 Pan <- Random')}),
(u'Pad 3', {BANK_PARAMETERS_KEY: (u'3 Start',
u'3 Envelope Decay',
u'3 Stretch Factor',
u'3 Saturator Drive',
u'3 Envelope Type',
u'3 Transpose',
u'3 Volume <- Vel',
u'3 Volume')}),
(u'3 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'3 Filter Freq',
u'3 Filter Res',
u'3 Filter Type',
u'3 Filter <- Vel',
u'3 Filter <- Random',
u'3 Pan',
u'3 Pan <- Vel',
u'3 Pan <- Random')}),
(u'Pad 4', {BANK_PARAMETERS_KEY: (u'4 Start',
u'4 Envelope Decay',
u'4 Stretch Factor',
u'4 Saturator Drive',
u'4 Envelope Type',
u'4 Transpose',
u'4 Volume <- Vel',
u'4 Volume')}),
(u'4 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'4 Filter Freq',
u'4 Filter Res',
u'4 Filter Type',
u'4 Filter <- Vel',
u'4 Filter <- Random',
u'4 Pan',
u'4 Pan <- Vel',
u'4 Pan <- Random')}),
(u'Pad 5', {BANK_PARAMETERS_KEY: (u'5 Start',
u'5 Envelope Decay',
u'5 Stretch Factor',
u'5 Saturator Drive',
u'5 Envelope Type',
u'5 Transpose',
u'5 Volume <- Vel',
u'5 Volume')}),
(u'5 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'5 Filter Freq',
u'5 Filter Res',
u'5 Filter Type',
u'5 Filter <- Vel',
u'5 Filter <- Random',
u'5 Pan',
u'5 Pan <- Vel',
u'5 Pan <- Random')}),
(u'Pad 6', {BANK_PARAMETERS_KEY: (u'6 Start',
u'6 Envelope Decay',
u'6 Stretch Factor',
u'6 Saturator Drive',
u'6 Envelope Type',
u'6 Transpose',
u'6 Volume <- Vel',
u'6 Volume')}),
(u'6 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'6 Filter Freq',
u'6 Filter Res',
u'6 Filter Type',
u'6 Filter <- Vel',
u'6 Filter <- Random',
u'6 Pan',
u'6 Pan <- Vel',
u'6 Pan <- Random')}),
(u'Pad 7', {BANK_PARAMETERS_KEY: (u'7 Start',
u'7 Envelope Decay',
u'7 Stretch Factor',
u'7 Saturator Drive',
u'7 Envelope Type',
u'7 Transpose',
u'7 Volume <- Vel',
u'7 Volume')}),
(u'7 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'7 Filter Freq',
u'7 Filter Res',
u'7 Filter Type',
u'7 Filter <- Vel',
u'7 Filter <- Random',
u'7 Pan',
u'7 Pan <- Vel',
u'7 Pan <- Random')}),
(u'Pad 8', {BANK_PARAMETERS_KEY: (u'8 Start',
u'8 Envelope Decay',
u'8 Stretch Factor',
u'8 Saturator Drive',
u'8 Envelope Type',
u'8 Transpose',
u'8 Volume <- Vel',
u'8 Volume')}),
(u'8 Filt/Mod/Pan', {BANK_PARAMETERS_KEY: (u'8 Filter Freq',
u'8 Filter Res',
u'8 Filter Type',
u'8 Filter <- Vel',
u'8 Filter <- Random',
u'8 Pan',
u'8 Pan <- Vel',
u'8 Pan <- Random')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Global Time',
u'Global Transpose',
u'Global Volume',
u'',
u'',
u'',
u'',
u'')}))),
u'Operator': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Algorithm').if_parameter(u'Filter On').has_value(u'Off').else_use(u'Filter Freq'),
use(u'Filter Res (Legacy)').if_parameter(u'Filter Res').is_available(False).and_parameter(u'Filter On').has_value(u'On').else_use(u'Filter Res').if_parameter(u'Filter On').has_value(u'On').else_use(u'Tone'),
use(u'').if_parameter(u'Osc-A On').has_value(u'Off').else_use(u'A Coarse').if_parameter(u'A Fix On ').has_value(u'Off').else_use(u'A Fix Freq'),
use(u'').if_parameter(u'Osc-A On').has_value(u'Off').else_use(u'A Fine').if_parameter(u'A Fix On ').has_value(u'Off').else_use(u'A Fix Freq Mul'),
use(u'').if_parameter(u'Osc-B On').has_value(u'Off').else_use(u'B Coarse').if_parameter(u'B Fix On ').has_value(u'Off').else_use(u'B Fix Freq'),
use(u'').if_parameter(u'Osc-B On').has_value(u'Off').else_use(u'B Fine').if_parameter(u'B Fix On ').has_value(u'Off').else_use(u'B Fix Freq Mul'),
use(u'Osc-B Level').if_parameter(u'Osc-B On').has_value(u'On'),
u'Volume')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Time',
u'Time < Key',
u'Tone',
u'Algorithm',
u'Panorama',
u'Pan < Key',
u'Pan < Rnd',
u'Volume')}),
(u'Osc. A', {BANK_PARAMETERS_KEY: (u'Osc-A On',
use(u'Osc-A Level').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'A Fix On ').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'').if_parameter(u'Osc-A On').has_value(u'Off').else_use(u'A Coarse').if_parameter(u'A Fix On ').has_value(u'Off').else_use(u'A Fix Freq'),
use(u'').if_parameter(u'Osc-A On').has_value(u'Off').else_use(u'A Fine').if_parameter(u'A Fix On ').has_value(u'Off').else_use(u'A Fix Freq Mul'),
use(u'Osc-A Wave').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Osc-A Retrig').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'').if_parameter(u'Osc-A On').has_value(u'Off').else_use(u'Osc-A Phase').if_parameter(u'Osc-A Retrig').has_value(u'On'))}),
(u'Osc. A Env.', {BANK_PARAMETERS_KEY: (u'Osc-A On',
use(u'Ae Init').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Ae Attack').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Ae Peak').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Ae Decay').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Ae Sustain').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Ae Release').if_parameter(u'Osc-A On').has_value(u'On'),
use(u'Osc-A Lev < Vel').if_parameter(u'Osc-A On').has_value(u'On'))}),
(u'Osc. B', {BANK_PARAMETERS_KEY: (u'Osc-B On',
use(u'Osc-B Level').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'B Fix On ').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'').if_parameter(u'Osc-B On').has_value(u'Off').else_use(u'B Coarse').if_parameter(u'B Fix On ').has_value(u'Off').else_use(u'B Fix Freq'),
use(u'').if_parameter(u'Osc-B On').has_value(u'Off').else_use(u'B Fine').if_parameter(u'B Fix On ').has_value(u'Off').else_use(u'B Fix Freq Mul'),
use(u'Osc-B Wave').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Osc-B Retrig').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'').if_parameter(u'Osc-B On').has_value(u'Off').else_use(u'Osc-B Phase').if_parameter(u'Osc-B Retrig').has_value(u'On'))}),
(u'Osc. B Env.', {BANK_PARAMETERS_KEY: (u'Osc-B On',
use(u'Be Init').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Be Attack').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Be Peak').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Be Decay').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Be Sustain').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Be Release').if_parameter(u'Osc-B On').has_value(u'On'),
use(u'Osc-B Lev < Vel').if_parameter(u'Osc-B On').has_value(u'On'))}),
(u'Osc. C', {BANK_PARAMETERS_KEY: (u'Osc-C On',
use(u'Osc-C Level').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'C Fix On ').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'').if_parameter(u'Osc-C On').has_value(u'Off').else_use(u'C Coarse').if_parameter(u'C Fix On ').has_value(u'Off').else_use(u'C Fix Freq'),
use(u'').if_parameter(u'Osc-C On').has_value(u'Off').else_use(u'C Fine').if_parameter(u'C Fix On ').has_value(u'Off').else_use(u'C Fix Freq Mul'),
use(u'Osc-C Wave').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Osc-C Retrig').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'').if_parameter(u'Osc-C On').has_value(u'Off').else_use(u'Osc-C Phase').if_parameter(u'Osc-C Retrig').has_value(u'On'))}),
(u'Osc. C Env.', {BANK_PARAMETERS_KEY: (u'Osc-C On',
use(u'Ce Init').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Ce Attack').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Ce Peak').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Ce Decay').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Ce Sustain').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Ce Release').if_parameter(u'Osc-C On').has_value(u'On'),
use(u'Osc-C Lev < Vel').if_parameter(u'Osc-C On').has_value(u'On'))}),
(u'Osc. D', {BANK_PARAMETERS_KEY: (u'Osc-D On',
use(u'Osc-D Level').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'D Fix On ').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'').if_parameter(u'Osc-D On').has_value(u'Off').else_use(u'D Coarse').if_parameter(u'D Fix On ').has_value(u'Off').else_use(u'D Fix Freq'),
use(u'').if_parameter(u'Osc-D On').has_value(u'Off').else_use(u'D Fine').if_parameter(u'D Fix On ').has_value(u'Off').else_use(u'D Fix Freq Mul'),
use(u'Osc-D Wave').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'Osc-D Retrig').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'').if_parameter(u'Osc-D On').has_value(u'Off').else_use(u'Osc-D Phase').if_parameter(u'Osc-D Retrig').has_value(u'On'))}),
(u'Osc. D Env.', {BANK_PARAMETERS_KEY: (u'Osc-D On',
use(u'De Init').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'De Attack').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'De Peak').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'De Decay').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'De Sustain').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'De Release').if_parameter(u'Osc-D On').has_value(u'On'),
use(u'Osc-D Lev < Vel').if_parameter(u'Osc-D On').has_value(u'On'))}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'Filter On',
use(u'').if_parameter(u'Filter On').has_value(u'Off').else_use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'Filter Freq').if_parameter(u'Filter On').has_value(u'On'),
use(u'').if_parameter(u'Filter On').has_value(u'Off').else_use(u'Filter Res').if_parameter(u'Filter Res').is_available(True).else_use(u'Filter Res (Legacy)'),
use(u'').if_parameter(u'Filter On').has_value(u'Off').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Lowpass').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Highpass').else_use(u'Filter Circuit - BP/NO/Morph'),
use(u'').if_parameter(u'Filter On').has_value(u'Off').else_use(u'Filter Morph').if_parameter(u'Filter Type').has_value(u'Morph').else_use(u'').if_parameter(u'Filter Type').has_value(u'Lowpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Highpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Bandpass').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Notch').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'Filter Drive'),
use(u'Filter Slope').if_parameter(u'Filter On').has_value(u'On').and_parameter(u'Filter Slope').is_available(True),
use(u'Filt < Vel').if_parameter(u'Filter On').has_value(u'On'))}),
(u'Filt. Env.', {BANK_PARAMETERS_KEY: (use(u'Fe Amount').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Init').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Attack').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Peak').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Decay').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Sustain').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe Release').if_parameter(u'Filter On').has_value(u'On'),
use(u'Fe End').if_parameter(u'Filter On').has_value(u'On'))}),
(u'LFO', {BANK_PARAMETERS_KEY: (u'LFO On',
use(u'LFO Type').if_parameter(u'LFO On').has_value(u'On'),
use(u'LFO Range').if_parameter(u'LFO On').has_value(u'On'),
use(u'').if_parameter(u'LFO On').has_value(u'Off').else_use(u'LFO Sync').if_parameter(u'LFO Range').has_value(u'Sync').else_use(u'LFO Rate'),
use(u'LFO Retrigger').if_parameter(u'LFO On').has_value(u'On'),
use(u'LFO Amt').if_parameter(u'LFO On').has_value(u'On'),
u'',
u'')}),
(u'LFO Env.', {BANK_PARAMETERS_KEY: (u'LFO On',
use(u'Le Init').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le Attack').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le Peak').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le Decay').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le Sustain').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le Release').if_parameter(u'LFO On').has_value(u'On'),
use(u'Le End').if_parameter(u'LFO On').has_value(u'On'))}),
(u'Pitch', {BANK_PARAMETERS_KEY: (u'Transpose',
u'Spread',
u'Glide On',
use(u'Glide Time').if_parameter(u'Glide On').has_value(u'On'),
u'Pe On',
use(u'Pe Amount').if_parameter(u'Pe On').has_value(u'On'),
use(u'LFO < Pe').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Dst B').if_parameter(u'Pe On').has_value(u'On'))}),
(u'Pitch Env.', {BANK_PARAMETERS_KEY: (u'Pe On',
use(u'Pe Attack').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Peak').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Decay').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Sustain').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Release').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe End').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe R < Vel').if_parameter(u'Pe On').has_value(u'On'))}))),
u'MultiSampler': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Ve Attack',
u'Ve Decay',
u'Ve Sustain',
u'Ve Release',
use(u'Pan').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'Transpose').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Freq'),
use(u'Detune').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Res').if_parameter(u'Filter Res').is_available(True).else_use(u'Filter Res (Legacy)'),
u'Volume')}),
(u'Volume Env.', {BANK_PARAMETERS_KEY: (u'Ve Init',
u'Ve Attack',
u'Ve Peak',
u'Ve Decay',
u'Ve Sustain',
u'Ve Release',
u'Vol < Vel',
u'Volume')}),
(u'Env. Loop & Pan', {BANK_PARAMETERS_KEY: (u'Ve Mode',
use(u'Ve Loop').if_parameter(u'Ve Mode').has_value(u'Loop').else_use(u'Ve Retrig').if_parameter(u'Ve Mode').has_value(u'Beat').else_use(u'Ve Retrig').if_parameter(u'Ve Mode').has_value(u'Sync').else_use(u''),
u'Ve R < Vel',
u'',
u'Pan',
u'Pan < Rnd',
u'Time',
u'Time < Key')}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'F On',
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Freq'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Res').if_parameter(u'Filter Res').is_available(True).else_use(u'Filter Res (Legacy)'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Lowpass').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Highpass').else_use(u'Filter Circuit - BP/NO/Morph'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Morph').if_parameter(u'Filter Type').has_value(u'Morph').else_use(u'').if_parameter(u'Filter Type').has_value(u'Lowpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Highpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Bandpass').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Notch').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'Filter Drive'),
use(u'Filter Slope').if_parameter(u'F On').has_value(u'On').and_parameter(u'Filter Slope').is_available(True),
use(u'Filt < Vel').if_parameter(u'F On').has_value(u'On'))}),
(u'Filt. Env', {BANK_PARAMETERS_KEY: (u'Fe On',
use(u'Fe < Env').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Init').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Attack').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Decay').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Peak').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Sustain').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Release').if_parameter(u'Fe On').has_value(u'On'))}),
(u'Shaper', {BANK_PARAMETERS_KEY: (u'Fe On',
use(u'Fe End').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Mode').if_parameter(u'Fe On').has_value(u'On'),
use(u'').if_parameter(u'Fe On').has_value(u'Off').else_use(u'Fe Loop').if_parameter(u'Fe Mode').has_value(u'Loop').else_use(u'Fe Retrig').if_parameter(u'Fe Mode').has_value(u'Beat').else_use(u'Fe Retrig').if_parameter(u'Fe Mode').has_value(u'Sync').else_use(u''),
use(u'Fe R < Vel').if_parameter(u'Fe On').has_value(u'On'),
u'Shaper On',
use(u'Shaper Type').if_parameter(u'Shaper On').has_value(u'On'),
use(u'Shaper Amt').if_parameter(u'Shaper On').has_value(u'On'))}),
(u'Osc. pg. 1', {BANK_PARAMETERS_KEY: (u'Osc On',
use(u'O Mode').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Init').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Attack').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Peak').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Decay').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Sustain').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Release').if_parameter(u'Osc On').has_value(u'On'))}),
(u'Osc. pg. 2', {BANK_PARAMETERS_KEY: (use(u'Oe End').if_parameter(u'Osc On').has_value(u'On'),
use(u'Oe Mode').if_parameter(u'Osc On').has_value(u'On'),
use(u'').if_parameter(u'Osc On').has_value(u'Off').else_use(u'Oe Loop').if_parameter(u'Oe Mode').has_value(u'Loop').else_use(u'Oe Retrig').if_parameter(u'Oe Mode').has_value(u'Beat').else_use(u'Oe Retrig').if_parameter(u'Oe Mode').has_value(u'Sync').else_use(u''),
use(u'O Type').if_parameter(u'Osc On').has_value(u'On'),
use(u'O Volume').if_parameter(u'Osc On').has_value(u'On'),
use(u'O Fix On').if_parameter(u'Osc On').has_value(u'On'),
use(u'').if_parameter(u'Osc On').has_value(u'Off').else_use(u'O Coarse').if_parameter(u'O Fix On').has_value(u'Off').else_use(u'O Fix Freq'),
use(u'').if_parameter(u'Osc On').has_value(u'Off').else_use(u'O Fine').if_parameter(u'O Fix On').has_value(u'Off').else_use(u'O Fix Freq Mul'))}),
(u'Pitch Env.', {BANK_PARAMETERS_KEY: (u'Pe On',
use(u'Pe < Env').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Init').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Attack').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Peak').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Decay').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Sustain').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Release').if_parameter(u'Pe On').has_value(u'On'))}),
(u'Pitch Env. 2', {BANK_PARAMETERS_KEY: (u'Pe On',
use(u'Pe End').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe R < Vel').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Mode').if_parameter(u'Pe On').has_value(u'On'),
use(u'').if_parameter(u'Pe On').has_value(u'Off').else_use(u'Pe Loop').if_parameter(u'Pe Mode').has_value(u'Loop').else_use(u'Pe Retrig').if_parameter(u'Pe Mode').has_value(u'Beat').else_use(u'Pe Retrig').if_parameter(u'Pe Mode').has_value(u'Sync').else_use(u''),
u'',
u'',
u'')}),
(u'Pitch/Glide', {BANK_PARAMETERS_KEY: (u'Pe On',
u'Spread',
u'Transpose',
u'Detune',
u'Key Zone Shift',
u'Glide Mode',
use(u'Glide Time').if_parameter(u'Glide Mode').has_value(u'On'),
u'')}),
(u'LFO1 pg. 1', {BANK_PARAMETERS_KEY: (u'L 1 On',
use(u'L 1 Wave').if_parameter(u'L 1 On').has_value(u'On'),
use(u'L 1 Sync').if_parameter(u'L 1 On').has_value(u'On'),
use(u'').if_parameter(u'L 1 On').has_value(u'Off').else_use(u'L 1 Sync Rate').if_parameter(u'L 1 Sync').has_value(u'Sync').else_use(u'L 1 Rate'),
use(u'Vol < LFO').if_parameter(u'L 1 On').has_value(u'On'),
use(u'Filt < LFO').if_parameter(u'L 1 On').has_value(u'On'),
use(u'Pan < LFO').if_parameter(u'L 1 On').has_value(u'On'),
use(u'Pitch < LFO').if_parameter(u'L 1 On').has_value(u'On'))}),
(u'LFO1 pg. 2', {BANK_PARAMETERS_KEY: (u'L 1 On',
use(u'L 1 Retrig').if_parameter(u'L 1 On').has_value(u'On'),
use(u'').if_parameter(u'L 1 On').has_value(u'Off').else_use(u'L 1 Offset').if_parameter(u'L 1 Retrig').has_value(u'On').else_use(u''),
use(u'L 1 Attack').if_parameter(u'L 1 On').has_value(u'On'),
u'',
u'',
u'',
u'')}),
(u'LFO2 pg. 1', {BANK_PARAMETERS_KEY: (u'L 2 On',
use(u'L 2 Wave').if_parameter(u'L 2 On').has_value(u'On'),
use(u'L 2 Sync').if_parameter(u'L 2 On').has_value(u'On'),
use(u'').if_parameter(u'L 2 On').has_value(u'Off').else_use(u'L 2 Sync Rate').if_parameter(u'L 2 Sync').has_value(u'Sync').else_use(u'L 2 Rate'),
use(u'L 2 Retrig').if_parameter(u'L 2 On').has_value(u'On'),
use(u'').if_parameter(u'L 2 On').has_value(u'Off').else_use(u'L 2 Offset').if_parameter(u'L 2 Retrig').has_value(u'On').else_use(u''),
use(u'L 2 Attack').if_parameter(u'L 2 On').has_value(u'On'),
u'')}),
(u'LFO2 pg. 2', {BANK_PARAMETERS_KEY: (u'L 2 On',
use(u'L 2 St Mode').if_parameter(u'L 2 On').has_value(u'On'),
use(u'').if_parameter(u'L 2 On').has_value(u'Off').else_use(u'L 2 Spin').if_parameter(u'L 2 St Mode').has_value(u'Spin').else_use(u'L 2 Phase'),
u'',
u'',
u'',
u'',
u'')}),
(u'LFO3 pg. 1', {BANK_PARAMETERS_KEY: (u'L 3 On',
use(u'L 3 Wave').if_parameter(u'L 3 On').has_value(u'On'),
use(u'L 3 Sync').if_parameter(u'L 3 On').has_value(u'On'),
use(u'').if_parameter(u'L 3 On').has_value(u'Off').else_use(u'L 3 Sync Rate').if_parameter(u'L 3 Sync').has_value(u'Sync').else_use(u'L 3 Rate'),
use(u'L 3 Retrig').if_parameter(u'L 3 On').has_value(u'On'),
use(u'').if_parameter(u'L 3 On').has_value(u'Off').else_use(u'L 3 Offset').if_parameter(u'L 3 Retrig').has_value(u'On').else_use(u''),
use(u'L 3 Attack').if_parameter(u'L 3 On').has_value(u'On'),
u'')}),
(u'LFO3 pg. 2', {BANK_PARAMETERS_KEY: (u'L 3 On',
use(u'L 3 St Mode').if_parameter(u'L 3 On').has_value(u'On'),
use(u'').if_parameter(u'L 3 On').has_value(u'Off').else_use(u'L 3 Spin').if_parameter(u'L 3 St Mode').has_value(u'Spin').else_use(u'L 3 Phase'),
u'',
u'',
u'',
u'',
u'')}),
(u'Aux Env.', {BANK_PARAMETERS_KEY: (u'Ae On',
use(u'Ae < Env').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Init').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Attack').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Peak').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Decay').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Sustain').if_parameter(u'Ae On').has_value(u'On'),
use(u'Ae Release').if_parameter(u'Ae On').has_value(u'On'))}),
(u'Aux Env. 2', {BANK_PARAMETERS_KEY: (u'Ae On',
use(u'Ae End').if_parameter(u'Ae On').has_value(u'Off'),
use(u'Ae R < Vel').if_parameter(u'Ae On').has_value(u'Off'),
use(u'Ae Mode').if_parameter(u'Ae On').has_value(u'Off'),
use(u'').if_parameter(u'Ae On').has_value(u'Off').else_use(u'Ae Loop').if_parameter(u'Ae Mode').has_value(u'Loop').else_use(u'Ae Retrig').if_parameter(u'Ae Mode').has_value(u'Beat').else_use(u'Ae Retrig').if_parameter(u'Ae Mode').has_value(u'Sync').else_use(u''),
u'',
u'',
u'')}))),
u'OriginalSimpler': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Ve Attack').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Start'),
use(u'Ve Decay').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'End'),
use(u'Ve Sustain').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Fade In').if_parameter(u'Mode').has_value(u'One-Shot').else_use(u'Nudge').if_parameter(u'Mode').has_value(u'Slicing').else_use(u'S Start').if_parameter(u'Mode').has_value(u'Classic'),
use(u'Ve Release').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Fade Out').if_parameter(u'Mode').has_value(u'One-Shot').else_use(u'Playback').if_parameter(u'Mode').has_value(u'Slicing').else_use(u'S Length').if_parameter(u'Mode').has_value(u'Classic'),
use(u'Pan').if_parameter(u'Multi Sample').has_value(u'On').and_parameter(u'F On').has_value(u'Off').else_use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).and_parameter(u'Multi Sample').has_value(u'On').else_use(u'Filter Type (Legacy)').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Transpose').if_parameter(u'Mode').has_value(u'One-Shot').else_use(u'S Loop On').if_parameter(u'Mode').has_value(u'Classic'),
use(u'Filter Freq').if_parameter(u'Multi Sample').has_value(u'On').and_parameter(u'F On').has_value(u'On').else_use(u'Transpose').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Gain').if_parameter(u'Mode').has_value(u'One-Shot').else_use(u'Slice by').if_parameter(u'Mode').has_value(u'Slicing').else_use(u'S Loop Length').if_parameter(u'Mode').has_value(u'Classic').and_parameter(u'S Loop On').has_value(u'On').else_use(u'Transpose'),
use(u'Detune').if_parameter(u'Multi Sample').has_value(u'On').and_parameter(u'F On').has_value(u'Off').else_use(u'Filter Res').if_parameter(u'Filter Res').is_available(True).and_parameter(u'Multi Sample').has_value(u'On').else_use(u'Filter Res (Legacy)').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Trigger Mode').if_parameter(u'Mode').has_value(u'One-Shot').else_use(u'Sensitivity').if_parameter(u'Slice by').has_value(u'Transient').and_parameter(u'Mode').has_value(u'Slicing').else_use(u'Division').if_parameter(u'Slice by').has_value(u'Beat').and_parameter(u'Mode').has_value(u'Slicing').else_use(u'Regions').if_parameter(u'Slice by').has_value(u'Region').and_parameter(u'Mode').has_value(u'Slicing').else_use(u'Pad Slicing').if_parameter(u'Slice Style').has_value(u'Manual').and_parameter(u'Mode').has_value(u'Slicing').else_use(u'Trigger Mode').if_parameter(u'Mode').has_value(u'Slicing').else_use(u'S Loop Fade').if_parameter(u'Mode').has_value(u'Classic').and_parameter(u'Warp').has_value(u'Off').else_use(u'Detune'),
use(u'Volume').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Mode'))}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Glide Mode',
use(u'').if_parameter(u'Glide Mode').has_value(u'Off').else_use(u'Glide Time'),
u'Voices',
u'Transpose',
u'Detune',
u'Vol < Vel',
u'Gain',
u'Volume')}),
(u'Volume Envelope', {BANK_PARAMETERS_KEY: (use(u'Ve Attack').if_parameter(u'Mode').has_value(u'Classic').else_use(u'Fade In'),
use(u'Ve Decay').if_parameter(u'Mode').has_value(u'Classic').else_use(u'Fade Out'),
use(u'Ve Sustain').if_parameter(u'Mode').has_value(u'Classic'),
use(u'Ve Release').if_parameter(u'Mode').has_value(u'Classic'),
u'Filt < Vel',
u'Vol < Vel',
u'Vol < LFO',
u'Volume')}),
(u'Warp', {BANK_PARAMETERS_KEY: (use(u'').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'Warp'),
use(u'').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'').if_parameter(u'Warp').has_value(u'Off').else_use(u'Warp Mode'),
use(u'').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'').if_parameter(u'Warp').has_value(u'Off').else_use(u'Preserve').if_parameter(u'Warp Mode').has_value(u'Beats').else_use(u'Grain Size Tones').if_parameter(u'Warp Mode').has_value(u'Tones').else_use(u'Grain Size Texture').if_parameter(u'Warp Mode').has_value(u'Texture').else_use(u'Formants').if_parameter(u'Warp Mode').has_value(u'Pro'),
use(u'').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'').if_parameter(u'Warp').has_value(u'Off').else_use(u'Loop Mode').if_parameter(u'Warp Mode').has_value(u'Beats').else_use(u'Flux').if_parameter(u'Warp Mode').has_value(u'Texture').else_use(u'Envelope Complex Pro').if_parameter(u'Warp Mode').has_value(u'Pro'),
use(u'').if_parameter(u'Multi Sample').has_value(u'On').else_use(u'').if_parameter(u'Warp').has_value(u'Off').else_use(u'Envelope').if_parameter(u'Warp Mode').has_value(u'Beats'),
u'',
u'',
u'')}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'F On',
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'Filter Freq').if_parameter(u'F On').has_value(u'On'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Res').if_parameter(u'Filter Res').is_available(True).else_use(u'Filter Res (Legacy)'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Lowpass').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Highpass').else_use(u'Filter Circuit - BP/NO/Morph'),
use(u'').if_parameter(u'F On').has_value(u'Off').else_use(u'Filter Morph').if_parameter(u'Filter Type').has_value(u'Morph').else_use(u'').if_parameter(u'Filter Type').has_value(u'Lowpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Highpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Bandpass').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Notch').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'Filter Drive'),
use(u'Filter Slope').if_parameter(u'F On').has_value(u'On').and_parameter(u'Filter Slope').is_available(True),
use(u'Filt < LFO').if_parameter(u'F On').has_value(u'On'))}),
(u'Filter Envelope', {BANK_PARAMETERS_KEY: (u'Fe On',
use(u'Fe Attack').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Decay').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Sustain').if_parameter(u'Fe On').has_value(u'On'),
use(u'Fe Release').if_parameter(u'Fe On').has_value(u'On'),
use(u'Filter Freq').if_parameter(u'Fe On').has_value(u'On').and_parameter(u'F On').has_value(u'On'),
use(u'Filter Res').if_parameter(u'Fe On').has_value(u'On').and_parameter(u'F On').has_value(u'On'),
use(u'Fe < Env').if_parameter(u'Fe On').has_value(u'On'))}),
(u'Pitch Envelope', {BANK_PARAMETERS_KEY: (u'Pe On',
use(u'Pe Attack').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Decay').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Sustain').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe Release').if_parameter(u'Pe On').has_value(u'On'),
use(u'Pe < Env').if_parameter(u'Pe On').has_value(u'On'),
u'',
u'')}),
(u'LFO', {BANK_PARAMETERS_KEY: (u'L On',
use(u'L Wave').if_parameter(u'L On').has_value(u'On'),
use(u'L Sync').if_parameter(u'L On').has_value(u'On'),
use(u'').if_parameter(u'L On').has_value(u'Off').else_use(u'L Rate').if_parameter(u'L Sync').has_value(u'Free').else_use(u'L Sync Rate'),
use(u'L Attack').if_parameter(u'L On').has_value(u'On'),
use(u'L R < Key').if_parameter(u'L On').has_value(u'On'),
use(u'L Retrig').if_parameter(u'L On').has_value(u'On'),
use(u'L Offset').if_parameter(u'L On').has_value(u'On'))}),
(u'Pan', {BANK_PARAMETERS_KEY: (u'Pan',
u'Spread',
u'Pan < Rnd',
u'Pan < LFO',
u'',
u'',
u'',
u'')}))),
u'StringStudio': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Excitator Type').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc ForceMassProt').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc FricStiff').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Velocity').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'E Pos').if_parameter(u'Exc On/Off').has_value(u'On'),
u'String Decay',
u'Str Damping',
u'Volume')}),
(u'Excitator', {BANK_PARAMETERS_KEY: (u'Exc On/Off',
use(u'Excitator Type').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc ForceMassProt').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc FricStiff').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Velocity').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'E Pos').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'E Pos Abs').if_parameter(u'Exc On/Off').has_value(u'On'),
u'Volume')}),
(u'String & Pickup', {BANK_PARAMETERS_KEY: (u'String Decay',
u'S Decay < Key',
u'S Decay Ratio',
u'Str Inharmon',
u'Str Damping',
u'S Damp < Key',
u'Pickup On/Off',
use(u'Pickup Pos').if_parameter(u'Pickup On/Off').has_value(u'On'))}),
(u'Damper', {BANK_PARAMETERS_KEY: (u'Damper On',
use(u'Damper Mass').if_parameter(u'Damper On').has_value(u'On'),
use(u'D Stiffness').if_parameter(u'Damper On').has_value(u'On'),
use(u'Damp Pos').if_parameter(u'Damper On').has_value(u'On'),
use(u'D Damping').if_parameter(u'Damper On').has_value(u'On'),
use(u'Damper Gated').if_parameter(u'Damper On').has_value(u'On'),
use(u'').if_parameter(u'Damper On').has_value(u'Off').else_use(u'D Velocity').if_parameter(u'Damper Gated').has_value(u'On').else_use(u''),
use(u'D Pos Abs').if_parameter(u'Damper On').has_value(u'On'))}),
(u'Termination', {BANK_PARAMETERS_KEY: (u'Term On/Off',
use(u'Term Mass').if_parameter(u'Term On/Off').has_value(u'On'),
use(u'Term Fng Stiff').if_parameter(u'Term On/Off').has_value(u'On'),
use(u'Term Fret Stiff').if_parameter(u'Term On/Off').has_value(u'On'),
use(u'T Mass < Vel').if_parameter(u'Term On/Off').has_value(u'On'),
use(u'T Mass < Key').if_parameter(u'Term On/Off').has_value(u'On'),
u'',
u'Volume')}),
(u'Body', {BANK_PARAMETERS_KEY: (u'Body On/Off',
use(u'Body Type').if_parameter(u'Body On/Off').has_value(u'On'),
use(u'Body Size').if_parameter(u'Body On/Off').has_value(u'On'),
use(u'Body Decay').if_parameter(u'Body On/Off').has_value(u'On'),
use(u'Body Low-Cut').if_parameter(u'Body On/Off').has_value(u'On'),
use(u'Body High-Cut').if_parameter(u'Body On/Off').has_value(u'On'),
use(u'Body Mix').if_parameter(u'Body On/Off').has_value(u'On'),
u'Volume')}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'Filter On/Off',
use(u'Filter Freq').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Filter Reso').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Filter Type').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Freq < Env').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Freq < LFO').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Reso < Env').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Reso < LFO').if_parameter(u'Filter On/Off').has_value(u'On'))}),
(u'LFO', {BANK_PARAMETERS_KEY: (u'LFO On/Off',
use(u'LFO Shape').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'LFO Sync On').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO On/Off').has_value(u'Off').else_use(u'LFO SyncRate').if_parameter(u'LFO Sync On').has_value(u'Beat').else_use(u'LFO Speed'),
use(u'LFO Delay').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'LFO Fade In').if_parameter(u'LFO On/Off').has_value(u'On'),
u'',
u'')}),
(u'Vibrato', {BANK_PARAMETERS_KEY: (u'Vibrato On/Off',
use(u'Vib Delay').if_parameter(u'Vibrato On/Off').has_value(u'On'),
use(u'Vib Fade-In').if_parameter(u'Vibrato On/Off').has_value(u'On'),
use(u'Vib Speed').if_parameter(u'Vibrato On/Off').has_value(u'On'),
use(u'Vib Amount').if_parameter(u'Vibrato On/Off').has_value(u'On'),
use(u'Vib < ModWh').if_parameter(u'Vibrato On/Off').has_value(u'On'),
use(u'Vib Error').if_parameter(u'Vibrato On/Off').has_value(u'On'),
u'')}),
(u'Unison & Portamento', {BANK_PARAMETERS_KEY: (u'Unison On/Off',
use(u'Unison Voices').if_parameter(u'Unison On/Off').has_value(u'On'),
use(u'Uni Delay').if_parameter(u'Unison On/Off').has_value(u'On'),
use(u'Uni Detune').if_parameter(u'Unison On/Off').has_value(u'On'),
u'Porta On/Off',
use(u'Porta Time').if_parameter(u'Porta On/Off').has_value(u'On'),
use(u'Porta Legato').if_parameter(u'Porta On/Off').has_value(u'On'),
use(u'Porta Prop').if_parameter(u'Porta On/Off').has_value(u'On'))}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Octave',
u'Semitone',
u'Fine Tune',
u'Voices',
u'PB Depth',
u'Stretch',
u'Error',
u'Key Priority')}),
(u'Filt. Env.', {BANK_PARAMETERS_KEY: (u'FEG On/Off',
use(u'FEG Attack').if_parameter(u'FEG On/Off').has_value(u'On'),
use(u'FEG Decay').if_parameter(u'FEG On/Off').has_value(u'On'),
use(u'FEG Sustain').if_parameter(u'FEG On/Off').has_value(u'On'),
use(u'FEG Release').if_parameter(u'FEG On/Off').has_value(u'On'),
use(u'FEG Att < Vel').if_parameter(u'FEG On/Off').has_value(u'On'),
use(u'FEG < Vel').if_parameter(u'FEG On/Off').has_value(u'On'),
u'')}),
(u'Excitator Mod.', {BANK_PARAMETERS_KEY: (use(u'Exc Prot < Vel').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Prot < Key').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Stiff < Vel').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Stiff < Key').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Vel < Vel').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'Exc Vel < Key').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'E Pos < Vel').if_parameter(u'Exc On/Off').has_value(u'On'),
use(u'E Pos < Key').if_parameter(u'Exc On/Off').has_value(u'On'))}),
(u'Mass Mod.', {BANK_PARAMETERS_KEY: (use(u'D Mass < Key').if_parameter(u'Damper On').has_value(u'On'),
use(u'D Stiff < Key').if_parameter(u'Damper On').has_value(u'On'),
use(u'D Pos < Key').if_parameter(u'Damper On').has_value(u'On'),
use(u'D Pos < Vel').if_parameter(u'Damper On').has_value(u'On'),
use(u'Damper Gated').if_parameter(u'Damper On').has_value(u'On'),
use(u'').if_parameter(u'Damper On').has_value(u'Off').else_use(u'D Velo < Key').if_parameter(u'Damper Gated').has_value(u'On').else_use(u''),
u'',
u'')}))),
u'InstrumentVector': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Osc 1 Pos').with_name(u'Pos 1').if_parameter(u'Osc 1 On').has_value(u'On').else_use(u'Osc 2 Pos').with_name(u'Pos 2').if_parameter(u'Osc 2 On').has_value(u'On').else_use(u'Sub Tone').if_parameter(u'Sub On').has_value(u'On').else_use(u''),
use(u'Filter 1 Freq').with_name(u'Freq 1').if_parameter(u'Filter 1 On').has_value(u'On').else_use(u'Filter 2 Freq').with_name(u'Freq 2').if_parameter(u'Filter 2 On').has_value(u'On').else_use(u'Osc 1 Effect 1').with_name(u'FX 1').if_parameter(u'Osc 1 On').has_value(u'On').else_use(u'Osc 2 Effect 1').with_name(u'FX 1').if_parameter(u'Osc 2 On').has_value(u'On').else_use(u'Osc 1 Effect 1').with_name(u'Osc1 FX1').if_parameter(u'Osc 1 On').has_value(u'Osc2 FX1').else_use(u'Osc 2 Effect 1').with_name(u'FX 1').if_parameter(u'Osc 2 On').has_value(u'On').else_use(u'Sub Transpose').if_parameter(u'Sub On').has_value(u'On').else_use(u''),
use(u'Filter 1 Res').with_name(u'Res 1').if_parameter(u'Filter 1 On').has_value(u'On').else_use(u'Filter 2 Res').with_name(u'Res 2').if_parameter(u'Filter 2 On').has_value(u'On').else_use(u'Osc 1 Effect 2').with_name(u'FX 2').if_parameter(u'Osc 1 On').has_value(u'On').else_use(u'Osc 2 Effect 2').with_name(u'FX 2').if_parameter(u'Osc 2 On').has_value(u'On').else_use(u'Amp Decay').with_name(u'Decay'),
use(u'Amp Release').with_name(u'Release'),
u'Unison Amount',
u'Time',
u'Global Mod Amount',
u'Volume')}),
(u'Osc 1', {BANK_PARAMETERS_KEY: (u'Osc 1 On',
use(u'Osc 1 Pitch').with_name(u'Pitch'),
use(u'Osc 1 Category').with_name(u'Category'),
use(u'Osc 1 Table').with_name(u'Table'),
use(u'Osc 1 Pos').with_name(u'Position'),
use(u'Osc 1 Effect Type').with_name(u'Effect Type'),
use(u'Osc 1 Effect 1').with_name(u'FX 1'),
use(u'Osc 1 Effect 2').with_name(u'FX 2'))}),
(u'Osc 2', {BANK_PARAMETERS_KEY: (u'Osc 2 On',
use(u'Osc 2 Pitch').with_name(u'Pitch'),
use(u'Osc 2 Category').with_name(u'Category'),
use(u'Osc 2 Table').with_name(u'Table'),
use(u'Osc 2 Pos').with_name(u'Position'),
use(u'Osc 2 Effect Type').with_name(u'Effect Type'),
use(u'Osc 2 Effect 1').with_name(u'FX 1'),
use(u'Osc 2 Effect 2').with_name(u'FX 2'))}),
(u'Sub', {BANK_PARAMETERS_KEY: (u'Sub On',
use(u'Sub Transpose').with_name(u'Transp'),
use(u'Sub Tone').with_name(u'Tone'),
u'',
u'',
u'',
u'',
use(u'Sub Gain').with_name(u'Gain'))}),
(u'Mix', {BANK_PARAMETERS_KEY: (use(u'Osc 1 Pitch').with_name(u'Pitch 1'),
use(u'Osc 2 Pitch').with_name(u'Pitch 2'),
use(u'Sub Transpose').with_name(u'Octave Sub'),
use(u'Osc 1 Pan').with_name(u'Pan 1'),
use(u'Osc 2 Pan').with_name(u'Pan 2'),
use(u'Osc 1 Gain').with_name(u'Gain 1'),
use(u'Osc 2 Gain').with_name(u'Gain 2'),
use(u'Sub Gain').with_name(u'Gain Sub'))}),
(u'Filter 1', {BANK_PARAMETERS_KEY: (use(u'Filter 1 On').with_name(u'F1 On'),
use(u'Filter 1 Type').with_name(u'Type'),
use(u'Filter 1 LP/HP').with_name(u'Circuit').if_parameter(u'Filter 1 Type').has_value(u'Lowpass').or_parameter(u'Filter 1 Type').has_value(u'Highpass').else_use(u'Filter 1 BP/NO/Morph').with_name(u'Circuit').if_parameter(u'Filter 1 Type').has_value(u'Bandpass').or_parameter(u'Filter 1 Type').has_value(u'Notch').or_parameter(u'Filter 1 Type').has_value(u'Morph').else_use(u''),
use(u'Filter 1 Slope').with_name(u'Slope'),
use(u'Filter 1 Freq').with_name(u'Freq'),
use(u'Filter 1 Res').with_name(u'Res'),
use(u'Filter 1 Drive').with_name(u'Drive').if_parameter(u'Filter 1 Type').has_value(u'Lowpass').or_parameter(u'Filter 1 Type').has_value(u'Highpass').or_parameter(u'Filter 1 Type').has_value(u'Notch').or_parameter(u'Filter 1 Type').has_value(u'Bandpass').and_parameter(u'Filter 1 LP/HP').does_not_have_value(u'Clean').else_use(u'Filter 1 Morph').with_name(u'Morph').if_parameter(u'Filter 1 Type').has_value(u'Morph').else_use(u''),
u'')}),
(u'Filter 2', {BANK_PARAMETERS_KEY: (use(u'Filter 2 On').with_name(u'F2 On'),
use(u'Filter 2 Type').with_name(u'Type'),
use(u'Filter 2 LP/HP').with_name(u'Circuit').if_parameter(u'Filter 2 Type').has_value(u'Lowpass').or_parameter(u'Filter 2 Type').has_value(u'Highpass').else_use(u'Filter 2 BP/NO/Morph').with_name(u'Circuit').if_parameter(u'Filter 2 Type').has_value(u'Bandpass').or_parameter(u'Filter 2 Type').has_value(u'Notch').or_parameter(u'Filter 2 Type').has_value(u'Morph').else_use(u''),
use(u'Filter 2 Slope').with_name(u'Slope'),
use(u'Filter 2 Freq').with_name(u'Freq'),
use(u'Filter 2 Res').with_name(u'Res'),
use(u'Filter 2 Drive').with_name(u'Drive').if_parameter(u'Filter 2 Type').has_value(u'Lowpass').or_parameter(u'Filter 2 Type').has_value(u'Highpass').or_parameter(u'Filter 2 Type').has_value(u'Notch').or_parameter(u'Filter 2 Type').has_value(u'Bandpass').and_parameter(u'Filter 2 LP/HP').does_not_have_value(u'Clean').else_use(u'Filter 2 Morph').with_name(u'Morph').if_parameter(u'Filter 2 Type').has_value(u'Morph').else_use(u''),
u'')}),
(u'Amp Env', {BANK_PARAMETERS_KEY: (use(u'Amp Attack').with_name(u'Attack'),
use(u'Amp Decay').with_name(u'Decay'),
use(u'Amp Sustain').with_name(u'Sustain'),
use(u'Amp Release').with_name(u'Release'),
use(u'Amp A Slope').with_name(u'A Slope'),
use(u'Amp D Slope').with_name(u'D Slope'),
use(u'Amp R Slope').with_name(u'R Slope'),
use(u'Amp Loop Mode').with_name(u'Mode'))}),
(u'Env 2', {BANK_PARAMETERS_KEY: (use(u'Env 2 Attack').with_name(u'Attack'),
use(u'Env 2 Decay').with_name(u'Decay'),
use(u'Env 2 Sustain').with_name(u'Sustain'),
use(u'Env 2 Release').with_name(u'Release'),
use(u'Env 2 A Slope').with_name(u'A Slope'),
use(u'Env 2 D Slope').with_name(u'D Slope'),
use(u'Env 2 R Slope').with_name(u'R Slope'),
use(u'Env 2 Loop Mode').with_name(u'Mode'))}),
(u'Env 3', {BANK_PARAMETERS_KEY: (use(u'Env 3 Attack').with_name(u'Attack'),
use(u'Env 3 Decay').with_name(u'Decay'),
use(u'Env 3 Sustain').with_name(u'Sustain'),
use(u'Env 3 Release').with_name(u'Release'),
use(u'Env 3 A Slope').with_name(u'A Slope'),
use(u'Env 3 D Slope').with_name(u'D Slope'),
use(u'Env 3 R Slope').with_name(u'R Slope'),
use(u'Env 3 Loop Mode').with_name(u'Mode'))}),
(u'LFO 1', {BANK_PARAMETERS_KEY: (use(u'LFO 1 Shape').with_name(u'Shape'),
use(u'LFO 1 Sync').with_name(u'Sync'),
use(u'LFO 1 S. Rate').with_name(u'SyncRate').if_parameter(u'LFO 1 Sync').has_value(u'Tempo').else_use(u'LFO 1 Rate').with_name(u'Rate'),
use(u'LFO 1 Shaping').with_name(u'Shaping'),
use(u'LFO 1 Attack Time').with_name(u'Attack'),
use(u'LFO 1 Amount').with_name(u'Amount'),
use(u'LFO 1 Phase Offset').with_name(u'Phase'),
use(u'LFO 1 Retrigger').with_name(u'Retrigger'))}),
(u'LFO 2', {BANK_PARAMETERS_KEY: (use(u'LFO 2 Shape').with_name(u'Shape'),
use(u'LFO 2 Sync').with_name(u'Sync'),
use(u'LFO 2 S. Rate').with_name(u'SyncRate').if_parameter(u'LFO 2 Sync').has_value(u'Tempo').else_use(u'LFO 2 Rate').with_name(u'Rate'),
use(u'LFO 2 Shaping').with_name(u'Shaping'),
use(u'LFO 2 Attack Time').with_name(u'Attack'),
use(u'LFO 2 Amount').with_name(u'Amount'),
use(u'LFO 2 Phase Offset').with_name(u'Phase'),
use(u'LFO 2 Retrigger').with_name(u'Retrigger'))}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Time',
u'Global Mod Amount',
u'Unison Mode',
u'Unison Amount',
u'Mono On',
u'Glide',
u'Transpose',
u'Volume')}))),
u'MidiArpeggiator': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Style',
use(u'Synced Rate').if_parameter(u'Sync On').has_value(u'On').else_use(u'Free Rate'),
u'Gate',
u'Offset',
u'Hold On',
u'Tranpose Key',
u'Transp. Steps',
u'Transp. Dist.')}), (u'Rhythm', {BANK_PARAMETERS_KEY: (u'Sync On',
use(u'Synced Rate').if_parameter(u'Sync On').has_value(u'On').else_use(u'Free Rate'),
use(u'Groove').if_parameter(u'Sync On').has_value(u'On'),
u'Offset',
u'Repeats',
u'Gate',
u'Retrigger Mode',
use(u'Ret. Interval').if_parameter(u'Retrigger Mode').has_value(u'Beat'))}), (u'Pitch/Vel.', {BANK_PARAMETERS_KEY: (u'Tranpose Mode',
use(u'').if_parameter(u'Tranpose Mode').has_value(u'Shift').else_use(u'Tranpose Key'),
use(u'').if_parameter(u'Tranpose Mode').has_value(u'Shift').else_use(u'Transp. Steps'),
use(u'').if_parameter(u'Tranpose Mode').has_value(u'Shift').else_use(u'Transp. Dist.'),
u'Velocity On',
use(u'Vel. Retrigger').if_parameter(u'Velocity On').has_value(u'On'),
use(u'Velocity Decay').if_parameter(u'Velocity On').has_value(u'On'),
use(u'Velocity Target').if_parameter(u'Velocity On').has_value(u'On'))}))),
u'MidiChord': IndexedDict(((u'Shift', {BANK_PARAMETERS_KEY: (u'Shift1',
u'Shift2',
u'Shift3',
u'Shift4',
u'Shift5',
u'Shift6',
u'',
u'')}), (u'Velocity', {BANK_PARAMETERS_KEY: (u'Velocity1',
u'Velocity2',
u'Velocity3',
u'Velocity4',
u'Velocity5',
u'Velocity6',
u'',
u'')}))),
u'MidiNoteLength': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Trigger Mode',
u'Sync On',
use(u'Synced Length').if_parameter(u'Sync On').has_value(u'On').else_use(u'Time Length'),
u'Gate',
use(u'On/Off-Balance').if_parameter(u'Trigger Mode').has_value(u'On'),
use(u'Decay Time').if_parameter(u'Trigger Mode').has_value(u'On'),
use(u'Decay Key Scale').if_parameter(u'Trigger Mode').has_value(u'On'),
u'')}),)),
u'MidiPitcher': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Pitch',
u'Range',
u'Lowest',
u'',
u'',
u'',
u'',
u'')}),)),
u'MidiRandom': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Chance',
u'Choices',
u'Mode',
u'Scale',
u'Sign',
u'',
u'',
u'')}),)),
u'MidiScale': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Base',
u'Transpose',
u'Range',
u'Lowest',
u'Fold',
u'',
u'',
u'')}),)),
u'MidiVelocity': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Mode',
use(u'').if_parameter(u'Mode').has_value(u'Fixed').else_use(u'Drive'),
use(u'').if_parameter(u'Mode').has_value(u'Fixed').else_use(u'Compand'),
u'Out Hi',
use(u'').if_parameter(u'Mode').has_value(u'Fixed').else_use(u'Out Low'),
use(u'').if_parameter(u'Mode').has_value(u'Fixed').else_use(u'Range'),
use(u'').if_parameter(u'Mode').has_value(u'Fixed').else_use(u'Lowest'),
u'Random')}),)),
u'Amp': IndexedDict(((u'Global', {BANK_PARAMETERS_KEY: (u'Amp Type',
u'Bass',
u'Middle',
u'Treble',
u'Presence',
u'Gain',
u'Volume',
u'Dry/Wet')}), (u'Dual/Mono', {BANK_PARAMETERS_KEY: (u'Dual Mono',
u'',
u'',
u'',
u'',
u'',
u'',
u'')}))),
u'AutoFilter': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'Frequency'),
use(u'Resonance').if_parameter(u'Resonance').is_available(True).else_use(u'Resonance (Legacy)'),
use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Lowpass').else_use(u'Filter Circuit - LP/HP').if_parameter(u'Filter Type').has_value(u'Highpass').else_use(u'Filter Circuit - BP/NO/Morph'),
use(u'Morph').if_parameter(u'Filter Type').has_value(u'Morph').else_use(u'').if_parameter(u'Filter Type').has_value(u'Lowpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Highpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Bandpass').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Notch').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'Drive').if_parameter(u'Drive').is_available(True),
u'LFO Amount',
u'LFO Sync',
use(u'LFO Frequency').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Sync Rate'))}),
(u'Envelope', {BANK_PARAMETERS_KEY: (use(u'Filter Type').if_parameter(u'Filter Type').is_available(True).else_use(u'Filter Type (Legacy)'),
use(u'Frequency'),
use(u'Resonance').if_parameter(u'Resonance').is_available(True).else_use(u'Resonance (Legacy)'),
use(u'Slope').if_parameter(u'Slope').is_available(True),
use(u'Morph').if_parameter(u'Filter Type').has_value(u'Morph').else_use(u'').if_parameter(u'Filter Type').has_value(u'Lowpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Highpass').and_parameter(u'Filter Circuit - LP/HP').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Bandpass').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'').if_parameter(u'Filter Type').has_value(u'Notch').and_parameter(u'Filter Circuit - BP/NO/Morph').has_value(u'Clean').else_use(u'Drive').if_parameter(u'Drive').is_available(True),
u'Env. Attack',
u'Env. Release',
u'Env. Modulation')}),
(u'LFO', {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'LFO Waveform',
u'LFO Sync',
use(u'LFO Frequency').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Sync Rate'),
use(u'').if_parameter(u'LFO Waveform').has_value(u'S&H Mono').else_use(u'LFO Offset').if_parameter(u'LFO Sync').has_value(u'Sync').else_use(u'LFO Stereo Mode'),
use(u'').if_parameter(u'LFO Waveform').has_value(u'S&H Mono').else_use(u'LFO Phase').if_parameter(u'LFO Sync').has_value(u'Sync').else_use(u'LFO Phase').if_parameter(u'LFO Stereo Mode').has_value(u'Phase').else_use(u'LFO Spin'),
u'LFO Quantize On',
use(u'LFO Quantize Rate').if_parameter(u'LFO Quantize On').has_value(u'On'))}),
(u'Sidechain', {BANK_PARAMETERS_KEY: (u'S/C On',
use(u'S/C Mix').if_parameter(u'S/C On').has_value(u'On'),
use(u'S/C Gain').if_parameter(u'S/C On').has_value(u'On'),
u'',
u'',
u'',
u'',
u'')}))),
u'AutoPan': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Amount',
u'Shape',
u'Invert',
u'Waveform',
u'LFO Type',
use(u'Sync Rate').if_parameter(u'LFO Type').has_value(u'Beats').else_use(u'Frequency'),
use(u'').if_parameter(u'Waveform').has_value(u'S&H Width').else_use(u'Stereo Mode').if_parameter(u'LFO Type').has_value(u'Frequency').else_use(u'Offset'),
use(u'Width (Random)').if_parameter(u'Waveform').has_value(u'S&H Width').else_use(u'Phase').if_parameter(u'LFO Type').has_value(u'Beats').else_use(u'Spin').if_parameter(u'Stereo Mode').has_value(u'Spin').else_use(u'Phase'))}),)),
u'BeatRepeat': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Grid',
u'Interval',
u'Offset',
u'Gate',
u'Pitch',
u'Pitch Decay',
u'Variation',
u'Chance')}), (u'Filt/Mix', {BANK_PARAMETERS_KEY: (u'Filter On',
use(u'Filter Freq').if_parameter(u'Filter On').has_value(u'On'),
use(u'Filter Width').if_parameter(u'Filter On').has_value(u'On'),
u'',
u'Mix Type',
u'Volume',
u'Decay',
u'Chance')}), (u'Repeat Rate', {BANK_PARAMETERS_KEY: (u'Repeat',
u'Interval',
u'Offset',
u'Gate',
u'Grid',
u'Block Triplets',
u'Variation',
u'Variation Type')}))),
u'Cabinet': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Cabinet Type',
u'Microphone Type',
u'Microphone Position',
u'Dual Mono',
u'',
u'',
u'',
u'Dry/Wet')}),)),
u'Chorus': IndexedDict(((u'Chorus', {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'LFO Rate',
u'Delay 1 Time',
u'Delay 1 HiPass',
u'Delay 2 Mode',
use(u'').if_parameter(u'Delay 2 Mode').has_value(u'Off').else_use(u'Delay 2 Time'),
u'Feedback',
u'Dry/Wet')}), (u'Other', {BANK_PARAMETERS_KEY: (u'LFO Extend On',
u'Polarity',
u'Link On',
u'',
u'',
u'',
u'',
u'')}))),
u'Compressor2': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Threshold',
use(u'Expansion Ratio').if_parameter(u'Model').has_value(u'Expand').else_use(u'Ratio'),
u'Model',
u'Knee',
u'Attack',
use(u'Release').if_parameter(u'Auto Release On/Off').has_value(u'Off').else_use(u'Makeup').if_parameter(u'S/C On').has_value(u'Off'),
u'Dry/Wet',
u'Output Gain')}), (u'Sidechain', {BANK_PARAMETERS_KEY: (u'S/C On',
use(u'S/C Gain').if_parameter(u'S/C On').has_value(u'On'),
use(u'S/C Mix').if_parameter(u'S/C On').has_value(u'On'),
u'S/C Listen',
u'S/C EQ On',
use(u'S/C EQ Type').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'S/C EQ Freq').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'').if_parameter(u'S/C EQ On').has_value(u'Off').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Low Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'High Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Bell').else_use(u'S/C EQ Q'))}), (u'Global', {BANK_PARAMETERS_KEY: (u'Auto Release On/Off',
u'Env Mode',
use(u'Makeup').if_parameter(u'S/C On').has_value(u'Off'),
u'LookAhead',
u'',
u'',
u'Dry/Wet',
u'Output Gain')}))),
u'Corpus': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Resonance Type',
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Brightness'),
u'Decay',
use(u'Radius').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'Radius').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Material'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'Opening').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Inharmonics'),
use(u'Ratio').if_parameter(u'Resonance Type').has_value(u'Plate').else_use(u'Ratio').if_parameter(u'Resonance Type').has_value(u'Membrane').else_use(u''),
use(u'Transpose').if_parameter(u'MIDI Frequency').has_value(u'On').else_use(u'Tune'),
u'Dry Wet')}),
(u'Body', {BANK_PARAMETERS_KEY: (u'Resonance Type',
use(u'Ratio').if_parameter(u'Resonance Type').has_value(u'Plate').else_use(u'Ratio').if_parameter(u'Resonance Type').has_value(u'Membrane'),
u'Decay',
use(u'Radius').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'Radius').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Material'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'Opening').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Inharmonics'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Listening L'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Listening R'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Hit'))}),
(u'LFO', {BANK_PARAMETERS_KEY: (u'LFO On/Off',
use(u'LFO Shape').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'LFO Amount').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'LFO Sync').if_parameter(u'LFO On/Off').has_value(u'On'),
use(u'').if_parameter(u'LFO On/Off').has_value(u'Off').else_use(u'LFO Rate').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Sync Rate'),
use(u'').if_parameter(u'LFO On/Off').has_value(u'Off').else_use(u'LFO Stereo Mode').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'Offset'),
use(u'').if_parameter(u'LFO On/Off').has_value(u'Off').else_use(u'Phase').if_parameter(u'LFO Sync').has_value(u'Sync').else_use(u'Spin').if_parameter(u'LFO Stereo Mode').has_value(u'Spin'),
u'')}),
(u'Tune & Sidechain', {BANK_PARAMETERS_KEY: (u'MIDI Frequency',
u'MIDI Mode',
use(u'Transpose').if_parameter(u'MIDI Frequency').has_value(u'On').else_use(u'Tune'),
use(u'Fine').if_parameter(u'MIDI Frequency').has_value(u'On'),
u'Spread',
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Brightness'),
u'Note Off',
use(u'Off Decay').if_parameter(u'Note Off').has_value(u'On'))}),
(u'Filter & Mix', {BANK_PARAMETERS_KEY: (u'Filter On/Off',
use(u'Mid Freq').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'Width').if_parameter(u'Filter On/Off').has_value(u'On'),
use(u'').if_parameter(u'Resonance Type').has_value(u'Tube').else_use(u'').if_parameter(u'Resonance Type').has_value(u'Pipe').else_use(u'Resonator Quality'),
u'Bleed',
u'Gain',
u'Dry Wet',
u'')}))),
u'Delay': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'L Sync Enum').with_name(u'DlayMd L'),
use(u'L 16th').with_name(u'Beat Delay').if_parameter(u'L Sync').has_value(u'On').else_use(u'L Time').with_name(u'Beat Delay'),
u'L Offset',
use(u'R Sync Enum').with_name(u'DlayMd R'),
use(u'R 16th').with_name(u'Beat Delay').if_parameter(u'R Sync').has_value(u'On').else_use(u'R Time').with_name(u'Beat Delay'),
u'R Offset',
u'Feedback',
u'Dry/Wet')}), (u'Time', {BANK_PARAMETERS_KEY: (use(u'Delay Mode').with_name(u'DlayMd'),
u'Link',
u'Ping Pong',
u'L Offset',
u'R Offset',
u'Freeze',
u'Feedback',
u'Dry/Wet')}), (u'Filter/Mod', {BANK_PARAMETERS_KEY: (u'Filter On',
u'Filter Freq',
u'Filter Width',
use(u'Mod Freq').with_name(u'Filter Mod Rate'),
u'Filter < Mod',
u'Dly < Mod',
u'Feedback',
u'Dry/Wet')}))),
u'Tube': IndexedDict(((u'Character', {BANK_PARAMETERS_KEY: (u'Drive',
u'Tube Type',
u'Bias',
u'Tone',
u'Attack',
u'Release',
u'Envelope',
u'Dry/Wet')}), (u'Output', {BANK_PARAMETERS_KEY: (u'',
u'',
u'',
u'',
u'',
u'',
u'Output',
u'Dry/Wet')}))),
u'Echo': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'L Time').with_name(u'M Time').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'Off').else_use(u'L Time').if_parameter(u'L Sync').has_value(u'Off').else_use(u'L 16th').with_name(u'M 16th').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L 16th').if_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L Division').with_name(u'M Division').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Division'),
use(u'L Sync').with_name(u'M Sync').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Sync'),
use(u'L Sync Mode').with_name(u'M Sync Mode').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'On').else_use(u'L Sync Mode').if_parameter(u'L Sync').has_value(u'On'),
u'HP Freq',
u'LP Freq',
u'Feedback',
u'Input Gain',
u'Dry Wet')}),
(u'L/Mid', {BANK_PARAMETERS_KEY: (use(u'L Time').with_name(u'M Time').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'Off').else_use(u'L Time').if_parameter(u'L Sync').has_value(u'Off').else_use(u'L 16th').with_name(u'M 16th').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L 16th').if_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L Division').with_name(u'M Division').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Division'),
use(u'L Sync').with_name(u'M Sync').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Sync'),
use(u'L Sync Mode').with_name(u'M Sync Mode').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'On').else_use(u'L Sync Mode').if_parameter(u'L Sync').has_value(u'On'),
use(u'L Offset').with_name(u'M Offset').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Offset'),
u'Link',
u'Feedback',
u'Feedback Inv',
u'Dry Wet')}),
(u'R/Side', {BANK_PARAMETERS_KEY: (use(u'R Time').with_name(u'S Time').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'R Sync').has_value(u'Off').and_parameter(u'Link').has_value(u'Off').else_use(u'R Time').if_parameter(u'R Sync').has_value(u'Off').and_parameter(u'Link').has_value(u'Off').else_use(u'R 16th').with_name(u'S 16th').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'R Sync Mode').has_value(u'16th').and_parameter(u'Link').has_value(u'Off').else_use(u'R 16th').if_parameter(u'R Sync Mode').has_value(u'16th').and_parameter(u'Link').has_value(u'Off').else_use(u'R Division').with_name(u'S Division').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'Link').has_value(u'Off').else_use(u'R Division').if_parameter(u'Link').has_value(u'Off').else_use(u'L Time').with_name(u'M Time').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'Off').else_use(u'L Time').if_parameter(u'L Sync').has_value(u'Off').else_use(u'L 16th').with_name(u'M 16th').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L 16th').if_parameter(u'L Sync Mode').has_value(u'16th').else_use(u'L Division').with_name(u'M Division').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Division'),
use(u'R Sync').with_name(u'S Sync').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'Link').has_value(u'Off').else_use(u'R Sync').if_parameter(u'Link').has_value(u'Off').else_use(u'L Sync').with_name(u'M Sync').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'L Sync'),
use(u'R Sync Mode').with_name(u'S Sync Mode').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'R Sync').has_value(u'On').and_parameter(u'Link').has_value(u'Off').else_use(u'R Sync Mode').if_parameter(u'R Sync').has_value(u'On').and_parameter(u'Link').has_value(u'Off').else_use(u'L Sync Mode').with_name(u'M Sync Mode').if_parameter(u'Channel Mode').has_value(u'Mid/Side').and_parameter(u'L Sync').has_value(u'On').else_use(u'L Sync Mode').if_parameter(u'L Sync').has_value(u'On'),
use(u'R Offset').with_name(u'S Offset').if_parameter(u'Channel Mode').has_value(u'Mid/Side').else_use(u'R Offset'),
u'Link',
u'Feedback',
u'Feedback Inv',
u'Dry Wet')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Repitch',
u'Channel Mode',
u'Stereo Width',
u'',
u'Clip Dry',
u'Input Gain',
u'Output Gain',
u'Dry Wet')}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'Filter On',
u'HP Freq',
u'HP Res',
u'LP Freq',
u'LP Res',
u'Input Gain',
u'Output Gain',
u'Dry Wet')}),
(u'Modulation', {BANK_PARAMETERS_KEY: (u'Mod Wave',
u'Mod Sync',
use(u'Mod Rate').if_parameter(u'Mod Sync').has_value(u'On').else_use(u'Mod Freq'),
u'Mod Phase',
u'Env Mix',
u'Dly < Mod',
u'Flt < Mod',
u'Mod 4x')}),
(u'Reverb', {BANK_PARAMETERS_KEY: (u'Reverb Level',
u'Reverb Loc',
u'Reverb Decay',
u'',
u'',
u'',
u'',
u'')}),
(u'Gate/Ducking', {BANK_PARAMETERS_KEY: (u'Gate On',
u'Gate Thr',
u'Gate Release',
u'',
u'Duck On',
u'Duck Thr',
u'Duck Release',
u'')}),
(u'Noise/Wobble', {BANK_PARAMETERS_KEY: (u'Noise On',
u'Noise Amt',
u'Noise Mrph',
u'',
u'Wobble On',
u'Wobble Amt',
u'Wobble Mrph',
u'')}))),
u'Eq8': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'1 Frequency A').if_parameter(u'1 Filter On A').has_value(u'On'),
use(u'').if_parameter(u'1 Filter On A').has_value(u'Off').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'Low Shelf').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'Bell').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'High Shelf').else_use(u'1 Resonance A'),
use(u'2 Frequency A').if_parameter(u'2 Filter On A').has_value(u'On'),
use(u'').if_parameter(u'2 Filter On A').has_value(u'Off').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'Low Shelf').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'Bell').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'High Shelf').else_use(u'2 Resonance A'),
use(u'3 Frequency A').if_parameter(u'3 Filter On A').has_value(u'On'),
use(u'').if_parameter(u'3 Filter On A').has_value(u'Off').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'Low Shelf').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'Bell').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'High Shelf').else_use(u'3 Resonance A'),
use(u'4 Frequency A').if_parameter(u'4 Filter On A').has_value(u'On'),
use(u'').if_parameter(u'4 Filter On A').has_value(u'Off').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'Low Shelf').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'Bell').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'High Shelf').else_use(u'4 Resonance A'))}),
(u'EQ Band 1', {BANK_PARAMETERS_KEY: (u'1 Filter On A',
use(u'1 Filter Type A').if_parameter(u'1 Filter On A').has_value(u'On'),
use(u'1 Frequency A').if_parameter(u'1 Filter On A').has_value(u'On'),
use(u'1 Gain A').if_parameter(u'1 Filter On A').has_value(u'On'),
use(u'1 Resonance A').if_parameter(u'1 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 2', {BANK_PARAMETERS_KEY: (u'2 Filter On A',
use(u'2 Filter Type A').if_parameter(u'2 Filter On A').has_value(u'On'),
use(u'2 Frequency A').if_parameter(u'2 Filter On A').has_value(u'On'),
use(u'2 Gain A').if_parameter(u'2 Filter On A').has_value(u'On'),
use(u'2 Resonance A').if_parameter(u'2 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 3', {BANK_PARAMETERS_KEY: (u'3 Filter On A',
use(u'3 Filter Type A').if_parameter(u'3 Filter On A').has_value(u'On'),
use(u'3 Frequency A').if_parameter(u'3 Filter On A').has_value(u'On'),
use(u'3 Gain A').if_parameter(u'3 Filter On A').has_value(u'On'),
use(u'3 Resonance A').if_parameter(u'3 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 4', {BANK_PARAMETERS_KEY: (u'4 Filter On A',
use(u'4 Filter Type A').if_parameter(u'4 Filter On A').has_value(u'On'),
use(u'4 Frequency A').if_parameter(u'4 Filter On A').has_value(u'On'),
use(u'4 Gain A').if_parameter(u'4 Filter On A').has_value(u'On'),
use(u'4 Resonance A').if_parameter(u'4 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 5', {BANK_PARAMETERS_KEY: (u'5 Filter On A',
use(u'5 Filter Type A').if_parameter(u'5 Filter On A').has_value(u'On'),
use(u'5 Frequency A').if_parameter(u'5 Filter On A').has_value(u'On'),
use(u'5 Gain A').if_parameter(u'5 Filter On A').has_value(u'On'),
use(u'5 Resonance A').if_parameter(u'5 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 6', {BANK_PARAMETERS_KEY: (u'6 Filter On A',
use(u'6 Filter Type A').if_parameter(u'6 Filter On A').has_value(u'On'),
use(u'6 Frequency A').if_parameter(u'6 Filter On A').has_value(u'On'),
use(u'6 Gain A').if_parameter(u'6 Filter On A').has_value(u'On'),
use(u'6 Resonance A').if_parameter(u'6 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 7', {BANK_PARAMETERS_KEY: (u'7 Filter On A',
use(u'7 Filter Type A').if_parameter(u'7 Filter On A').has_value(u'On'),
use(u'7 Frequency A').if_parameter(u'7 Filter On A').has_value(u'On'),
use(u'7 Gain A').if_parameter(u'7 Filter On A').has_value(u'On'),
use(u'7 Resonance A').if_parameter(u'7 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'EQ Band 8', {BANK_PARAMETERS_KEY: (u'8 Filter On A',
use(u'8 Filter Type A').if_parameter(u'8 Filter On A').has_value(u'On'),
use(u'8 Frequency A').if_parameter(u'8 Filter On A').has_value(u'On'),
use(u'8 Gain A').if_parameter(u'8 Filter On A').has_value(u'On'),
use(u'8 Resonance A').if_parameter(u'8 Filter On A').has_value(u'On'),
u'Adaptive Q',
u'Scale',
u'Output Gain')}),
(u'8 x Frequency', {BANK_PARAMETERS_KEY: (use(u'1 Frequency A').if_parameter(u'1 Filter On A').has_value(u'On'),
use(u'2 Frequency A').if_parameter(u'2 Filter On A').has_value(u'On'),
use(u'3 Frequency A').if_parameter(u'3 Filter On A').has_value(u'On'),
use(u'4 Frequency A').if_parameter(u'4 Filter On A').has_value(u'On'),
use(u'5 Frequency A').if_parameter(u'5 Filter On A').has_value(u'On'),
use(u'6 Frequency A').if_parameter(u'6 Filter On A').has_value(u'On'),
use(u'7 Frequency A').if_parameter(u'7 Filter On A').has_value(u'On'),
use(u'8 Frequency A').if_parameter(u'8 Filter On A').has_value(u'On'))}),
(u'8 x Gain', {BANK_PARAMETERS_KEY: (use(u'').if_parameter(u'1 Filter On A').has_value(u'Off').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'Low Shelf').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'Bell').else_use(u'1 Gain A').if_parameter(u'1 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'2 Filter On A').has_value(u'Off').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'Low Shelf').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'Bell').else_use(u'2 Gain A').if_parameter(u'2 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'3 Filter On A').has_value(u'Off').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'Low Shelf').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'Bell').else_use(u'3 Gain A').if_parameter(u'3 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'4 Filter On A').has_value(u'Off').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'Low Shelf').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'Bell').else_use(u'4 Gain A').if_parameter(u'4 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'5 Filter On A').has_value(u'Off').else_use(u'5 Gain A').if_parameter(u'5 Filter Type A').has_value(u'Low Shelf').else_use(u'5 Gain A').if_parameter(u'5 Filter Type A').has_value(u'Bell').else_use(u'5 Gain A').if_parameter(u'5 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'6 Filter On A').has_value(u'Off').else_use(u'6 Gain A').if_parameter(u'6 Filter Type A').has_value(u'Low Shelf').else_use(u'6 Gain A').if_parameter(u'6 Filter Type A').has_value(u'Bell').else_use(u'6 Gain A').if_parameter(u'6 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'7 Filter On A').has_value(u'Off').else_use(u'7 Gain A').if_parameter(u'7 Filter Type A').has_value(u'Low Shelf').else_use(u'7 Gain A').if_parameter(u'7 Filter Type A').has_value(u'Bell').else_use(u'7 Gain A').if_parameter(u'7 Filter Type A').has_value(u'High Shelf').else_use(u''),
use(u'').if_parameter(u'8 Filter On A').has_value(u'Off').else_use(u'8 Gain A').if_parameter(u'8 Filter Type A').has_value(u'Low Shelf').else_use(u'8 Gain A').if_parameter(u'8 Filter Type A').has_value(u'Bell').else_use(u'8 Gain A').if_parameter(u'8 Filter Type A').has_value(u'High Shelf').else_use(u''))}),
(u'8 x Resonance', {BANK_PARAMETERS_KEY: (u'1 Resonance A',
u'2 Resonance A',
u'3 Resonance A',
u'4 Resonance A',
u'5 Resonance A',
u'6 Resonance A',
u'7 Resonance A',
u'8 Resonance A')}))),
u'FilterEQ3': IndexedDict(((u'EQ', {BANK_PARAMETERS_KEY: (u'LowOn',
u'MidOn',
u'HighOn',
use(u'GainLo').if_parameter(u'LowOn').has_value(u'On'),
use(u'GainMid').if_parameter(u'MidOn').has_value(u'On'),
use(u'GainHi').if_parameter(u'HighOn').has_value(u'On'),
u'FreqLo',
u'FreqHi')}), (u'Slope', {BANK_PARAMETERS_KEY: (u'Slope',
u'',
u'',
u'',
u'',
u'',
u'',
u'')}))),
u'Erosion': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Mode',
u'Frequency',
use(u'').if_parameter(u'Mode').has_value(u'Sine').else_use(u'Width'),
u'Amount',
u'',
u'',
u'',
u'')}),)),
u'ProxyAudioEffectDevice': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Input Gain',
u'Output Gain',
u'Dry/Wet',
u'',
u'',
u'',
u'',
u'')}),)),
u'FilterDelay': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'2 Filter Freq').if_parameter(u'2 Input On').has_value(u'On'),
use(u'2 Filter Width').if_parameter(u'2 Input On').has_value(u'On'),
use(u'2 Delay Mode').if_parameter(u'2 Input On').has_value(u'On'),
use(u'').if_parameter(u'2 Input On').has_value(u'Off').else_use(u'2 Time Delay').if_parameter(u'2 Delay Mode').has_value(u'Off').else_use(u'2 Beat Delay'),
use(u'2 Feedback').if_parameter(u'2 Input On').has_value(u'On'),
use(u'1 Volume').if_parameter(u'1 Input On').has_value(u'On').else_use(u'2 Pan'),
use(u'2 Volume').if_parameter(u'2 Input On').has_value(u'On'),
use(u'3 Volume').if_parameter(u'3 Input On').has_value(u'On').else_use(u'Dry'))}),
(u'L Filter', {BANK_PARAMETERS_KEY: (u'1 Input On',
use(u'1 Filter Freq').if_parameter(u'1 Input On').has_value(u'On'),
use(u'1 Filter Width').if_parameter(u'1 Input On').has_value(u'On'),
use(u'1 Feedback').if_parameter(u'1 Input On').has_value(u'On'),
use(u'1 Delay Mode').if_parameter(u'1 Input On').has_value(u'On'),
use(u'').if_parameter(u'1 Input On').has_value(u'Off').else_use(u'1 Time Delay').if_parameter(u'1 Delay Mode').has_value(u'Off').else_use(u'1 Beat Delay'),
use(u'').if_parameter(u'1 Input On').has_value(u'Off').else_use(u'1 Beat Swing').if_parameter(u'1 Delay Mode').has_value(u'On').else_use(u''),
use(u'1 Volume').if_parameter(u'1 Input On').has_value(u'Off'))}),
(u'L+R Filter', {BANK_PARAMETERS_KEY: (u'2 Input On',
use(u'2 Filter Freq').if_parameter(u'2 Input On').has_value(u'On'),
use(u'2 Filter Width').if_parameter(u'2 Input On').has_value(u'On'),
use(u'2 Feedback').if_parameter(u'2 Input On').has_value(u'On'),
use(u'2 Delay Mode').if_parameter(u'2 Input On').has_value(u'On'),
use(u'').if_parameter(u'2 Input On').has_value(u'Off').else_use(u'2 Time Delay').if_parameter(u'2 Delay Mode').has_value(u'Off').else_use(u'2 Beat Delay'),
use(u'').if_parameter(u'2 Input On').has_value(u'Off').else_use(u'2 Beat Swing').if_parameter(u'2 Delay Mode').has_value(u'On').else_use(u''),
use(u'2 Volume').if_parameter(u'2 Input On').has_value(u'On'))}),
(u'R Filter', {BANK_PARAMETERS_KEY: (u'3 Input On',
use(u'3 Filter Freq').if_parameter(u'3 Input On').has_value(u'On'),
use(u'3 Filter Width').if_parameter(u'3 Input On').has_value(u'On'),
use(u'3 Feedback').if_parameter(u'3 Input On').has_value(u'On'),
use(u'3 Delay Mode').if_parameter(u'3 Input On').has_value(u'On'),
use(u'').if_parameter(u'3 Input On').has_value(u'Off').else_use(u'3 Time Delay').if_parameter(u'3 Delay Mode').has_value(u'Off').else_use(u'3 Beat Delay'),
use(u'').if_parameter(u'3 Input On').has_value(u'Off').else_use(u'3 Beat Swing').if_parameter(u'3 Delay Mode').has_value(u'On').else_use(u''),
use(u'3 Volume').if_parameter(u'3 Input On').has_value(u'On'))}),
(u'Mix', {BANK_PARAMETERS_KEY: (use(u'1 Pan').if_parameter(u'1 Input On').has_value(u'On'),
use(u'2 Pan').if_parameter(u'2 Input On').has_value(u'On'),
use(u'3 Pan').if_parameter(u'3 Input On').has_value(u'On'),
u'',
use(u'1 Volume').if_parameter(u'1 Input On').has_value(u'On'),
use(u'2 Volume').if_parameter(u'2 Input On').has_value(u'On'),
use(u'3 Volume').if_parameter(u'3 Input On').has_value(u'On'),
u'Dry')}))),
u'Flanger': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'Sync',
use(u'Frequency').if_parameter(u'Sync').has_value(u'Free').else_use(u'Sync Rate'),
u'Delay Time',
u'Hi Pass',
u'Env. Modulation',
u'Feedback',
u'Dry/Wet')}), (u'Envelope', {BANK_PARAMETERS_KEY: (u'Env. Attack',
u'Env. Release',
u'Env. Modulation',
u'Hi Pass',
u'Delay Time',
u'Feedback',
u'Polarity',
u'Dry/Wet')}), (u'LFO / S&H', {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'LFO Waveform',
u'Sync',
use(u'Frequency').if_parameter(u'Sync').has_value(u'Free').else_use(u'Sync Rate'),
use(u'').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Stereo Mode').if_parameter(u'Sync').has_value(u'Free').else_use(u'LFO Offset'),
use(u'LFO Width (Random)').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Phase').if_parameter(u'Sync').has_value(u'Sync').else_use(u'LFO Phase').if_parameter(u'LFO Stereo Mode').has_value(u'Phase').else_use(u'LFO Spin'),
u'',
u'')}))),
u'FrequencyShifter': IndexedDict(((u'FreqDrive', {BANK_PARAMETERS_KEY: (u'Mode',
use(u'Ring Mod Frequency').if_parameter(u'Mode').has_value(u'Ring Modulation').else_use(u'Coarse'),
u'Wide',
u'Fine',
use(u'Drive On/Off').if_parameter(u'Mode').has_value(u'Ring Modulation'),
use(u'Drive').if_parameter(u'Drive On/Off').has_value(u'On').and_parameter(u'Mode').has_value(u'Ring Modulation'),
u'LFO Amount',
u'Dry/Wet')}), (u'LFO / S&H', {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'LFO Waveform',
u'Sync',
use(u'LFO Frequency').if_parameter(u'Sync').has_value(u'Free').else_use(u'Sync Rate'),
use(u'').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Stereo Mode').if_parameter(u'Sync').has_value(u'Free').else_use(u'LFO Offset'),
use(u'LFO Width (Random)').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Phase').if_parameter(u'Sync').has_value(u'Sync').else_use(u'LFO Phase').if_parameter(u'LFO Stereo Mode').has_value(u'Phase').else_use(u'LFO Spin'),
u'',
u'')}))),
u'Gate': IndexedDict(((u'Gate', {BANK_PARAMETERS_KEY: (u'Threshold',
u'Return',
u'FlipMode',
u'LookAhead',
u'Attack',
u'Hold',
u'Release',
u'Floor')}), (u'Sidechain', {BANK_PARAMETERS_KEY: (u'S/C On',
use(u'S/C Gain').if_parameter(u'S/C On').has_value(u'On'),
use(u'S/C Mix').if_parameter(u'S/C On').has_value(u'On'),
u'S/C Listen',
u'S/C EQ On',
use(u'S/C EQ Type').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'S/C EQ Freq').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'').if_parameter(u'S/C EQ On').has_value(u'Off').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Low Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'High Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Bell').else_use(u'S/C EQ Q'))}))),
u'GlueCompressor': IndexedDict(((u'Compression', {BANK_PARAMETERS_KEY: (u'Threshold',
u'Ratio',
u'Attack',
u'Release',
u'Peak Clip In',
u'Range',
u'Makeup',
u'Dry/Wet')}), (u'Sidechain', {BANK_PARAMETERS_KEY: (u'S/C On',
use(u'S/C Gain').if_parameter(u'S/C On').has_value(u'On'),
use(u'S/C Mix').if_parameter(u'S/C On').has_value(u'On'),
u'',
u'S/C EQ On',
use(u'S/C EQ Type').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'S/C EQ Freq').if_parameter(u'S/C EQ On').has_value(u'On'),
use(u'').if_parameter(u'S/C EQ On').has_value(u'Off').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Low Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'High Shelf').else_use(u'S/C EQ Gain').if_parameter(u'S/C EQ Type').has_value(u'Bell').else_use(u'S/C EQ Q'))}))),
u'GrainDelay': IndexedDict(((u'Pitch', {BANK_PARAMETERS_KEY: (u'Frequency',
u'Pitch',
u'Delay Mode',
use(u'Time Delay').if_parameter(u'Delay Mode').has_value(u'Off').else_use(u'Beat Delay'),
u'Random',
u'Spray',
u'Feedback',
u'DryWet')}), (u'Time', {BANK_PARAMETERS_KEY: (u'Delay Mode',
use(u'Time Delay').if_parameter(u'Delay Mode').has_value(u'Off').else_use(u'Beat Delay'),
u'Beat Swing',
u'Feedback',
u'',
u'',
u'',
u'DryWet')}))),
u'Limiter': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Gain',
u'Ceiling',
u'Link Channels',
u'Lookahead',
u'Auto',
use(u'Release time').if_parameter(u'Auto').has_value(u'Off'),
u'',
u'')}),)),
u'Looper': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'State',
u'Speed',
u'Reverse',
u'Quantization',
u'Monitor',
u'Song Control',
u'Tempo Control',
u'Feedback')}),)),
u'MultibandDynamics': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Above Threshold (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Above Ratio (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Above Threshold (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Above Ratio (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Above Threshold (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Above Ratio (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
u'Master Output',
u'Amount')}),
(u'Low Band', {BANK_PARAMETERS_KEY: (u'Band Activator (Low)',
use(u'Input Gain (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Below Threshold (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Below Ratio (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Above Threshold (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Above Ratio (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Attack Time (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
use(u'Release Time (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'))}),
(u'Mid Band', {BANK_PARAMETERS_KEY: (u'Band Activator (Mid)',
use(u'Input Gain (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Below Threshold (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Below Ratio (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Above Threshold (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Above Ratio (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Attack Time (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
use(u'Release Time (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'))}),
(u'High Band', {BANK_PARAMETERS_KEY: (u'Band Activator (High)',
use(u'Input Gain (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Below Threshold (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Below Ratio (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Above Threshold (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Above Ratio (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Attack Time (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
use(u'Release Time (High)').if_parameter(u'Band Activator (High)').has_value(u'On'))}),
(u'Mix & Split', {BANK_PARAMETERS_KEY: (use(u'Output Gain (Low)').if_parameter(u'Band Activator (Low)').has_value(u'On'),
u'Low-Mid Crossover',
use(u'Output Gain (Mid)').if_parameter(u'Band Activator (Mid)').has_value(u'On'),
u'Mid-High Crossover',
use(u'Output Gain (High)').if_parameter(u'Band Activator (High)').has_value(u'On'),
u'Peak/RMS Mode',
u'Amount',
u'Master Output')}),
(u'Sidechain', {BANK_PARAMETERS_KEY: (u'S/C On',
use(u'S/C Mix').if_parameter(u'S/C On').has_value(u'On'),
use(u'S/C Gain').if_parameter(u'S/C On').has_value(u'On'),
u'',
u'Time Scaling',
u'Soft Knee On/Off',
u'',
u'')}))),
u'Overdrive': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Filter Freq',
u'Filter Width',
u'Drive',
u'Tone',
u'Preserve Dynamics',
u'',
u'',
u'Dry/Wet')}),)),
u'Pedal': IndexedDict(((u'Global', {BANK_PARAMETERS_KEY: (u'Type',
u'Gain',
u'Output',
u'Bass',
u'Mid',
u'Treble',
u'Sub',
u'Dry/Wet')}), (u'EQ', {BANK_PARAMETERS_KEY: (u'',
u'',
u'',
u'Bass',
u'Mid',
u'Treble',
u'',
u'Mid Freq')}))),
u'Phaser': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Poles',
u'Frequency',
u'Feedback',
u'Env. Modulation',
u'LFO Amount',
u'LFO Sync',
use(u'LFO Frequency').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Sync Rate'),
u'Dry/Wet')}), (u'Envelope', {BANK_PARAMETERS_KEY: (u'Poles',
u'Type',
use(u'').if_parameter(u'Type').has_value(u'Space').else_use(u'Color'),
u'Frequency',
u'Feedback',
u'Env. Modulation',
u'Env. Attack',
u'Env. Release')}), (u'LFO', {BANK_PARAMETERS_KEY: (u'LFO Amount',
u'LFO Waveform',
u'LFO Sync',
use(u'LFO Frequency').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Sync Rate'),
use(u'').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Stereo Mode').if_parameter(u'LFO Sync').has_value(u'Free').else_use(u'LFO Offset'),
use(u'LFO Width (Random)').if_parameter(u'LFO Waveform').has_value(u'S&H Width').else_use(u'LFO Phase').if_parameter(u'LFO Sync').has_value(u'Sync').else_use(u'LFO Phase').if_parameter(u'LFO Stereo Mode').has_value(u'Phase').else_use(u'LFO Spin'),
u'',
u'')}))),
u'Redux': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Bit On',
use(u'Bit Depth').if_parameter(u'Bit On').has_value(u'On'),
u'Sample Mode',
use(u'Sample Hard').if_parameter(u'Sample Mode').has_value(u'Hard').else_use(u'Sample Soft'),
u'',
u'',
u'',
u'')}),)),
u'Resonator': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (use(u'Frequency').if_parameter(u'Filter On').has_value(u'On'),
u'Decay',
u'Color',
use(u'I Gain').if_parameter(u'I On').has_value(u'On'),
use(u'II Gain').if_parameter(u'II On').has_value(u'On'),
use(u'III Gain').if_parameter(u'III On').has_value(u'On'),
u'Width',
u'Dry/Wet')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Mode',
u'Decay',
u'Const',
u'Color',
u'',
u'Width',
u'Global Gain',
u'Dry/Wet')}),
(u'Filter', {BANK_PARAMETERS_KEY: (u'Filter On',
use(u'Frequency').if_parameter(u'Filter On').has_value(u'On'),
use(u'Filter Type').if_parameter(u'Filter On').has_value(u'On'),
u'',
u'',
u'',
u'',
u'')}),
(u'Mode I & II', {BANK_PARAMETERS_KEY: (u'I On',
use(u'I Note').if_parameter(u'I On').has_value(u'On'),
use(u'I Tune').if_parameter(u'I On').has_value(u'On'),
use(u'I Gain').if_parameter(u'I On').has_value(u'On'),
u'II On',
use(u'II Pitch').if_parameter(u'II On').has_value(u'On'),
use(u'II Tune').if_parameter(u'II On').has_value(u'On'),
use(u'II Gain').if_parameter(u'II On').has_value(u'On'))}),
(u'Mode III & IV', {BANK_PARAMETERS_KEY: (u'III On',
use(u'III Pitch').if_parameter(u'III On').has_value(u'On'),
use(u'III Tune').if_parameter(u'III On').has_value(u'On'),
use(u'III Gain').if_parameter(u'III On').has_value(u'On'),
u'IV On',
use(u'IV Pitch').if_parameter(u'IV On').has_value(u'On'),
use(u'IV Tune').if_parameter(u'IV On').has_value(u'On'),
use(u'IV Gain').if_parameter(u'IV On').has_value(u'On'))}),
(u'Mode V', {BANK_PARAMETERS_KEY: (u'V On',
use(u'V Pitch').if_parameter(u'V On').has_value(u'On'),
use(u'V Tune').if_parameter(u'V On').has_value(u'On'),
use(u'V Gain').if_parameter(u'V On').has_value(u'On'),
u'',
u'',
u'',
u'')}),
(u'Mix', {BANK_PARAMETERS_KEY: (use(u'I Gain').if_parameter(u'I On').has_value(u'On'),
use(u'II Gain').if_parameter(u'II On').has_value(u'On'),
use(u'III Gain').if_parameter(u'III On').has_value(u'On'),
use(u'IV Gain').if_parameter(u'IV On').has_value(u'On'),
use(u'V Gain').if_parameter(u'V On').has_value(u'On'),
u'',
u'',
u'')}),
(u'Pitch', {BANK_PARAMETERS_KEY: (use(u'I Note').if_parameter(u'I On').has_value(u'On'),
use(u'II Pitch').if_parameter(u'II On').has_value(u'On'),
use(u'III Pitch').if_parameter(u'III On').has_value(u'On'),
use(u'IV Pitch').if_parameter(u'IV On').has_value(u'On'),
use(u'V Pitch').if_parameter(u'V On').has_value(u'On'),
u'',
u'',
u'')}))),
u'Reverb': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'PreDelay',
use(u'In Filter Freq').if_parameter(u'In LowCut On').has_value(u'On').else_use(u'ER Shape').if_parameter(u'In HighCut On').has_value(u'Off').else_use(u'In Filter Freq'),
use(u'Chorus Amount').if_parameter(u'Chorus On').has_value(u'On').else_use(u'ER Level'),
u'Stereo Image',
u'Room Size',
u'DecayTime',
use(u'HiShelf Gain').if_parameter(u'HiShelf On').has_value(u'On').else_use(u'Diffuse Level'),
u'Dry/Wet')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Chorus On',
use(u'Chorus Rate').if_parameter(u'Chorus On').has_value(u'On'),
use(u'Chorus Amount').if_parameter(u'Chorus On').has_value(u'On'),
u'Quality',
u'Freeze On',
u'Flat On',
u'ER Level',
u'Diffuse Level')}),
(u'Diffusion Network', {BANK_PARAMETERS_KEY: (u'HiShelf On',
use(u'HiShelf Freq').if_parameter(u'HiShelf On').has_value(u'On'),
use(u'HiShelf Gain').if_parameter(u'HiShelf On').has_value(u'On'),
u'LowShelf On',
use(u'LowShelf Freq').if_parameter(u'LowShelf On').has_value(u'On'),
use(u'LowShelf Gain').if_parameter(u'LowShelf On').has_value(u'On'),
u'Density',
u'Scale')}),
(u'Input/Reflections', {BANK_PARAMETERS_KEY: (u'In LowCut On',
u'In HighCut On',
use(u'In Filter Freq').if_parameter(u'In LowCut On').has_value(u'On').else_use(u'').if_parameter(u'In HighCut On').has_value(u'Off').else_use(u'In Filter Freq'),
use(u'In Filter Width').if_parameter(u'In LowCut On').has_value(u'On').else_use(u'').if_parameter(u'In HighCut On').has_value(u'Off').else_use(u'In Filter Width'),
u'ER Spin On',
use(u'ER Spin Rate').if_parameter(u'ER Spin On').has_value(u'On'),
use(u'ER Spin Amount').if_parameter(u'ER Spin On').has_value(u'On'),
u'ER Shape')}))),
u'Saturator': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Drive',
u'Type',
u'Color',
use(u'Base').if_parameter(u'Color').has_value(u'On'),
use(u'Frequency').if_parameter(u'Color').has_value(u'On'),
use(u'Width').if_parameter(u'Color').has_value(u'On'),
use(u'Depth').if_parameter(u'Color').has_value(u'On'),
u'Output')}), (u'Waveshaper', {BANK_PARAMETERS_KEY: (u'Type',
use(u'WS Drive').if_parameter(u'Type').has_value(u'Waveshaper'),
use(u'WS Curve').if_parameter(u'Type').has_value(u'Waveshaper'),
use(u'WS Depth').if_parameter(u'Type').has_value(u'Waveshaper'),
use(u'WS Lin').if_parameter(u'Type').has_value(u'Waveshaper'),
use(u'WS Damp').if_parameter(u'Type').has_value(u'Waveshaper'),
use(u'WS Period').if_parameter(u'Type').has_value(u'Waveshaper'),
u'Dry/Wet')}), (u'Output', {BANK_PARAMETERS_KEY: (u'',
u'',
u'',
u'',
u'',
u'Soft Clip',
u'Output',
u'Dry/Wet')}))),
u'StereoGain': IndexedDict(((u'Utility', {BANK_PARAMETERS_KEY: (use(u'').if_parameter(u'Channel Mode').has_value(u'Right').else_use(u'Left Inv').if_parameter(u'Mute').has_value(u'Off'),
use(u'').if_parameter(u'Channel Mode').has_value(u'Left').else_use(u'Right Inv').if_parameter(u'Mute').has_value(u'Off'),
use(u'Channel Mode').if_parameter(u'Mute').has_value(u'Off'),
use(u'').if_parameter(u'Mute').has_value(u'On').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Left').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Right').else_use(u'').if_parameter(u'Mono').is_available(True).and_parameter(u'Mono').has_value(u'On').else_use(u'Stereo Width').if_parameter(u'Stereo Width').is_available(True).else_use(u'Mid/Side Balance'),
use(u'').if_parameter(u'Mute').has_value(u'On').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Left').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Right').else_use(u'Mono'),
use(u'Balance').if_parameter(u'Mute').has_value(u'Off'),
use(u'').if_parameter(u'Mute').has_value(u'On').else_use(u'Gain').if_parameter(u'Gain').is_available(True).else_use(u'Gain (Legacy)'),
u'Mute')}), (u'Low Freq', {BANK_PARAMETERS_KEY: (use(u'').if_parameter(u'Mute').has_value(u'On').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Left').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Right').else_use(u'').if_parameter(u'Mono').is_available(True).and_parameter(u'Mono').has_value(u'On').else_use(u'Bass Mono').if_parameter(u'Bass Mono').is_available(True),
use(u'').if_parameter(u'Mute').has_value(u'On').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Left').else_use(u'').if_parameter(u'Channel Mode').has_value(u'Right').else_use(u'').if_parameter(u'Mono').is_available(True).and_parameter(u'Mono').has_value(u'On').else_use(u'Bass Freq').if_parameter(u'Bass Freq').is_available(True),
u'',
use(u'DC Filter').if_parameter(u'Mute').has_value(u'Off'),
u'',
u'',
u'',
u'')}))),
u'Vinyl': IndexedDict(((u'Global', {BANK_PARAMETERS_KEY: (u'Tracing On',
use(u'Tracing Drive').if_parameter(u'Tracing On').has_value(u'On'),
use(u'Tracing Freq.').if_parameter(u'Tracing On').has_value(u'On'),
use(u'Tracing Width').if_parameter(u'Tracing On').has_value(u'On'),
u'Pinch On',
u'Global Drive',
u'Crackle Density',
u'Crackle Volume')}), (u'Pinch', {BANK_PARAMETERS_KEY: (u'Pinch On',
use(u'Pinch Soft On').if_parameter(u'Pinch On').has_value(u'On'),
use(u'Pinch Mono On').if_parameter(u'Pinch On').has_value(u'On'),
use(u'Pinch Width').if_parameter(u'Pinch On').has_value(u'On'),
use(u'Pinch Drive').if_parameter(u'Pinch On').has_value(u'On'),
use(u'Pinch Freq.').if_parameter(u'Pinch On').has_value(u'On'),
u'Crackle Density',
u'Crackle Volume')}))),
u'Vocoder': IndexedDict(((BANK_MAIN_KEY, {BANK_PARAMETERS_KEY: (u'Formant Shift',
u'Attack Time',
u'Release Time',
u'Unvoiced Level',
u'Gate Threshold',
u'Filter Bandwidth',
u'Envelope Depth',
u'Dry/Wet')}),
(u'Carrier', {BANK_PARAMETERS_KEY: (u'Noise Rate',
u'Noise Crackle',
u'Upper Pitch Detection',
u'Lower Pitch Detection',
u'Oscillator Pitch',
u'Oscillator Waveform',
u'',
u'')}),
(u'Global', {BANK_PARAMETERS_KEY: (u'Formant Shift',
u'Attack Time',
u'Release Time',
u'Mono/Stereo',
u'Output Level',
u'Gate Threshold',
u'Envelope Depth',
u'Dry/Wet')}),
(u'Filters/Voicing', {BANK_PARAMETERS_KEY: (u'Filter Bandwidth',
u'Upper Filter Band',
u'Lower Filter Band',
u'Precise/Retro',
u'Unvoiced Level',
u'Unvoiced Sensitivity',
u'Unvoiced Speed',
u'Enhance')})))}
PARAMETERS_BLACKLIST_FOR_CPP_SANITY_CHECK = {u'OriginalSimpler': (u'Start',
u'End',
u'Sensitivity',
u'Mode',
u'Playback',
u'Pad Slicing',
u'Multi Sample',
u'Warp',
u'Warp Mode',
u'Voices',
u'Preserve',
u'Loop Mode',
u'Envelope',
u'Grain Size Tones',
u'Grain Size Texture',
u'Flux',
u'Formants',
u'Envelope Complex Pro',
u'Gain'),
u'InstrumentVector': (u'Osc 1 Effect Type',
u'Osc 2 Effect Type',
u'Osc 1 Table',
u'Osc 2 Table',
u'Osc 1 Category',
u'Osc 2 Category',
u'Osc 1 Pitch',
u'Osc 2 Pitch',
u'Unison Mode',
u'Mono On'),
u'Delay': (u'L Sync Enum', u'R Sync Enum')}
| 96.382413
| 1,358
| 0.42715
| 23,383
| 188,524
| 3.284651
| 0.024633
| 0.074787
| 0.140967
| 0.095814
| 0.8745
| 0.84169
| 0.808606
| 0.785131
| 0.741319
| 0.698262
| 0
| 0.011359
| 0.428418
| 188,524
| 1,955
| 1,359
| 96.431714
| 0.701402
| 0.000918
| 0
| 0.347492
| 0
| 0
| 0.214542
| 0.000457
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.0087
| 0.001535
| 0
| 0.001535
| 0.000512
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bcebe3ebe28b6bd09ce141ccbd20803e4b68879e
| 39,900
|
py
|
Python
|
tests/snapshots/snap_test_playground.py
|
kedlavtest/ariadne_django
|
1da1babec2ce1f8f4e7b6b629189ac022186269c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/snapshots/snap_test_playground.py
|
kedlavtest/ariadne_django
|
1da1babec2ce1f8f4e7b6b629189ac022186269c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/snapshots/snap_test_playground.py
|
kedlavtest/ariadne_django
|
1da1babec2ce1f8f4e7b6b629189ac022186269c
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_playground_html_is_served_on_get_request 1'] = b'<!DOCTYPE html>\n\n<html>\n\n<head>\n <meta charset=utf-8 />\n <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">\n <title>GraphQL Playground</title>\n <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css" />\n <link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png" />\n <script src="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js"></script>\n\n</head>\n\n<body>\n <style type="text/css">\n html {\n font-family: "Open Sans", sans-serif;\n overflow: hidden;\n }\n\n body {\n margin: 0;\n background: #172a3a;\n }\n\n .playgroundIn {\n -webkit-animation: playgroundIn 0.5s ease-out forwards;\n animation: playgroundIn 0.5s ease-out forwards;\n }\n\n @-webkit-keyframes playgroundIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(10px);\n -ms-transform: translateY(10px);\n transform: translateY(10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes playgroundIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(10px);\n -ms-transform: translateY(10px);\n transform: translateY(10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n </style>\n\n <style type="text/css">\n .fadeOut {\n -webkit-animation: fadeOut 0.5s ease-out forwards;\n animation: fadeOut 0.5s ease-out forwards;\n }\n\n @-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @-webkit-keyframes fadeOut {\n from {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n }\n\n @keyframes fadeOut {\n from {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n }\n\n @-webkit-keyframes appearIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes appearIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @-webkit-keyframes scaleIn {\n from {\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n }\n\n to {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n }\n\n @keyframes scaleIn {\n from {\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n }\n\n to {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n }\n\n @-webkit-keyframes innerDrawIn {\n 0% {\n stroke-dashoffset: 70;\n }\n\n 50% {\n stroke-dashoffset: 140;\n }\n\n 100% {\n stroke-dashoffset: 210;\n }\n }\n\n @keyframes innerDrawIn {\n 0% {\n stroke-dashoffset: 70;\n }\n\n 50% {\n stroke-dashoffset: 140;\n }\n\n 100% {\n stroke-dashoffset: 210;\n }\n }\n\n @-webkit-keyframes outerDrawIn {\n 0% {\n stroke-dashoffset: 76;\n }\n\n 100% {\n stroke-dashoffset: 152;\n }\n }\n\n @keyframes outerDrawIn {\n 0% {\n stroke-dashoffset: 76;\n }\n\n 100% {\n stroke-dashoffset: 152;\n }\n }\n\n .hHWjkv {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n }\n\n .gCDOzd {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n }\n\n .hmCcxi {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n }\n\n .eHamQi {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n }\n\n .byhgGu {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n }\n\n .llAKP {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n }\n\n .bglIGM {\n -webkit-transform-origin: 64px 28px;\n -ms-transform-origin: 64px 28px;\n transform-origin: 64px 28px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n }\n\n .ksxRII {\n -webkit-transform-origin: 95.98500061035156px 46.510000228881836px;\n -ms-transform-origin: 95.98500061035156px 46.510000228881836px;\n transform-origin: 95.98500061035156px 46.510000228881836px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n }\n\n .cWrBmb {\n -webkit-transform-origin: 95.97162628173828px 83.4900016784668px;\n -ms-transform-origin: 95.97162628173828px 83.4900016784668px;\n transform-origin: 95.97162628173828px 83.4900016784668px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n }\n\n .Wnusb {\n -webkit-transform-origin: 64px 101.97999572753906px;\n -ms-transform-origin: 64px 101.97999572753906px;\n transform-origin: 64px 101.97999572753906px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n }\n\n .bfPqf {\n -webkit-transform-origin: 32.03982162475586px 83.4900016784668px;\n -ms-transform-origin: 32.03982162475586px 83.4900016784668px;\n transform-origin: 32.03982162475586px 83.4900016784668px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n }\n\n .edRCTN {\n -webkit-transform-origin: 32.033552169799805px 46.510000228881836px;\n -ms-transform-origin: 32.033552169799805px 46.510000228881836px;\n transform-origin: 32.033552169799805px 46.510000228881836px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n }\n\n .iEGVWn {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.3333333333333333s, appearIn 0.1s ease-out forwards 0.3333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.3333333333333333s, appearIn 0.1s ease-out forwards 0.3333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .bsocdx {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.5333333333333333s, appearIn 0.1s ease-out forwards 0.5333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.5333333333333333s, appearIn 0.1s ease-out forwards 0.5333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .jAZXmP {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.7333333333333334s, appearIn 0.1s ease-out forwards 0.7333333333333334s;\n animation: outerDrawIn 0.5s ease-out forwards 0.7333333333333334s, appearIn 0.1s ease-out forwards 0.7333333333333334s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .hSeArx {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.9333333333333333s, appearIn 0.1s ease-out forwards 0.9333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.9333333333333333s, appearIn 0.1s ease-out forwards 0.9333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .bVgqGk {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 1.1333333333333333s, appearIn 0.1s ease-out forwards 1.1333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 1.1333333333333333s, appearIn 0.1s ease-out forwards 1.1333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .hEFqBt {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 1.3333333333333333s, appearIn 0.1s ease-out forwards 1.3333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 1.3333333333333333s, appearIn 0.1s ease-out forwards 1.3333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .dzEKCM {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.3666666666666667s, appearIn 0.1s linear forwards 1.3666666666666667s;\n animation: innerDrawIn 1s ease-in-out forwards 1.3666666666666667s, appearIn 0.1s linear forwards 1.3666666666666667s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n .DYnPx {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.5333333333333332s, appearIn 0.1s linear forwards 1.5333333333333332s;\n animation: innerDrawIn 1s ease-in-out forwards 1.5333333333333332s, appearIn 0.1s linear forwards 1.5333333333333332s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n .hjPEAQ {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.7000000000000002s, appearIn 0.1s linear forwards 1.7000000000000002s;\n animation: innerDrawIn 1s ease-in-out forwards 1.7000000000000002s, appearIn 0.1s linear forwards 1.7000000000000002s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n #loading-wrapper {\n position: absolute;\n width: 100vw;\n height: 100vh;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .logo {\n width: 75px;\n height: 75px;\n margin-bottom: 20px;\n opacity: 0;\n -webkit-animation: fadeIn 0.5s ease-out forwards;\n animation: fadeIn 0.5s ease-out forwards;\n }\n\n .text {\n font-size: 32px;\n font-weight: 200;\n text-align: center;\n color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n -webkit-animation: fadeIn 0.5s ease-out forwards;\n animation: fadeIn 0.5s ease-out forwards;\n }\n\n .dGfHfc {\n font-weight: 400;\n }\n </style>\n <div id="loading-wrapper">\n <svg class="logo" viewBox="0 0 128 128" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>GraphQL Playground Logo</title>\n <defs>\n <linearGradient id="linearGradient-1" x1="4.86%" x2="96.21%" y1="0%" y2="99.66%">\n <stop stop-color="#E00082" stop-opacity=".8" offset="0%"></stop>\n <stop stop-color="#E00082" offset="100%"></stop>\n </linearGradient>\n </defs>\n <g>\n <rect id="Gradient" width="127.96" height="127.96" y="1" fill="url(#linearGradient-1)" rx="4"></rect>\n <path id="Border" fill="#E00082" fill-rule="nonzero"\n d="M4.7 2.84c-1.58 0-2.86 1.28-2.86 2.85v116.57c0 1.57 1.28 2.84 2.85 2.84h116.57c1.57 0 2.84-1.26 2.84-2.83V5.67c0-1.55-1.26-2.83-2.83-2.83H4.67zM4.7 0h116.58c3.14 0 5.68 2.55 5.68 5.7v116.58c0 3.14-2.54 5.68-5.68 5.68H4.68c-3.13 0-5.68-2.54-5.68-5.68V5.68C-1 2.56 1.55 0 4.7 0z">\n </path>\n <path class="bglIGM" x="64" y="28" fill="#fff" d="M64 36c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"\n style="transform: translate(100px, 100px);"></path>\n <path class="ksxRII" x="95.98500061035156" y="46.510000228881836" fill="#fff"\n d="M89.04 50.52c-2.2-3.84-.9-8.73 2.94-10.96 3.83-2.2 8.72-.9 10.95 2.94 2.2 3.84.9 8.73-2.94 10.96-3.85 2.2-8.76.9-10.97-2.94"\n style="transform: translate(100px, 100px);"></path>\n <path class="cWrBmb" x="95.97162628173828" y="83.4900016784668" fill="#fff"\n d="M102.9 87.5c-2.2 3.84-7.1 5.15-10.94 2.94-3.84-2.2-5.14-7.12-2.94-10.96 2.2-3.84 7.12-5.15 10.95-2.94 3.86 2.23 5.16 7.12 2.94 10.96"\n style="transform: translate(100px, 100px);"></path>\n <path class="Wnusb" x="64" y="101.97999572753906" fill="#fff"\n d="M64 110c-4.43 0-8-3.6-8-8.02 0-4.44 3.57-8.02 8-8.02s8 3.58 8 8.02c0 4.4-3.57 8.02-8 8.02"\n style="transform: translate(100px, 100px);"></path>\n <path class="bfPqf" x="32.03982162475586" y="83.4900016784668" fill="#fff"\n d="M25.1 87.5c-2.2-3.84-.9-8.73 2.93-10.96 3.83-2.2 8.72-.9 10.95 2.94 2.2 3.84.9 8.73-2.94 10.96-3.85 2.2-8.74.9-10.95-2.94"\n style="transform: translate(100px, 100px);"></path>\n <path class="edRCTN" x="32.033552169799805" y="46.510000228881836" fill="#fff"\n d="M38.96 50.52c-2.2 3.84-7.12 5.15-10.95 2.94-3.82-2.2-5.12-7.12-2.92-10.96 2.2-3.84 7.12-5.15 10.95-2.94 3.83 2.23 5.14 7.12 2.94 10.96"\n style="transform: translate(100px, 100px);"></path>\n <path class="iEGVWn" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M63.55 27.5l32.9 19-32.9-19z"></path>\n <path class="bsocdx" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M96 46v38-38z"></path>\n <path class="jAZXmP" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M96.45 84.5l-32.9 19 32.9-19z"></path>\n <path class="hSeArx" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M64.45 103.5l-32.9-19 32.9 19z"></path>\n <path class="bVgqGk" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M32 84V46v38z"></path>\n <path class="hEFqBt" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M31.55 46.5l32.9-19-32.9 19z"></path>\n <path class="dzEKCM" id="Triangle-Bottom" stroke="#fff" stroke-width="4" d="M30 84h70" stroke-linecap="round">\n </path>\n <path class="DYnPx" id="Triangle-Left" stroke="#fff" stroke-width="4" d="M65 26L30 87" stroke-linecap="round">\n </path>\n <path class="hjPEAQ" id="Triangle-Right" stroke="#fff" stroke-width="4" d="M98 87L63 26" stroke-linecap="round">\n </path>\n </g>\n </svg>\n <div class="text">Loading\n <span class="dGfHfc">GraphQL Playground</span>\n </div>\n </div>\n\n <div id="root" />\n <script type="text/javascript">\n window.addEventListener(\'load\', function (event) {\n\n const loadingWrapper = document.getElementById(\'loading-wrapper\');\n loadingWrapper.classList.add(\'fadeOut\');\n\n\n const root = document.getElementById(\'root\');\n root.classList.add(\'playgroundIn\');\n\n GraphQLPlayground.init(root, {"request.credentials": "same-origin"})\n })\n </script>\n</body>\n\n</html>\n'
snapshots['test_playground_options_can_be_set_on_view_init 1'] = b'<!DOCTYPE html>\n\n<html>\n\n<head>\n <meta charset=utf-8 />\n <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">\n <title>GraphQL Playground</title>\n <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css" />\n <link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png" />\n <script src="//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js"></script>\n\n</head>\n\n<body>\n <style type="text/css">\n html {\n font-family: "Open Sans", sans-serif;\n overflow: hidden;\n }\n\n body {\n margin: 0;\n background: #172a3a;\n }\n\n .playgroundIn {\n -webkit-animation: playgroundIn 0.5s ease-out forwards;\n animation: playgroundIn 0.5s ease-out forwards;\n }\n\n @-webkit-keyframes playgroundIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(10px);\n -ms-transform: translateY(10px);\n transform: translateY(10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes playgroundIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(10px);\n -ms-transform: translateY(10px);\n transform: translateY(10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n </style>\n\n <style type="text/css">\n .fadeOut {\n -webkit-animation: fadeOut 0.5s ease-out forwards;\n animation: fadeOut 0.5s ease-out forwards;\n }\n\n @-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @-webkit-keyframes fadeOut {\n from {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n }\n\n @keyframes fadeOut {\n from {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n -webkit-transform: translateY(-10px);\n -ms-transform: translateY(-10px);\n transform: translateY(-10px);\n }\n }\n\n @-webkit-keyframes appearIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @keyframes appearIn {\n from {\n opacity: 0;\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n\n to {\n opacity: 1;\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n }\n\n @-webkit-keyframes scaleIn {\n from {\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n }\n\n to {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n }\n\n @keyframes scaleIn {\n from {\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n }\n\n to {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n }\n\n @-webkit-keyframes innerDrawIn {\n 0% {\n stroke-dashoffset: 70;\n }\n\n 50% {\n stroke-dashoffset: 140;\n }\n\n 100% {\n stroke-dashoffset: 210;\n }\n }\n\n @keyframes innerDrawIn {\n 0% {\n stroke-dashoffset: 70;\n }\n\n 50% {\n stroke-dashoffset: 140;\n }\n\n 100% {\n stroke-dashoffset: 210;\n }\n }\n\n @-webkit-keyframes outerDrawIn {\n 0% {\n stroke-dashoffset: 76;\n }\n\n 100% {\n stroke-dashoffset: 152;\n }\n }\n\n @keyframes outerDrawIn {\n 0% {\n stroke-dashoffset: 76;\n }\n\n 100% {\n stroke-dashoffset: 152;\n }\n }\n\n .hHWjkv {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n }\n\n .gCDOzd {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n }\n\n .hmCcxi {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n }\n\n .eHamQi {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n }\n\n .byhgGu {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n }\n\n .llAKP {\n -webkit-transform-origin: 0px 0px;\n -ms-transform-origin: 0px 0px;\n transform-origin: 0px 0px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n }\n\n .bglIGM {\n -webkit-transform-origin: 64px 28px;\n -ms-transform-origin: 64px 28px;\n transform-origin: 64px 28px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.2222222222222222s;\n }\n\n .ksxRII {\n -webkit-transform-origin: 95.98500061035156px 46.510000228881836px;\n -ms-transform-origin: 95.98500061035156px 46.510000228881836px;\n transform-origin: 95.98500061035156px 46.510000228881836px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.4222222222222222s;\n }\n\n .cWrBmb {\n -webkit-transform-origin: 95.97162628173828px 83.4900016784668px;\n -ms-transform-origin: 95.97162628173828px 83.4900016784668px;\n transform-origin: 95.97162628173828px 83.4900016784668px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n animation: scaleIn 0.25s linear forwards 0.6222222222222222s;\n }\n\n .Wnusb {\n -webkit-transform-origin: 64px 101.97999572753906px;\n -ms-transform-origin: 64px 101.97999572753906px;\n transform-origin: 64px 101.97999572753906px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n animation: scaleIn 0.25s linear forwards 0.8222222222222223s;\n }\n\n .bfPqf {\n -webkit-transform-origin: 32.03982162475586px 83.4900016784668px;\n -ms-transform-origin: 32.03982162475586px 83.4900016784668px;\n transform-origin: 32.03982162475586px 83.4900016784668px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n animation: scaleIn 0.25s linear forwards 1.0222222222222221s;\n }\n\n .edRCTN {\n -webkit-transform-origin: 32.033552169799805px 46.510000228881836px;\n -ms-transform-origin: 32.033552169799805px 46.510000228881836px;\n transform-origin: 32.033552169799805px 46.510000228881836px;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n animation: scaleIn 0.25s linear forwards 1.2222222222222223s;\n }\n\n .iEGVWn {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.3333333333333333s, appearIn 0.1s ease-out forwards 0.3333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.3333333333333333s, appearIn 0.1s ease-out forwards 0.3333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .bsocdx {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.5333333333333333s, appearIn 0.1s ease-out forwards 0.5333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.5333333333333333s, appearIn 0.1s ease-out forwards 0.5333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .jAZXmP {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.7333333333333334s, appearIn 0.1s ease-out forwards 0.7333333333333334s;\n animation: outerDrawIn 0.5s ease-out forwards 0.7333333333333334s, appearIn 0.1s ease-out forwards 0.7333333333333334s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .hSeArx {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 0.9333333333333333s, appearIn 0.1s ease-out forwards 0.9333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 0.9333333333333333s, appearIn 0.1s ease-out forwards 0.9333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .bVgqGk {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 1.1333333333333333s, appearIn 0.1s ease-out forwards 1.1333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 1.1333333333333333s, appearIn 0.1s ease-out forwards 1.1333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .hEFqBt {\n opacity: 0;\n stroke-dasharray: 76;\n -webkit-animation: outerDrawIn 0.5s ease-out forwards 1.3333333333333333s, appearIn 0.1s ease-out forwards 1.3333333333333333s;\n animation: outerDrawIn 0.5s ease-out forwards 1.3333333333333333s, appearIn 0.1s ease-out forwards 1.3333333333333333s;\n -webkit-animation-iteration-count: 1, 1;\n animation-iteration-count: 1, 1;\n }\n\n .dzEKCM {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.3666666666666667s, appearIn 0.1s linear forwards 1.3666666666666667s;\n animation: innerDrawIn 1s ease-in-out forwards 1.3666666666666667s, appearIn 0.1s linear forwards 1.3666666666666667s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n .DYnPx {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.5333333333333332s, appearIn 0.1s linear forwards 1.5333333333333332s;\n animation: innerDrawIn 1s ease-in-out forwards 1.5333333333333332s, appearIn 0.1s linear forwards 1.5333333333333332s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n .hjPEAQ {\n opacity: 0;\n stroke-dasharray: 70;\n -webkit-animation: innerDrawIn 1s ease-in-out forwards 1.7000000000000002s, appearIn 0.1s linear forwards 1.7000000000000002s;\n animation: innerDrawIn 1s ease-in-out forwards 1.7000000000000002s, appearIn 0.1s linear forwards 1.7000000000000002s;\n -webkit-animation-iteration-count: infinite, 1;\n animation-iteration-count: infinite, 1;\n }\n\n #loading-wrapper {\n position: absolute;\n width: 100vw;\n height: 100vh;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .logo {\n width: 75px;\n height: 75px;\n margin-bottom: 20px;\n opacity: 0;\n -webkit-animation: fadeIn 0.5s ease-out forwards;\n animation: fadeIn 0.5s ease-out forwards;\n }\n\n .text {\n font-size: 32px;\n font-weight: 200;\n text-align: center;\n color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n -webkit-animation: fadeIn 0.5s ease-out forwards;\n animation: fadeIn 0.5s ease-out forwards;\n }\n\n .dGfHfc {\n font-weight: 400;\n }\n </style>\n <div id="loading-wrapper">\n <svg class="logo" viewBox="0 0 128 128" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>GraphQL Playground Logo</title>\n <defs>\n <linearGradient id="linearGradient-1" x1="4.86%" x2="96.21%" y1="0%" y2="99.66%">\n <stop stop-color="#E00082" stop-opacity=".8" offset="0%"></stop>\n <stop stop-color="#E00082" offset="100%"></stop>\n </linearGradient>\n </defs>\n <g>\n <rect id="Gradient" width="127.96" height="127.96" y="1" fill="url(#linearGradient-1)" rx="4"></rect>\n <path id="Border" fill="#E00082" fill-rule="nonzero"\n d="M4.7 2.84c-1.58 0-2.86 1.28-2.86 2.85v116.57c0 1.57 1.28 2.84 2.85 2.84h116.57c1.57 0 2.84-1.26 2.84-2.83V5.67c0-1.55-1.26-2.83-2.83-2.83H4.67zM4.7 0h116.58c3.14 0 5.68 2.55 5.68 5.7v116.58c0 3.14-2.54 5.68-5.68 5.68H4.68c-3.13 0-5.68-2.54-5.68-5.68V5.68C-1 2.56 1.55 0 4.7 0z">\n </path>\n <path class="bglIGM" x="64" y="28" fill="#fff" d="M64 36c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"\n style="transform: translate(100px, 100px);"></path>\n <path class="ksxRII" x="95.98500061035156" y="46.510000228881836" fill="#fff"\n d="M89.04 50.52c-2.2-3.84-.9-8.73 2.94-10.96 3.83-2.2 8.72-.9 10.95 2.94 2.2 3.84.9 8.73-2.94 10.96-3.85 2.2-8.76.9-10.97-2.94"\n style="transform: translate(100px, 100px);"></path>\n <path class="cWrBmb" x="95.97162628173828" y="83.4900016784668" fill="#fff"\n d="M102.9 87.5c-2.2 3.84-7.1 5.15-10.94 2.94-3.84-2.2-5.14-7.12-2.94-10.96 2.2-3.84 7.12-5.15 10.95-2.94 3.86 2.23 5.16 7.12 2.94 10.96"\n style="transform: translate(100px, 100px);"></path>\n <path class="Wnusb" x="64" y="101.97999572753906" fill="#fff"\n d="M64 110c-4.43 0-8-3.6-8-8.02 0-4.44 3.57-8.02 8-8.02s8 3.58 8 8.02c0 4.4-3.57 8.02-8 8.02"\n style="transform: translate(100px, 100px);"></path>\n <path class="bfPqf" x="32.03982162475586" y="83.4900016784668" fill="#fff"\n d="M25.1 87.5c-2.2-3.84-.9-8.73 2.93-10.96 3.83-2.2 8.72-.9 10.95 2.94 2.2 3.84.9 8.73-2.94 10.96-3.85 2.2-8.74.9-10.95-2.94"\n style="transform: translate(100px, 100px);"></path>\n <path class="edRCTN" x="32.033552169799805" y="46.510000228881836" fill="#fff"\n d="M38.96 50.52c-2.2 3.84-7.12 5.15-10.95 2.94-3.82-2.2-5.12-7.12-2.92-10.96 2.2-3.84 7.12-5.15 10.95-2.94 3.83 2.23 5.14 7.12 2.94 10.96"\n style="transform: translate(100px, 100px);"></path>\n <path class="iEGVWn" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M63.55 27.5l32.9 19-32.9-19z"></path>\n <path class="bsocdx" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M96 46v38-38z"></path>\n <path class="jAZXmP" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M96.45 84.5l-32.9 19 32.9-19z"></path>\n <path class="hSeArx" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M64.45 103.5l-32.9-19 32.9 19z"></path>\n <path class="bVgqGk" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M32 84V46v38z"></path>\n <path class="hEFqBt" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"\n d="M31.55 46.5l32.9-19-32.9 19z"></path>\n <path class="dzEKCM" id="Triangle-Bottom" stroke="#fff" stroke-width="4" d="M30 84h70" stroke-linecap="round">\n </path>\n <path class="DYnPx" id="Triangle-Left" stroke="#fff" stroke-width="4" d="M65 26L30 87" stroke-linecap="round">\n </path>\n <path class="hjPEAQ" id="Triangle-Right" stroke="#fff" stroke-width="4" d="M98 87L63 26" stroke-linecap="round">\n </path>\n </g>\n </svg>\n <div class="text">Loading\n <span class="dGfHfc">GraphQL Playground</span>\n </div>\n </div>\n\n <div id="root" />\n <script type="text/javascript">\n window.addEventListener(\'load\', function (event) {\n\n const loadingWrapper = document.getElementById(\'loading-wrapper\');\n loadingWrapper.classList.add(\'fadeOut\');\n\n\n const root = document.getElementById(\'root\');\n root.classList.add(\'playgroundIn\');\n\n GraphQLPlayground.init(root, {"request.credentials": "same-origin", "test.option": true})\n })\n </script>\n</body>\n\n</html>\n'
| 3,069.230769
| 19,876
| 0.635013
| 6,010
| 39,900
| 4.212479
| 0.061897
| 0.022436
| 0.017064
| 0.053087
| 0.991034
| 0.991034
| 0.991034
| 0.991034
| 0.991034
| 0.989454
| 0
| 0.179567
| 0.201504
| 39,900
| 12
| 19,877
| 3,325
| 0.615066
| 0.001554
| 0
| 0
| 0
| 0.8
| 0.993523
| 0.197264
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 11
|
bcf5c805c84045949ec5a81eb3a2872a9d5445c3
| 266,487
|
py
|
Python
|
PlayArea/screen/screen4.py
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
PlayArea/screen/screen4.py
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
PlayArea/screen/screen4.py
|
JetStarBlues/Nand-2-Tetris
|
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
|
[
"MIT"
] | null | null | null |
from tkinter import *
# Setup ---
root = Tk()
root.wm_title('Hack')
root.iconbitmap('favicon.ico')
width = 512
height = 256
img = PhotoImage( width = width, height = height )
label = Label(root)
label.pack()
label.config( image = img )
# Pixel data ---
data1 = (
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111001111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001101111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110000000000000001111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001001000000000000001111111111111111111111111101001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000011100000111111111111111111111111111100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111100011111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111100001111111111111111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110010111111111111111111111111001000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010111111111110000011111111111111111111111110000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111110010111111111111111111111111111000100000011111000111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001101111111111101000111111111111111111111111111100000111000000011000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111001111111111111111111111111111101000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111000111111111111111111111111111110111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111111111100111111111111111111111111100011111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111100111111111111111111111100011111111111111111111111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111110111111111111111111100111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111011111111111111111111111111100111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001101111111101111111111111111111111000111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000111110000011111111111111111000111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001001110000011111111111110001111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110110000101111110011111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110010000000110101111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001011111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111010011111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111110000000111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111110000000011111111111111111111111111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111000000000001111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111110000000000000111111111111111111111111111111101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111000000000000000001111111111111111111111111111010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111110000000000000000000111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111100000000000111111111011111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111000000000011111111111110111111111111111111111010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111110000000000011100000011111111111111111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111100000000000000000000000010001011111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111000000000000000000000000000000001111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111110000000000000000000000000000000001111111111001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111110000000000000000000000000000000001111111100100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111110000000000000000000011100000000001111110110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111110000000000000000111111110000000000011010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111100000000000000001111011110000000000010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110011111111111111100000000000000000000011110000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111000000111111111111100000000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111000000011111111111100000000000000000000000000000000011110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110000011111111111111000000000000000000000000000000000011110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111110000001101111111111000000000000000000000000000000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111100000000101111111111000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111100000000111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111100000001100111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111100000011101001111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111100000011011000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111100000000011000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111110000000011000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111110000000011000000111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111000000011110000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111000000000110000111110000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100000000000000111110000000000000000000000000001001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000000000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111000000000110111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111000000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111100000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111110000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111101000011111110000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111101000111111110000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111110000111111111100000000000000000000011100000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111100110011111111110000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111100111001111111111000000000000000000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111101111011111111111100000000000000000000000000001101110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000111101111111111111111111111111001111011111111111111000000000000000000000001001101110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011110000011111111111111111111111111001111001111111111111000000000000000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111011110001111111111111111111111111111111111111111111111111111111000000000000000000000011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111101000101111111111111100000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111100001000011111111111111100000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111110000000111111111111111100000000000000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111110000001111111111111111100000000000000000111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111110000111111111111111111100000000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111000111111111111111111110000000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111000111111111111111111110000000000000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001011111111111111111111111111111111111111111111111111111111111111111111111111111100111111111111111111111000000000000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000001111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000001111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110001111111111101111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000111110000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000001000001000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000001000001100001111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000100100000000011110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000001000000000111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000100000000000111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000011000000001111111100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000010011111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000010111110000000000000000000000000000000000001111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000111111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110111111110000000000000000000000000000000111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000111111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000010000000001111111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000011111111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000100000011111100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000001000000111111100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110100000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000010000000110100010001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000100000100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000010000000000100001100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000100000000000000001000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000001111111111111111111111111111111100000000000000010000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000010000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000001110000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000001110000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000011110000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000011100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000111100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000001111000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000001101110000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111000000001101110000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111000000001011100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111000111101011100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000111011000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000111011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000001111110000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111111001100000011000100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111110100000001000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111100000000001000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111000000000000000100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111110000000000000001100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111110000100000000011100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111100000000000000111100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111000000001000001111000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111000000000000001111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111000000000000001110000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111100000000000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111100000011000011100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111011100010000011000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111011111110000010000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111011111100000010000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111110011111100000100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111100111110000001000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111101110000010011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111100110000010010000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000000010000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000000100000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000000100000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000000110000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000000100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000001100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000000001010001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000000001000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100001110000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100001110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110011100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100011000001111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110000000001111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100000000001111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100000000011111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000011000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100000000011111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000001100000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100000000111111100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000001110000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111000000000111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000111100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111000000001111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111000000001111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000011111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111110000000011111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000001111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111110000000011111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000111110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111110000000111111100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000100000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111110000000111111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111110000001111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000010000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100001111110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111100011111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000011000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110011111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000011000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111110111111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000100011100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000100011100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000011110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000011111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000011111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000011111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111100111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111111111111111111111111111111111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000011111111111111111111111111111111100001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000001111111111111111100011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000001111111110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000011111111111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000001111111111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000001011100000000000000000000000000000000001111111111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000001111111111111001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000111111111111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000000000000100011000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000000000000001000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000000000000000000000000000000000000000000000000011000010111000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000001000000011100111101110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000000000000000000000000000000000000000001100000011100111000110011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{01000000000000000000000000000000000000000000000100000011111011101110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{01000000000000000000000000000000000000000000000010000011110011101110000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000011110101101111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000000000000001110000001111000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00000000000000000000000000000000000000000000100000000001110000001011000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000000000000001111111111011000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000000000000000000000000000000000000000000000000001111111110011000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{10000000000000000000000000000000000000000000000000000001111111110011000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{00100000000000000000000000000000000000000000000000000000111111110011000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000000000000000000000000000000000000000000000000000111111111011010000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000000100000000000000000000000000000000000000000000111111111011011000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11000000001100000000000000000000000000000000000000000000111111111011011000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11100000111100000000000000000000000000000000000000000000111111111111011000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111001111110000000000000000000000000000000000000000000111111111111011000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111001111111111000100000000000000000000100000000000000111111111111011000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000010011111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111010000000000010000001000000000000000000000111111111111001000000000000000000011111111111111110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110001011010001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111011100000110011111100000000000000000000111111111111000000000011000000000000000001000000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111010000010110000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
'{11111111111111111101010001000011111110001011001000000000111111111111000100000011000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011110010000000110000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000} '
)
data2 = (
'{11111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000011000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101000000000000000000000000000000000000000000000000000000000000000000000000001110011100110000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000001111101111110000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000010100110110111111110011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000011110111111111111110001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111011110000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111011100000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000010000011111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000011110011111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101000000000000000000000000000000000000000000000000000000000000000111001101111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101000000000000000000000000000000000000000000000000000000000000001111111100111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101000000000000000000000000000000000000000000000000000000000000011101111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100111100000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111011111100000001100000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000001100000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000001100000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110001100001100000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110011100011110000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110010001111110000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111000110011110000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101110000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100100100000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000001111111111111111111111111111000000011011111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100010000000000000000000000000000000000000000000000000000000011111111111111111111111111110000000000001111101111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100010000000000000000000000000000000000000000000000000000000111111111111111111111100000000000000000000000000011111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000001111111111111111111111100000000000000000000000000000111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000011111111111111111111111100000000000000000000000000000011111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111110111111101000000000000000000000000000000000000000000000000000000111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111110111111110000000000000000000000000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000000111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110110000000000000000000000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000000011111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000110000000000000000000000000000000000000000000000000001111111111111111111111110000000000000000000000000000000000000000111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000010000000000000000000000000000000000000000000000000001111111111111111111111100000000000000000000000000000000000000000111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000001111111111111111111111000000000000000000000000000000000000000000001111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000011111111111111111111111000000000000000000000000000000000000000000001111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000010000000000000000000000000000000000000000000000000011111111111111111111111000000000000000000000000000000000000000000001111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100011110000000000000000000000000000000000000000000000000011111111111111111111110000000000000000000000000000000000000000000000111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000011111111111111111111111000000000000000000000000000000000000000000000111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111101111000000000100000000000000000000000000000000000000000111111111111111111111111000000000000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111011110011111110000110000000000000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000000000000000011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111011111000100000000000000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000000000000000000111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000001111111111111111111111110000000000000000000000000000000000000000000000000111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000011000000000000000000000000000000000000000000000000001111111111111111111111110000000000000000000000000000000000000000000000000111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100101100100000100000000000000000000000000000000000000001111111111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110100000000100000000000000000000000000000000000000001111111111111111111111110000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111000000000000000000000000000001111100000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110001110000000000000000000000000000000000000000000000000001111111111111111111111111110000000000000000000000001111111111000000000000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111001110000000000000000000000000000000000000000000000000001111111111111111111111111111100000000000000000000110100111111000000000000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100111000000000000000000000000000000000000000000000000011111111111111111111111111111111000000000000000000000000000000000000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111100000000000000000000000000000000000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111110000000000000000000000000000000000000000000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000001111111111111111111111111111111111100000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000001111111111111111111111111111111111100000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000001111111111111111111111111111111111100000000000000000111110000000000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000001111111111111111111100000111111111110000000000000011111110000000000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111000000000000111111111000000000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110110000000000000000000000000000000000000000000000000000111111111111111111111000011111111111000000000000111111111111110000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111011111111111111100000000000000000000000000000000000000000000000000111111111111111111111111000111111111100000000000111111111111111100000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000001111111111111111111111111111111111111100000000000111111111111111110000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111101100000000000000000000000000000000000000000000000000111111111111111111111111011111111111100000000000111111111111111111000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000001111111111111111111111111111111111111100000000000111111111111100000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100000010000000000000000000000000000000000000000111111111111111111111111111111111111111100000000000111111111100000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000111111111111111111111111111111111111111100000000000011111110000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111100010000000000000000000000000000000000000001111111111111111111111111100001111111111100000000000000100000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000001111111111111111111111111000111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000001111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111100000000110000000000000000000000000000000001111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111000000000000000001100011000000000000000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111110000000111000001111011000000000000000000011111111111111111111111111101011111111111100000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111110000111110000000101110000000000000000000011111111111111111111100000000001111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111100000000111000000001111000000000000000000011111111111111111111100000000001111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111110000000111100011100011000000000000000000001111111111111111111000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100010011100001110011000000000000000000001111111111111111110000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100011011100000111111100110000010000000001111111111111111110000000000011111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000010011111111111000100000000000111111111111111110000000000011111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111110000000001110001111100000000000000000111111111111111100000000000111111001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110001000111000111110011000000000000000000011111111111111110000000000111111011111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110001111100100111111111101000000000000000011111111111111100000000001111111111111100000011110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111100111000111111110000100000000001111111111111110000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111001111110111101111111110000100000000001111111111111110000000011111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000100000001111111111111110000000011111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000100000000111111111111110000000111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111110000000000011111111111110000000111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000100011111111111111000000111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110110000000011111111111111000001111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000001001111111111111001111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000111111111111001111111111111111111111100001011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000011111111111001111111111111111111111110000011000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101010000000001111111001111111111111111111000000000000100011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000111111000111111111111111000000000000000110001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000111111100011111111111111000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000111111100001111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111100000111111111111000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000011111110000011111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000011111110000011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000001111111000011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000001111111100011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000100000000111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100010001011111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000010001001111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101000000000000111111111111111111110000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101000000000000011111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101110000000000001111111111111111100000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110110000000001111111111111111100000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000001111111111111111100000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000001111111111111111100000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000001111111111111111100000000000000000000000000000000100000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111110000000001111111111111111100000000000000000000000000000001100000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000001111111111111111110000000000000000000000000110011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011000000000000011111111111111111110000000000000000000000111110110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011000000000000011111111111111111111000000010000000001011111001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110011000000000000011111111111111111111111111111111111111111110111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111000000000000011111111111111111111111111111111111111111100111000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011000111000000100000011111111111111111111111111111111111111100011111000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111001001100000000011111111111111111111111111111111111111111000111110000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000011111111111111111111111111111111111111111100001111100000000000100111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000100111111111111111111111111111111111111111111100000011111000001000000011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000100011111111111111111111111111111111111111111110000000111110000000000000011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000111111111111111111111111111111111111111111111100000001111100000000000000011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111100000001111111111100000111111000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000011111111111111111111000000000000011111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000001111111111111111110000000000010111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000111111111111111100000000000000011111111000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000011111111111111000000000000001111111110000000000111000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000001111111111110000000000000001111111110000000000111000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000011111111111111111111111000000000000000111111111110000000000000001111111110000000011111000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000111111111111111111111111000000000000000001111111100000000000000001111111110000000011111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000011111111111111111111111100000000000000000111111000000000000000111111111110000000011111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000001111110011111111111111100000000000000000011110000000000000011111111111100000001111111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000001000000000001111110001111111111111110000000000011000011111000000000000111111101111000000011111111000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000011000000000000111100001111111111111111111000000011111111111110000000000111111111111000000111111111000000011100000000000000110110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000010000000000000111100000111111111111111111011001111111111111111000000101111111111110000001111110111100000001100000000000001100011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000011100000011111111111111111110011111111111111111100000111111111111100000111111111111100000001100000000000001100011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000011100000001111111111111111110011111111111111111110000111111111111100000111111111111100000000100000000000010000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000011100000000111111111111111110111111111111111111111001111111111111000011111111111111100000000110000000000010000111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000011100000000111111111111111100111111111111111111111100111111111110000111111111111111000000000110000000000010000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000001100000000011011111111111100111111111111111111111110011111111100010111111111111111000000000000000000000100000011100000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000001000000000011001111111111101111111111111111111111110011111111000111111111111011110000000000000000000000100000111000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000001100111111111101111111111111111111111111001111111001111111111111111110000000000000000000000100000111000000110011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000011000000000000000001100111111111001111111111111111111111111001111111001111111111111011110000000000000000000000100000110000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000010000000000000000001110001111111001111111111111111111111111000111110100010111111100011110000000000000000000000100000111000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000111001011111001111111111111111111111111101111100000011111111000011111000000000000000000001000000111100000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000111000111111001111111111111111111111111101001011000011111110000000111100000000000000000001000000011100000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000011100100011001111111111111111111111111101000100000111111110000000111100000000000000000001000000011000000000001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000001111100011001111111111111111111111111100000000000111111000000000111100000000000000000001000000011000000000111101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000111100010001111111111111111111111011100110000000111110000000011111100000000000000000001000000111000000000100101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000011110000000111111111111111111110001100000000001111100000000011111110000000000000000010000000011000000011100001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001110000000111111111111111111100000001000001111000000000000011111110000000000000000011000000110000000001110001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001110000000011111111111111111000001001100000001111000000010111111110000000000000000010000000110000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001110000000111111111111111110000011000000111111100000000111111111110000000000000000010000000000000001000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001110001000111111111111111100000111000111100000000000000111111111100000000000000000110000000000000010000100000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001110001100011111111111111100001111101100000000000000000101111111100000000000000000110000000000000010000100000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001110001100011111111111111011111111111000000000000000000111111111000000000000000000110000000000000100000100001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000001110000111110001001111111111111111111000000000000000000111111111000000000000000001110000000000000100000000001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000001110011110000000000111111111111111111000000000000000000011111110000000000000000111110000000000001000000000001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000001111100000000000000111111111111111111111110000000000000001111110000000000000000111110000000000001000000000001111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000011110000000000000000111111111111111111111110000000000000011111100000000000000000111110000000000000000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000001111100000000000000001111111111111111111111110000000000000000111100000000000000100111110000000000010000000000001111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000111110000000000000000011111111111111111111111000000000000000001111000000000000000100011100000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000001111110000000000000001111111111111111111111000000000000000000000110000000000000001000111100000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000111111100000000000001111111111111111111111110000000000000000000000100000000000000011000111110000000000000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000001111111000000000000111111111111111111111111000000000000000000000000000000000000000001000001111000000000000000000000001111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000111111000000000000011111111111111111111111100000000000000000000000000000000000000000011000011100100000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000001111110000000000111111000000000111111111111100000000000000000000000000000000000000000110000111100000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000111111000000000001111000000000000111111111111111000011110000000000000000000000000000001110000011110000000000000000000000011111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000001100000000000000000000000000111111110000000000111110000000000001111111111111111111111111100000000000000000000000000001100000011110000000000000000000000011111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000001110000000000000000000000001111111100000000011111100000000000001111111111111111111111111110000000000000000000000000111100000111101000000000000000000000011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000001111000000000000000000000011111110000000001111111100000000000000111111111111111111111111111000000000000000000000000011000000111100000000000000000000000011111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000001111000000000000000000001111111100000000111111111000000000000001111111111111111111111111111100000000000000000000000000000010111100000000000000000000000011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100100000000000000000000001111100000000000000000111111110000000001111111111000000000000011111111111111111111111111111111000000000000000000000011000010111100000000000000000000000011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100110000000000000000000000111110000000000000001111111100000000011111111101000000000000111111111111111111110000000111111000000000000000000000000000110111100000000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100001000000000000000000000111111000000000000011111111100000001111111110000000000000011111111111111111111110000000000000000000000000000000000000000011111100000000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000111111000000000001111111111100000111111111100000000000001111111111111111111111100000000000000000000000000000000000000000111111000000000000000000000000111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000011111100000000011111111111100111111111111000000000000111111111111111111111111100000000000000000000000000000000000010111111111000000000000000000000000001111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000011111110000001111111111111111111111111100000000000111111111011111111111111111100000000000000000000000000000000000010011000111000000000000000000000000001111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000001111111000111111111111111111111111111000000000001111111000001111111111111111000000000000000000000000000000000000000011101111000000000000000000000000001111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000001111111111111111111111111111111111000000000000111111100000001111111111111111100000000000000000000000000000000100000111111111000000000000000000000000001111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000001111111111111111111111111111111100000000000011111110000000001111111111111111000000000000000000000000000000000100000000111011000000000000000000000000000111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000100000111111111111111111111111111110000000000001111111100000000001111111111111111111100000000000000000000000000000000001000101011001000000000000000000000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000111111111111111111111111111100000000000011111111100000000001111111111111111111111000000000000000000000000000000000000011011010000000000000000000000001111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000100000011111111111111111111111111000000000000111111111100000000001111111111111111111111111000000000000000000000000000000000100111010000000000000000000000000111111111111110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000010000011111111111111111111111111000000000000111111111100000000001111111111111111111111111111000000000000000000000000000000100111010000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000001110000011111111111111111111111111000000000001111111011100000000011111111111111111111111111111100000000000000000000000000001101110010000000000000000000000000111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111110111111110000000000000000001111000011111111111111111111111111000000000011111110001100000000111111111111111111111111111111110000000000000000001000010000101111000000000000000000000000000011111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111100011111110000000000000000001111100011111111111111111111111111000000000111111100000000000011111111111111111111000000000000000000000000000000000000000000111111000000000000000000000000001111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000011111110000000000000000001111110111111111111111111111111111000000001111111100000000000111111111111111111111000000000000000000000000000000000000000001111001000000000000000000000000000111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111111000011111110000000000000000001111111111111111111111111111111111100000011111111000000000011111111111111111111111000000000000000000000000000000000000000000001111000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000001111111000000000000000011111111111111111111111111111111111110001111111111000000001111111111111111111111111000000000000000000000000000000000000000100000100000000000000000000000000000111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000001111111000000000000000001111111111111111111111111111111111111111111111110000000111111111111111111111111111000000000000000000000000000000000000000000000100000000000000000000000000000111101111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000111111000000000000000001111111111111111111111111111111111111111010000000000011111111111111111111111111111000000000000000000000000000000000000000000000111000000000000000000000000000000000000000000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000111111000000000000000000111111111111111111111111111111111111110000000000000011111111000111111111111111111000000000000000000000000000000000000000001111010000000000000000000000000000000000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000011111000000000000000001111111111111111111111111111111111111110000000000000011111100000011111111111111111110000000000000000000000000000000000000001110000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000011111000000000000000001111111111111111111111111111111111111110000000000000111100000000011111111111111111111111000000000000000000000000000000000000110000000000000000111111000011100000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000001111000000000000000001111111111111111111111111111111111111110000000000000000000000000011111111111111111111111111100000000000000000000000000000000000000000011110000011110000011100000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000001111000000000011110001111111111111111111111111111111111111110000000000000000000000000011111111111111111111111111111000000000000000000000000000000000000111111111000001110000000000001000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111110000000000111100000000001111111111111111111111111111111111111111111111000000000000000000000000011111111111111111111111111111110000000000000000000000000000000000111111111000000100000000000111111111111101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000111100000000000111111111111111111111111111111111111111111111100000000000000000000000111111111111111111111111111111110000000000000000000000000000000000111111111100000000000000001111111011111111110000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111100000000000111000000000000111111111111111111111111111111111111111111111100000000000000000000001111111111111111111111111111111110000000000000000000000000000000000111111111110000000000000001111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111111000000000000011000000000000111111111111111111111111111111111111111111111100000000000000000000011111111111111111111111111111111111000000000000000000000000000000000011111111110000000000000000111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000010000000000000111111111111111111111111111111111111111111111100000000000000000001111111111111111111111111111111111111000000000000000000000000000000000001111111111000000000000000001111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000000000000000000111111111111111111111111111111111111111111111110000000000000000111111111111111111111111111111111111111110000000000000000000000000000000000011111110000000000000000000111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000000000000000000000000111111111111111111111111111111111111111111111111000000000000111111111111111111111111111111111111111111111000000000000000000000000000000000001111110000000000000000000011111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000000000000000000000000111111111111111111111111111111111111111111111111000000000011111111111111111111111111111111111111111111111110000000000000000000000000000000000111100000000000000000000011111111011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000001000000000000000000000011111111111111111111111111111111111111111111111000000000100111111111111111111111111111111111111111111111110000000000000000000000000000000000001111100000000000000000001111111001111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111111111111111111110000010000111111111111111111111111111111111111111111111111000000000000000000000000000000000000011110000000000000000000111111110011111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111111111111111111111111000000111111111111111111111111111111111111111111111000000000000000000000000000000000000000000111100000000000000000011111110111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111111111111111111111110000000111111111111111111111111111111111111111111111000100000000000000000000000000000000000000001111100000000011000001111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111111111111111111111100000001111111111111111111111111111111111111111111111110110000000000000000000000000000000000000000011111000000000110000111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000000000000000000000000000000011111111111111111111111111111111111111111111111111000000001111111111111111111111111111111111111101100001111111100000000000000000000000000000000000000001111111000000111110001111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000000000000000000000000000000111111111111111111111111111111111111111111111111111000000001111111111111111111111111111111111111000000000011111111110000000000000000000000000000000000000011111111000001111001111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000000000000000000000000000001111111111111111111111111111111111111111111111111110000000001111111111111111111111111111111111111000000000000011111111110000000000000000000000000000000000001111111110001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000000000000000000000000000001111111111111111111111111111111111111111111111111110000000001111111111111111111111111111111111111000000000000000111111111111100000000000000000000000000000000111111111100111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111000000000000000000000000000000011111111111111111111111111111111111111111111111111100000000001111111111111111111111111111111111111000000000000000001111111111110000000000000000000000000000000001111111110011111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111110000000000000000000000000000000111111111111111111111111111111111111111111111111111100000000001111111111111111111111111111111111111000000000000000000111111111111100000000000000000000000000000000111111111100011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111100000000000000000000000000000001111111111111111111111111111100111111111111111111111000000000011111111111111111111111111111111111111100000000000000000011111111111111000000000000000000000000000000011111111110000111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111100000000000000000000000000000111111111111111111111111111111000011111111111111111111000000000011111111111111111111111111111111111111100000000000000000001111111111111000000000000000000000000000000000111111111000111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111000000000000000000000000000011111111111111111111111111111110000001111111111111111100000000000011111111111111111111111111111111111111100000000000000000000111111111111100000000000000000000000000000000011111111100000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111000011100000000000000000111111111111111111111111111111111110000001111111111111111100000000000011111111111111111111111111111111111111100000000000000000000011111111111110000000000000000000000000000000001111111100000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111110000111111000000011111111111111111111111111111111111111111110000111111111111111110000000000000011111111111111111111111111111111111111100000000000000000000011111111111110000000000000000000000000000000000111111110000011111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111000011110000000000000000000111111111111111111111111111111111111111111111111111100000000000000011111111110111111111111111111111111111100000000000000000110001111111111111000000000000000000000000000000000011111111000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111111111111111111111111111101111111111111110000000000000011111111110111111111111111111111111111101111000000000000011000111111111111100000000000000000000000000000000001111111100001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000000111111111111111111111111111111111111111111101111111111111110000000000000011111111111111111111111111111111111111001111000000000000011100001111111111100000000000000000000000000000000000111111100001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111110000000000011111111111111111111111111111111111111111111001111111111101111000000000000011111111111111111111111111111111111111000111100000000000001110000111111111110000000000000000000000000000000000111111110001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000001111111111111111111111111111111111111111111111000111111111001111000000000000011111111111111111111111111111111111111100111110000000000001111000011111111111110000000000000000000000000000000011111111000011110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000000011111111111111111111111111111111111111111111110000111111111111111100000000000011111111111111111111111111111111111111100111111000000000000111100001111111111111000000000000000000000000000000011111111000111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000000011111111111111111111111111111111111111111111110000111111111111111100000000000111111111111111111111111111111111111111100111111000000000000111110001111111111110000000000000000000000000000000011111111100111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000000111111111111111111111111111111111111111111111110000111111111111111100000000000111111111111111111111111111111111111011110111111100000000000011111000111111111111000000000000000000000000000000001111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000000111111111111111111111111111111111111111111111110000111111111111111100000000000111111111111111111111111111111111111011110011111110000000000011111000011111111111100000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111110000111111111111111100000000000111111111111111111111111111111111111111110011111110000000000001111100001111111111110000000000000000000000000000000111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000011111111111111111111111111111111111111111111111110000111111111111111100000000000111111111111111111111111111111111111111111011111111000000000001111110000111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111100000011111111111111111111111111111111111111111111111100000011111111111111100000000000111111111111111111111111111111111101111111011111111100000000001111110000011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000000111111111111111111111111111111111111111111111111100000011111111111111100000000000111111111111111111111111111111111011111111011111111110000000000111110000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111111000001111111111111111111111111111111111111111111111111100000011111111111111100000000000111111111111111111111111111111110111111111011111111110000000000111111000001111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000001111111111111111111111111111111111111111111111111100000011111111111111100000000000111111111111111111111111111111110111111111011111111111000000000011111000000111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000011111111111111111111111111111111111111111111111111100000011111111111111100000000000111111111111111111111111111111111111111111010111111111000000000011111100000001111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111110000011111111111111111111111111111111111111111111111111000000001111111111111100000000000111111111111111111111111111111111111111111001011111111100000000011111100000000111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000011111111111111111111111111111111111111111111111111000000001111111111111100000000000111111111111111111111111111111111111111111101011111111100000000000111110000000111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000111111111111111111111111111111111111111111111111111000000001111111111111100000000000111111111111111111111111111111111111111111101001111111100000000000111110000000111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111100000111111111111111111111111111111111111111111111111111000000001111111111111100000000000111111111111111111111111111111111111111111101100111111110000000000011110000000111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111000000111111111111111111111111111111111111111111111111111000000001111111111111100000000000011111111111111111111111111111111111111111100100111111111000000000011111000000011111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111000001111111111111111111111111111111111111111111111111110000000001111111111111100000000000011111111111111111111111111111111111111111100010011111111000000000001111000000000011111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
'{11111111111111111111111111111111111111111111111111111111000001111111111111111111111111111111111111111111111111110000000001111111111111100000000000011111111111111111111111111111111111111111100010011111111100000000001111100000000000111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000} '
)
data = [ data1, data2 ]
for i in range(len(data)):
data[i] = data[i].replace( '0', 'white ' ).replace( '1', 'black ' )
# Render ---
image_idx = 0
def updateImage( ev = None ):
global image_idx
img.put( data[image_idx], to = (0, 0, width, height) ) # update image
image_idx = ( image_idx + 1 ) % len(data) # increment index
# print( image_idx )
# root.after( 500, updateImage ) # set timer
updateImage()
root.bind( '<F12>', updateImage )
root.mainloop()
| 471.658407
| 518
| 0.985485
| 616
| 266,487
| 426.318182
| 0.902597
| 0.000183
| 0.011698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.990064
| 0.006346
| 266,487
| 565
| 519
| 471.658407
| 0.001688
| 0.000469
| 0
| 0.037244
| 0
| 0
| 0.990088
| 0.988038
| 0
| 1
| 0
| 0
| 0
| 1
| 0.001862
| false
| 0
| 0.001862
| 0
| 0.003724
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4c33bd0bc0d77116e61e99049716af678fb44591
| 105,674
|
py
|
Python
|
reviewboard/diffviewer/tests/test_diffx_parser.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/diffviewer/tests/test_diffx_parser.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
reviewboard/diffviewer/tests/test_diffx_parser.py
|
pombredanne/reviewboard
|
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
|
[
"MIT"
] | null | null | null |
"""Unit tests for reviewboard.diffviewer.parser.DiffXParser."""
from djblets.testing.decorators import add_fixtures
from reviewboard.diffviewer.errors import DiffParserError
from reviewboard.diffviewer.parser import DiffXParser
from reviewboard.scmtools.core import HEAD, PRE_CREATION, UNKNOWN
from reviewboard.testing import TestCase
class DiffXParserTests(TestCase):
"""Unit tests for reviewboard.diffviewer.parser.DiffXParser."""
def test_parse_diff_with_basic_diff(self):
"""Testing DiffXParser.parse_diff with a basic DiffX file"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=156\n'
b'{\n'
b' "path": {\n'
b' "new": "message2.py",\n'
b' "old": "message.py"\n'
b' },\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
b'#...diff: length=693, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message2.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': {
'old': 'message.py',
'new': 'message2.py',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message2.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, b'abc123')
self.assertEqual(parsed_file.modified_filename, b'message2.py')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 4)
self.assertEqual(parsed_file.delete_count, 4)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_complex_diff(self):
"""Testing DiffXParser.parse_diff with a complex DiffX file"""
parser = DiffXParser(
b'#diffx: encoding=utf-16, version=1.0\n'
b'#.preamble: encoding=ascii, indent=2, length=36,'
b' line_endings=dos, mimetype=text/plain\n'
b' This is the file-level preamble.\r\n'
b'#.meta: encoding=utf-32, format=json, length=96\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"'
b'\x00\x00\x00k\x00\x00\x00e\x00\x00\x00y\x00\x00\x00"'
b'\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00v'
b'\x00\x00\x00a\x00\x00\x00l\x00\x00\x00u\x00\x00\x00e'
b'\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00'
b'#.change:\n'
b'#..preamble: indent=2, length=14, line_endings=unix, '
b'mimetype=text/markdown\n'
b' \xff\xfet\x00e\x00s\x00t\x00\n\x00'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T13:12:06-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:26:31-07:00",\n'
b' "id": "a25e7b28af5e3184946068f432122c68c1a30b23",\n'
b' "parent id": "b892d5f833474c59d7851ff46a4b0bd919017e97"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=latin1, format=json, length=166\n'
b'{\n'
b' "path": "file1",\n'
b' "revision": {\n'
b' "new": "eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef",\n'
b' "old": "c8839177d1a5605aa60abe69db95c84183f0eebe"\n'
b' }\n'
b'}\n'
b'#...diff: length=60, line_endings=unix\n'
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
b'#.change:\n'
b'#..preamble: encoding=utf-8, indent=4, length=56, '
b'line_endings=unix\n'
b' Summary of commit #2\n'
b' \n'
b' Here\'s a description.\n'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T19:46:22-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:46:25-07:00",\n'
b' "id": "91127b687f583184144161f432222748c1a30b23",\n'
b' "parent id": "a25e7b28af5e3184946068f432122c68c1a30b23"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=utf-32, format=json, length=668\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'p\x00\x00\x00a\x00\x00\x00t\x00\x00\x00h\x00\x00\x00'
b'"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'f\x00\x00\x00i\x00\x00\x00l\x00\x00\x00e\x00\x00\x00'
b'2\x00\x00\x00"\x00\x00\x00,\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x00r\x00\x00\x00e\x00\x00\x00v\x00\x00\x00'
b'i\x00\x00\x00s\x00\x00\x00i\x00\x00\x00o\x00\x00\x00'
b'n\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00"\x00\x00\x00n\x00\x00\x00'
b'e\x00\x00\x00w\x00\x00\x00"\x00\x00\x00:\x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x003\x00\x00\x008\x00\x00\x00'
b'9\x00\x00\x00c\x00\x00\x00c\x00\x00\x006\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x00a\x00\x00\x00e\x00\x00\x00'
b'5\x00\x00\x00a\x00\x00\x006\x00\x00\x005\x00\x00\x00'
b'9\x00\x00\x003\x00\x00\x008\x00\x00\x003\x00\x00\x00'
b'e\x00\x00\x00a\x00\x00\x00b\x00\x00\x005\x00\x00\x00'
b'd\x00\x00\x00f\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'5\x00\x00\x003\x00\x00\x007\x00\x00\x006\x00\x00\x00'
b'4\x00\x00\x00e\x00\x00\x00c\x00\x00\x00c\x00\x00\x00'
b'f\x00\x00\x008\x00\x00\x004\x00\x00\x007\x00\x00\x00'
b'3\x00\x00\x002\x00\x00\x00"\x00\x00\x00,\x00\x00\x00'
b'\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x00o\x00\x00\x00l\x00\x00\x00'
b'd\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x002\x00\x00\x008\x00\x00\x001\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x000\x00\x00\x004\x00\x00\x00'
b'6\x00\x00\x001\x00\x00\x007\x00\x00\x00e\x00\x00\x00'
b'8\x00\x00\x000\x00\x00\x007\x00\x00\x008\x00\x00\x00'
b'5\x00\x00\x000\x00\x00\x00e\x00\x00\x000\x00\x00\x00'
b'7\x00\x00\x00e\x00\x00\x005\x00\x00\x004\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00e\x00\x00\x003\x00\x00\x00'
b'4\x00\x00\x006\x00\x00\x009\x00\x00\x00f\x00\x00\x00'
b'6\x00\x00\x00a\x00\x00\x002\x00\x00\x00e\x00\x00\x00'
b'7\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00}\x00\x00\x00\n\x00\x00\x00'
b'#...diff: encoding=utf-16, length=22, line_endings=unix\n'
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
b'#..file:\n'
b'#...meta: encoding=utf-8, format=json, length=166\n'
b'{\n'
b' "path": "file3",\n'
b' "revision": {\n'
b' "new": "0d4a0fb8d62b762a26e13591d06d93d79d61102f",\n'
b' "old": "be089b7197974703c83682088a068bef3422c6c2"\n'
b' }\n'
b'}\n'
b'#...diff: length=87, line_endings=dos\n'
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 2)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'metadata': {
'key': 'value',
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
'options': {
'encoding': 'utf-16',
'version': '1.0',
},
'preamble': 'This is the file-level preamble.\r\n',
'preamble_options': {
'encoding': 'ascii',
'indent': 2,
'line_endings': 'dos',
'mimetype': 'text/plain',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
# Inspect change #1.
parsed_change = parsed_diff.changes[0]
self.assertEqual(parsed_change.commit_id,
b'a25e7b28af5e3184946068f432122c68c1a30b23')
self.assertIsNone(parsed_change.parent_commit_id,
b'b892d5f833474c59d7851ff46a4b0bd919017e97')
self.assertEqual(parsed_change.extra_data, {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T13:12:06-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:26:31-07:00',
'id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
'parent id': 'b892d5f833474c59d7851ff46a4b0bd919017e97',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': 'test\n',
'preamble_options': {
'indent': 2,
'line_endings': 'unix',
'mimetype': 'text/markdown',
},
},
})
self.assertEqual(len(parsed_change.files), 1)
# Inspect change #1, file #1
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'file1',
'revision': {
'old': 'c8839177d1a5605aa60abe69db95c84183f0eebe',
'new': 'eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
},
},
'metadata_options': {
'encoding': 'latin1',
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n')
self.assertEqual(parsed_file.orig_filename, b'file1')
self.assertEqual(parsed_file.orig_file_details,
b'c8839177d1a5605aa60abe69db95c84183f0eebe')
self.assertEqual(parsed_file.modified_filename, b'file1')
self.assertEqual(parsed_file.modified_file_details,
b'eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 0)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
# Inspect change #2.
parsed_change = parsed_diff.changes[1]
self.assertEqual(parsed_change.commit_id,
b'91127b687f583184144161f432222748c1a30b23')
self.assertIsNone(parsed_change.parent_commit_id,
b'a25e7b28af5e3184946068f432122c68c1a30b23')
self.assertEqual(parsed_change.extra_data, {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T19:46:22-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:46:25-07:00',
'id': '91127b687f583184144161f432222748c1a30b23',
'parent id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': (
"Summary of commit #2\n"
"\n"
"Here's a description.\n"
),
'preamble_options': {
'encoding': 'utf-8',
'indent': 4,
'line_endings': 'unix',
},
},
})
self.assertEqual(len(parsed_change.files), 2)
# Inspect change #2, file #1
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'encoding': 'utf-16',
'line_endings': 'unix',
},
'metadata': {
'path': 'file2',
'revision': {
'old': '281bac2b704617e807850e07e54bae3469f6a2e7',
'new': '389cc6b7ae5a659383eab5dfc253764eccf84732',
},
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
},
'encoding': 'utf-16',
})
self.assertEqual(
parsed_file.data,
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00')
self.assertEqual(parsed_file.orig_filename, b'file2')
self.assertEqual(parsed_file.orig_file_details,
b'281bac2b704617e807850e07e54bae3469f6a2e7')
self.assertEqual(parsed_file.modified_filename, b'file2')
self.assertEqual(parsed_file.modified_file_details,
b'389cc6b7ae5a659383eab5dfc253764eccf84732')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 0)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
# Inspect change #2, file #2
parsed_file = parsed_change.files[1]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'dos',
},
'metadata': {
'path': 'file3',
'revision': {
'old': 'be089b7197974703c83682088a068bef3422c6c2',
'new': '0d4a0fb8d62b762a26e13591d06d93d79d61102f',
},
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n')
self.assertEqual(parsed_file.orig_filename, b'file3')
self.assertEqual(parsed_file.orig_file_details,
b'be089b7197974703c83682088a068bef3422c6c2')
self.assertEqual(parsed_file.modified_filename, b'file3')
self.assertEqual(parsed_file.modified_file_details,
b'0d4a0fb8d62b762a26e13591d06d93d79d61102f')
self.assertEqual(parsed_file.insert_count, 2)
self.assertEqual(parsed_file.delete_count, 1)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_path_string(self):
"""Testing DiffXParser.parse_diff with file's meta.path as single
string
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=103\n'
b'{\n'
b' "path": "message.py",\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
b'#...diff: length=692, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'message.py',
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, b'abc123')
self.assertEqual(parsed_file.modified_filename, b'message.py')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 4)
self.assertEqual(parsed_file.delete_count, 4)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_revision_old_only(self):
"""Testing DiffXParser.parse_diff with file's revision.old and no
revision.new
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=78\n'
b'{\n'
b' "path": "message.py",\n'
b' "revision": {\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
b'#...diff: length=692, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'message.py',
'revision': {
'old': 'abc123',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, b'abc123')
self.assertEqual(parsed_file.modified_filename, b'message.py')
self.assertEqual(parsed_file.modified_file_details, HEAD)
self.assertEqual(parsed_file.insert_count, 4)
self.assertEqual(parsed_file.delete_count, 4)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_revision_new_only(self):
"""Testing DiffXParser.parse_diff with file's revision.new and no
revision.old
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=78\n'
b'{\n'
b' "path": "message.py",\n'
b' "revision": {\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=692, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'message.py',
'revision': {
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, UNKNOWN)
self.assertEqual(parsed_file.modified_filename, b'message.py')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 4)
self.assertEqual(parsed_file.delete_count, 4)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_revision_new_only_op_create(self):
"""Testing DiffXParser.parse_diff with file's revision.new and no
revision.old and op=create
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=98\n'
b'{\n'
b' "op": "create",\n'
b' "path": "message.py",\n'
b' "revision": {\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=692, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'op': 'create',
'path': 'message.py',
'revision': {
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, PRE_CREATION)
self.assertEqual(parsed_file.modified_filename, b'message.py')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 4)
self.assertEqual(parsed_file.delete_count, 4)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_binary_file(self):
"""Testing DiffXParser.parse_diff with binary file"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=104\n'
b'{\n'
b' "path": "message.bin",\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=23, type=binary, line_endings=unix\n'
b'This is a binary file.\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
'type': 'binary',
},
'metadata': {
'path': 'message.bin',
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'This is a binary file.\n')
self.assertEqual(parsed_file.orig_filename, b'message.bin')
self.assertEqual(parsed_file.orig_file_details, b'abc123')
self.assertEqual(parsed_file.modified_filename, b'message.bin')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 0)
self.assertTrue(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_file_op_delete(self):
"""Testing DiffXParser.parse_diff with file op=delete"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=123\n'
b'{\n'
b' "op": "delete",\n'
b' "path": "message.py",\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=29, line_endings=unix\n'
b'@@ -1 +0,0 @@\n'
b'-Goodbye, file\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'op': 'delete',
'path': 'message.py',
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'@@ -1 +0,0 @@\n'
b'-Goodbye, file\n')
self.assertEqual(parsed_file.orig_filename, b'message.py')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'message.py')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 1)
self.assertTrue(parsed_file.deleted)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.moved)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_op_move(self):
"""Testing DiffXParser.parse_diff with file op=move"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=169\n'
b'{\n'
b' "op": "move",\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'metadata': {
'op': 'move',
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(parsed_file.data, b'')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 0)
self.assertTrue(parsed_file.moved)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_op_move_modify(self):
"""Testing DiffXParser.parse_diff with file op=move-modify"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=176\n'
b'{\n'
b' "op": "move-modify",\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=58, line_endings=unix\n'
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'op': 'move-modify',
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 1)
self.assertEqual(parsed_file.delete_count, 1)
self.assertTrue(parsed_file.moved)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.is_symlink)
def test_parse_diff_with_op_copy(self):
"""Testing DiffXParser.parse_diff with file op=copy"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=169\n'
b'{\n'
b' "op": "copy",\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'metadata': {
'op': 'copy',
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(parsed_file.data, b'')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 0)
self.assertEqual(parsed_file.delete_count, 0)
self.assertTrue(parsed_file.copied)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.is_symlink)
self.assertFalse(parsed_file.moved)
def test_parse_diff_with_op_copy_modify(self):
"""Testing DiffXParser.parse_diff with file op=copy-modify"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=176\n'
b'{\n'
b' "op": "copy-modify",\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' }\n'
b'}\n'
b'#...diff: length=58, line_endings=unix\n'
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'op': 'copy-modify',
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 1)
self.assertEqual(parsed_file.delete_count, 1)
self.assertTrue(parsed_file.copied)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.is_symlink)
self.assertFalse(parsed_file.moved)
def test_parse_diff_with_existing_stats(self):
"""Testing DiffXParser.parse_diff with existing file stats"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=225\n'
b'{\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' },\n'
b' "stats": {\n'
b' "deletions": 100,\n'
b' "insertions": 200\n'
b' }\n'
b'}\n'
b'#...diff: length=58, line_endings=unix\n'
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
'stats': {
'deletions': 100,
'insertions': 200,
},
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 200)
self.assertEqual(parsed_file.delete_count, 100)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.is_symlink)
self.assertFalse(parsed_file.moved)
def test_parse_diff_with_type_symlink(self):
"""Testing DiffXParser.parse_diff with file type=symlink"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=212\n'
b'{\n'
b' "path": {\n'
b' "old": "old-name",\n'
b' "new": "new-name"\n'
b' },\n'
b' "revision": {\n'
b' "old": "abc123",\n'
b' "new": "def456"\n'
b' },\n'
b' "type": "symlink",\n'
b' "symlink target": "target/path/"\n'
b'}\n'
b'#...diff: length=58, line_endings=unix\n'
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n'
)
parsed_diff = parser.parse_diff()
self.assertEqual(len(parsed_diff.changes), 1)
self.assertEqual(parsed_diff.extra_data, {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
})
self.assertIs(parsed_diff.parser, parser)
self.assertFalse(parsed_diff.uses_commit_ids_as_revisions)
parsed_change = parsed_diff.changes[0]
self.assertIsNone(parsed_change.commit_id)
self.assertIsNone(parsed_change.parent_commit_id)
self.assertEqual(parsed_change.extra_data, {})
self.assertEqual(len(parsed_change.files), 1)
parsed_file = parsed_change.files[0]
self.assertEqual(parsed_file.extra_data, {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': {
'old': 'old-name',
'new': 'new-name',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
'type': 'symlink',
'symlink target': 'target/path/',
},
'metadata_options': {
'format': 'json',
},
},
})
self.assertEqual(
parsed_file.data,
b'--- old-name\n'
b'+++ new-name\n'
b'@@ -1 +1 @@\n'
b'-old line\n'
b'+new line\n')
self.assertEqual(parsed_file.orig_filename, b'old-name')
self.assertEqual(parsed_file.orig_file_details, 'abc123')
self.assertEqual(parsed_file.modified_filename, b'new-name')
self.assertEqual(parsed_file.modified_file_details, b'def456')
self.assertEqual(parsed_file.insert_count, 1)
self.assertEqual(parsed_file.delete_count, 1)
self.assertTrue(parsed_file.is_symlink)
self.assertFalse(parsed_file.binary)
self.assertFalse(parsed_file.copied)
self.assertFalse(parsed_file.deleted)
self.assertFalse(parsed_file.moved)
def test_parse_diff_with_invalid_diffx(self):
"""Testing DiffXParser.parse_diff with invalid DiffX file contents"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'BLARGH\n'
)
message = (
"Error on line 2: Unexpected or improperly formatted header: %r"
% b'BLARGH'
)
with self.assertRaisesMessage(DiffParserError, message):
parser.parse_diff()
def test_parse_diff_with_path_invalid_type(self):
"""Testing DiffXParser.parse_diff with invalid file path type"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=94\n'
b'{\n'
b' "path": 123,\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
)
message = (
'Unexpected type %s for "path" key in change 1, file 1'
% int
)
with self.assertRaisesMessage(DiffParserError, message):
parser.parse_diff()
def test_parse_diff_with_path_dict_missing_old(self):
"""Testing DiffXParser.parse_diff with file path as dictionary with
missing "old" key
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=120\n'
b'{\n'
b' "path": {\n'
b' "new": "file"\n'
b' },\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
)
message = 'Missing the "path.old" key in change 1, file 1'
with self.assertRaisesMessage(DiffParserError, message):
parser.parse_diff()
def test_parse_diff_with_path_dict_missing_new(self):
"""Testing DiffXParser.parse_diff with file path as dictionary with
missing "new" key
"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=120\n'
b'{\n'
b' "path": {\n'
b' "old": "file"\n'
b' },\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
)
message = 'Missing the "path.new" key in change 1, file 1'
with self.assertRaisesMessage(DiffParserError, message):
parser.parse_diff()
def test_parse_diff_with_revision_invalid_type(self):
"""Testing DiffXParser.parse_diff with invalid file revision type"""
parser = DiffXParser(
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=44\n'
b'{\n'
b' "path": "file",\n'
b' "revision": 123\n'
b'}\n'
)
message = (
'Unexpected type %s for "revision" key in change 1, file 1'
% int
)
with self.assertRaisesMessage(DiffParserError, message):
parser.parse_diff()
@add_fixtures(['test_scmtools'])
def test_raw_diff_with_diffset_simple(self):
"""Testing DiffXParser.raw_diff with DiffSet and simple diff"""
repository = self.create_repository(tool_name='Test')
diffset = self.create_diffset(repository=repository)
diffset.extra_data = {
'diffx': {
'options': {
'encoding': 'utf-8',
'version': '1.0',
},
},
}
diffset.save(update_fields=('extra_data',))
diffcommit = self.create_diffcommit(diffset=diffset,
with_diff=False)
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit,
save=False,
diff=(
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message2.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict '
b'does not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': {
'old': 'message.py',
'new': 'message2.py',
},
'revision': {
'old': 'abc123',
'new': 'def456',
},
},
'metadata_options': {
'format': 'json',
},
},
}
filediff.save()
parser = DiffXParser(b'')
self.assertEqual(
parser.raw_diff(diffset),
b'#diffx: encoding=utf-8, version=1.0\n'
b'#.change:\n'
b'#..file:\n'
b'#...meta: format=json, length=156\n'
b'{\n'
b' "path": {\n'
b' "new": "message2.py",\n'
b' "old": "message.py"\n'
b' },\n'
b' "revision": {\n'
b' "new": "def456",\n'
b' "old": "abc123"\n'
b' }\n'
b'}\n'
b'#...diff: length=693, line_endings=unix\n'
b'--- message.py\t2021-07-02 13:20:12.285875444 -0700\n'
b'+++ message2.py\t2021-07-02 13:21:31.428383873 -0700\n'
b'@@ -164,10 +164,10 @@\n'
b' not isinstance(headers, MultiValueDict)):\n'
b' # Instantiating a MultiValueDict from a dict does '
b'not ensure that\n'
b' # values are lists, so we have to ensure that '
b'ourselves.\n'
b'- headers = MultiValueDict(dict(\n'
b'- (key, [value])\n'
b'- for key, value in six.iteritems(headers)\n'
b'- ))\n'
b'+ headers = MultiValueDict({\n'
b'+ key: [value]\n'
b'+ for key, value in headers.items()\n'
b'+ })\n'
b' \n'
b' if in_reply_to:\n'
b' headers["In-Reply-To"] = in_reply_to\n')
@add_fixtures(['test_scmtools'])
def test_raw_diff_with_diffset_complex(self):
"""Testing DiffXParser.raw_diff with DiffSet and complex diff"""
repository = self.create_repository(tool_name='Test')
diffset = self.create_diffset(repository=repository)
diffset.extra_data = {
'diffx': {
'metadata': {
'key': 'value',
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
'options': {
'encoding': 'utf-16',
'version': '1.0',
},
'preamble': 'This is the file-level preamble.\r\n',
'preamble_options': {
'encoding': 'ascii',
'indent': 2,
'line_endings': 'dos',
'mimetype': 'text/plain',
},
},
}
diffset.save(update_fields=('extra_data',))
# Create DiffCommit #1.
diffcommit = self.create_diffcommit(
diffset=diffset,
commit_id='a25e7b28af5e3184946068f432122c68c1a30b23',
with_diff=False)
diffcommit.extra_data = {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T13:12:06-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:26:31-07:00',
'id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
'parent id': 'b892d5f833474c59d7851ff46a4b0bd919017e97',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': 'test\n',
'preamble_options': {
'indent': 2,
'line_endings': 'unix',
'mimetype': 'text/markdown',
},
},
}
diffcommit.save(update_fields=('extra_data',))
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit,
source_file='file1',
source_revision='c8839177d1a5605aa60abe69db95c84183f0eebe',
dest_file='file1',
dest_detail='eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
save=False,
diff=(
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'file1',
'revision': {
'old': 'c8839177d1a5605aa60abe69db95c84183f0eebe',
'new': 'eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
},
},
'metadata_options': {
'encoding': 'latin1',
'format': 'json',
},
},
}
filediff.save()
# Create DiffCommit #2.
diffcommit = self.create_diffcommit(
diffset=diffset,
commit_id='91127b687f583184144161f432222748c1a30b23',
with_diff=False)
diffcommit.extra_data = {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T19:46:22-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:46:25-07:00',
'id': '91127b687f583184144161f432222748c1a30b23',
'parent id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': (
"Summary of commit #2\n"
"\n"
"Here's a description.\n"
),
'preamble_options': {
'encoding': 'utf-8',
'indent': 4,
'line_endings': 'unix',
},
},
}
diffcommit.save(update_fields=('extra_data',))
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit,
source_file='file2',
source_revision='281bac2b704617e807850e07e54bae3469f6a2e7',
dest_file='file2',
dest_detail='389cc6b7ae5a659383eab5dfc253764eccf84732',
save=False,
diff=(
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'encoding': 'utf-16',
'line_endings': 'unix',
},
'metadata': {
'path': 'file2',
'revision': {
'old': '281bac2b704617e807850e07e54bae3469f6a2e7',
'new': '389cc6b7ae5a659383eab5dfc253764eccf84732',
},
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
},
'encoding': 'utf-16',
}
filediff.save()
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit,
source_file='file3',
source_revision='be089b7197974703c83682088a068bef3422c6c2',
dest_file='file3',
dest_detail='0d4a0fb8d62b762a26e13591d06d93d79d61102f',
save=False,
diff=(
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'dos',
},
'metadata': {
'path': 'file3',
'revision': {
'old': 'be089b7197974703c83682088a068bef3422c6c2',
'new': '0d4a0fb8d62b762a26e13591d06d93d79d61102f',
},
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
},
}
filediff.save()
parser = DiffXParser(b'')
self.assertEqual(
parser.raw_diff(diffset),
b'#diffx: encoding=utf-16, version=1.0\n'
b'#.preamble: encoding=ascii, indent=2, length=36,'
b' line_endings=dos, mimetype=text/plain\n'
b' This is the file-level preamble.\r\n'
b'#.meta: encoding=utf-32, format=json, length=96\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"'
b'\x00\x00\x00k\x00\x00\x00e\x00\x00\x00y\x00\x00\x00"'
b'\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00v'
b'\x00\x00\x00a\x00\x00\x00l\x00\x00\x00u\x00\x00\x00e'
b'\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00'
b'#.change:\n'
b'#..preamble: indent=2, length=14, line_endings=unix, '
b'mimetype=text/markdown\n'
b' \xff\xfet\x00e\x00s\x00t\x00\n\x00'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T13:12:06-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:26:31-07:00",\n'
b' "id": "a25e7b28af5e3184946068f432122c68c1a30b23",\n'
b' "parent id": "b892d5f833474c59d7851ff46a4b0bd919017e97"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=latin1, format=json, length=166\n'
b'{\n'
b' "path": "file1",\n'
b' "revision": {\n'
b' "new": "eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef",\n'
b' "old": "c8839177d1a5605aa60abe69db95c84183f0eebe"\n'
b' }\n'
b'}\n'
b'#...diff: length=60, line_endings=unix\n'
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
b'#.change:\n'
b'#..preamble: encoding=utf-8, indent=4, length=56, '
b'line_endings=unix\n'
b' Summary of commit #2\n'
b' \n'
b' Here\'s a description.\n'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T19:46:22-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:46:25-07:00",\n'
b' "id": "91127b687f583184144161f432222748c1a30b23",\n'
b' "parent id": "a25e7b28af5e3184946068f432122c68c1a30b23"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=utf-32, format=json, length=668\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'p\x00\x00\x00a\x00\x00\x00t\x00\x00\x00h\x00\x00\x00'
b'"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'f\x00\x00\x00i\x00\x00\x00l\x00\x00\x00e\x00\x00\x00'
b'2\x00\x00\x00"\x00\x00\x00,\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x00r\x00\x00\x00e\x00\x00\x00v\x00\x00\x00'
b'i\x00\x00\x00s\x00\x00\x00i\x00\x00\x00o\x00\x00\x00'
b'n\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00"\x00\x00\x00n\x00\x00\x00'
b'e\x00\x00\x00w\x00\x00\x00"\x00\x00\x00:\x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x003\x00\x00\x008\x00\x00\x00'
b'9\x00\x00\x00c\x00\x00\x00c\x00\x00\x006\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x00a\x00\x00\x00e\x00\x00\x00'
b'5\x00\x00\x00a\x00\x00\x006\x00\x00\x005\x00\x00\x00'
b'9\x00\x00\x003\x00\x00\x008\x00\x00\x003\x00\x00\x00'
b'e\x00\x00\x00a\x00\x00\x00b\x00\x00\x005\x00\x00\x00'
b'd\x00\x00\x00f\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'5\x00\x00\x003\x00\x00\x007\x00\x00\x006\x00\x00\x00'
b'4\x00\x00\x00e\x00\x00\x00c\x00\x00\x00c\x00\x00\x00'
b'f\x00\x00\x008\x00\x00\x004\x00\x00\x007\x00\x00\x00'
b'3\x00\x00\x002\x00\x00\x00"\x00\x00\x00,\x00\x00\x00'
b'\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x00o\x00\x00\x00l\x00\x00\x00'
b'd\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x002\x00\x00\x008\x00\x00\x001\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x000\x00\x00\x004\x00\x00\x00'
b'6\x00\x00\x001\x00\x00\x007\x00\x00\x00e\x00\x00\x00'
b'8\x00\x00\x000\x00\x00\x007\x00\x00\x008\x00\x00\x00'
b'5\x00\x00\x000\x00\x00\x00e\x00\x00\x000\x00\x00\x00'
b'7\x00\x00\x00e\x00\x00\x005\x00\x00\x004\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00e\x00\x00\x003\x00\x00\x00'
b'4\x00\x00\x006\x00\x00\x009\x00\x00\x00f\x00\x00\x00'
b'6\x00\x00\x00a\x00\x00\x002\x00\x00\x00e\x00\x00\x00'
b'7\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00}\x00\x00\x00\n\x00\x00\x00'
b'#...diff: encoding=utf-16, length=22, line_endings=unix\n'
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
b'#..file:\n'
b'#...meta: encoding=utf-8, format=json, length=166\n'
b'{\n'
b' "path": "file3",\n'
b' "revision": {\n'
b' "new": "0d4a0fb8d62b762a26e13591d06d93d79d61102f",\n'
b' "old": "be089b7197974703c83682088a068bef3422c6c2"\n'
b' }\n'
b'}\n'
b'#...diff: length=87, line_endings=dos\n'
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n')
@add_fixtures(['test_scmtools'])
def test_raw_diff_with_diffset_no_diffcommits(self):
"""Testing DiffXParser.raw_diff with DiffSet and no DiffCommits"""
repository = self.create_repository(tool_name='Test')
diffset = self.create_diffset(repository=repository)
diffset.extra_data = {
'diffx': {
'metadata': {
'key': 'value',
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
'options': {
'encoding': 'utf-16',
'version': '1.0',
},
'preamble': 'This is the file-level preamble.\r\n',
'preamble_options': {
'encoding': 'ascii',
'indent': 2,
'line_endings': 'dos',
'mimetype': 'text/plain',
},
},
'change_extra_data': {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T13:12:06-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:26:31-07:00',
'id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
'parent id':
'b892d5f833474c59d7851ff46a4b0bd919017e97',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': 'test\n',
'preamble_options': {
'indent': 2,
'line_endings': 'unix',
'mimetype': 'text/markdown',
},
},
},
}
diffset.save(update_fields=('extra_data',))
filediff = self.create_filediff(
diffset=diffset,
source_file='file1',
source_revision='c8839177d1a5605aa60abe69db95c84183f0eebe',
dest_file='file1',
dest_detail='eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
save=False,
diff=(
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'file1',
'revision': {
'old': 'c8839177d1a5605aa60abe69db95c84183f0eebe',
'new': 'eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
},
},
'metadata_options': {
'encoding': 'latin1',
'format': 'json',
},
},
}
filediff.save()
filediff = self.create_filediff(
diffset=diffset,
source_file='file2',
source_revision='281bac2b704617e807850e07e54bae3469f6a2e7',
dest_file='file2',
dest_detail='389cc6b7ae5a659383eab5dfc253764eccf84732',
save=False,
diff=(
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'encoding': 'utf-16',
'line_endings': 'unix',
},
'metadata': {
'path': 'file2',
'revision': {
'old': '281bac2b704617e807850e07e54bae3469f6a2e7',
'new': '389cc6b7ae5a659383eab5dfc253764eccf84732',
},
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
},
'encoding': 'utf-16',
}
filediff.save()
parser = DiffXParser(b'')
self.assertEqual(
parser.raw_diff(diffset),
b'#diffx: encoding=utf-16, version=1.0\n'
b'#.preamble: encoding=ascii, indent=2, length=36,'
b' line_endings=dos, mimetype=text/plain\n'
b' This is the file-level preamble.\r\n'
b'#.meta: encoding=utf-32, format=json, length=96\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"'
b'\x00\x00\x00k\x00\x00\x00e\x00\x00\x00y\x00\x00\x00"'
b'\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00v'
b'\x00\x00\x00a\x00\x00\x00l\x00\x00\x00u\x00\x00\x00e'
b'\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00'
b'#.change:\n'
b'#..preamble: indent=2, length=14, line_endings=unix, '
b'mimetype=text/markdown\n'
b' \xff\xfet\x00e\x00s\x00t\x00\n\x00'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T13:12:06-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:26:31-07:00",\n'
b' "id": "a25e7b28af5e3184946068f432122c68c1a30b23",\n'
b' "parent id": "b892d5f833474c59d7851ff46a4b0bd919017e97"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=latin1, format=json, length=166\n'
b'{\n'
b' "path": "file1",\n'
b' "revision": {\n'
b' "new": "eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef",\n'
b' "old": "c8839177d1a5605aa60abe69db95c84183f0eebe"\n'
b' }\n'
b'}\n'
b'#...diff: length=60, line_endings=unix\n'
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
b'#..file:\n'
b'#...meta: encoding=utf-32, format=json, length=668\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'p\x00\x00\x00a\x00\x00\x00t\x00\x00\x00h\x00\x00\x00'
b'"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'f\x00\x00\x00i\x00\x00\x00l\x00\x00\x00e\x00\x00\x00'
b'2\x00\x00\x00"\x00\x00\x00,\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x00r\x00\x00\x00e\x00\x00\x00v\x00\x00\x00'
b'i\x00\x00\x00s\x00\x00\x00i\x00\x00\x00o\x00\x00\x00'
b'n\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00"\x00\x00\x00n\x00\x00\x00'
b'e\x00\x00\x00w\x00\x00\x00"\x00\x00\x00:\x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x003\x00\x00\x008\x00\x00\x00'
b'9\x00\x00\x00c\x00\x00\x00c\x00\x00\x006\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x00a\x00\x00\x00e\x00\x00\x00'
b'5\x00\x00\x00a\x00\x00\x006\x00\x00\x005\x00\x00\x00'
b'9\x00\x00\x003\x00\x00\x008\x00\x00\x003\x00\x00\x00'
b'e\x00\x00\x00a\x00\x00\x00b\x00\x00\x005\x00\x00\x00'
b'd\x00\x00\x00f\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'5\x00\x00\x003\x00\x00\x007\x00\x00\x006\x00\x00\x00'
b'4\x00\x00\x00e\x00\x00\x00c\x00\x00\x00c\x00\x00\x00'
b'f\x00\x00\x008\x00\x00\x004\x00\x00\x007\x00\x00\x00'
b'3\x00\x00\x002\x00\x00\x00"\x00\x00\x00,\x00\x00\x00'
b'\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x00o\x00\x00\x00l\x00\x00\x00'
b'd\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x002\x00\x00\x008\x00\x00\x001\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x000\x00\x00\x004\x00\x00\x00'
b'6\x00\x00\x001\x00\x00\x007\x00\x00\x00e\x00\x00\x00'
b'8\x00\x00\x000\x00\x00\x007\x00\x00\x008\x00\x00\x00'
b'5\x00\x00\x000\x00\x00\x00e\x00\x00\x000\x00\x00\x00'
b'7\x00\x00\x00e\x00\x00\x005\x00\x00\x004\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00e\x00\x00\x003\x00\x00\x00'
b'4\x00\x00\x006\x00\x00\x009\x00\x00\x00f\x00\x00\x00'
b'6\x00\x00\x00a\x00\x00\x002\x00\x00\x00e\x00\x00\x00'
b'7\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00}\x00\x00\x00\n\x00\x00\x00'
b'#...diff: encoding=utf-16, length=22, line_endings=unix\n'
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00')
@add_fixtures(['test_scmtools'])
def test_raw_diff_with_diffcommit(self):
"""Testing DiffXParser.raw_diff with DiffCommit"""
repository = self.create_repository(tool_name='Test')
diffset = self.create_diffset(repository=repository)
diffset.extra_data = {
'diffx': {
'metadata': {
'key': 'value',
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
'options': {
'encoding': 'utf-16',
'version': '1.0',
},
'preamble': 'This is the file-level preamble.\r\n',
'preamble_options': {
'encoding': 'ascii',
'indent': 2,
'line_endings': 'dos',
'mimetype': 'text/plain',
},
},
}
diffset.save(update_fields=('extra_data',))
# Create DiffCommit #1.
diffcommit1 = self.create_diffcommit(
diffset=diffset,
commit_id='a25e7b28af5e3184946068f432122c68c1a30b23',
with_diff=False)
diffcommit1.extra_data = {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T13:12:06-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:26:31-07:00',
'id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
'parent id': 'b892d5f833474c59d7851ff46a4b0bd919017e97',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': 'test\n',
'preamble_options': {
'indent': 2,
'line_endings': 'unix',
'mimetype': 'text/markdown',
},
},
}
diffcommit1.save(update_fields=('extra_data',))
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit1,
source_file='file1',
source_revision='c8839177d1a5605aa60abe69db95c84183f0eebe',
dest_file='file1',
dest_detail='eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
save=False,
diff=(
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'unix',
},
'metadata': {
'path': 'file1',
'revision': {
'old': 'c8839177d1a5605aa60abe69db95c84183f0eebe',
'new': 'eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef',
},
},
'metadata_options': {
'encoding': 'latin1',
'format': 'json',
},
},
}
filediff.save()
# Create DiffCommit #2. This one won't be used.
diffcommit2 = self.create_diffcommit(
diffset=diffset,
commit_id='91127b687f583184144161f432222748c1a30b23',
with_diff=False)
diffcommit2.extra_data = {
'diffx': {
'metadata': {
'author': 'Test User <test@example.com>',
'author date': '2021-06-01T19:46:22-07:00',
'committer': 'Test User <test@example.com>',
'date': '2021-06-02T19:46:25-07:00',
'id': '91127b687f583184144161f432222748c1a30b23',
'parent id': 'a25e7b28af5e3184946068f432122c68c1a30b23',
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
'preamble': (
"Summary of commit #2\n"
"\n"
"Here's a description.\n"
),
'preamble_options': {
'encoding': 'utf-8',
'indent': 4,
'line_endings': 'unix',
},
},
}
diffcommit2.save(update_fields=('extra_data',))
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit2,
source_file='file2',
source_revision='281bac2b704617e807850e07e54bae3469f6a2e7',
dest_file='file2',
dest_detail='389cc6b7ae5a659383eab5dfc253764eccf84732',
save=False,
diff=(
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'encoding': 'utf-16',
'line_endings': 'unix',
},
'metadata': {
'path': 'file2',
'revision': {
'old': '281bac2b704617e807850e07e54bae3469f6a2e7',
'new': '389cc6b7ae5a659383eab5dfc253764eccf84732',
},
},
'metadata_options': {
'encoding': 'utf-32',
'format': 'json',
},
},
'encoding': 'utf-16',
}
filediff.save()
filediff = self.create_filediff(
diffset=diffset,
commit=diffcommit2,
source_file='file3',
source_revision='be089b7197974703c83682088a068bef3422c6c2',
dest_file='file3',
dest_detail='0d4a0fb8d62b762a26e13591d06d93d79d61102f',
save=False,
diff=(
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n'
))
filediff.extra_data = {
'diffx': {
'diff_options': {
'line_endings': 'dos',
},
'metadata': {
'path': 'file3',
'revision': {
'old': 'be089b7197974703c83682088a068bef3422c6c2',
'new': '0d4a0fb8d62b762a26e13591d06d93d79d61102f',
},
},
'metadata_options': {
'encoding': 'utf-8',
'format': 'json',
},
},
}
filediff.save()
parser = DiffXParser(b'')
self.assertEqual(
parser.raw_diff(diffcommit1),
b'#diffx: encoding=utf-16, version=1.0\n'
b'#.change:\n'
b'#..preamble: indent=2, length=14, line_endings=unix, '
b'mimetype=text/markdown\n'
b' \xff\xfet\x00e\x00s\x00t\x00\n\x00'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T13:12:06-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:26:31-07:00",\n'
b' "id": "a25e7b28af5e3184946068f432122c68c1a30b23",\n'
b' "parent id": "b892d5f833474c59d7851ff46a4b0bd919017e97"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=latin1, format=json, length=166\n'
b'{\n'
b' "path": "file1",\n'
b' "revision": {\n'
b' "new": "eed8df7f1400a95cdf5a87ddb947e7d9c5a19cef",\n'
b' "old": "c8839177d1a5605aa60abe69db95c84183f0eebe"\n'
b' }\n'
b'}\n'
b'#...diff: length=60, line_endings=unix\n'
b'--- /file1\n'
b'+++ /file1\n'
b'@@ -498,7 +498,7 @@\n'
b' ... diff content\n')
self.assertEqual(
parser.raw_diff(diffcommit2),
b'#diffx: encoding=utf-16, version=1.0\n'
b'#.change:\n'
b'#..preamble: encoding=utf-8, indent=4, length=56, '
b'line_endings=unix\n'
b' Summary of commit #2\n'
b' \n'
b' Here\'s a description.\n'
b'#..meta: encoding=utf-8, format=json, length=302\n'
b'{\n'
b' "author": "Test User <test@example.com>",\n'
b' "author date": "2021-06-01T19:46:22-07:00",\n'
b' "committer": "Test User <test@example.com>",\n'
b' "date": "2021-06-02T19:46:25-07:00",\n'
b' "id": "91127b687f583184144161f432222748c1a30b23",\n'
b' "parent id": "a25e7b28af5e3184946068f432122c68c1a30b23"\n'
b'}\n'
b'#..file:\n'
b'#...meta: encoding=utf-32, format=json, length=668\n'
b'\xff\xfe\x00\x00{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'p\x00\x00\x00a\x00\x00\x00t\x00\x00\x00h\x00\x00\x00'
b'"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00"\x00\x00\x00'
b'f\x00\x00\x00i\x00\x00\x00l\x00\x00\x00e\x00\x00\x00'
b'2\x00\x00\x00"\x00\x00\x00,\x00\x00\x00\n\x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x00r\x00\x00\x00e\x00\x00\x00v\x00\x00\x00'
b'i\x00\x00\x00s\x00\x00\x00i\x00\x00\x00o\x00\x00\x00'
b'n\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'{\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00"\x00\x00\x00n\x00\x00\x00'
b'e\x00\x00\x00w\x00\x00\x00"\x00\x00\x00:\x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x003\x00\x00\x008\x00\x00\x00'
b'9\x00\x00\x00c\x00\x00\x00c\x00\x00\x006\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x00a\x00\x00\x00e\x00\x00\x00'
b'5\x00\x00\x00a\x00\x00\x006\x00\x00\x005\x00\x00\x00'
b'9\x00\x00\x003\x00\x00\x008\x00\x00\x003\x00\x00\x00'
b'e\x00\x00\x00a\x00\x00\x00b\x00\x00\x005\x00\x00\x00'
b'd\x00\x00\x00f\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'5\x00\x00\x003\x00\x00\x007\x00\x00\x006\x00\x00\x00'
b'4\x00\x00\x00e\x00\x00\x00c\x00\x00\x00c\x00\x00\x00'
b'f\x00\x00\x008\x00\x00\x004\x00\x00\x007\x00\x00\x00'
b'3\x00\x00\x002\x00\x00\x00"\x00\x00\x00,\x00\x00\x00'
b'\n\x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00"\x00\x00\x00o\x00\x00\x00l\x00\x00\x00'
b'd\x00\x00\x00"\x00\x00\x00:\x00\x00\x00 \x00\x00\x00'
b'"\x00\x00\x002\x00\x00\x008\x00\x00\x001\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00c\x00\x00\x002\x00\x00\x00'
b'b\x00\x00\x007\x00\x00\x000\x00\x00\x004\x00\x00\x00'
b'6\x00\x00\x001\x00\x00\x007\x00\x00\x00e\x00\x00\x00'
b'8\x00\x00\x000\x00\x00\x007\x00\x00\x008\x00\x00\x00'
b'5\x00\x00\x000\x00\x00\x00e\x00\x00\x000\x00\x00\x00'
b'7\x00\x00\x00e\x00\x00\x005\x00\x00\x004\x00\x00\x00'
b'b\x00\x00\x00a\x00\x00\x00e\x00\x00\x003\x00\x00\x00'
b'4\x00\x00\x006\x00\x00\x009\x00\x00\x00f\x00\x00\x00'
b'6\x00\x00\x00a\x00\x00\x002\x00\x00\x00e\x00\x00\x00'
b'7\x00\x00\x00"\x00\x00\x00\n\x00\x00\x00 \x00\x00\x00'
b' \x00\x00\x00 \x00\x00\x00 \x00\x00\x00}\x00\x00\x00'
b'\n\x00\x00\x00}\x00\x00\x00\n\x00\x00\x00'
b'#...diff: encoding=utf-16, length=22, line_endings=unix\n'
b'\xff\xfe \x00.\x00.\x00.\x00 \x00d\x00i\x00f\x00f\x00\n\x00'
b'#..file:\n'
b'#...meta: encoding=utf-8, format=json, length=166\n'
b'{\n'
b' "path": "file3",\n'
b' "revision": {\n'
b' "new": "0d4a0fb8d62b762a26e13591d06d93d79d61102f",\n'
b' "old": "be089b7197974703c83682088a068bef3422c6c2"\n'
b' }\n'
b'}\n'
b'#...diff: length=87, line_endings=dos\n'
b'--- a/file3\r\n'
b'+++ b/file3\r\n'
b'@@ -258,1 +258,2 @@\r\n'
b'- old line\r\n'
b'+ new line 1\r\n'
b'+ new line 2\r\n')
| 40.958915
| 78
| 0.475349
| 11,569
| 105,674
| 4.241335
| 0.027055
| 0.167767
| 0.151687
| 0.145512
| 0.970979
| 0.965966
| 0.95816
| 0.945932
| 0.925471
| 0.919581
| 0
| 0.1474
| 0.379829
| 105,674
| 2,579
| 79
| 40.974796
| 0.601318
| 0.016589
| 0
| 0.845676
| 0
| 0.071576
| 0.399689
| 0.143615
| 0
| 0
| 0
| 0
| 0.138188
| 1
| 0.009516
| false
| 0
| 0.002069
| 0
| 0.011998
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4c34e2164219f530831ea402a522fcc124391a19
| 60,092
|
py
|
Python
|
cons3rt/api/storage_api.py
|
cons3rt/cons3rt-python-sdk
|
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
|
[
"RSA-MD"
] | null | null | null |
cons3rt/api/storage_api.py
|
cons3rt/cons3rt-python-sdk
|
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
|
[
"RSA-MD"
] | null | null | null |
cons3rt/api/storage_api.py
|
cons3rt/cons3rt-python-sdk
|
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
|
[
"RSA-MD"
] | null | null | null |
# coding: utf-8
from __future__ import absolute_import
"""
Copyright 2020 Jackpine Technologies Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
"""
cons3rt - Copyright Jackpine Technologies Corp.
NOTE: This file is auto-generated. Do not edit the file manually.
"""
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from cons3rt.api_client import ApiClient
from cons3rt.exceptions import (
ApiTypeError,
ApiValueError
)
__author__ = 'Jackpine Technologies Corporation'
__copyright__ = 'Copyright 2020, Jackpine Technologies Corporation'
__license__ = 'Apache 2.0',
__version__ = '1.0.0'
__maintainer__ = 'API Support'
__email__ = 'support@cons3rt.com'
class StorageApi(object):
"""NOTE: This class is auto-generated. Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_bucket(self, bucket, **kwargs): # noqa: E501
"""Create Storage Bucket # noqa: E501
Creates a storage bucket as defined by the user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_bucket(bucket, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param Bucket bucket: The bucket creation information (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.create_bucket_with_http_info(bucket, **kwargs) # noqa: E501
def create_bucket_with_http_info(self, bucket, **kwargs): # noqa: E501
"""Create Storage Bucket # noqa: E501
Creates a storage bucket as defined by the user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_bucket_with_http_info(bucket, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param Bucket bucket: The bucket creation information (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(str, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['bucket'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method create_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'bucket' is set
if self.api_client.client_side_validation and ('bucket' not in local_var_params or # noqa: E501
local_var_params['bucket'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `bucket` when calling `create_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'bucket' in local_var_params:
body_params = local_var_params['bucket']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'application/xml']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_bucket(self, id, **kwargs): # noqa: E501
"""Delete Storage Buckets # noqa: E501
Deletes an existing storage bucket by identifier # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_bucket(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: bool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.delete_bucket_with_http_info(id, **kwargs) # noqa: E501
def delete_bucket_with_http_info(self, id, **kwargs): # noqa: E501
"""Delete Storage Buckets # noqa: E501
Deletes an existing storage bucket by identifier # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_bucket_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(bool, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `delete_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='bool', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def download_file_from_bucket(self, id, file_name, **kwargs): # noqa: E501
"""Download File From Bucket # noqa: E501
Downloads the Asset in the form of a zip file. Download is only available for importable Asset types (i.e. Software, Test, and Container).<br> <br> Based on the background flag, the download will be done in the foreground (false), background (true), or in a location as determined by Asset size (default).<br> <br> If the background flag is set to true (or if no value for the background flag is provided), and the Asset is larger than the site threshold, the Asset will be prepared for download in the background.In that case, an email with a link to retrieve the Asset will be sent.If the Asset is larger than download threshold, it will be prepared for download in the background, and an email with a download link will be sent. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.download_file_from_bucket(id, file_name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param str file_name: The filename within the bucket to download (required)
:param bool background: Force the download to happen in the background
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: bool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.download_file_from_bucket_with_http_info(id, file_name, **kwargs) # noqa: E501
def download_file_from_bucket_with_http_info(self, id, file_name, **kwargs): # noqa: E501
"""Download File From Bucket # noqa: E501
Downloads the Asset in the form of a zip file. Download is only available for importable Asset types (i.e. Software, Test, and Container).<br> <br> Based on the background flag, the download will be done in the foreground (false), background (true), or in a location as determined by Asset size (default).<br> <br> If the background flag is set to true (or if no value for the background flag is provided), and the Asset is larger than the site threshold, the Asset will be prepared for download in the background.In that case, an email with a link to retrieve the Asset will be sent.If the Asset is larger than download threshold, it will be prepared for download in the background, and an email with a download link will be sent. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.download_file_from_bucket_with_http_info(id, file_name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param str file_name: The filename within the bucket to download (required)
:param bool background: Force the download to happen in the background
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(bool, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id', 'file_name', 'background'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method download_file_from_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `download_file_from_bucket`") # noqa: E501
# verify the required parameter 'file_name' is set
if self.api_client.client_side_validation and ('file_name' not in local_var_params or # noqa: E501
local_var_params['file_name'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `file_name` when calling `download_file_from_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
if 'file_name' in local_var_params and local_var_params['file_name'] is not None: # noqa: E501
query_params.append(('fileName', local_var_params['file_name'])) # noqa: E501
if 'background' in local_var_params and local_var_params['background'] is not None: # noqa: E501
query_params.append(('background', local_var_params['background'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}/download', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='bool', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_bucket(self, id, **kwargs): # noqa: E501
"""Retrieve Storage Buckets # noqa: E501
returns a storage bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_bucket(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Bucket
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_bucket_with_http_info(id, **kwargs) # noqa: E501
def get_bucket_with_http_info(self, id, **kwargs): # noqa: E501
"""Retrieve Storage Buckets # noqa: E501
returns a storage bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_bucket_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(Bucket, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `get_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Bucket', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_bucket_listing(self, id, **kwargs): # noqa: E501
"""List Bucket Contents # noqa: E501
lists all files contents for an existing bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_bucket_listing(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_bucket_listing_with_http_info(id, **kwargs) # noqa: E501
def get_bucket_listing_with_http_info(self, id, **kwargs): # noqa: E501
"""List Bucket Contents # noqa: E501
lists all files contents for an existing bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_bucket_listing_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(str, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_bucket_listing" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `get_bucket_listing`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}/listing', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def list_available_clouds_for_buckets(self, **kwargs): # noqa: E501
"""List Clouds Available For Bucket Creation # noqa: E501
returns a collection of clouds accessible to the user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_available_clouds_for_buckets(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int maxresults: Maximum number of results to return
:param int page: Requested page number
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: list[MinimalCloud]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_available_clouds_for_buckets_with_http_info(**kwargs) # noqa: E501
def list_available_clouds_for_buckets_with_http_info(self, **kwargs): # noqa: E501
"""List Clouds Available For Bucket Creation # noqa: E501
returns a collection of clouds accessible to the user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_available_clouds_for_buckets_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int maxresults: Maximum number of results to return
:param int page: Requested page number
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(list[MinimalCloud], status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['maxresults', 'page'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method list_available_clouds_for_buckets" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'maxresults' in local_var_params and local_var_params['maxresults'] is not None: # noqa: E501
query_params.append(('maxresults', local_var_params['maxresults'])) # noqa: E501
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
query_params.append(('page', local_var_params['page'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/clouds', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[MinimalCloud]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def list_buckets(self, **kwargs): # noqa: E501
"""List Storage Buckets # noqa: E501
returns a collection of storage buckets # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_buckets(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str cloud: ID of the cloud
:param bool project: Include project buckets
:param int maxresults: Maximum number of results to return
:param int page: Requested page number
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: list[Bucket]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_buckets_with_http_info(**kwargs) # noqa: E501
def list_buckets_with_http_info(self, **kwargs): # noqa: E501
"""List Storage Buckets # noqa: E501
returns a collection of storage buckets # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_buckets_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str cloud: ID of the cloud
:param bool project: Include project buckets
:param int maxresults: Maximum number of results to return
:param int page: Requested page number
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(list[Bucket], status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['cloud', 'project', 'maxresults', 'page'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method list_buckets" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'cloud' in local_var_params and local_var_params['cloud'] is not None: # noqa: E501
query_params.append(('cloud', local_var_params['cloud'])) # noqa: E501
if 'project' in local_var_params and local_var_params['project'] is not None: # noqa: E501
query_params.append(('project', local_var_params['project'])) # noqa: E501
if 'maxresults' in local_var_params and local_var_params['maxresults'] is not None: # noqa: E501
query_params.append(('maxresults', local_var_params['maxresults'])) # noqa: E501
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
query_params.append(('page', local_var_params['page'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Bucket]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def submit_bucket_resource_to_submission_service(self, id, submission_service_id, file_name, **kwargs): # noqa: E501
"""Submit Bucket Resource to the Project's Submission Service # noqa: E501
Publishes a resource in the specified bucket to the requested Submission Service.<br> <br> The requested Project Submission Service will act as a template. Credentials provided when submitting to the Service will override the Project Submission Service's credentials. However, neither the Host nor Port of the Service can be overridden.<br> <br> If the Service's endpoint is an SFTP Host, the Submission will only be able to override the remote path (i.e. if one has not already been defined in this default Submission Service).<br> # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.submit_bucket_resource_to_submission_service(id, submission_service_id, file_name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of the bucket to publish a resource from (required)
:param str submission_service_id: ID of project submission service (required)
:param str file_name: The filename within the bucket to download (required)
:param InputSubmissionServiceForAssetSubmission input_submission_service_for_asset_submission: Submission service override values
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: bool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.submit_bucket_resource_to_submission_service_with_http_info(id, submission_service_id, file_name, **kwargs) # noqa: E501
def submit_bucket_resource_to_submission_service_with_http_info(self, id, submission_service_id, file_name, **kwargs): # noqa: E501
"""Submit Bucket Resource to the Project's Submission Service # noqa: E501
Publishes a resource in the specified bucket to the requested Submission Service.<br> <br> The requested Project Submission Service will act as a template. Credentials provided when submitting to the Service will override the Project Submission Service's credentials. However, neither the Host nor Port of the Service can be overridden.<br> <br> If the Service's endpoint is an SFTP Host, the Submission will only be able to override the remote path (i.e. if one has not already been defined in this default Submission Service).<br> # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.submit_bucket_resource_to_submission_service_with_http_info(id, submission_service_id, file_name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of the bucket to publish a resource from (required)
:param str submission_service_id: ID of project submission service (required)
:param str file_name: The filename within the bucket to download (required)
:param InputSubmissionServiceForAssetSubmission input_submission_service_for_asset_submission: Submission service override values
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(bool, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id', 'submission_service_id', 'file_name', 'input_submission_service_for_asset_submission'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method submit_bucket_resource_to_submission_service" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `submit_bucket_resource_to_submission_service`") # noqa: E501
# verify the required parameter 'submission_service_id' is set
if self.api_client.client_side_validation and ('submission_service_id' not in local_var_params or # noqa: E501
local_var_params['submission_service_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `submission_service_id` when calling `submit_bucket_resource_to_submission_service`") # noqa: E501
# verify the required parameter 'file_name' is set
if self.api_client.client_side_validation and ('file_name' not in local_var_params or # noqa: E501
local_var_params['file_name'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `file_name` when calling `submit_bucket_resource_to_submission_service`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
if 'submission_service_id' in local_var_params:
path_params['submission_service_id'] = local_var_params['submission_service_id'] # noqa: E501
query_params = []
if 'file_name' in local_var_params and local_var_params['file_name'] is not None: # noqa: E501
query_params.append(('fileName', local_var_params['file_name'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'input_submission_service_for_asset_submission' in local_var_params:
body_params = local_var_params['input_submission_service_for_asset_submission']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'application/xml']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}/submit/{submission_service_id}', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='bool', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def update_bucket(self, id, bucket, **kwargs): # noqa: E501
"""Update Storage Buckets # noqa: E501
updates the configuration information for an existing bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_bucket(id, bucket, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param Bucket bucket: The bucket creation information (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Bucket
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_bucket_with_http_info(id, bucket, **kwargs) # noqa: E501
def update_bucket_with_http_info(self, id, bucket, **kwargs): # noqa: E501
"""Update Storage Buckets # noqa: E501
updates the configuration information for an existing bucket # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_bucket_with_http_info(id, bucket, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param Bucket bucket: The bucket creation information (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(Bucket, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id', 'bucket'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method update_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `update_bucket`") # noqa: E501
# verify the required parameter 'bucket' is set
if self.api_client.client_side_validation and ('bucket' not in local_var_params or # noqa: E501
local_var_params['bucket'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `bucket` when calling `update_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'bucket' in local_var_params:
body_params = local_var_params['bucket']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'application/xml']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Bucket', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def upload_file_to_bucket(self, id, **kwargs): # noqa: E501
"""Upload File to Bucket # noqa: E501
Uploads a file to a bucket.<br> <br> File must be submitted as multipart-form data, with a file element named \"file\" and a filename field <br> <br> A \"Connection: Keep-Alive\" configuration may be needed for larger sized files, due to the time it takes to copy to the server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.upload_file_to_bucket(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param list[file] file:
:param str filename:
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: int
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.upload_file_to_bucket_with_http_info(id, **kwargs) # noqa: E501
def upload_file_to_bucket_with_http_info(self, id, **kwargs): # noqa: E501
"""Upload File to Bucket # noqa: E501
Uploads a file to a bucket.<br> <br> File must be submitted as multipart-form data, with a file element named \"file\" and a filename field <br> <br> A \"Connection: Keep-Alive\" configuration may be needed for larger sized files, due to the time it takes to copy to the server. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.upload_file_to_bucket_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: ID of bucket (required)
:param list[file] file:
:param str filename:
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(int, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id', 'file', 'filename'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method upload_file_to_bucket" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
local_var_params['id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `id` when calling `upload_file_to_bucket`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'file' in local_var_params:
local_var_files['file'] = local_var_params['file'] # noqa: E501
collection_formats['file'] = 'csv' # noqa: E501
if 'filename' in local_var_params:
form_params.append(('filename', local_var_params['filename'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['multipart/form-data']) # noqa: E501
# Authentication setting
auth_settings = ['APIKeyHeader', 'Username'] # noqa: E501
return self.api_client.call_api(
'/api/buckets/{id}', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='int', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
| 49.745033
| 753
| 0.616139
| 7,065
| 60,092
| 5.012314
| 0.046143
| 0.043601
| 0.062069
| 0.025415
| 0.957105
| 0.951175
| 0.938665
| 0.930391
| 0.921947
| 0.912205
| 0
| 0.015091
| 0.309675
| 60,092
| 1,207
| 754
| 49.786247
| 0.83856
| 0.469513
| 0
| 0.77881
| 0
| 0
| 0.184428
| 0.050058
| 0
| 0
| 0
| 0
| 0
| 1
| 0.039033
| false
| 0
| 0.009294
| 0
| 0.087361
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4c352194d8992689e05d26add42f46c8b0048cbe
| 772
|
py
|
Python
|
122/anagram.py
|
alehpineda/bitesofpy
|
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
|
[
"MIT"
] | null | null | null |
122/anagram.py
|
alehpineda/bitesofpy
|
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
|
[
"MIT"
] | 2
|
2020-09-24T11:25:29.000Z
|
2021-06-25T15:43:35.000Z
|
122/anagram.py
|
alehpineda/bitesofpy
|
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
|
[
"MIT"
] | null | null | null |
from collections import Counter
def is_anagram(word1, word2):
"""Receives two words and returns True/False (boolean) if word2 is
an anagram of word1, ignore case and spacing.
About anagrams: https://en.wikipedia.org/wiki/Anagram"""
word1, word2 = _clean_word(word1), _clean_word(word2)
return set(word1) == set(word2) and len(word1) == len(word2)
def _clean_word(word):
return word.strip().replace(" ", "").lower()
def is_anagram1(word1, word2):
"""Receives two words and returns True/False (boolean) if word2 is
an anagram of word1, ignore case and spacing.
About anagrams: https://en.wikipedia.org/wiki/Anagram"""
word1, word2 = _clean_word(word1), _clean_word(word2)
return Counter(word1) == Counter(word2)
| 35.090909
| 70
| 0.693005
| 108
| 772
| 4.842593
| 0.361111
| 0.086042
| 0.097514
| 0.080306
| 0.703633
| 0.703633
| 0.703633
| 0.703633
| 0.703633
| 0.703633
| 0
| 0.036508
| 0.183938
| 772
| 21
| 71
| 36.761905
| 0.793651
| 0.423575
| 0
| 0.222222
| 0
| 0
| 0.002463
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
4c3656443f1a9b76d265c5222f7903a42eaccc5a
| 178
|
py
|
Python
|
hgtk/__init__.py
|
bluedisk/hangul-tools
|
291adf291dfffc273e7aa37ed844e2e170ee7e3c
|
[
"Apache-2.0"
] | 271
|
2017-02-01T23:12:33.000Z
|
2022-03-29T07:08:57.000Z
|
hgtk/__init__.py
|
BRIDGE-AI/hangul-toolkit
|
74d131a05b03378f3a93dfa69f2a83e94bcef149
|
[
"Apache-2.0"
] | null | null | null |
hgtk/__init__.py
|
BRIDGE-AI/hangul-toolkit
|
74d131a05b03378f3a93dfa69f2a83e94bcef149
|
[
"Apache-2.0"
] | 58
|
2017-02-02T00:37:17.000Z
|
2022-03-24T09:16:42.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import division
from . import text
from . import letter
from . import checker
from . import josa
| 19.777778
| 39
| 0.758427
| 24
| 178
| 5.25
| 0.541667
| 0.31746
| 0.253968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006757
| 0.168539
| 178
| 9
| 40
| 19.777778
| 0.844595
| 0.117978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d5d2db1d4eb687c90a8eedadd7972f4241689b9e
| 113
|
py
|
Python
|
GcMessageProtocol/protocols/__init__.py
|
GameCompanyGC/Python-GCDiscordMessageProtocol
|
fc4b565ea7b0df8d26e43d997efa17d1eef09c69
|
[
"MIT"
] | null | null | null |
GcMessageProtocol/protocols/__init__.py
|
GameCompanyGC/Python-GCDiscordMessageProtocol
|
fc4b565ea7b0df8d26e43d997efa17d1eef09c69
|
[
"MIT"
] | null | null | null |
GcMessageProtocol/protocols/__init__.py
|
GameCompanyGC/Python-GCDiscordMessageProtocol
|
fc4b565ea7b0df8d26e43d997efa17d1eef09c69
|
[
"MIT"
] | null | null | null |
from GcMessageProtocol.protocols.protocol import Protocol
from GcMessageProtocol.protocols.ban import BanProtocol
| 56.5
| 57
| 0.902655
| 12
| 113
| 8.5
| 0.583333
| 0.411765
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061947
| 113
| 2
| 58
| 56.5
| 0.962264
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
9111a24191dd5ea89d275ab989d166f75a3516a5
| 140
|
py
|
Python
|
lite/jupyterlite-pidgy/py_src/jupyterlite_pidgy/__init__.py
|
deathbeds/pidgy
|
0162157a4c35f2053b4fc774a4c67cfc0d2c7df5
|
[
"BSD-3-Clause"
] | 25
|
2020-03-02T15:34:12.000Z
|
2022-01-22T11:10:32.000Z
|
lite/jupyterlite-pidgy/py_src/jupyterlite_pidgy/__init__.py
|
deathbeds/pidgy
|
0162157a4c35f2053b4fc774a4c67cfc0d2c7df5
|
[
"BSD-3-Clause"
] | 26
|
2020-02-21T14:39:11.000Z
|
2021-12-14T02:28:51.000Z
|
lite/jupyterlite-pidgy/py_src/jupyterlite_pidgy/__init__.py
|
deathbeds/rites
|
0162157a4c35f2053b4fc774a4c67cfc0d2c7df5
|
[
"BSD-3-Clause"
] | 4
|
2020-02-19T00:13:22.000Z
|
2021-12-01T23:13:07.000Z
|
from ._version import __version__, __js__
def _jupyter_labextension_paths():
return [{ "src": "labextension", "dest": __js__["name"]}]
| 28
| 61
| 0.714286
| 15
| 140
| 5.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128571
| 140
| 4
| 62
| 35
| 0.688525
| 0
| 0
| 0
| 0
| 0
| 0.164286
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
e6757a5ae2770f97bc815e45701cfad662671423
| 8,407
|
py
|
Python
|
wf2020.py
|
stressosaurus/a-statistical-model-of-word-rank-evolution
|
4a06a872b5c84b561510958aed18e76d931443f4
|
[
"MIT"
] | null | null | null |
wf2020.py
|
stressosaurus/a-statistical-model-of-word-rank-evolution
|
4a06a872b5c84b561510958aed18e76d931443f4
|
[
"MIT"
] | null | null | null |
wf2020.py
|
stressosaurus/a-statistical-model-of-word-rank-evolution
|
4a06a872b5c84b561510958aed18e76d931443f4
|
[
"MIT"
] | null | null | null |
### Language models and functions
## Alex John Quijano
## Created: March 2020
import pandas as pd
import numpy as np
import math
from scipy.special import comb
## Zipf pmf and cdf
def zipf(k,a):
power_law = np.divide(1,np.power(k,a))
H = np.sum(np.divide(1,np.power(k,a)))
pmf = np.divide(power_law,H)
cdf = [np.sum(pmf[0:i]) for i in range(1,pmf.shape[0]+1)]
return pmf, cdf
## Zipf expected rank/value - theory
def zipf_E(k,a):
return np.sum(np.divide(1,np.power(k,a-1)))/np.sum(np.divide(1,np.power(k,a)))
## Zipf log-log transform
def zipf_loglog(x,a,b):
return (-1*a*x)+b
## Vocabulary construction where c is the number of unigrams
def construct_vocabulary(c):
return [int(i) for i in range(1,c+1,1)]
## Wright-Fisher model - Corpus size function
def corpus_size(t,alpha,beta):
return int(np.ceil(beta*np.exp(alpha*t)))
## Wright-Fisher model - Selection value function
def selection_function(t,A,B):
return A*(np.sin(B*t) + np.cos(B*t))
# Wright-Fisher model (with selection option)
def wright_fisher(c,a,alpha,beta,A,B,T,PV,NV,tau,set_seed=None,steady=False):
# parameters - descriptions
# 1. c - is the number of vocabulary words
# 2. a - is the Zipf parameter
# 3. alpha - is the rate of change for the corpus size
# 4. beta - is the initial corpus size
# 5. A - is the selection value
# 6. B - is the variable selection value
# 7. T - is the total time elapsed (number of years)
# 8. PV - word indices under positive selection
# 9. NV - word indices under negative selection
# 10. tau - the time where selection is induced
# seeding
np.random.seed(set_seed)
# vocabulary and ranks ranks
V = construct_vocabulary(c=c) # ngrams labels
ranks = V # assign ranks to the words
# initial conditions
t = 0
pmf, cdf = zipf(k=ranks,a=a) # initial probability distibution of words
initial_cs = corpus_size(t,alpha,beta) # initial corpus size (exponential function with parameters beta and alpha)
# initial fitness values
initial_fv = np.zeros(len(V)) + 1
if tau == 0:
initial_fv[[i-1 for i in PV]] = 1 + selection_function(tau,A,B)
initial_fv[[i-1 for i in NV]] = 1 - selection_function(tau,A,B)
fv_probs = np.multiply(pmf,initial_fv)
fv_probs_normal = np.divide(fv_probs,np.sum(fv_probs)) # update probabilities
if steady == True:
fv_probs_normal = pmf
# initial word counts
word_samples = V # sample words at least once
word_samples = np.append(word_samples,np.random.choice(V,initial_cs-c,replace=True,p=fv_probs_normal))
wp_u, wp_c = np.unique(word_samples,return_counts=True)
del word_samples
initial_count = np.zeros(len(V))
initial_count[[i-1 for i in wp_u]] = wp_c
initial_probs = np.zeros(len(V))
initial_probs[[i-1 for i in wp_u]] = np.divide(wp_c,np.sum(wp_c))
# time loop
fv_track = [initial_fv]
cs_track = [initial_cs]
count_track = [initial_count]
probs_track = [initial_probs]
for i in range(1,T):
# selection at t >= tau
fv = np.zeros(len(V)) + 1
if i >= tau:
fv[[i-1 for i in PV]] = 1 + selection_function(i,A,B)
fv[[i-1 for i in NV]] = 1 - selection_function(i,A,B)
fv_track.append(fv)
else:
fv_track.append(fv)
fv_probs = np.multiply(probs_track[i-1],fv_track[i-1])
fv_probs_normal = np.divide(fv_probs,np.sum(fv_probs)) # update probabilities
if steady == True:
fv_probs_normal = pmf
# Wright-Fisher
cs_track.append(corpus_size(i,alpha,beta)) # update corpus size
word_samples = V # sample words at least once
word_samples = np.append(word_samples,np.random.choice(V,cs_track[i]-c,replace=True,p=fv_probs_normal))
wp_u, wp_c = np.unique(word_samples,return_counts=True)
del word_samples
next_count = np.zeros(len(V))
next_count[[i-1 for i in wp_u]] = wp_c # update counts
count_track.append(next_count)
next_probs = np.zeros(len(V))
next_probs[[i-1 for i in wp_u]] = wp_c/np.sum(wp_c) # update probabilities
probs_track.append(next_probs)
# compute pscores, zscores, and convert outputs to dataframes
R = pd.DataFrame(np.matrix(count_track).T,index=V,columns=range(0,T))
P = pd.DataFrame(np.divide(R,np.sum(R,axis=0)),index=V,columns=range(0,T))
a = P.T - np.mean(P.T,axis=0)
b = np.std(P.T,axis=0)
Z = np.divide(a,b).T
S = pd.DataFrame(np.matrix(fv_track).T,index=V,columns=range(0,T))
N = pd.DataFrame({'N(t)':cs_track},index=R.columns)
del fv_track, cs_track, count_track, probs_track
return R, P, Z, S, N
# Wright-Fisher model (with selection option and zero words)
def wright_fisher_0(c,a,alpha,beta,A,B,T,PV,NV,tau,set_seed=None,steady=False):
# parameters - descriptions
# 1. c - is the number of vocabulary words
# 2. a - is the Zipf parameter
# 3. alpha - is the rate of change for the corpus size
# 4. beta - is the initial corpus size
# 5. A - is the selection value
# 6. B - is the variable selection value
# 7. T - is the total time elapsed (number of years)
# 8. PV - word indices under positive selection
# 9. NV - word indices under negative selection
# 10. tau - the time where selection is induced
# seeding
np.random.seed(set_seed)
# vocabulary and ranks ranks
V = construct_vocabulary(c=c) # ngrams labels
ranks = V # assign ranks to the words
# initial conditions
t = 0
pmf, cdf = zipf(k=ranks,a=a) # initial probability distibution of words
initial_cs = corpus_size(t,alpha,beta) # initial corpus size (exponential function with parameters beta and alpha)
# initial fitness values
initial_fv = np.zeros(len(V)) + 1
if tau == 0:
initial_fv[[i-1 for i in PV]] = 1 + selection_function(tau,A,B)
initial_fv[[i-1 for i in NV]] = 1 - selection_function(tau,A,B)
fv_probs = np.multiply(pmf,initial_fv)
fv_probs_normal = np.divide(fv_probs,np.sum(fv_probs)) # update probabilities
if steady == True:
fv_probs_normal = pmf
# initial word counts
word_samples = np.random.choice(V,initial_cs,replace=True,p=fv_probs_normal)
wp_u, wp_c = np.unique(word_samples,return_counts=True)
del word_samples
initial_count = np.zeros(len(V))
initial_count[[i-1 for i in wp_u]] = wp_c
initial_probs = np.zeros(len(V))
initial_probs[[i-1 for i in wp_u]] = np.divide(wp_c,np.sum(wp_c))
# time loop
fv_track = [initial_fv]
cs_track = [initial_cs]
count_track = [initial_count]
probs_track = [initial_probs]
for i in range(1,T):
# selection at t >= tau
fv = np.zeros(len(V)) + 1
if i >= tau:
fv[[i-1 for i in PV]] = 1 + selection_function(i,A,B)
fv[[i-1 for i in NV]] = 1 - selection_function(i,A,B)
fv_track.append(fv)
else:
fv_track.append(fv)
fv_probs = np.multiply(probs_track[i-1],fv_track[i-1])
fv_probs_normal = np.divide(fv_probs,np.sum(fv_probs)) # update probabilities
if steady == True:
fv_probs_normal = pmf
# Wright-Fisher
cs_track.append(corpus_size(i,alpha,beta)) # update corpus size
word_samples = np.random.choice(V,cs_track[i],replace=True,p=fv_probs_normal)
wp_u, wp_c = np.unique(word_samples,return_counts=True)
del word_samples
next_count = np.zeros(len(V))
next_count[[i-1 for i in wp_u]] = wp_c # update counts
count_track.append(next_count)
next_probs = np.zeros(len(V))
next_probs[[i-1 for i in wp_u]] = wp_c/np.sum(wp_c) # update probabilities
probs_track.append(next_probs)
# compute pscores, zscores, and convert outputs to dataframes
R = pd.DataFrame(np.matrix(count_track).T,index=V,columns=range(0,T))
P = pd.DataFrame(np.divide(R,np.sum(R,axis=0)),index=V,columns=range(0,T))
a = P.T - np.mean(P.T,axis=0)
b = np.std(P.T,axis=0)
Z = np.divide(a,b).T
S = pd.DataFrame(np.matrix(fv_track).T,index=V,columns=range(0,T))
N = pd.DataFrame({'N(t)':cs_track},index=R.columns)
del fv_track, cs_track, count_track, probs_track
return R, P, Z, S, N
# binomial (pmf)
def binomial(n,x,p,type='pmf'):
if x >= 0 and x <= n:
if type == 'pmf':
f = comb(n,x)*np.power(p,x)*np.power(1-p,n-x)
elif type == 'cdf':
f = 0
for i in range(0,x+1):
f += comb(n,i)*np.power(p,i)*np.power(1-p,n-i)
else:
f = 0
return f
# binomal (pmf)
def binomial_wf(n,x,p,c):
if x <= n-c:
p = binomial(n-c,x,p)
elif x > n-c:
p = 0
return p
# binomial expected value
def E(n,p):
return n*p
# binomial variance
def Var(n,p):
return n*p*(1-p)
# binomial skewness
def Skew(n,p):
return np.divide((1-p)-p,np.sqrt(n*p*(1-p)))
# binomial covariance
def Cov(n,p_i,p_j):
return -1*n*p_i*p_j
| 32.210728
| 115
| 0.689307
| 1,557
| 8,407
| 3.59666
| 0.120745
| 0.03
| 0.0225
| 0.017143
| 0.846964
| 0.828036
| 0.810536
| 0.807321
| 0.801429
| 0.783571
| 0
| 0.014649
| 0.171762
| 8,407
| 261
| 116
| 32.210728
| 0.789602
| 0.28845
| 0
| 0.701863
| 0
| 0
| 0.002884
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.086957
| false
| 0
| 0.024845
| 0.055901
| 0.198758
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e67ab16d8f9801282fc6457bbafe8fa3dcf9dce8
| 175
|
py
|
Python
|
githooks/utils.py
|
OmegaDroid/git-hooks
|
d890621e890796d0ab800267493444000c75214e
|
[
"MIT"
] | 2
|
2016-01-08T17:57:59.000Z
|
2016-08-10T00:54:35.000Z
|
githooks/utils.py
|
OmegaDroid/git-hooks
|
d890621e890796d0ab800267493444000c75214e
|
[
"MIT"
] | 4
|
2016-01-09T13:50:37.000Z
|
2016-08-25T10:50:40.000Z
|
githooks/utils.py
|
wildfish/git-hooks
|
d890621e890796d0ab800267493444000c75214e
|
[
"MIT"
] | null | null | null |
import os
def get_hook_script_dir():
return os.path.join(os.path.dirname(__file__), 'hook_scripts')
def get_hook_names():
return os.listdir(get_hook_script_dir())
| 17.5
| 66
| 0.742857
| 28
| 175
| 4.178571
| 0.535714
| 0.179487
| 0.17094
| 0.273504
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131429
| 175
| 9
| 67
| 19.444444
| 0.769737
| 0
| 0
| 0
| 0
| 0
| 0.068571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
e68fb146dd073b79ebda75f9033373d67c8c1621
| 3,042
|
py
|
Python
|
test/unit/ggrc_workflows/models/test_task_group.py
|
pbedn/ggrc-core
|
12ae4720a430730835f1d02def62c0f6ef453521
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2020-08-26T06:56:01.000Z
|
2021-07-08T13:56:20.000Z
|
test/unit/ggrc_workflows/models/test_task_group.py
|
pbedn/ggrc-core
|
12ae4720a430730835f1d02def62c0f6ef453521
|
[
"ECL-2.0",
"Apache-2.0"
] | 4
|
2021-02-02T23:04:30.000Z
|
2022-03-02T09:54:47.000Z
|
test/unit/ggrc_workflows/models/test_task_group.py
|
pbedn/ggrc-core
|
12ae4720a430730835f1d02def62c0f6ef453521
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2016-08-23T10:51:19.000Z
|
2016-08-23T10:51:19.000Z
|
# Copyright (C) 2019 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""A module with unit tests for the Task Group model."""
import unittest
from mock import MagicMock, patch
from ggrc_workflows.models import task_group
@patch(u"ggrc.access_control.role.get_ac_roles_for", return_value={})
class TestTaskGroupTask(unittest.TestCase):
"""Consists of Task Group model unittests."""
def setUp(self):
"""Setup Task Group model tests.
:return: None
"""
task_group.db = MagicMock()
@patch.object(task_group.TaskGroup, "ensure_assignee_is_workflow_member")
# pylint: disable=invalid-name
def test_copy_when_clone_people_is_true_and_contact_is_not_none(self, *_):
""" Test copy() method with next parameters:
clone_people: True
self.contact: not None
:return: None
"""
taskgroup = task_group.TaskGroup()
taskgroup.contact = 'Person id=0x0000AABBCCDDEEFF'
result = taskgroup.copy(clone_people=True)
self.assertEqual(result.contact, taskgroup.contact)
@patch.object(task_group.TaskGroup, "ensure_assignee_is_workflow_member")
@patch("ggrc_workflows.models.task_group.get_current_user",
return_value="Current user person id=0x0011223344556677")
# pylint: disable=invalid-name
def test_copy_when_clone_people_is_false_and_contact_is_not_none(
self, get_current_user, *_
):
""" Test copy() method with next parameters:
clone_people: False
self.contact: not None
:return: None
"""
taskgroup = task_group.TaskGroup()
taskgroup.contact = 'Person id=0x0000AABBCCDDEEFF'
result = taskgroup.copy(clone_people=False)
self.assertEqual(result.contact, get_current_user())
@patch.object(task_group.TaskGroup, "ensure_assignee_is_workflow_member")
@patch("ggrc_workflows.models.task_group.get_current_user",
return_value="Current user person id=0x0011223344556677")
# pylint: disable=invalid-name
def test_copy_when_clone_people_is_true_and_contact_is_none(
self, get_current_user, *_
):
""" Test copy() method with next parameters:
clone_people: True
self.contact: None
:return: None
"""
taskgroup = task_group.TaskGroup()
taskgroup.contact = None
result = taskgroup.copy(clone_people=True)
self.assertEqual(result.contact, get_current_user())
@patch.object(task_group.TaskGroup, "ensure_assignee_is_workflow_member")
@patch("ggrc_workflows.models.task_group.get_current_user",
return_value="Current user person id=0x0011223344556677")
# pylint: disable=invalid-name
def test_copy_when_clone_people_is_false_and_contact_is_none(
self, get_current_user, *_
):
""" Test copy() method with next parameters:
clone_people: False
self.contact: None
:return: None
"""
taskgroup = task_group.TaskGroup()
taskgroup.contact = None
result = taskgroup.copy(clone_people=False)
self.assertEqual(result.contact, get_current_user())
| 35.788235
| 78
| 0.728139
| 386
| 3,042
| 5.445596
| 0.227979
| 0.068506
| 0.059943
| 0.038059
| 0.806375
| 0.806375
| 0.799715
| 0.799715
| 0.799715
| 0.799715
| 0
| 0.026566
| 0.17094
| 3,042
| 84
| 79
| 36.214286
| 0.806899
| 0.24359
| 0
| 0.72093
| 0
| 0
| 0.236039
| 0.201314
| 0
| 0
| 0.042234
| 0
| 0.093023
| 1
| 0.116279
| false
| 0
| 0.069767
| 0
| 0.209302
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fc1b51e87af3f797c80c4c0f2c8d4c3772e78637
| 1,792
|
py
|
Python
|
split_gene/pets/pets_split_cvt.py
|
xxchenxx/ViT-pytorch-1
|
1c99e694136f04c23a18ed7a69d0304841a6ef82
|
[
"MIT"
] | 1
|
2022-03-13T17:34:47.000Z
|
2022-03-13T17:34:47.000Z
|
split_gene/pets/pets_split_cvt.py
|
xxchenxx/ViT-pytorch-1
|
1c99e694136f04c23a18ed7a69d0304841a6ef82
|
[
"MIT"
] | null | null | null |
split_gene/pets/pets_split_cvt.py
|
xxchenxx/ViT-pytorch-1
|
1c99e694136f04c23a18ed7a69d0304841a6ef82
|
[
"MIT"
] | null | null | null |
import os
import re
from pdb import set_trace
from os.path import join
def main():
data_root = os.path.expanduser("~/dataset/pets/train")
name2dir = {}
for dir in os.listdir(data_root):
catergory_name = re.match(r'([a-zA-Z_]*)_[0-9]*.jpg', os.listdir(join(data_root, dir))[0])
name2dir[catergory_name[1]] = dir
with open("split/Pet37/Pet37_train.txt", "r") as f:
lines = f.readlines()
lines_new = []
for line in lines:
catergory_name = re.match(r'([a-zA-Z_]*)_[0-9]*.jpg [0-9]*', line)
catergory_name = catergory_name[1]
lines_new.append(line.replace(catergory_name, join("train", name2dir[catergory_name], catergory_name)))
with open("split/Pet37/Pet37_train_new.txt", "w") as f:
f.writelines(lines_new)
with open("split/Pet37/Pet37_val.txt", "r") as f:
lines = f.readlines()
lines_new = []
for line in lines:
catergory_name = re.match(r'([a-zA-Z_]*)_[0-9]*.jpg [0-9]*', line)
catergory_name = catergory_name[1]
lines_new.append(line.replace(catergory_name, join("train", name2dir[catergory_name], catergory_name)))
with open("split/Pet37/Pet37_val_new.txt", "w") as f:
f.writelines(lines_new)
with open("split/Pet37/Pet37_test.txt", "r") as f:
lines = f.readlines()
lines_new = []
for line in lines:
catergory_name = re.match(r'([a-zA-Z_]*)_[0-9]*.jpg [0-9]*', line)
catergory_name = catergory_name[1]
lines_new.append(line.replace(catergory_name, join("val", name2dir[catergory_name], catergory_name)))
with open("split/Pet37/Pet37_test_new.txt", "w") as f:
f.writelines(lines_new)
if __name__ == "__main__":
main()
| 31.438596
| 112
| 0.613839
| 260
| 1,792
| 4.007692
| 0.196154
| 0.24952
| 0.074856
| 0.103647
| 0.804223
| 0.804223
| 0.759117
| 0.759117
| 0.759117
| 0.731286
| 0
| 0.034707
| 0.228237
| 1,792
| 56
| 113
| 32
| 0.718727
| 0
| 0
| 0.512821
| 0
| 0
| 0.18894
| 0.14977
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025641
| false
| 0
| 0.102564
| 0
| 0.128205
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fc52f7b412d484f73ca6d35c144c8e1c3124a7aa
| 214
|
py
|
Python
|
event/retry_handler.py
|
rafty/ServerlessEventSoutcing
|
4759a187373af6f0bfded4ff388ba74c09fc4368
|
[
"Apache-2.0"
] | null | null | null |
event/retry_handler.py
|
rafty/ServerlessEventSoutcing
|
4759a187373af6f0bfded4ff388ba74c09fc4368
|
[
"Apache-2.0"
] | null | null | null |
event/retry_handler.py
|
rafty/ServerlessEventSoutcing
|
4759a187373af6f0bfded4ff388ba74c09fc4368
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from error import ItemRanShort, IntegrityError
def is_integrity_error(e):
return isinstance(e, IntegrityError)
def is_not_item_ran_short(e):
return isinstance(e, IntegrityError)
| 19.454545
| 46
| 0.747664
| 28
| 214
| 5.5
| 0.642857
| 0.220779
| 0.246753
| 0.233766
| 0.415584
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005495
| 0.149533
| 214
| 10
| 47
| 21.4
| 0.840659
| 0.098131
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
5d783eb35444bdac71be643085f6dcb0fe395343
| 10,012
|
py
|
Python
|
yandex/cloud/cdn/v1/origin_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 36
|
2018-12-23T13:51:50.000Z
|
2022-03-25T07:48:24.000Z
|
yandex/cloud/cdn/v1/origin_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 15
|
2019-02-28T04:55:09.000Z
|
2022-03-06T23:17:24.000Z
|
yandex/cloud/cdn/v1/origin_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 18
|
2019-02-23T07:10:57.000Z
|
2022-03-28T14:41:08.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.cdn.v1 import origin_pb2 as yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__pb2
from yandex.cloud.cdn.v1 import origin_service_pb2 as yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
class OriginServiceStub(object):
"""
Origin management service.
Origin is not a standalone entity. It can live only within origin group.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Get = channel.unary_unary(
'/yandex.cloud.cdn.v1.OriginService/Get',
request_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.GetOriginRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__pb2.Origin.FromString,
)
self.List = channel.unary_unary(
'/yandex.cloud.cdn.v1.OriginService/List',
request_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsResponse.FromString,
)
self.Create = channel.unary_unary(
'/yandex.cloud.cdn.v1.OriginService/Create',
request_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.CreateOriginRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
)
self.Update = channel.unary_unary(
'/yandex.cloud.cdn.v1.OriginService/Update',
request_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.UpdateOriginRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
)
self.Delete = channel.unary_unary(
'/yandex.cloud.cdn.v1.OriginService/Delete',
request_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.DeleteOriginRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
)
class OriginServiceServicer(object):
"""
Origin management service.
Origin is not a standalone entity. It can live only within origin group.
"""
def Get(self, request, context):
"""Get origin in origin group.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def List(self, request, context):
"""Lists origins of origin group.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Create(self, request, context):
"""Creates origin inside origin group.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Update(self, request, context):
"""Updates origin from origin group.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Delete(self, request, context):
"""Deletes origin from origin group.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_OriginServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
request_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.GetOriginRequest.FromString,
response_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__pb2.Origin.SerializeToString,
),
'List': grpc.unary_unary_rpc_method_handler(
servicer.List,
request_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsRequest.FromString,
response_serializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsResponse.SerializeToString,
),
'Create': grpc.unary_unary_rpc_method_handler(
servicer.Create,
request_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.CreateOriginRequest.FromString,
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
),
'Update': grpc.unary_unary_rpc_method_handler(
servicer.Update,
request_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.UpdateOriginRequest.FromString,
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.DeleteOriginRequest.FromString,
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'yandex.cloud.cdn.v1.OriginService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class OriginService(object):
"""
Origin management service.
Origin is not a standalone entity. It can live only within origin group.
"""
@staticmethod
def Get(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cdn.v1.OriginService/Get',
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.GetOriginRequest.SerializeToString,
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__pb2.Origin.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def List(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cdn.v1.OriginService/List',
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsRequest.SerializeToString,
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.ListOriginsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Create(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cdn.v1.OriginService/Create',
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.CreateOriginRequest.SerializeToString,
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Update(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cdn.v1.OriginService/Update',
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.UpdateOriginRequest.SerializeToString,
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Delete(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.cdn.v1.OriginService/Delete',
yandex_dot_cloud_dot_cdn_dot_v1_dot_origin__service__pb2.DeleteOriginRequest.SerializeToString,
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 45.926606
| 135
| 0.690072
| 1,065
| 10,012
| 6.04507
| 0.10892
| 0.046132
| 0.071761
| 0.087139
| 0.872476
| 0.867971
| 0.859428
| 0.819975
| 0.777881
| 0.777881
| 0
| 0.00948
| 0.24141
| 10,012
| 217
| 136
| 46.138249
| 0.838183
| 0.073712
| 0
| 0.542683
| 1
| 0
| 0.075175
| 0.047312
| 0
| 0
| 0
| 0
| 0
| 1
| 0.073171
| false
| 0
| 0.02439
| 0.030488
| 0.146341
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5dcf442a5c2d7d8c5c0e7ce58768c66703206cc4
| 145,108
|
py
|
Python
|
hype/element.py
|
scrussell24/hype-html
|
a7ab01cae6f6d00451127fd5cacc0eff4f8bb9a8
|
[
"MIT"
] | 1
|
2021-08-20T22:43:09.000Z
|
2021-08-20T22:43:09.000Z
|
hype/element.py
|
scrussell24/hype-html
|
a7ab01cae6f6d00451127fd5cacc0eff4f8bb9a8
|
[
"MIT"
] | 2
|
2020-11-14T21:11:47.000Z
|
2020-11-22T07:02:58.000Z
|
hype/element.py
|
scrussell24/hype-html
|
a7ab01cae6f6d00451127fd5cacc0eff4f8bb9a8
|
[
"MIT"
] | null | null | null |
# Copyright (c) <2020> <Scott Russell>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# Documentation available at https://github.com/scrussell24/hype-html
import enum
class Indent(enum.Enum):
TWO_SPACES = ' '
FOUR_SPACES = ' '
TAB = '\t'
class Element:
self_closing = False
@property
def tag(self):
raise RuntimeError("Element requires tag property to render.")
def __init__(self, *args, **kwargs):
if self.self_closing and len(args):
raise RuntimeError('Self closing elements cannot have inner elements.')
self.inner_elements = list(args)
self.props = {}
for k, v in kwargs.items():
key, val = self._process_attr(k, v)
self.props[key] = val
@staticmethod
def _process_attr(k, v):
if k.startswith('_'):
k = k[1:]
k = k.replace('_', '-')
return k, v
@staticmethod
def _create_attr_string(k, v):
if v is True:
return k
elif v:
return f'{k}="{v}"'
return None
def append(self, el):
self.inner_elements.append(el)
def attrs(self, **kwargs):
for k, v in kwargs.items():
key, val = self._process_attr(k, v)
self.props[key] = val
def __call__(self, indent_level=0, indent=Indent.TWO_SPACES):
# props
props = [self._create_attr_string(k, v) for k, v in self.props.items() if v is not None]
props = [p for p in props if p]
prop_space = ' ' if len(props) else ''
# indent
indent_chars = '\n' + ''.join([indent.value for n in range(indent_level)])
end_tag_indent = indent_chars if any(
[True for el in self.inner_elements if isinstance(el, Element)]
) else ''
# elements
els = []
for a in self.inner_elements:
if isinstance(a, Element):
els.append(a(indent_level=indent_level + 1, indent=indent))
else:
els.append(str(a))
if self.self_closing:
return f'{indent_chars}<{self.tag}{prop_space}{" ".join(props)}/>'
return f'{indent_chars}<{self.tag}{prop_space}{" ".join(props)}' + \
f'>{"".join(els)}{end_tag_indent}</{self.tag}>'
def __str__(self):
return self()
class SelfClosingElement(Element):
self_closing = True
def __init__(self, **kwargs):
super().__init__(**kwargs)
class Doc:
def __init__(self, *args, indent=Indent.TWO_SPACES):
self.indent = indent
self.elements = args
def __call__(self):
doc = '<!DOCTYPE html>'
for el in self.elements:
if isinstance(el, Element):
doc += el(indent=self.indent)
else:
doc += str(el)
return doc
def __str__(self):
return self()
# Below code is autogenerated by rendering the tmplt.element.py.j2 file
class A(Element):
tag = 'a'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
download=None,
hidden=None,
href=None,
hreflang=None,
_id=None,
itemprop=None,
lang=None,
ping=None,
referrerpolicy=None,
rel=None,
shape=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
target=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"download": download,
"hidden": hidden,
"href": href,
"hreflang": hreflang,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"ping": ping,
"referrerpolicy": referrerpolicy,
"rel": rel,
"shape": shape,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"target": target,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Abbr(Element):
tag = 'abbr'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Address(Element):
tag = 'address'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Area(SelfClosingElement):
tag = 'area'
def __init__(
self,
*args,
accesskey=None,
alt=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
coords=None,
_dir=None,
download=None,
hidden=None,
href=None,
hreflang=None,
_id=None,
itemprop=None,
lang=None,
ping=None,
referrerpolicy=None,
rel=None,
shape=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
target=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"alt": alt,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"coords": coords,
"_dir": _dir,
"download": download,
"hidden": hidden,
"href": href,
"hreflang": hreflang,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"ping": ping,
"referrerpolicy": referrerpolicy,
"rel": rel,
"shape": shape,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"target": target,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Article(Element):
tag = 'article'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Aside(Element):
tag = 'aside'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Audio(Element):
tag = 'audio'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
autoplay=None,
buffered=None,
_class=None,
contenteditable=None,
contextmenu=None,
controls=None,
crossorigin=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
loop=None,
muted=None,
preload=None,
slot=None,
spellcheck=None,
src=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"autoplay": autoplay,
"buffered": buffered,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"controls": controls,
"crossorigin": crossorigin,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"loop": loop,
"muted": muted,
"preload": preload,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class B(Element):
tag = 'b'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Base(SelfClosingElement):
tag = 'base'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
href=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
target=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"href": href,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"target": target,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Bdi(Element):
tag = 'bdi'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Bdo(Element):
tag = 'bdo'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Blockquote(Element):
tag = 'blockquote'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
cite=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"cite": cite,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Body(Element):
tag = 'body'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
background=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"background": background,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Br(SelfClosingElement):
tag = 'br'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Button(Element):
tag = 'button'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
autofocus=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
disabled=None,
form=None,
formaction=None,
formenctype=None,
formmethod=None,
formnovalidate=None,
formtarget=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"autofocus": autofocus,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"disabled": disabled,
"form": form,
"formaction": formaction,
"formenctype": formenctype,
"formmethod": formmethod,
"formnovalidate": formnovalidate,
"formtarget": formtarget,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Canvas(Element):
tag = 'canvas'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
height=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"height": height,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"width": width,
}
super().__init__(*args, **{**props, **kwargs})
class Caption(Element):
tag = 'caption'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Cite(Element):
tag = 'cite'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Code(Element):
tag = 'code'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Col(SelfClosingElement):
tag = 'col'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
span=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"span": span,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Colgroup(Element):
tag = 'colgroup'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
span=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"span": span,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Data(Element):
tag = 'data'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Datalist(Element):
tag = 'datalist'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Dd(Element):
tag = 'dd'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Del(Element):
tag = 'del'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
cite=None,
_class=None,
contenteditable=None,
contextmenu=None,
datetime=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"cite": cite,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"datetime": datetime,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Details(Element):
tag = 'details'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
open=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"open": open,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Dfn(Element):
tag = 'dfn'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Dialog(Element):
tag = 'dialog'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Div(Element):
tag = 'div'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Dl(Element):
tag = 'dl'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Dt(Element):
tag = 'dt'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Em(Element):
tag = 'em'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Embed(SelfClosingElement):
tag = 'embed'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
height=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
src=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"height": height,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
"width": width,
}
super().__init__(**{**props, **kwargs})
class Fieldset(Element):
tag = 'fieldset'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
disabled=None,
form=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"disabled": disabled,
"form": form,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Figcaption(Element):
tag = 'figcaption'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Figure(Element):
tag = 'figure'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Footer(Element):
tag = 'footer'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Form(Element):
tag = 'form'
def __init__(
self,
*args,
accept=None,
accept_charset=None,
accesskey=None,
action=None,
autocapitalize=None,
autocomplete=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
download=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
media=None,
method=None,
name=None,
novalidate=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
target=None,
title=None,
translate=None,
**kwargs
):
props = {
"accept": accept,
"accept_charset": accept_charset,
"accesskey": accesskey,
"action": action,
"autocapitalize": autocapitalize,
"autocomplete": autocomplete,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"download": download,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"media": media,
"method": method,
"name": name,
"novalidate": novalidate,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"target": target,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H1(Element):
tag = 'h1'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H2(Element):
tag = 'h2'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H3(Element):
tag = 'h3'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H4(Element):
tag = 'h4'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H5(Element):
tag = 'h5'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class H6(Element):
tag = 'h6'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Head(Element):
tag = 'head'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Header(Element):
tag = 'header'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Hgroup(Element):
tag = 'hgroup'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Hr(SelfClosingElement):
tag = 'hr'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
_class=None,
color=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"_class": _class,
"color": color,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Html(Element):
tag = 'html'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
manifest=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"manifest": manifest,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class I(Element):
tag = 'i'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Iframe(Element):
tag = 'iframe'
def __init__(
self,
*args,
accesskey=None,
align=None,
allow=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
csp=None,
_dir=None,
height=None,
hidden=None,
_id=None,
importance=None,
itemprop=None,
lang=None,
loading=None,
name=None,
referrerpolicy=None,
sandbox=None,
slot=None,
spellcheck=None,
src=None,
srcdoc=None,
style=None,
tabindex=None,
title=None,
translate=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"allow": allow,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"csp": csp,
"_dir": _dir,
"height": height,
"hidden": hidden,
"_id": _id,
"importance": importance,
"itemprop": itemprop,
"lang": lang,
"loading": loading,
"name": name,
"referrerpolicy": referrerpolicy,
"sandbox": sandbox,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"srcdoc": srcdoc,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"width": width,
}
super().__init__(*args, **{**props, **kwargs})
class Img(SelfClosingElement):
tag = 'img'
def __init__(
self,
*args,
accesskey=None,
align=None,
alt=None,
autocapitalize=None,
border=None,
_class=None,
contenteditable=None,
contextmenu=None,
crossorigin=None,
decoding=None,
_dir=None,
height=None,
hidden=None,
_id=None,
importance=None,
intrinsicsize=None,
ismap=None,
itemprop=None,
lang=None,
loading=None,
referrerpolicy=None,
sizes=None,
slot=None,
spellcheck=None,
src=None,
srcset=None,
style=None,
tabindex=None,
title=None,
translate=None,
usemap=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"alt": alt,
"autocapitalize": autocapitalize,
"border": border,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"crossorigin": crossorigin,
"decoding": decoding,
"_dir": _dir,
"height": height,
"hidden": hidden,
"_id": _id,
"importance": importance,
"intrinsicsize": intrinsicsize,
"ismap": ismap,
"itemprop": itemprop,
"lang": lang,
"loading": loading,
"referrerpolicy": referrerpolicy,
"sizes": sizes,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"srcset": srcset,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"usemap": usemap,
"width": width,
}
super().__init__(**{**props, **kwargs})
class Input(SelfClosingElement):
tag = 'input'
def __init__(
self,
*args,
accept=None,
accesskey=None,
alt=None,
autocapitalize=None,
autocomplete=None,
autofocus=None,
capture=None,
checked=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
dirname=None,
form=None,
formaction=None,
formenctype=None,
formmethod=None,
formnovalidate=None,
formtarget=None,
height=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
list=None,
max=None,
maxlength=None,
minlength=None,
min=None,
multiple=None,
name=None,
pattern=None,
placeholder=None,
readonly=None,
required=None,
size=None,
slot=None,
spellcheck=None,
src=None,
step=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
usemap=None,
value=None,
width=None,
**kwargs
):
props = {
"accept": accept,
"accesskey": accesskey,
"alt": alt,
"autocapitalize": autocapitalize,
"autocomplete": autocomplete,
"autofocus": autofocus,
"capture": capture,
"checked": checked,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"dirname": dirname,
"form": form,
"formaction": formaction,
"formenctype": formenctype,
"formmethod": formmethod,
"formnovalidate": formnovalidate,
"formtarget": formtarget,
"height": height,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"list": list,
"max": max,
"maxlength": maxlength,
"minlength": minlength,
"min": min,
"multiple": multiple,
"name": name,
"pattern": pattern,
"placeholder": placeholder,
"readonly": readonly,
"required": required,
"size": size,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"step": step,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
"usemap": usemap,
"value": value,
"width": width,
}
super().__init__(**{**props, **kwargs})
class Ins(Element):
tag = 'ins'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
cite=None,
_class=None,
contenteditable=None,
contextmenu=None,
datetime=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"cite": cite,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"datetime": datetime,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Kbd(Element):
tag = 'kbd'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Label(Element):
tag = 'label'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
_for=None,
form=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"_for": _for,
"form": form,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Legend(Element):
tag = 'legend'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Li(Element):
tag = 'li'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Link(SelfClosingElement):
tag = 'link'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
crossorigin=None,
_dir=None,
hidden=None,
href=None,
hreflang=None,
_id=None,
importance=None,
integrity=None,
itemprop=None,
lang=None,
referrerpolicy=None,
rel=None,
sizes=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"crossorigin": crossorigin,
"_dir": _dir,
"hidden": hidden,
"href": href,
"hreflang": hreflang,
"_id": _id,
"importance": importance,
"integrity": integrity,
"itemprop": itemprop,
"lang": lang,
"referrerpolicy": referrerpolicy,
"rel": rel,
"sizes": sizes,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Main(Element):
tag = 'main'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Map(Element):
tag = 'map'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Mark(Element):
tag = 'mark'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Math(Element):
tag = 'math'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Menu(Element):
tag = 'menu'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
}
super().__init__(*args, **{**props, **kwargs})
class Menuitem(SelfClosingElement):
tag = 'menuitem'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Meta(SelfClosingElement):
tag = 'meta'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
charset=None,
_class=None,
content=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
http_equiv=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"charset": charset,
"_class": _class,
"content": content,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"http_equiv": http_equiv,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class Meter(Element):
tag = 'meter'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
form=None,
hidden=None,
high=None,
_id=None,
itemprop=None,
lang=None,
low=None,
max=None,
min=None,
optimum=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"form": form,
"hidden": hidden,
"high": high,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"low": low,
"max": max,
"min": min,
"optimum": optimum,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Nav(Element):
tag = 'nav'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Noscript(Element):
tag = 'noscript'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Object(Element):
tag = 'object'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
border=None,
_class=None,
contenteditable=None,
contextmenu=None,
data=None,
_dir=None,
form=None,
height=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
usemap=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"border": border,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"data": data,
"_dir": _dir,
"form": form,
"height": height,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
"usemap": usemap,
"width": width,
}
super().__init__(*args, **{**props, **kwargs})
class Ol(Element):
tag = 'ol'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
reversed=None,
slot=None,
spellcheck=None,
start=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"reversed": reversed,
"slot": slot,
"spellcheck": spellcheck,
"start": start,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Optgroup(Element):
tag = 'optgroup'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
disabled=None,
hidden=None,
_id=None,
itemprop=None,
label=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"disabled": disabled,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"label": label,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Option(Element):
tag = 'option'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
disabled=None,
hidden=None,
_id=None,
itemprop=None,
label=None,
lang=None,
selected=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"disabled": disabled,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"label": label,
"lang": lang,
"selected": selected,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Output(Element):
tag = 'output'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
_for=None,
form=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"_for": _for,
"form": form,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class P(Element):
tag = 'p'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Param(SelfClosingElement):
tag = 'param'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
name=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"name": name,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(**{**props, **kwargs})
class Picture(Element):
tag = 'picture'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Pre(Element):
tag = 'pre'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Progress(Element):
tag = 'progress'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
form=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
max=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
value=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"form": form,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"max": max,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"value": value,
}
super().__init__(*args, **{**props, **kwargs})
class Q(Element):
tag = 'q'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
cite=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"cite": cite,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Rb(Element):
tag = 'rb'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Rp(Element):
tag = 'rp'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Rt(Element):
tag = 'rt'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Rtc(Element):
tag = 'rtc'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Ruby(Element):
tag = 'ruby'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class S(Element):
tag = 's'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Samp(Element):
tag = 'samp'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Script(Element):
tag = 'script'
def __init__(
self,
*args,
accesskey=None,
_async=None,
autocapitalize=None,
charset=None,
_class=None,
contenteditable=None,
contextmenu=None,
crossorigin=None,
defer=None,
_dir=None,
hidden=None,
_id=None,
importance=None,
integrity=None,
itemprop=None,
lang=None,
language=None,
referrerpolicy=None,
slot=None,
spellcheck=None,
src=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
**kwargs
):
props = {
"accesskey": accesskey,
"_async": _async,
"autocapitalize": autocapitalize,
"charset": charset,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"crossorigin": crossorigin,
"defer": defer,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"importance": importance,
"integrity": integrity,
"itemprop": itemprop,
"lang": lang,
"language": language,
"referrerpolicy": referrerpolicy,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
}
super().__init__(*args, **{**props, **kwargs})
class Section(Element):
tag = 'section'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Select(Element):
tag = 'select'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
autocomplete=None,
autofocus=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
disabled=None,
form=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
multiple=None,
name=None,
required=None,
size=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"autocomplete": autocomplete,
"autofocus": autofocus,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"disabled": disabled,
"form": form,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"multiple": multiple,
"name": name,
"required": required,
"size": size,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Slot(Element):
tag = 'slot'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Small(Element):
tag = 'small'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Source(SelfClosingElement):
tag = 'source'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
sizes=None,
slot=None,
spellcheck=None,
src=None,
srcset=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"sizes": sizes,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"srcset": srcset,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
}
super().__init__(**{**props, **kwargs})
class Span(Element):
tag = 'span'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Strong(Element):
tag = 'strong'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Style(Element):
tag = 'style'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
scoped=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
type=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"scoped": scoped,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"type": type,
}
super().__init__(*args, **{**props, **kwargs})
class Sub(Element):
tag = 'sub'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Summary(Element):
tag = 'summary'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Sup(Element):
tag = 'sup'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Svg(Element):
tag = 'svg'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Table(Element):
tag = 'table'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
background=None,
bgcolor=None,
border=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
summary=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"background": background,
"bgcolor": bgcolor,
"border": border,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"summary": summary,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Tbody(Element):
tag = 'tbody'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Td(Element):
tag = 'td'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
background=None,
bgcolor=None,
_class=None,
colspan=None,
contenteditable=None,
contextmenu=None,
_dir=None,
headers=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
rowspan=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"background": background,
"bgcolor": bgcolor,
"_class": _class,
"colspan": colspan,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"headers": headers,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"rowspan": rowspan,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Template(Element):
tag = 'template'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Textarea(Element):
tag = 'textarea'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
autocomplete=None,
autofocus=None,
_class=None,
cols=None,
contenteditable=None,
contextmenu=None,
_dir=None,
dirname=None,
disabled=None,
enterkeyhit=None,
form=None,
hidden=None,
_id=None,
inputmode=None,
itemprop=None,
lang=None,
maxlength=None,
minlength=None,
name=None,
placeholder=None,
readonly=None,
required=None,
rows=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"autocomplete": autocomplete,
"autofocus": autofocus,
"_class": _class,
"cols": cols,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"dirname": dirname,
"disabled": disabled,
"enterkeyhit": enterkeyhit,
"form": form,
"hidden": hidden,
"_id": _id,
"inputmode": inputmode,
"itemprop": itemprop,
"lang": lang,
"maxlength": maxlength,
"minlength": minlength,
"name": name,
"placeholder": placeholder,
"readonly": readonly,
"required": required,
"rows": rows,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Tfoot(Element):
tag = 'tfoot'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Th(Element):
tag = 'th'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
background=None,
bgcolor=None,
_class=None,
colspan=None,
contenteditable=None,
contextmenu=None,
_dir=None,
headers=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
rowspan=None,
scope=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"background": background,
"bgcolor": bgcolor,
"_class": _class,
"colspan": colspan,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"headers": headers,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"rowspan": rowspan,
"scope": scope,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Thead(Element):
tag = 'thead'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Time(Element):
tag = 'time'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
datetime=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"datetime": datetime,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Title(Element):
tag = 'title'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Tr(Element):
tag = 'tr'
def __init__(
self,
*args,
accesskey=None,
align=None,
autocapitalize=None,
bgcolor=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"align": align,
"autocapitalize": autocapitalize,
"bgcolor": bgcolor,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Track(SelfClosingElement):
tag = 'track'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
default=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
kind=None,
label=None,
lang=None,
slot=None,
spellcheck=None,
src=None,
srclang=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"default": default,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"kind": kind,
"label": label,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"srclang": srclang,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
class U(Element):
tag = 'u'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Ul(Element):
tag = 'ul'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Var(Element):
tag = 'var'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(*args, **{**props, **kwargs})
class Video(Element):
tag = 'video'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
autoplay=None,
buffered=None,
_class=None,
contenteditable=None,
contextmenu=None,
controls=None,
crossorigin=None,
_dir=None,
height=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
muted=None,
poster=None,
preload=None,
slot=None,
spellcheck=None,
src=None,
style=None,
tabindex=None,
title=None,
translate=None,
width=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"autoplay": autoplay,
"buffered": buffered,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"controls": controls,
"crossorigin": crossorigin,
"_dir": _dir,
"height": height,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"muted": muted,
"poster": poster,
"preload": preload,
"slot": slot,
"spellcheck": spellcheck,
"src": src,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
"width": width,
}
super().__init__(*args, **{**props, **kwargs})
class Wbr(SelfClosingElement):
tag = 'wbr'
def __init__(
self,
*args,
accesskey=None,
autocapitalize=None,
_class=None,
contenteditable=None,
contextmenu=None,
_dir=None,
hidden=None,
_id=None,
itemprop=None,
lang=None,
slot=None,
spellcheck=None,
style=None,
tabindex=None,
title=None,
translate=None,
**kwargs
):
props = {
"accesskey": accesskey,
"autocapitalize": autocapitalize,
"_class": _class,
"contenteditable": contenteditable,
"contextmenu": contextmenu,
"_dir": _dir,
"hidden": hidden,
"_id": _id,
"itemprop": itemprop,
"lang": lang,
"slot": slot,
"spellcheck": spellcheck,
"style": style,
"tabindex": tabindex,
"title": title,
"translate": translate,
}
super().__init__(**{**props, **kwargs})
| 24.494936
| 96
| 0.47078
| 10,947
| 145,108
| 6.050699
| 0.036814
| 0.012682
| 0.019928
| 0.026949
| 0.911288
| 0.905053
| 0.894983
| 0.887857
| 0.871522
| 0.859218
| 0
| 0.000258
| 0.41159
| 145,108
| 5,923
| 97
| 24.499071
| 0.775506
| 0.008387
| 0
| 0.909074
| 0
| 0
| 0.115835
| 0.000848
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023365
| false
| 0
| 0.00163
| 0.000362
| 0.070639
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5dd4c1346b7968ab80e7290ba4ed308c01db6182
| 36,567
|
py
|
Python
|
grr/core/grr_response_core/lib/fingerprint_test.py
|
khanhgithead/grr
|
8ad8a4d2c5a93c92729206b7771af19d92d4f915
|
[
"Apache-2.0"
] | 4,238
|
2015-01-01T15:34:50.000Z
|
2022-03-31T08:18:05.000Z
|
grr/core/grr_response_core/lib/fingerprint_test.py
|
khanhgithead/grr
|
8ad8a4d2c5a93c92729206b7771af19d92d4f915
|
[
"Apache-2.0"
] | 787
|
2015-01-02T21:34:24.000Z
|
2022-03-02T13:26:38.000Z
|
grr/core/grr_response_core/lib/fingerprint_test.py
|
khanhgithead/grr
|
8ad8a4d2c5a93c92729206b7771af19d92d4f915
|
[
"Apache-2.0"
] | 856
|
2015-01-02T02:50:11.000Z
|
2022-03-31T11:11:53.000Z
|
#!/usr/bin/env python
"""Tests for config_lib classes."""
import io
import os
from absl.testing import absltest
from grr_response_core.lib import fingerprint
from grr_response_core.lib import package
class FingerprinterTest(absltest.TestCase):
def testReasonableInterval(self):
# Check if the limit on maximum blocksize for processing still holds.
dummy = io.BytesIO(b'')
fp = fingerprint.Fingerprinter(dummy)
big_finger = fingerprint.Finger(None, [fingerprint.Range(0, 1000001)], None)
fp.fingers.append(big_finger)
start, stop = fp._GetNextInterval()
self.assertEqual(0, start)
self.assertEqual(1000000, stop)
def testAdjustments(self):
dummy = io.BytesIO(b'')
fp = fingerprint.Fingerprinter(dummy)
big_finger = fingerprint.Finger(None, [fingerprint.Range(10, 20)], None)
fp.fingers.append(big_finger)
# The remaining range should not yet be touched...
fp._AdjustIntervals(9, 10)
self.assertEqual([fingerprint.Range(10, 20)], fp.fingers[0].ranges)
# Trying to consume into the range. Blow up.
self.assertRaises(RuntimeError, fp._AdjustIntervals, 9, 11)
# We forgot a byte. Blow up.
self.assertRaises(RuntimeError, fp._AdjustIntervals, 11, 12)
# Consume a byte
fp._AdjustIntervals(10, 11)
self.assertEqual([fingerprint.Range(11, 20)], fp.fingers[0].ranges)
# Consumed too much. Blow up.
self.assertRaises(RuntimeError, fp._AdjustIntervals, 11, 21)
# Consume exactly.
fp._AdjustIntervals(11, 20)
self.assertEmpty(fp.fingers[0].ranges)
class MockHasher(object):
def __init__(self):
self.seen = b''
def update(self, content): # pylint: disable=g-bad-name
self.seen += content
def testHashBlock(self):
# Does it invoke a hash function?
dummy = b'12345'
fp = fingerprint.Fingerprinter(io.BytesIO(dummy))
big_finger = fingerprint.Finger(None, [fingerprint.Range(0, len(dummy))],
None)
hasher = self.MockHasher()
big_finger.hashers = [hasher]
fp.fingers.append(big_finger)
# Let's process the block
fp._HashBlock(dummy, 0, len(dummy))
self.assertEqual(hasher.seen, dummy)
def testSampleDataParsedCorrectly(self):
for fname, expected in self.SAMPLE_LIST.items():
path = package.ResourcePath(
'grr-response-test',
os.path.join('grr_response_test', 'test_data', 'fingerprint', fname))
with io.open(path, 'rb') as f:
fp = fingerprint.Fingerprinter(f)
fp.EvalGeneric()
fp.EvalPecoff()
result = fp.HashIt()
self.assertCountEqual(result, expected,
'Hashing results for %s do not match.' % fname)
# pyformat: disable
SAMPLE_DATA_1 = [{
'sha256':
b"\xf2\xa7\xccd[\x96\x94l\xc6[\xf6\x0e\x14\xe7\r\xc0\x9c\x84\x8d'\xc7\x94<\xe5\xde\xa0\xc0\x1ak\x864\x80",
'sha512':
b"-\x04\xe5*]N\xaa\xab\x96\xbefQ\xb7\xa0d\x13\xe04w\x84\x0fg^\xe7>$7a\xb2\x19\x19\xe5&\x8ew+\x99\xe2\xfc\xb5\xb9`\xd7\x89\xc5>\xbc\x1b\xff\x83`\x1d''2\xd4KaeS\xe1tj\x0f",
'name':
'generic',
'md5':
b'\xb5\xb8\xb5\xef.\\\xb3M\xf8\xdc\xf8\x83\x1e54\xfa',
'sha1':
b'\x98\xcc;\x8f81\x1a\xbf\xdfW{\xe4\x03\xff\x9ft\xaaU\xf7E'
}, {
'SignedData': [(
512, 2,
b'0\x82\x1c4\x06\t*\x86H\x86\xf7\r\x01\x07\x02\xa0\x82\x1c%0\x82\x1c!\x02\x01\x011\x0b0\t\x06\x05+\x0e\x03\x02\x1a\x05\x000h\x06\n+\x06\x01\x04\x01\x827\x02\x01\x04\xa0Z0X03\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0f0%\x03\x01\x00\xa0 \xa2\x1e\x80\x1c\x00<\x00<\x00<\x00O\x00b\x00s\x00o\x00l\x00e\x00t\x00e\x00>\x00>\x00>0!0\t\x06\x05+\x0e\x03\x02\x1a\x05\x00\x04\x14\x9b\xd4D\xd5\x8bY\xcc\xa82\xbb_\xc9\x11\xf8\x1flf\xb4\x0f\xcc\xa0\x82\x17\t0\x82\x04\xbb0\x82\x03\xa3\xa0\x03\x02\x01\x02\x02\na\x04\xcai\x00\x00\x00\x00\x00\x080\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000w1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1!0\x1f\x06\x03U\x04\x03\x13\x18Microsoft Time-Stamp PCA0\x1e\x17\r070605220321Z\x17\r120605221321Z0\x81\xa41\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1\'0%\x06\x03U\x04\x0b\x13\x1enCipher DSE ESN:A5B0-CDE0-DC941%0#\x06\x03U\x04\x03\x13\x1cMicrosoft Time-Stamp Service0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\xaf\xf8Z\xf64\xb1\xa2\x0f\x8e\xac\xcf\xfc\x18\xf0\xad%\rq\xbb_[\xb7;7A\x13$\x1c\xea#\xc5\xae\xac\x99\xc0\xdc\xa6#\xf0\xca\xa9302j/\x9a!B\x02\t&Y\x9bP\xe9Wq\x8bg\xeb\x97\xe8\x04s\x8bx\xb1\x98@F\xa3Z\x01(\x00\x16\xa0\xda\xc5N\x8b\xa9\tT\x911\x9c\xff\xc4\x90\x95E\x07\x1d\x80(\x05\x06q\x80\xcb\xac8ga\xec\xc2_\x16\x9d\x7f\xb0?\xd1*\xf72os=|n\x986\x9a\x86\xee\x008\xee\x17\xecOU3F\x81z@\xdc\xa5\xf5\xd2#\x86]+3O$H\x93\x1a\xb1\xb4~\xcf\xdf3\x1b\xbf\xd5[\xc6/\x13\xf3\xe6\x84\xb7N\x93\x98\xbc\x00\xeb\\\x1di\xc5\xc8\xc8\xd2\xc4<\xb0\x00\x14\xe3\xb2\x9c\xf9\xa1\x1e\t\xdc\xd5\xf5m|213\xb2\x8fY\x9b\xfe\xca\x1f]"N\xba\x12\x1d\xf0g\xc3\x04\x89K\x7f\x03\xfd}\xd7T\x81\x03]I\xf5\x1e\xab ~\xd2e\xb4q\x19\xe8L}\xc6\x94\xbd\x85\x91mPZ\xc3\xa9\x02\x03\x01\x00\x01\xa3\x82\x01\x190\x82\x01\x150\x1d\x06\x03U\x1d\x0e\x04\x16\x04\x14\x9e\x8f\xa8t\xc1B\xee\x18\xcd=\xbd\xe9\xd6\xee\'\xb0\xc754g0\x1f\x06\x03U\x1d#\x04\x180\x16\x80\x14#4\xf8\xd9RFp\n\xed@\xfbv\xfb\xb3+\xb0\xc35\xb3\x0f0T\x06\x03U\x1d\x1f\x04M0K0I\xa0G\xa0E\x86Chttp://crl.microsoft.com/pki/crl/products/MicrosoftTimeStampPCA.crl0X\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04L0J0H\x06\x08+\x06\x01\x05\x05\x070\x02\x86<http://www.microsoft.com/pki/certs/MicrosoftTimeStampPCA.crt0\x13\x06\x03U\x1d%\x04\x0c0\n\x06\x08+\x06\x01\x05\x05\x07\x03\x080\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x06\xc00\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x01\x01\x00g\xa5\xdf(Q\xdcH\x83\xfd\xc6e\xf9]\xfaf\xaa\xb2\x8d\xa7V\x9d\xa2H\xbe2\xacm\x97\x0fO\x0cD\xbb\xbb\x18\xf4\x90\xe7\xe2}\xc5t\x00\xd6\x86\xf3\x91\xc0\xd0\xd1\x05\x89^b\x8b\xfah\xf7e\xcf\xe6S\xa9\xdft\x12!\xad\x8c\x15\xb4\xa6\xcaC\x93\xc9k\xe1J\xb2\xed\x0f\xce\xb4\x8a:\x7f\xf7\xb5\xcc\xbc\x12\x9a{\xcf\x04\xc4?\xd9\n,u<\x92\x9e\xcf\x066b\x0e\x02\x17\xe6\x99\'\xf7\xfbq\xef\xffZzaU\xba\xba\x98\x87\xebq\xacv\xf5\xe8\x86\x9f6gPAx\xfc3\xa4\xd5is\x01\xc8p#k|\xa3W\xc8h\x07\xe4[A\xc1\xf8&\xfdiI\x03\x99\xd6\xaf\xc9?\xa4\xf5\x9cL\xf9\n\x9d\xd2\xcdK\xbf}\xfa\x16\x90\xec;qI\xfe\x04\x15\xca\xe2j\xdai\x0b\xb4\x93>4\xfe\xca\xec\x80I\xe4\xb2t\x18\xcc\x91\xe7>N\xb7{\xf5@\x8fd[\xd4P\xd59MS\xcd\xbe\xd4^G\x82[\xd1Zz\x99.Fpk\x07\x85\rl\t\x13c\x0fu0\x82\x05\x960\x82\x04~\xa0\x03\x02\x01\x02\x02\na\x01\xc6\xc1\x00\x00\x00\x00\x00\x070\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000\x81\x811\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1+0)\x06\x03U\x04\x03\x13"Microsoft Windows Verification PCA0\x1e\x17\r081022203922Z\x17\r100122204922Z0\x7f1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1\r0\x0b\x06\x03U\x04\x0b\x13\x04MOPR1\x1a0\x18\x06\x03U\x04\x03\x13\x11Microsoft Windows0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\xdc:\xd3D\xf4n \x9f\xdd\xa4\x0e\x82N\xc7\x86^c\xcc\xca\xe5BSK\x85\xfa]ql\xcfv\x0c\x18\x8b\xa6\r\xf5J\xf7\xfe\x17\xf2\x90\xccb\xc7$\xad\x9b\x9a\xe1E;a\xd8\r\x05i\xc7\xcd\x88*\xb8\xb9\x18\x1e`\x10_\x88\xc6\xd2\x82NmI\xc5\xbe\\\x12\x86H\x85\x89\x91\x81\xcd\x1b\xad\x1f\xb7-gy\xf1{\x9f%\x87\x14v_\xe3\x0ed\xa1ra%\xe5ui\xc5\x14\xf1_\x07V\xa4\rp\x06#\xa7l\xdd\x82\xae\xd9\x9bG\xa4\xa5l\x08\xb0X\xf1SjO\xda\x85a\xcb\x02{I\xaf\x1f\xbb\xe0\xd7\xb9^\xdbs\x89v\xc1:\xbb\r\xf5\x97\xf0\x88]iw\x80\xcf\xf1~\x03\x9fsm\xde\x05\xb8/w\xb5TUE\xd0\xd28\xbd\x96\xe3\xf7\xea@\xe5\xac\x19\xfcq\xcb(\'\xaaq\xa1r\xb5\x12\'\xc1Q\xf66\xc5\xc0\xc7{::\x937\x04\xcc\xee\x0bixduA\xb6x"\x0fw\x84\xf7K\x8dFe\x92[MVku\x04F?\x0b\x1b\xb4\x19\xbf\x02\x03\x01\x00\x01\xa3\x82\x02\x0f0\x82\x02\x0b0\x1f\x06\x03U\x1d%\x04\x180\x16\x06\x08+\x06\x01\x05\x05\x07\x03\x03\x06\n+\x06\x01\x04\x01\x827\n\x03\x060\x1d\x06\x03U\x1d\x0e\x04\x16\x04\x14\xa1\xe6\xc3e\xd0\xe6\xe8(b\xc2\xf3\xc2#\xa6\x1cI\x82\x0b\xd5S0\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x07\x800\x1f\x06\x03U\x1d#\x04\x180\x16\x80\x14\x90\x8b\x11\xa5p\xed\xe0\xf9\xa9\xc0\xac\x08\xc7\xb5\xf4\x82\xb1<\xc5J0{\x06\x03U\x1d\x1f\x04t0r0p\xa0n\xa0l\x864http://crl.microsoft.com/pki/crl/products/WinPCA.crl\x864http://www.microsoft.com/pki/crl/products/WinPCA.crl0R\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04F0D0B\x06\x08+\x06\x01\x05\x05\x070\x02\x866http://www.microsoft.com/pki/certs/MicrosoftWinPCA.crt0\x81\xc6\x06\x03U\x1d \x04\x81\xbe0\x81\xbb0\x81\xb8\x06\t+\x06\x01\x04\x01\x827\x15/0\x81\xaa0@\x06\x08+\x06\x01\x05\x05\x07\x02\x01\x164https://www.microsoft.com/pki/ssl/cps/WindowsPCA.htm0f\x06\x08+\x06\x01\x05\x05\x07\x02\x020Z\x1eX\x00C\x00o\x00p\x00y\x00r\x00i\x00g\x00h\x00t\x00 \x00\xa9\x00 \x001\x009\x009\x009\x00-\x002\x000\x000\x005\x00 \x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00 \x00C\x00o\x00r\x00p\x00o\x00r\x00a\x00t\x00i\x00o\x00n\x00.0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x01\x01\x00s_\xca\x80\x1c`Fo\xb94\x9d\x88\xe3\xbe"\x8c\xfa\xe6X\x9a\xab{\x1a\x97\xfd\xed.9\xccY[\x1dz\x06\x8a\xbbC\x93{\x1e\xa1\x88S\xdfD\xf8S\xa9\xea\xf6g\x1b:x\x84\x11jo)G\x90\n\x0c{"wNo\xb8d)\xdf\x06\xc7\xc8s\x84\xd6f\xa0\xca\xd9Z&\x82W\xf9\xe3O9\xaf.\x8e\xb1\x06[r\xf272\xaeN\xce<}\xb0\x12+\x9e\xa5u\xe3C\xa6\x12\x8b\x06\x14\x98w\xe3X2%`\x07\x8cYq\xa7qA\xb3\x06\x8d\\\xef\x9c\x7fZ"m\xb7\xd3\xd9\xf5\xa6\x1bR\xde\xf5~v|\xfe\xf4\xc8#\x1aK%\xeb\xe4\xee\xaf\x10\x0bU\xc3\xd8\xc1\x17\x85ao\xd3?\xb6\xe9\xec\x84\xa5\xeem\xb2\xff\xe8l\x95\xab+^\xc8\x85\xc3\x11`\xac\xfa\x02\x05\xf1{\xda\xc3iI\x96\xa5p\xf9efF\x10\x8d4\xe9!\x94<\x0fqJ\x1c\xea\x1f\xf7#\xa6\x87`4\xe9\x14\xe1\xde\x03Y\xb4\x02\x1d:\xaf\xe3U\x05\xf5\xed\xc1\xf4\xe4]\x0e\xd3\x970\x82\x06\x070\x82\x03\xef\xa0\x03\x02\x01\x02\x02\na\x16h4\x00\x00\x00\x00\x00\x1c0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000_1\x130\x11\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\x03com1\x190\x17\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\tmicrosoft1-0+\x06\x03U\x04\x03\x13$Microsoft Root Certificate Authority0\x1e\x17\r070403125309Z\x17\r210403130309Z0w1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1!0\x1f\x06\x03U\x04\x03\x13\x18Microsoft Time-Stamp PCA0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\x9f\xa1l\xb1\xdf\xdbH\x92*|k.\x19\xe1\xbd\xe2\xe3\xc5\x99Q#P\xad\xce\xdd\x18N$\x0f\xee\xd1\xa7\xd1L\xadt0 \x11\xeb\x07\xd5T\x95\x15I\x94\x1bB\x92\xae\x98\\0&\xda\x00k\xe8{\xbd\xec\x89\x07\x0f\xf7\x0e\x04\x98\xf0\x89\xcc\x1f\xcb3$\x87\x9d\xf2\xf4g\x1c,\xfc{\xe7\x88\x1d\xea\xe7N\xa3\xa1\xc1#S\xca\x8d\xfaE\xcf\t\xd0^\xaf\xd0\xb0B\x04\xa2\xf9\xa6l\x93g\xd7(\xdcFS\xb0\x86\xd0\xe5(F.\'\xac\x86OUR\x0c\xe4\x03,\xfbj\x90\x900n\x87\xf3Y0\x9d\xfa~\xd6\x97\xb3\xe8!\x97~\xf8\xd2\x13\xf3\x08\xb7SmR\xb4E\x90\x9fH\x00JGf\x11\')f\xa8\x97\xe4\xd3\x06\x81J\xa2\xf9\x84\xa7\x11G\x14\t\x82\x9f\x84\xedUx\xfe\x01\x9a\x1dP\x08\x85\x00\x100F\xed\xb7\xde#F\xbb\xc4-T\x9f\xaf\x1exA1w\xcc\x9b\xdf;\x83\x93\xa1a\x02\xb5\x1d\r\xb1\xfc\xf7\x9b\xb2\x01\xce"KT\xff\xf9\x05\xc3\xc2 \x0b\x02\x03\x01\x00\x01\xa3\x82\x01\xab0\x82\x01\xa70\x0f\x06\x03U\x1d\x13\x01\x01\xff\x04\x050\x03\x01\x01\xff0\x1d\x06\x03U\x1d\x0e\x04\x16\x04\x14#4\xf8\xd9RFp\n\xed@\xfbv\xfb\xb3+\xb0\xc35\xb3\x0f0\x0b\x06\x03U\x1d\x0f\x04\x04\x03\x02\x01\x860\x10\x06\t+\x06\x01\x04\x01\x827\x15\x01\x04\x03\x02\x01\x000\x81\x98\x06\x03U\x1d#\x04\x81\x900\x81\x8d\x80\x14\x0e\xac\x82`@V\'\x97\xe5%\x13\xfc*\xe1\nS\x95Y\xe4\xa4\xa1c\xa4a0_1\x130\x11\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\x03com1\x190\x17\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\tmicrosoft1-0+\x06\x03U\x04\x03\x13$Microsoft Root Certificate Authority\x82\x10y\xad\x16\xa1J\xa0\xa5\xadLsX\xf4\x07\x13.e0P\x06\x03U\x1d\x1f\x04I0G0E\xa0C\xa0A\x86?http://crl.microsoft.com/pki/crl/products/microsoftrootcert.crl0T\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04H0F0D\x06\x08+\x06\x01\x05\x05\x070\x02\x868http://www.microsoft.com/pki/certs/MicrosoftRootCert.crt0\x13\x06\x03U\x1d%\x04\x0c0\n\x06\x08+\x06\x01\x05\x05\x07\x03\x080\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x02\x01\x00\x10\x97\x8a\xc3\\\x03D6\xdd\xe9\xb4\xadw\xdb\xceyQM\x01\xb1.tq[m\x0c\x13\xab\xce\xbe{\x8f\xb8.\xd4\x12\xa2\x8cmb\xb8W\x02\xcbN \x13P\x99\xddz@\xe2W\xbb\xafX\x9a\x1c\xe1\x1d\x01\x86\xac\xbbx\xf2\x8b\xd0\xec;\x01\xee\xe2\xbe\x8f\n\x05\xc8\x8dH\xe2\xf0S\x15\xddO\xab\x92\xe4\xe7\x8dj\xd5\x80\xc1\xe6\x94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\\\xd8M\x1b\xa1\xd8\xfa/\x9e?.U\x16k\xc9\x13\xa3\xfd0\x82\x06\xa10\x82\x04\x89\xa0\x03\x02\x01\x02\x02\na\x07\x02\xdc\x00\x00\x00\x00\x00\x0b0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000_1\x130\x11\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\x03com1\x190\x17\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\tmicrosoft1-0+\x06\x03U\x04\x03\x13$Microsoft Root Certificate Authority0\x1e\x17\r050915215541Z\x17\r160315220541Z0\x81\x811\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1+0)\x06\x03U\x04\x03\x13"Microsoft Windows Verification PCA0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\xc5\xac\x93N\xe6J\x11\x9e7\xd05\xd2\xb0\x06\\\x83\x14\xa5a\x92\xfc\xfe\xb3\x89\xc1\xe6\xcd\xc8\x1f1\x84\t\x914F\x92,\xb8\xee,\xc5 s\xc4\xe8\x1a\xd8\x8d\xcezh\xb5fx\x8b\xe5`\x15\xa2\xf6)Z\x1d^]\xfcb\xd3\xc1\\)\x89\xfb3\xf8\x16\x956\xdd\xb1FtirS\xd5\xaa\xe8\x8a\x99\x1a\xd8\xf7g\t\xd9\t "8z\xd6\x03#\xd7\x89\x9f\x1c\x01\xb7Q\xdf\x98f*\x02\x8b\x06\xec\xe4)\xef[B\x17\x15\x97Q\x8d}%\n\xaf%\xe8\xde\xdc\x9bg\x16\nVs\x9d\xb3\x1d\x85\x83\x0b~3+b3\xce\x1c \x81K^\xd3\xc6I\xb8\xf6.\xd3N\xb0qDFd>\xdeCf\x04\xb9\xcc\x83H:\xc56z\x04H\x0b\x89\x02=c\xa2\x01v)\x97u\xe9\x01\xe6\x00\x97\t\x92\xf8\xe2\'\xf0)gCw\xc3P\x96S1\xe1\xb6q\x8b\xecw\xc7|1H\xd5\xb8%"\x8c\x00\xf7(8z\xbd|\xc7?\xcd@&w\xdd\x00\x00\x11\x9a\x95\xbe\x1f\xdb\x02\x03\x01\x00\x01\xa3\x82\x02:0\x82\x0260\x10\x06\t+\x06\x01\x04\x01\x827\x15\x01\x04\x03\x02\x01\x000\x1d\x06\x03U\x1d\x0e\x04\x16\x04\x14\x90\x8b\x11\xa5p\xed\xe0\xf9\xa9\xc0\xac\x08\xc7\xb5\xf4\x82\xb1<\xc5J0\x0b\x06\x03U\x1d\x0f\x04\x04\x03\x02\x01\xc60\x0f\x06\x03U\x1d\x13\x01\x01\xff\x04\x050\x03\x01\x01\xff0\x81\x98\x06\x03U\x1d#\x04\x81\x900\x81\x8d\x80\x14\x0e\xac\x82`@V\'\x97\xe5%\x13\xfc*\xe1\nS\x95Y\xe4\xa4\xa1c\xa4a0_1\x130\x11\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\x03com1\x190\x17\x06\n\t\x92&\x89\x93\xf2,d\x01\x19\x16\tmicrosoft1-0+\x06\x03U\x04\x03\x13$Microsoft Root Certificate Authority\x82\x10y\xad\x16\xa1J\xa0\xa5\xadLsX\xf4\x07\x13.e0P\x06\x03U\x1d\x1f\x04I0G0E\xa0C\xa0A\x86?http://crl.microsoft.com/pki/crl/products/microsoftrootcert.crl0T\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04H0F0D\x06\x08+\x06\x01\x05\x05\x070\x02\x868http://www.microsoft.com/pki/certs/MicrosoftRootCert.crt0\x81\x80\x06\x03U\x1d \x04y0w0u\x06\t+\x06\x01\x04\x01\x827\x15/0h0f\x06\x08+\x06\x01\x05\x05\x07\x02\x020Z\x1eX\x00C\x00o\x00p\x00y\x00r\x00i\x00g\x00h\x00t\x00 \x00\xa9\x00 \x001\x009\x009\x009\x00-\x002\x000\x000\x005\x00 \x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00 \x00C\x00o\x00r\x00p\x00o\x00r\x00a\x00t\x00i\x00o\x00n\x00.0\x1f\x06\x03U\x1d%\x04\x180\x16\x06\x08+\x06\x01\x05\x05\x07\x03\x03\x06\n+\x06\x01\x04\x01\x827\n\x03\x060\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x02\x01\x00%1\xa1X\xeaR\xe5\xe1\x17\x0c\xe6\xf1?x\xa3?r\xaf\xa7W\x10S\x89\x10^2\x9c\xb6p\xc3\x15+M\x1504\xe8\xc0j\xe4\x1c\xd3. eH\xd7\x1b\x98b!\xbaE\x9fJ\xec\xdb/\t\x19Q\xe5\xed2\x19Q/\xe1\xdd\xfb\xc6R\xfd\xeb\xc6\x82%B\x03\t\xa68\xb66\x1f\xcc\xc9\x80\xbbZi\x181\xc3\xb3\xa0\xb3gG\xbe\x9d\xc7\xe2?\x96\xb3\x88\xf8\x19\xbe9\xb9\xe9\x95\xce\xfc|\xaf\xa8\xcd\xd0A\x90\xe0\xd5\xb3\x1c/h\xbb\xdb\x0flj\xdd\xf2\xaf\xde\xf2\xb5\xde\r\xb6\xa6Z\xf0\x86\n\xb9m\x99K?{-\x01\x84l\x8f\x87\xdc\x7f\x8f\xab\x14\x88\xd0\x06\x914\xbe\x1b\x82"\xa4\xbcU\x8a\xad\x9b\xfcs\x14\x10\xc4\xc9\x19\x1e\x07}\x9b\x0e\xc0\x95&]\xc6\x1f\xac\xb4\xf2~\xba%pJ{\xd7\x8e\xd1\x9d\xa0\x13Iz\xb0\x02RR$\xf4\xaf\xdd@-\xe5>2X\xb3Jj\xdd\x11Y\xaa-\xbc\xa4\xa0s8\xf9@wk4\x19W\xcd8h\'\x82\xf8\xd1o\xeb#\xc0?R\xf3N\xd5\x02>j\x9a+\xc1\xf51q\xdbAM;\xde\xef\xad\xaf\x1f\x88eC\x1bQ\xb7\x9au\xca\x8eiI\x10\x8fx\x8atE\xb9\t\x8esw\x072JK\xd7h+\x98\xc5\xbaT\xea?\xcb\xa2\x00\x8c\xbb\xd8\x10X\xf2\xdb\xdc\x9b\xcd\xd8\xeaHC\xe2J~e\xb2\xdc\xf5-N%g\xa8\xe0\xb5\xba\xa7\xdd~^\xc1L\x02t\xc9\xb3n\xe3\xf8\xf0\x0b\xed\xfc\xb9)\xc5[\xc96Q\x90\xdbx}\xb92\x0f^v\xd2\x15\\;7!\xc6\xdb\xc9\x19n\xedt*\\,\x0bQIES\xb0\xb2\xb3#\xd4\xa1\xb0_\r\x19\xcd\x14\xa7\xe3<\x9b\x97r\x94\x14\xdf\xff\xc1\x90\x1b\xa5\xdf\xf5\xa9\xf3\x1b\x17\xda\xb5\xfcD\xe0\xe8\xe2<\xa2z\xbb\xbbe\xe6M\xb1\xb5\x15\xa1\xd9g;\xb0\x0c};\xe9\xeeQ*G\xf5\x15\x0f\x8c\xad].5\xdf\xf4\xa4.\xf6\x137Z+\xe8U\x9aI,\x97\xce\x9d\x01\x9e\x97F\\\xd9-\xbc$Z\x95YoM\xca\x9d\xd6W&1\x82\x04\x960\x82\x04\x92\x02\x01\x010\x81\x900\x81\x811\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1+0)\x06\x03U\x04\x03\x13"Microsoft Windows Verification PCA\x02\na\x01\xc6\xc1\x00\x00\x00\x00\x00\x070\t\x06\x05+\x0e\x03\x02\x1a\x05\x00\xa0\x81\xba0\x19\x06\t*\x86H\x86\xf7\r\x01\t\x031\x0c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x040\x1c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0b1\x0e0\x0c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x150#\x06\t*\x86H\x86\xf7\r\x01\t\x041\x16\x04\x14\xcd?\xf6\x88\xbe1\x7f\xaduK\n\xf5B\x99\xc6\xab\x81\xc92\x190Z\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0c1L0J\xa0$\x80"\x00M\x00i\x00c\x00r\x00o\x00s\x00o\x00f\x00t\x00 \x00W\x00i\x00n\x00d\x00o\x00w\x00s\xa1"\x80 http://www.microsoft.com/windows0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x04\x82\x01\x00\x9d\xe7\x0f`\xe4\xc2\t\xb35?\x93O\x08\xf6A\x9f\x0eiu\x89\xa17\xf3\x80\xa6\x9c\x90w3q9#\xa6>)\x8e\xbf\x98\xf8=\xee\x8ae\x83\x1b|\x0b{\xd7\th\x12}\x03~\r\x1b/K\xec=Y-\xfc\xc2\x8b8\x90v}\xdek1\xb57\x88\x90\x96\x83\xb51!\xa9\xd7\x15\x87\xfa\x12\xc1\x84\xf0\x91\x80\x0e#rH\x8a\x04\x97R\xba\xfe\xc3\xeb\xa1\xdb`\x08<1\n>*|\xae\xeex\xf4\xcd\x02b7\x00\xcf3/\x13>R{\xdf\xa0\xcb\x84\xa6cRg\xc8b\r\xb0|=:\xdf5M&\x0c*N\x83\xe9-\xa0 \xee)ZJ\xadD\xb95\t\xa4\x0f\xa2(c\xe9\xdb\xd0;\xcb0\xdd!{}\xec\x8a/\xe3\xfa\xdf9\x1aa\xf8EF\x9eC\xd4H\xbaT>4\x9f\x88si]\x85\xae\xdev\xf4{\x968\x0b\r\x11\xa4^/qN\xf1\xd9n~\x00\xa4J\xc0\x88\xe4\xf0\x02\xae\\\x94\xd6\r\xbf\'\xdfSQ\x08\xd2$\x18\xd0\xba"\x91\xe7\xc4\x0b\xa1\x82\x02\x1d0\x82\x02\x19\x06\t*\x86H\x86\xf7\r\x01\t\x061\x82\x02\n0\x82\x02\x06\x02\x01\x010\x81\x850w1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nWashington1\x100\x0e\x06\x03U\x04\x07\x13\x07Redmond1\x1e0\x1c\x06\x03U\x04\n\x13\x15Microsoft Corporation1!0\x1f\x06\x03U\x04\x03\x13\x18Microsoft Time-Stamp PCA\x02\na\x04\xcai\x00\x00\x00\x00\x00\x080\x07\x06\x05+\x0e\x03\x02\x1a\xa0]0\x18\x06\t*\x86H\x86\xf7\r\x01\t\x031\x0b\x06\t*\x86H\x86\xf7\r\x01\x07\x010\x1c\x06\t*\x86H\x86\xf7\r\x01\t\x051\x0f\x17\r090714014555Z0#\x06\t*\x86H\x86\xf7\r\x01\t\x041\x16\x04\x14\x80\xd1\xdb\xd8\r\x9b\x91a\xc3\x9c$\xb5m\xcd\x85"b\xf5u\x1f0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x04\x82\x01\x00\x86\xec4$\xf6\x9d\xc4\xe93\xc6e\xa3\x02\x1b4+\x8f1G\xda\xf8\xb1\xd9\xcd[\x0b\xb2T\xef\x1c\x93\xb8g\xb1\x0e?@\xfam@\xa5\xbf\xbf\r"%\xfd\x9a\xa7S\x04\xfbk\x9b\xd3?K\x00\x91\xe2a\x024\xd3\x9b\xa9\x85\x16BE\xfc\x8b~Z\xc1u\xe8L\xb4\x0f\xbe\xe6M\x94\xdc\xaf\xe2\xa9\xe8\x18\x8aF|\xcf\xeaa\xaaU\xc1\xdd\xb4\x8fj\xa6i\xa4\xd13n%(\xbe\x96\xf5\xfds\x88\xe1H%\xc3|.1\xe6\xf7G\x85C\xc8\xa7;E\x0e\xe7\\[\xef=\x0b\x7f\x91\x96\xca\xba\xf2\\&\xa8\xb7\xa9&\xc79\xf7x\xff\xdd\x9d\xf0\xf2C\xec\xe2\xffq_\xe9\xcd\xb3\x85\xb4\x14\xf4\x99\x81\xdf w\x1c\xabM\x02~\xeb\x95\x94,\xe4\xfd!\xc9\xff\xc7\xea\xae\x9f"W\xc5\xbdd\x04\xd0\xe1\xe1\x1f\x8f\x8a\x9e\xbd\x04\xa3\x07o\xcb\xb1\xd6\x97\xd8-L\xf05u\xbc\xe7\xb2\x88\xcb\xa2n\xd0\x11m\xde\x9e+\xf4\xa7\xd3y\xb0\xb6\x8cX\xa6\xa4K\x14j`0\xff\xa0\xff',
)],
'sha1': b'\x9b\xd4D\xd5\x8bY\xcc\xa82\xbb_\xc9\x11\xf8\x1flf\xb4\x0f\xcc',
'name': 'pecoff',
'md5': b'q\x03\x14]B\xe8\x19h\xd1\xa77\x136\x05[-'
}]
SAMPLE_DATA_2 = [{
'sha256':
b"\xa1]\x00\x99\\\xfc\x00'\x0e6\xc4i\x11\x93\xda\x84\xaa\x10\xf8\xcb\xc3\x1b\x9eI\xf3\xe63\x8c\xd2\x7f\x862",
'sha512':
b'^\\\x8d\x97\xb3o=0\xf2\xfe\xc5\x1c\xc8\xf5g|\xb1U#\x9d\x9d%\x82>}A\xe2\x0f\x81\x14\xb48\x15\x88o\x11|SO\xf8)3\x87\xee8\x88\xb6X\xc4\xfa\xb2&q\n\xe0x\xbcW:!A\x11\x05\x05',
'name':
'generic',
'md5':
b'&\x087]\x0b\x15\xf6a\xfbo\xbd\x7fe\xb6\xae)',
'sha1':
b'\xfcY\x7f~\x84\xd2=\x1db\xd5@\xa5\xfd\xac\xc4p\xd8%\xfat'
}]
SAMPLE_DATA_3 = [{
'sha256':
b'\x05\x0b\xbe\xb6\xb9\xaa@Ba\xb2\t\x892\\hC7\x086z\xaa\xedN\x1d\xff=$\xae)\xa5-*',
'sha512':
b"\xf8\xc0`\xcc<.D\xdbL\x04\x0e|\x9c\xfb\x05B\x8a\x17\x92\n'\xc4N%\x8f\xe7]\x11\xe3l\xe6V\xa7\xd0\x18\x86\xe6F\xfe\x8e\x1a\xa7\xb4\x9a\x16Yw\x0c!*\xb4\x91IB5e\x06\x16\r\x1f\xack\x16r",
'name':
'generic',
'md5':
b'{CV{L2\xadz\xde\xd57\xcd;\x13B\xb9',
'sha1':
b'\x83"\xf1\xc2\xc3U\xd8\x842\xf1\xf0:\x1f#\x1fc\x91!\x86\xbd'
}, {
'SignedData': [(
512, 2,
b'0\x82\x153\x06\t*\x86H\x86\xf7\r\x01\x07\x02\xa0\x82\x15$0\x82\x15 \x02\x01\x011\x0e0\x0c\x06\x08*\x86H\x86\xf7\r\x02\x05\x05\x000g\x06\n+\x06\x01\x04\x01\x827\x02\x01\x04\xa0Y0W03\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0f0%\x03\x01\x00\xa0 \xa2\x1e\x80\x1c\x00<\x00<\x00<\x00O\x00b\x00s\x00o\x00l\x00e\x00t\x00e\x00>\x00>\x00>0 0\x0c\x06\x08*\x86H\x86\xf7\r\x02\x05\x05\x00\x04\x10\xe0(n\x9az\x8d\xf0\xd5\xd9\xea\x88m\xea\x8e\xe6\x00\xa0\x82\x10\xea0\x82\x03z0\x82\x02b\xa0\x03\x02\x01\x02\x02\x108%\xd7\xfa\xf8a\xaf\x9e\xf4\x90\xe7&\xb5\xd6Z\xd50\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000S1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1+0)\x06\x03U\x04\x03\x13"VeriSign Time Stamping Services CA0\x1e\x17\r070615000000Z\x17\r120614235959Z0\\1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1402\x06\x03U\x04\x03\x13+VeriSign Time Stamping Services Signer - G20\x81\x9f0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x81\x8d\x000\x81\x89\x02\x81\x81\x00\xc4\xb5\xf2R\x15\xbc\x88\x86`)\x16J[/K\x91k\x87\x91\xf35TX5\xea\xd16^bMRQ4q\xc2{f\x1d\x89\xc8\xdd*\xc4j\n\xf67\xd9\x98t\x91\xf6\x92\xae\xb0\xb5v\x96\xf1\xa9JcEG.k\x0b\x92NK+\x8c\xeeXJ\x8b\xd4\x07\xe4\x1a,\xf8\x82\xaaX\xd9\xcdB\xf3-\xc0u\xde\x8d\xab\xc7\x8e\x1d\x9alL\x08\x95\x1e\xde\xdb\xefg\xe1r\xc2I\xc2\x9e`<\xe1\xe2\xbe\x16\xa3cxi\x14{\xad-\x02\x03\x01\x00\x01\xa3\x81\xc40\x81\xc104\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04(0&0$\x06\x08+\x06\x01\x05\x05\x070\x01\x86\x18http://ocsp.verisign.com0\x0c\x06\x03U\x1d\x13\x01\x01\xff\x04\x020\x0003\x06\x03U\x1d\x1f\x04,0*0(\xa0&\xa0$\x86"http://crl.verisign.com/tss-ca.crl0\x16\x06\x03U\x1d%\x01\x01\xff\x04\x0c0\n\x06\x08+\x06\x01\x05\x05\x07\x03\x080\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x06\xc00\x1e\x06\x03U\x1d\x11\x04\x170\x15\xa4\x130\x111\x0f0\r\x06\x03U\x04\x03\x13\x06TSA1-20\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x01\x01\x00P\xc5K\xc8$\x80\xdf\xe4\r$\xc2\xde\x1a\xb1\xa1\x02\xa1\xa6\x82-\x0c\x83\x15\x817\n\x82\x0e,\xb0Z\x17a\xb5\xd8\x05\xfe\x88\xdb\xf1\x91\x91\xb3V\x1a@\xa6\xeb\x92\xbe89\xb0u6t:\x98O\xe47\xba\x99\x89\xca\x95B\x1d\xb0\xb9\xc7\xa0\x8dW\xe0\xfa\xd5d\x04B5N\x01\xd13\xa2\x17\xc8M\xaa\'\xc7\xf2\xe1\x86L\x028M\x83x\xc6\xfcS\xe0\xeb\xe0\x06\x87\xdd\xa4\x96\x9e^\x0c\x98\xe2\xa5\xbe\xbf\x82\x85\xc3`\xe1\xdf\xad(\xd8\xc7\xa5Kd\xda\xc7\x1b[\xbd\xac9\x08\xd58"\xa13\x8b/\x8a\x9a\xeb\xbc\x07!?DA\t\x07\xb5e\x1c$\xbcH\xd3D\x80\xeb\xa1\xcf\xc9\x02\xb4\x14\xcfT\xc7\x16\xa3\x80\\\xf9y>]r}\x88\x17\x9e,C\xa2\xcaS\xce}=\xf6*:\xb8O\x94\x00\xa5m\n\x83]\xf9^S\xf4\x18\xb3W\x0fp\xc3\xfb\xf5\xad\x95\xa0\x0e\x17\xde\xc4\x16\x80`\xc9\x0f+n\x86\x04\xf1\xeb\xf4x\'\xd1\x05\xc5\xee4[^\xb9I2\xf230\x82\x03\xc40\x82\x03-\xa0\x03\x02\x01\x02\x02\x10G\xbf\x19\x95\xdf\x8dRFC\xf7\xdbmH\r1\xa40\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000\x81\x8b1\x0b0\t\x06\x03U\x04\x06\x13\x02ZA1\x150\x13\x06\x03U\x04\x08\x13\x0cWestern Cape1\x140\x12\x06\x03U\x04\x07\x13\x0bDurbanville1\x0f0\r\x06\x03U\x04\n\x13\x06Thawte1\x1d0\x1b\x06\x03U\x04\x0b\x13\x14Thawte Certification1\x1f0\x1d\x06\x03U\x04\x03\x13\x16Thawte Timestamping CA0\x1e\x17\r031204000000Z\x17\r131203235959Z0S1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1+0)\x06\x03U\x04\x03\x13"VeriSign Time Stamping Services CA0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\xa9\xca\xb2\xa4\xcc\xcd \xaf\n}\x89\xac\x87u\xf0\xb4N\xf1\xdf\xc1\x0f\xbfga\xbd\xa3d\x1c\xda\xbb\xf9\xca3\xab\x840\x89X~\x8c\xdbk\xdd6\x9e\x0f\xbf\xd1\xecx\xf2w\xa6~o<\xbf\x93\xaf\r\xbah\xf4l\x94\xca\xbdR-\xabH=\xf5\xb6\xd5]_\x1b\x02\x9f\xfa/k\x1e\xa4\xf7\xa3\x9a\xa6\x1a\xc8\x02\xe1\x7fLR\xe3\x0e`\xec@\x1c~\xb9\r\xde?\xc7\xb4\xdf\x87\xbd_zj1.\x03\x99\x81\x13\xa8G \xce1s\rW-\xcdx43\x95\x12\x99\x12\xb9\xdeh/\xaa\xe6\xe3\xc2\x8a\x8c*\xc3\x8b!\x87f\xbd\x83XWou\xbf<\xaa&\x87]\xca\x10\x15<\x9f\x84\xeaT\xc1\nn\xc4\xfe\xc5J\xdd\xb9\x07\x11\x97"|\xdb>\'\xd1\x1ex\xec\x9f1\xc9\xf1\xe6"\x19\xdb\xc4\xb3GC\x9a\x1a_\xa0\x1e\x90\xe4^\xf5\xee|\xf1}\xabb\x01\x8f\xf5M\x0b\xde\xd0"V\xa8\x95\xcd\xae\x88v\xae\xee\xba\r\xf3\xe4M\xd9\xa0\xfbh\xa0\xae\x14;\xb3\x87\xc1\xbb\x02\x03\x01\x00\x01\xa3\x81\xdb0\x81\xd804\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04(0&0$\x06\x08+\x06\x01\x05\x05\x070\x01\x86\x18http://ocsp.verisign.com0\x12\x06\x03U\x1d\x13\x01\x01\xff\x04\x080\x06\x01\x01\xff\x02\x01\x000A\x06\x03U\x1d\x1f\x04:0806\xa04\xa02\x860http://crl.verisign.com/ThawteTimestampingCA.crl0\x13\x06\x03U\x1d%\x04\x0c0\n\x06\x08+\x06\x01\x05\x05\x07\x03\x080\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x01\x060$\x06\x03U\x1d\x11\x04\x1d0\x1b\xa4\x190\x171\x150\x13\x06\x03U\x04\x03\x13\x0cTSA2048-1-530\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x81\x81\x00Jk\xf9\xeaX\xc2D\x1c1\x89y\x99+\x96\xbf\x82\xac\x01\xd6\x1cL\xcd\xb0\x8aXn\xdf\x08)\xa3^\xc8\xca\x93\x13\xe7\x04R\r\xefG\'/\x008\xb0\xe4\xc9\x93N\x9a\xd4"b\x15\xf7?7!Op1\x80\xf1\x8b8\x87\xb3\xe8\xe8\x97\x00\xfe\xcfU\x96N$\xd2\xa9\'Nz\xae\xb7aA\xf3*\xce\xe7\xc9\xd9^\xdd\xbb+\x85>\xb5\x9d\xb5\xd9\xe1W\xff\xbe\xb4\xc5~\xf5\xcf\x0c\x9e\xf0\x97\xfe+\xd3;R\x1b\x1b8\'\xf7?J0\x82\x04\xbf0\x82\x04(\xa0\x03\x02\x01\x02\x02\x10A\x91\xa1Z9x\xdf\xcfIef8\x1dLu\xc20\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000_1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1705\x06\x03U\x04\x0b\x13.Class 3 Public Primary Certification Authority0\x1e\x17\r040716000000Z\x17\r140715235959Z0\x81\xb41\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1\x1f0\x1d\x06\x03U\x04\x0b\x13\x16VeriSign Trust Network1;09\x06\x03U\x04\x0b\x132Terms of use at https://www.verisign.com/rpa (c)041.0,\x06\x03U\x04\x03\x13%VeriSign Class 3 Code Signing 2004 CA0\x82\x01"0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x82\x01\x0f\x000\x82\x01\n\x02\x82\x01\x01\x00\xbe\xbc\xee\xbc~\xef\x83\xeb\xe07O\xfb\x03\x108\xbe\x08\xd2\x8c}\x9d\xfa\x92\x7f\x19\x0c\xc2k\xeeBR\x8c\xde\xd3\x1cH\x13%\xea\xc1cz\xf9Qe\xee\xd3\xaa;\xf5\xf0\x94\x9c+\xfb\xf2f\xd4$\xda\xf7\xf5\x9fn\x1996\xbc\xd0\xa3v\x08\x1e"\'$l8\x91\'\xe2\x84I\xae\x1b\x8a\xa1\xfd%\x82,\x100\xe8q\xab(\xe8wJQ\xf1\xec\xcd\xf8\xf0T\xd4o\xc0\xe3m\n\x8f\xd9\xd8d\x8dc\xb2-N\'\xf6\x85\x0e\xfem\xe3)\x99\xe2\x85G|-\x86\x7f\xe8W\x8f\xadg\xc232\x91\x13 \xfc\xa9#\x14\x9am\xc2\x84Kvh\x04\xd5q,]!\xfa\x88\r&\xfd\x1f-\x91+\xe7\x01UM\xf2m5(\x82\xdf\xd9k\\\xb6\xd6\xd9\xaa\x81\xfd_\xcd\x83\xbac\x9d\xd0"\xfc\xa9;Bi\xb2\x8e:\xb5\xbc\xb4\x9e\x0f^\xc4\xea,\x82\x8b(\xfdS\x08\x96\xdd\xb5\x01 \xd1\xf9\xa5\x18\xe7\xc0\xeeQp7\xe1\xb6\x05HRHo8\xea\xc3\xe8l{D\x84\xbb\x02\x03\x01\x00\x01\xa3\x82\x01\xa00\x82\x01\x9c0\x12\x06\x03U\x1d\x13\x01\x01\xff\x04\x080\x06\x01\x01\xff\x02\x01\x000D\x06\x03U\x1d \x04=0;09\x06\x0b`\x86H\x01\x86\xf8E\x01\x07\x17\x030*0(\x06\x08+\x06\x01\x05\x05\x07\x02\x01\x16\x1chttps://www.verisign.com/rpa01\x06\x03U\x1d\x1f\x04*0(0&\xa0$\xa0"\x86 http://crl.verisign.com/pca3.crl0\x1d\x06\x03U\x1d%\x04\x160\x14\x06\x08+\x06\x01\x05\x05\x07\x03\x02\x06\x08+\x06\x01\x05\x05\x07\x03\x030\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x01\x060\x11\x06\t`\x86H\x01\x86\xf8B\x01\x01\x04\x04\x03\x02\x00\x010)\x06\x03U\x1d\x11\x04"0 \xa4\x1e0\x1c1\x1a0\x18\x06\x03U\x04\x03\x13\x11Class3CA2048-1-430\x1d\x06\x03U\x1d\x0e\x04\x16\x04\x14\x08\xf5Q\xe8\xfb\xfe==d6|h\xcf[x\xa8\xdf\xb9\xc570\x81\x80\x06\x03U\x1d#\x04y0w\xa1c\xa4a0_1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1705\x06\x03U\x04\x0b\x13.Class 3 Public Primary Certification Authority\x82\x10p\xba\xe4\x1d\x10\xd9)4\xb68\xca{\x03\xcc\xba\xbf0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x81\x81\x00\xae:\x17\xb8J{U\xfadU\xec@\xa4\xedIA\x90\x99\x9c\x89\xbc\xaf.\x1d\xcax#\xf9\x1c\x19\x0f\x7f\xebh\xbc2\xd9\x888\xde\xdc?\xd3\x89\xb4?\xb1\x82\x96\xf1\xa4Z\xba\xed.&\xd3\xde|\x01n\x00\n\x00\xa4\x06\x92\x11H\t@\xf9\x1c\x18yg#$\xe0\xbb\xd5\xe1P\xae\x1b\xf5\x0e\xdd\xe0.\x81\xcd\x80\xa3lRO\x91uU\x8a\xba"\xf2\xd2\xeaAu\x88/cU}\x1eTZ\x95Y\xca\xd94\x81\xc0_^\xf6z\xb50\x82\x04\xdd0\x82\x03\xc5\xa0\x03\x02\x01\x02\x02\x10\t^ \xa8\x0bT\xa4]6\xf6\xc0k\x9b\x02\xf9:0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x000\x81\xb41\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1\x1f0\x1d\x06\x03U\x04\x0b\x13\x16VeriSign Trust Network1;09\x06\x03U\x04\x0b\x132Terms of use at https://www.verisign.com/rpa (c)041.0,\x06\x03U\x04\x03\x13%VeriSign Class 3 Code Signing 2004 CA0\x1e\x17\r070627000000Z\x17\r090626235959Z0\x81\xa01\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x13\nCalifornia1\x120\x10\x06\x03U\x04\x07\x13\tCupertino1\x130\x11\x06\x03U\x04\n\x14\nApple Inc.1>0<\x06\x03U\x04\x0b\x135Digital ID Class 3 - Microsoft Software Validation v21\x130\x11\x06\x03U\x04\x03\x14\nApple Inc.0\x81\x9f0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03\x81\x8d\x000\x81\x89\x02\x81\x81\x00\xc0\xcc\xa0\x8c\x1b\x94\x94\xe0\xd7c\xcej6M\xa6\\Z7\xd1\x93i\x05\xb1\xf2V\x00\x14\xb0)s4\xb5\x11T\x0c\xe3JI\xf5\xad\x07\xc0\x90\xb7\xc0?GF\xd8\xeb\'\'i\xd7#\x8c\xb8\xb04^"l\xb0\xff\x98^\x0c\x03,J\xa0x&98!\x91\'1\xc0\x9b\xb7\xe6\xfa\x84G\xd0L(%\xd1\x075E\xbb\xa8\xf0\xa60\xdb\xf1\xd6\x8b\xfa\xc8\xa2\x87\xc3f\xfa\x90\xc5W\xccD\x01\xbd\xac\xe2V\xa6\xbaG\xf9E\x9cP\xcf\x02\x03\x01\x00\x01\xa3\x82\x01\x7f0\x82\x01{0\t\x06\x03U\x1d\x13\x04\x020\x000\x0e\x06\x03U\x1d\x0f\x01\x01\xff\x04\x04\x03\x02\x07\x800@\x06\x03U\x1d\x1f\x0490705\xa03\xa01\x86/http://CSC3-2004-crl.verisign.com/CSC3-2004.crl0D\x06\x03U\x1d \x04=0;09\x06\x0b`\x86H\x01\x86\xf8E\x01\x07\x17\x030*0(\x06\x08+\x06\x01\x05\x05\x07\x02\x01\x16\x1chttps://www.verisign.com/rpa0\x13\x06\x03U\x1d%\x04\x0c0\n\x06\x08+\x06\x01\x05\x05\x07\x03\x030u\x06\x08+\x06\x01\x05\x05\x07\x01\x01\x04i0g0$\x06\x08+\x06\x01\x05\x05\x070\x01\x86\x18http://ocsp.verisign.com0?\x06\x08+\x06\x01\x05\x05\x070\x02\x863http://CSC3-2004-aia.verisign.com/CSC3-2004-aia.cer0\x1f\x06\x03U\x1d#\x04\x180\x16\x80\x14\x08\xf5Q\xe8\xfb\xfe==d6|h\xcf[x\xa8\xdf\xb9\xc570\x11\x06\t`\x86H\x01\x86\xf8B\x01\x01\x04\x04\x03\x02\x04\x100\x16\x06\n+\x06\x01\x04\x01\x827\x02\x01\x1b\x04\x080\x06\x01\x01\x00\x01\x01\xff0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x05\x05\x00\x03\x82\x01\x01\x00\x88\xd9Hf\r\xd5\xfa\x0f6\xfd\x87\t\xe2[\xda\x1e\x9c\xb9\xdcs\xbdbM\x1f\x84[\xa1\x88\xf2A\x06\xa1\xe0\xed\x14N\xc4\xa23q>\x9d\x87|\xfc\x0c\xf2\x91\x18\x8d\xb4\x1d\x07x%\xa9\x82\x8aX\xef\xc2?g\x89\xfc\x0f\xaa\x0fMB\xb3o\xbb\xef\x1c\xde\xaf&\xdc\xd6\xad\xf7\xcc\xe7\xce\xbfK<\x02>5\xf7\xef\x14\x8f\xb8\x06"\x95~\xc3,\xa4%\n\xd0\xd8\x01:\x83\x1e\xc1\x87)\xfe]\xc1\rW\xa6G\xde,\xfe*x\x1f\xc6\x99\xa1r\xe8\xd3\xadL\x93\xd6~U\xa8Q\x05\x99\x8aP\x16\xedY]m@\x04\xb9R\xf3\xaa\x8cZme\x96\x0f\x08\xcc\xb8\x15:n#\xbdAz\xb6\xf1K#\x05-\x17<9\n\x8a!@\xe6on&\xab\xed\x91\xcf\x96\xf5\xe8[k\xea\xf2\xde_\x92\n\xce\x1e\xbf\xb5\xb5*\xd5\xac\xdfv\xb9\xc9\xd6\xbe\xca\x15\x8e\xab5;\x98\xea/\x8e\xdc\x084zef\x11V0\xd1\xeb"\x98\x10\x8c\xe34\x93\xda\x10\x90\x18\xf5a8CI\x181\x82\x03\xb20\x82\x03\xae\x02\x01\x010\x81\xc90\x81\xb41\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1\x1f0\x1d\x06\x03U\x04\x0b\x13\x16VeriSign Trust Network1;09\x06\x03U\x04\x0b\x132Terms of use at https://www.verisign.com/rpa (c)041.0,\x06\x03U\x04\x03\x13%VeriSign Class 3 Code Signing 2004 CA\x02\x10\t^ \xa8\x0bT\xa4]6\xf6\xc0k\x9b\x02\xf9:0\x0c\x06\x08*\x86H\x86\xf7\r\x02\x05\x05\x00\xa0\x81\xba0\x19\x06\t*\x86H\x86\xf7\r\x01\t\x031\x0c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x040\x1c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0b1\x0e0\x0c\x06\n+\x06\x01\x04\x01\x827\x02\x01\x150\x1f\x06\t*\x86H\x86\xf7\r\x01\t\x041\x12\x04\x10\x85\x90\xd4\xd2\xd3{w\xde\xf3[\xe7E\x88w\xc7+0^\x06\n+\x06\x01\x04\x01\x827\x02\x01\x0c1P0N\xa0,\x80*\x00A\x00p\x00p\x00l\x00e\x00 \x00S\x00o\x00f\x00t\x00w\x00a\x00r\x00e\x00 \x00U\x00p\x00d\x00a\x00t\x00e\xa1\x1e\x80\x1chttp://www.apple.com/macosx 0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x04\x81\x80\x9d\x80\xe8L\xe3P\xae\x81\xbb{\xa5\xe6\x14\xf3\xc6f\x8e\x80\xde\xfa\xceM^\xea\xf7\xad[n\xedFx>;o\x85\x0f\xba:\xd9\xbfA\xf5b\xc02\x96o\xdbBe\xd7\x84f\xbb\xb2\xccJj$\x01\xa0=\xf0\x03f\xdd\x0b\xdb\x8cY\xda\xb3-\x89\xe3\x7f\xfd\x1d\x97\xe3\xab\x15\\b\xc1\xcd\x0f\xdd9\xab\xa4r0\xdd <\x8b=\xf1\xe1\xb8+\xbc<\xf5C\xf7\xf2\xef\x9a5\xcd\xca\xd0\x85R\xca~\xe4F2\xe9KN\x03\n\xcb\xc0\xa1\x82\x01~0\x82\x01z\x06\t*\x86H\x86\xf7\r\x01\t\x061\x82\x01k0\x82\x01g\x02\x01\x010g0S1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x170\x15\x06\x03U\x04\n\x13\x0eVeriSign, Inc.1+0)\x06\x03U\x04\x03\x13"VeriSign Time Stamping Services CA\x02\x108%\xd7\xfa\xf8a\xaf\x9e\xf4\x90\xe7&\xb5\xd6Z\xd50\x0c\x06\x08*\x86H\x86\xf7\r\x02\x05\x05\x00\xa0Y0\x18\x06\t*\x86H\x86\xf7\r\x01\t\x031\x0b\x06\t*\x86H\x86\xf7\r\x01\x07\x010\x1c\x06\t*\x86H\x86\xf7\r\x01\t\x051\x0f\x17\r080725222153Z0\x1f\x06\t*\x86H\x86\xf7\r\x01\t\x041\x12\x04\x10\xcc\xfeN\xc7\xf2\xca\x9e[\xfdH\xa69\xb4m\x03\xb40\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x04\x81\x80\x89\xc0\xf3\xc9\xfc\xe5R]3\xe5\x88E\xf3M}+\xc7\xcc\xe7\x87[\xc6\x99\xb6\xb8\x11\x8a\xf0\xbb:\x9c\x90\xc5\x1c\x0f\xfe\x1d.\xf8D\x87\x887\x12\x8f$%\xd7Lx\x15*\t\xf5\xb7\xa2~\xb0\x8d"y\xa1^\xc5\xd0\x91\xf72\x9cj\xa6\xb7\x809p\xce\xb9\x14\x9b\x87\xa8\xc5C\x14^\x88\xc2\x93Yw\xe9b\x86\x98\x95\x83r\xda\x19*NlIg\x1cX\xf1\xbf"\x83\x9d\xcc\xd2\x1d=\xe8\xb5M\xc2SW\xe7|T\xf4{\xc5\xc9\x00',
)],
'sha1':
b'\x97\x8b\x90\xac\xe9\x9cvHA\xd2\xdd\x17\xd2x\xfa\xc4\x14\x99b\xa3',
'name':
'pecoff',
'md5':
b'\xe0(n\x9az\x8d\xf0\xd5\xd9\xea\x88m\xea\x8e\xe6\x00'
}]
SAMPLE_LIST = {
'pciide.sys': SAMPLE_DATA_1,
'simple': SAMPLE_DATA_2,
'SoftwareUpdate.exe': SAMPLE_DATA_3,
}
# pyformat: enable
if __name__ == '__main__':
absltest.main()
| 242.165563
| 18,194
| 0.730796
| 7,791
| 36,567
| 3.420742
| 0.187781
| 0.037297
| 0.035271
| 0.019812
| 0.43049
| 0.41248
| 0.398784
| 0.390492
| 0.371318
| 0.351094
| 0
| 0.285852
| 0.034129
| 36,567
| 150
| 18,195
| 243.78
| 0.468728
| 0.011349
| 0
| 0.333333
| 0
| 0.290598
| 0.752283
| 0.50595
| 0
| 0
| 0
| 0
| 0.08547
| 1
| 0.051282
| false
| 0
| 0.042735
| 0
| 0.145299
| 0.102564
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5df35b88c8cd1322e9327d780bdf0a4a2d46df4e
| 221
|
py
|
Python
|
Simulation/utils/__init__.py
|
bobzwik/Quad_Exploration
|
3b5af99634b10d7fc135546a24e78b3a2ab078d4
|
[
"MIT"
] | 15
|
2020-04-11T12:43:19.000Z
|
2021-11-14T03:26:52.000Z
|
Simulation/utils/__init__.py
|
bobzwik/Quad_Exploration
|
3b5af99634b10d7fc135546a24e78b3a2ab078d4
|
[
"MIT"
] | null | null | null |
Simulation/utils/__init__.py
|
bobzwik/Quad_Exploration
|
3b5af99634b10d7fc135546a24e78b3a2ab078d4
|
[
"MIT"
] | 5
|
2020-05-14T17:07:10.000Z
|
2022-02-14T16:20:38.000Z
|
from .rotationConversion import *
from .stateConversions import *
from .mixer import *
from .display import *
from .animation_multiBoxMarkers import *
# from .animation_Markers import *
from .quaternionFunctions import *
| 27.625
| 40
| 0.800905
| 23
| 221
| 7.608696
| 0.434783
| 0.342857
| 0.217143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131222
| 221
| 7
| 41
| 31.571429
| 0.911458
| 0.144796
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b900f9a3e4c73af5e83d343db647dadb519d01e0
| 12,110
|
py
|
Python
|
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2_grpc.py
|
choonho/plugin-prometheus-mon-webhook
|
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2_grpc.py
|
choonho/plugin-prometheus-mon-webhook
|
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2_grpc.py
|
choonho/plugin-prometheus-mon-webhook
|
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
|
[
"Apache-2.0"
] | null | null | null |
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from spaceone.api.power_scheduler.v1 import schedule_rule_pb2 as spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2
class ScheduleRuleStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.create = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/create',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.CreateScheduleRuleRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
)
self.update = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/update',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.UpdateScheduleRuleRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
)
self.delete = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/delete',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
self.get = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/get',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.GetScheduleRuleRequest.SerializeToString,
response_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
)
self.list = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/list',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleQuery.SerializeToString,
response_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RulesInfo.FromString,
)
self.stat = channel.unary_unary(
'/spaceone.api.power_scheduler.v1.ScheduleRule/stat',
request_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleStatQuery.SerializeToString,
response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString,
)
class ScheduleRuleServicer(object):
"""Missing associated documentation comment in .proto file."""
def create(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def update(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def delete(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def get(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def list(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def stat(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_ScheduleRuleServicer_to_server(servicer, server):
rpc_method_handlers = {
'create': grpc.unary_unary_rpc_method_handler(
servicer.create,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.CreateScheduleRuleRequest.FromString,
response_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.SerializeToString,
),
'update': grpc.unary_unary_rpc_method_handler(
servicer.update,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.UpdateScheduleRuleRequest.FromString,
response_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.SerializeToString,
),
'delete': grpc.unary_unary_rpc_method_handler(
servicer.delete,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
'get': grpc.unary_unary_rpc_method_handler(
servicer.get,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.GetScheduleRuleRequest.FromString,
response_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.SerializeToString,
),
'list': grpc.unary_unary_rpc_method_handler(
servicer.list,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleQuery.FromString,
response_serializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RulesInfo.SerializeToString,
),
'stat': grpc.unary_unary_rpc_method_handler(
servicer.stat,
request_deserializer=spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleStatQuery.FromString,
response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'spaceone.api.power_scheduler.v1.ScheduleRule', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class ScheduleRule(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def create(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/create',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.CreateScheduleRuleRequest.SerializeToString,
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def update(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/update',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.UpdateScheduleRuleRequest.SerializeToString,
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def delete(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/delete',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def get(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/get',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.GetScheduleRuleRequest.SerializeToString,
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RuleInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def list(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/list',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleQuery.SerializeToString,
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.RulesInfo.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def stat(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/spaceone.api.power_scheduler.v1.ScheduleRule/stat',
spaceone_dot_api_dot_power__scheduler_dot_v1_dot_schedule__rule__pb2.ScheduleRuleStatQuery.SerializeToString,
google_dot_protobuf_dot_struct__pb2.Struct.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 51.752137
| 148
| 0.707845
| 1,268
| 12,110
| 6.256309
| 0.088328
| 0.079415
| 0.060507
| 0.066431
| 0.905962
| 0.902559
| 0.889197
| 0.832472
| 0.806
| 0.749275
| 0
| 0.009279
| 0.225764
| 12,110
| 233
| 149
| 51.974249
| 0.836817
| 0.061354
| 0
| 0.541237
| 1
| 0
| 0.08498
| 0.057953
| 0
| 0
| 0
| 0
| 0
| 1
| 0.072165
| false
| 0
| 0.020619
| 0.030928
| 0.139175
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
53b5b533e84e6213baa15f1494bdae6cb490621d
| 38
|
py
|
Python
|
src/lib/pyclbr.py
|
DTenore/skulpt
|
098d20acfb088d6db85535132c324b7ac2f2d212
|
[
"MIT"
] | 2,671
|
2015-01-03T08:23:25.000Z
|
2022-03-31T06:15:48.000Z
|
src/lib/pyclbr.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 972
|
2015-01-05T08:11:00.000Z
|
2022-03-29T13:47:15.000Z
|
src/lib/pyclbr.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 845
|
2015-01-03T19:53:36.000Z
|
2022-03-29T18:34:22.000Z
|
import _sk_fail; _sk_fail._("pyclbr")
| 19
| 37
| 0.763158
| 6
| 38
| 4
| 0.666667
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078947
| 38
| 1
| 38
| 38
| 0.685714
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.