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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7fbd190004638e02211214512956d9a8e3028182
| 1,799
|
py
|
Python
|
resources/billing.py
|
axonepro/sdk-ooti
|
146ba758f571352d02daa56349e8b3affd8ca5a9
|
[
"Unlicense"
] | 1
|
2021-03-13T16:04:54.000Z
|
2021-03-13T16:04:54.000Z
|
resources/billing.py
|
axonepro/sdk-ooti
|
146ba758f571352d02daa56349e8b3affd8ca5a9
|
[
"Unlicense"
] | 7
|
2021-07-21T12:42:39.000Z
|
2022-01-06T10:34:04.000Z
|
resources/billing.py
|
axonepro/sdk-ooti
|
146ba758f571352d02daa56349e8b3affd8ca5a9
|
[
"Unlicense"
] | 2
|
2021-06-22T08:10:48.000Z
|
2021-09-01T09:16:41.000Z
|
import requests
import json
from .helper import Helper
class Billing(Helper):
def __init__(self, base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination):
super().__init__(base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination)
def cancel_subscription(self): # return 200
""" Cancel subscription """
route = 'v1/billing/cancel-subscription/{0}/'.format(self.org_pk)
response = self.process_request(requests, 'POST', self.base_url, route, self.headers, None, None)
return self.process_response(response)
def update_billing_card(self):
""" Update payment method """
route = 'v1/billing/card/{0}/'.format(self.org_pk)
response = self.process_request(requests, 'PATCH', self.base_url, route, self.headers, None, None)
return self.process_response(response)
def delete_billing_card(self):
""" Delete payment method """
route = 'v1/billing/card/{0}/'.format(self.org_pk)
response = self.process_request(requests, 'DELETE', self.base_url, route, self.headers, None, None)
return self.process_response(response)
def reactivate_subscription(self): # return 200
""" Reactivate subscription """
route = 'v1/billing/reactivate-subscription/{0}/'.format(self.org_pk)
response = self.process_request(requests, 'POST', self.base_url, route, self.headers, None, None)
return self.process_response(response)
def update_subscription(self):
""" Change subscription """
route = 'v1/billing/update-subscription/{0}/'.format(self.org_pk)
response = self.process_request(requests, 'PATCH', self.base_url, route, self.headers, None, None)
return self.process_response(response)
| 40.886364
| 107
| 0.685937
| 221
| 1,799
| 5.371041
| 0.190045
| 0.092671
| 0.055602
| 0.058972
| 0.709351
| 0.709351
| 0.709351
| 0.709351
| 0.709351
| 0.709351
| 0
| 0.010966
| 0.188994
| 1,799
| 44
| 108
| 40.886364
| 0.802605
| 0.075042
| 0
| 0.423077
| 0
| 0
| 0.10594
| 0.066748
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.115385
| 0
| 0.576923
| 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
| 0
| 1
| 0
|
0
| 7
|
f68786abdd255402b77effca7b24b1e98df324ad
| 97
|
py
|
Python
|
tests/parser/rewriting.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/rewriting.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/rewriting.3.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
b(1).
a(X) :- b(X).
:- p(X).
"""
output = """
b(1).
a(X) :- b(X).
:- p(X).
"""
| 8.818182
| 14
| 0.278351
| 18
| 97
| 1.5
| 0.388889
| 0.148148
| 0.222222
| 0.296296
| 0.592593
| 0.592593
| 0.592593
| 0.592593
| 0
| 0
| 0
| 0.028169
| 0.268041
| 97
| 10
| 15
| 9.7
| 0.352113
| 0
| 0
| 0.8
| 0
| 0
| 0.659341
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f6c818c4a49f58b5ec79e05cb98e1b12caa50dc1
| 100
|
py
|
Python
|
tests/basic/tests/__init__.py
|
contentoolsraushan/contentools-raushan-raj
|
3205e72c4a18249adc5c7fd4058540e1ba92a55d
|
[
"BSD-3-Clause"
] | 1
|
2016-11-16T02:34:00.000Z
|
2016-11-16T02:34:00.000Z
|
tests/basic/tests/__init__.py
|
contentoolsraushan/contentools-raushan-raj
|
3205e72c4a18249adc5c7fd4058540e1ba92a55d
|
[
"BSD-3-Clause"
] | null | null | null |
tests/basic/tests/__init__.py
|
contentoolsraushan/contentools-raushan-raj
|
3205e72c4a18249adc5c7fd4058540e1ba92a55d
|
[
"BSD-3-Clause"
] | 1
|
2020-06-12T09:54:55.000Z
|
2020-06-12T09:54:55.000Z
|
from basic.tests.resources import * # flake8: noqa
from basic.tests.views import * # flake8: noqa
| 33.333333
| 51
| 0.74
| 14
| 100
| 5.285714
| 0.571429
| 0.243243
| 0.378378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0.16
| 100
| 2
| 52
| 50
| 0.857143
| 0.25
| 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
|
f6ddc56458497e3a2688a335133105131d6f2ff8
| 6,651
|
py
|
Python
|
server/server-flask/app/views/student/apply/extension.py
|
DSM-DMS/Project-DMS-Web
|
73a5d8fc2310bca90169414abf50f541ca0724c7
|
[
"MIT"
] | 11
|
2017-07-04T07:44:07.000Z
|
2017-09-19T12:56:55.000Z
|
server/server-flask/app/views/student/apply/extension.py
|
DSM-DMS/DMS
|
73a5d8fc2310bca90169414abf50f541ca0724c7
|
[
"MIT"
] | null | null | null |
server/server-flask/app/views/student/apply/extension.py
|
DSM-DMS/DMS
|
73a5d8fc2310bca90169414abf50f541ca0724c7
|
[
"MIT"
] | 2
|
2017-10-23T06:11:16.000Z
|
2017-10-26T03:27:57.000Z
|
from datetime import datetime, time
import json
from flask import Response
from flask_jwt_extended import get_jwt_identity, jwt_required
from flask_restful import Resource, request
from flasgger import swag_from
from app.docs.student.apply.extension import *
from app.models.account import StudentModel
from app.models.apply import ExtensionApplyModel
APPLY_START = time(17, 30)
APPLY_END_11 = time(20, 30)
APPLY_END_12 = time(22, 0)
MAPS = {
1: [
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1],
[1, 1, 0, 1, 1]
],
2: [
[1, 0, 1, 0, 1, 0, 1],
[1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1, 1, 1],
[1, 1, 1, 0, 1, 1, 0, 1, 1, 1],
[0, 0, 0, 0, 1, 1, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 1, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0]
]
}
class Extension11(Resource):
uri = '/extension/11'
@swag_from(EXTENSION_GET)
@jwt_required
def get(self):
"""
11시 연장신청 정보 조회
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
if not student.extension_apply_11:
return Response('', 204)
return {
'class': student.extension_apply_11.class_,
'seat': student.extension_apply_11.seat
}, 200
@swag_from(EXTENSION_POST)
@jwt_required
def post(self):
"""
11시 연장신청
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
now = datetime.now().time()
if not APPLY_START < now < APPLY_END_11:
return Response('', 204)
class_ = int(request.form['class'])
seat = int(request.form['seat'])
student.update(extension_apply_11=ExtensionApplyModel(class_=class_, seat=seat))
return Response('', 201)
class Extension12(Resource):
uri = '/extension/12'
@swag_from(EXTENSION_GET)
@jwt_required
def get(self):
"""
12시 연장신청 정보 조회
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
if not student.extension_apply_12:
return Response('', 204)
return {
'class': student.extension_apply_12.class_,
'seat': student.extension_apply_12.seat
}, 200
@swag_from(EXTENSION_POST)
@jwt_required
def post(self):
"""
12시 연장신청
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
now = datetime.now().time()
if not APPLY_START < now < APPLY_END_12:
return Response('', 204)
class_ = int(request.form['class'])
seat = int(request.form['seat'])
student.update(extension_apply_12=ExtensionApplyModel(class_=class_, seat=seat))
return Response('', 201)
class ExtensionMap11(Resource):
uri = '/extension/map/11'
@swag_from(EXTENSION_MAP_GET)
@jwt_required
def get(self):
"""
11시 연장신청 지도 조회
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
class_ = int(request.args['class'])
map_ = MAPS[class_]
applied_students = {student.extension_apply_11.seat: student.name for student in StudentModel.objects() if student.extension_apply_11 and student.extension_apply_11.class_ == class_}
seat_count = 1
for i, row in enumerate(map_):
for j, seat in enumerate(row):
if map_[i][j]:
if seat_count in applied_students:
map_[i][j] = applied_students[seat_count]
else:
map_[i][j] = seat_count
seat_count += 1
return Response(json.dumps(map_, ensure_ascii=False), 200, content_type='application/json; charset=utf8')
class ExtensionMap12(Resource):
uri = '/extension/map/12'
@swag_from(EXTENSION_MAP_GET)
@jwt_required
def get(self):
"""
12시 연장신청 지도 조회
"""
student = StudentModel.objects(id=get_jwt_identity()).first()
if not student:
return Response('', 403)
class_ = int(request.args['class'])
map_ = MAPS[class_]
applied_students = {student.extension_apply_12.seat: student.name for student in StudentModel.objects() if student.extension_apply_12 and student.extension_apply_12.class_ == class_}
seat_count = 1
for i, row in enumerate(map_):
for j, seat in enumerate(row):
if map_[i][j]:
if seat_count in applied_students:
map_[i][j] = applied_students[seat_count]
else:
map_[i][j] = seat_count
seat_count += 1
return Response(json.dumps(map_, ensure_ascii=False), 200, content_type='application/json; charset=utf8')
| 27.945378
| 190
| 0.493309
| 989
| 6,651
| 3.190091
| 0.097068
| 0.083677
| 0.079873
| 0.083677
| 0.828526
| 0.791125
| 0.791125
| 0.788273
| 0.75309
| 0.686846
| 0
| 0.129442
| 0.348369
| 6,651
| 237
| 191
| 28.063291
| 0.598523
| 0.011577
| 0
| 0.710983
| 0
| 0
| 0.025796
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034682
| false
| 0
| 0.052023
| 0
| 0.225434
| 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
|
f6ed14be126799e617be7b2cfb653f738db90a3a
| 3,855
|
py
|
Python
|
dockerfile/catkin_ws/src/interoperation/bbros_bridge/src/bbros_bridge/custom_srv_parser.py
|
RobotJustina/tmc_justina_docker
|
8aa968a81ae4526f6f6c2d55b83954b57b28ea92
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
dockerfile/catkin_ws/src/interoperation/bbros_bridge/src/bbros_bridge/custom_srv_parser.py
|
RobotJustina/tmc_justina_docker
|
8aa968a81ae4526f6f6c2d55b83954b57b28ea92
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
dockerfile/catkin_ws/src/interoperation/bbros_bridge/src/bbros_bridge/custom_srv_parser.py
|
RobotJustina/tmc_justina_docker
|
8aa968a81ae4526f6f6c2d55b83954b57b28ea92
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
import rospy
import StringIO
from pyrobotics import BB
from pyrobotics.messages import Command, Response
#TODO: change the import to the motion planner package
from bbros_bridge.srv import * #import all the services from bbros_bridge
class BB2ROS_HeadServicesCallers:
"""Class to bridge the HEAD PACKAGE ROS Services to allow calls from BB
"""
@staticmethod
def hd_lookat_caller(command):
"""
BB Command callback which:
1. Attends a BB Command Invocation.
2. Parses the parameters list comming from BlackBoard to the hd_lookat format.
3. Invoke the correponding service (which has the same name of the bridged command) with the parsed parameters and waits for his response.
4. Send the response received from the ROS service and send it to Blackboard.
Receives:
command: A command (pyrobotics) object
Return:
The response to the command caller
"""
rospy.logdebug('Call to service: "'+ str(command.name) + '" received from BB.')
try:
#parse the parameters comming from BB to the service specific request format
head_pan = float(command.params.split(' ')[0])
head_tilt = float(command.params.split(' ')[1])
#send the parameters to the ROS service
rospy.wait_for_service(command.name, timeout=4) #wait for the service to be available
hd_lookat_service = rospy.ServiceProxy(command.name, hd_lookat)
service_response = hd_lookat_service(head_pan, head_tilt)
#parse the response obtained from the ros service
command_response = str(service_response.currentPan) + str(service_response.currentTilt) + str(service_response.errors)
return Response.FromCommandObject(command, True, command_response)
except rospy.ServiceException, e:
rospy.logfatal('Service call ' + command.name + ' failed: ' + str(e))
except rospy.ROSException:
rospy.logfatal('Timeout exceeded while waiting for the service ' + command.name + ' to be available.' )
except:
rospy.logfatal('An error ocurred when trying to parse the params: "' + command.params + '" for the ' + command.name + ' service')
#send the response to BB
return Response.FromCommandObject(command, False, '')
@staticmethod
def hd_torque_caller(command):
"""
BB Command callback which:
1. Attends a BB Command Invocation.
2. Parses the parameters list comming from BlackBoard to the hd_torque format.
3. Invoke the correponding service (which has the same name of the bridged command) with the parsed parameters and waits for his response.
4. Send the response received from the ROS service and send it to Blackboard.
Receives:
command: A command (pyrobotics) object
Return:
The response to the command caller
"""
rospy.logdebug('Call to service: "'+ str(command.name) + '" received from BB.')
try:
#parse the parameters comming from BB to the service specific request format
enable = str(command.params).lower()
#send the parameters to the ROS service
rospy.wait_for_service(command.name, timeout=4) #wait for the service to be available
hd_lookat_service = rospy.ServiceProxy(command.name, hd_lookat)
service_response = hd_lookat_service(head_pan, head_tilt)
#parse the response obtained from the ros service
command_response = str(service_response.currentPan) + str(service_response.currentTilt) + str(service_response.errors)
return Response.FromCommandObject(command, True, command_response)
except rospy.ServiceException, e:
rospy.logfatal('Service call ' + command.name + ' failed: ' + str(e))
except rospy.ROSException:
rospy.logfatal('Timeout exceeded while waiting for the service ' + command.name + ' to be available.' )
except:
rospy.logfatal('An error ocurred when trying to parse the params: "' + command.params + '" for the ' + command.name + ' service')
#send the response to BB
return Response.FromCommandObject(command, False, '')
| 46.445783
| 141
| 0.749676
| 532
| 3,855
| 5.355263
| 0.206767
| 0.046332
| 0.027378
| 0.023868
| 0.850123
| 0.850123
| 0.850123
| 0.850123
| 0.850123
| 0.850123
| 0
| 0.004054
| 0.168093
| 3,855
| 82
| 142
| 47.012195
| 0.884316
| 0.138521
| 0
| 0.731707
| 0
| 0
| 0.17057
| 0
| 0
| 0
| 0
| 0.012195
| 0
| 0
| null | null | 0
| 0.121951
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
1210ed1e7964a1e7766308df76caa7458f6239ad
| 174
|
py
|
Python
|
src/server/GetModelAPI.py
|
nikzagarwal/twentyone
|
d7426fc863773af9acca00c63099f064ed25b0e7
|
[
"MIT"
] | 9
|
2020-11-10T14:21:44.000Z
|
2021-10-02T13:12:50.000Z
|
src/server/GetModelAPI.py
|
Shubham2443/twentyone
|
5ac8a0e518a4249a84f8cb2f865437891b295c0d
|
[
"MIT"
] | null | null | null |
src/server/GetModelAPI.py
|
Shubham2443/twentyone
|
5ac8a0e518a4249a84f8cb2f865437891b295c0d
|
[
"MIT"
] | 7
|
2020-11-14T08:19:53.000Z
|
2021-08-11T14:41:37.000Z
|
from flask import Blueprint
get_model_api = Blueprint('get_model_api', __name__)
# Later
@get_model_api.route("/get_model")
def get_model():
return "Get Model Response"
| 21.75
| 52
| 0.764368
| 26
| 174
| 4.653846
| 0.5
| 0.396694
| 0.272727
| 0.330579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126437
| 174
| 8
| 53
| 21.75
| 0.796053
| 0.028736
| 0
| 0
| 0
| 0
| 0.244048
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0.4
| 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
| 0
| 1
| 1
| 0
|
0
| 7
|
c39c3c9a821d7667a9b427d241af6ec93e30fe85
| 94
|
py
|
Python
|
src/galaxies_datasets/datasets/galaxy_zoo_decals/__init__.py
|
autogalmorph/galaxies_datasets-1
|
30cc9eae195fee8d393c543a27c4b5e637a1e1ba
|
[
"MIT"
] | null | null | null |
src/galaxies_datasets/datasets/galaxy_zoo_decals/__init__.py
|
autogalmorph/galaxies_datasets-1
|
30cc9eae195fee8d393c543a27c4b5e637a1e1ba
|
[
"MIT"
] | 16
|
2021-09-21T21:25:05.000Z
|
2022-03-01T14:10:08.000Z
|
src/galaxies_datasets/datasets/galaxy_zoo_decals/__init__.py
|
autogalmorph/galaxies_datasets-1
|
30cc9eae195fee8d393c543a27c4b5e637a1e1ba
|
[
"MIT"
] | 2
|
2022-03-05T14:56:55.000Z
|
2022-03-09T23:58:56.000Z
|
"""galaxy_zoo_decals dataset."""
from .galaxy_zoo_decals import GalaxyZooDecals # noqa: F401
| 31.333333
| 60
| 0.787234
| 12
| 94
| 5.833333
| 0.75
| 0.257143
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035714
| 0.106383
| 94
| 2
| 61
| 47
| 0.797619
| 0.404255
| 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
|
c3dbd9fe033cbac3874f6d11209d0920011020db
| 4,319
|
py
|
Python
|
aiozaifapi/client.py
|
fcce-proj/aiozaifapi
|
f68d9d7370677c57ff0d60d3ff1d8e833d53f5d1
|
[
"MIT"
] | 1
|
2019-01-30T13:49:01.000Z
|
2019-01-30T13:49:01.000Z
|
aiozaifapi/client.py
|
fcce-proj/aiozaifapi
|
f68d9d7370677c57ff0d60d3ff1d8e833d53f5d1
|
[
"MIT"
] | 1
|
2018-09-11T05:32:21.000Z
|
2018-09-11T05:32:21.000Z
|
aiozaifapi/client.py
|
techbureau/aiozaifapi
|
f68d9d7370677c57ff0d60d3ff1d8e833d53f5d1
|
[
"MIT"
] | null | null | null |
import asyncio
import aiohttp
import async_timeout
import zaifapi
from zaifapi.api_common import get_api_url
from zaifapi.api_error import ZaifApiError, ZaifApiNonceError
class AsyncHTTPMixin:
async def _http_get(self, session, url, params={}):
with async_timeout.timeout(self._timeout):
async with session.get(url, params=params) as resp:
return await resp.json()
async def _http_post(self, session, url, data=None, headers=None):
with async_timeout.timeout(self._timeout):
async with session.post(url, data=data, headers=headers) as resp:
return await resp.json()
class ZaifPublicApi(zaifapi.ZaifPublicApi, AsyncHTTPMixin):
def __init__(self, api_url=None, loop=None):
super().__init__(get_api_url(api_url, 'api', version=1))
self._timeout = 3
self.loop = loop or asyncio.get_event_loop()
async def _execute_api(self, func_name, schema_keys=None, q_params=None, **kwargs):
schema_keys = schema_keys or []
q_params = q_params or {}
params = self._params_pre_processing(schema_keys, kwargs)
self._url.add_dirs(func_name, *params.values())
url = self._url.get_absolute_url()
self._url.refresh_dirs()
async with aiohttp.ClientSession(loop=self.loop) as session:
return await self._http_get(session, url, params=q_params)
class ZaifFuturesPublicApi(zaifapi.ZaifFuturesPublicApi, AsyncHTTPMixin):
def __init__(self, api_url=None, loop=None):
super().__init__(get_api_url(api_url, 'api', version=1))
self._timeout = 3
self.loop = loop or asyncio.get_event_loop()
async def _execute_api(self, func_name, schema_keys=None, q_params=None, **kwargs):
schema_keys = schema_keys or []
q_params = q_params or {}
params = self._params_pre_processing(schema_keys, kwargs)
if params.get('page', None):
self._url.add_dirs(func_name, params.get('group_id'), params.get('currency_pair'),
params.get('page'))
else:
self._url.add_dirs(func_name, params.get('group_id'), params.get('currency_pair'))
url = self._url.get_absolute_url()
self._url.refresh_dirs()
async with aiohttp.ClientSession(loop=self.loop) as session:
return await self._http_get(session, url, params=q_params)
class ZaifTradeApi(zaifapi.ZaifTradeApi, AsyncHTTPMixin):
def __init__(self, key, secret, api_url=None, loop=None):
super().__init__(key, secret, get_api_url(api_url, 'tapi'))
self._timeout = 3
self.loop = loop or asyncio.get_event_loop()
async def _execute_api(self, func_name, schema_keys=None, params=None):
schema_keys = schema_keys or []
params = params or {}
_params = self._params_pre_processing(schema_keys, params, func_name)
header = self._get_header(_params)
url = self._url.get_absolute_url()
async with aiohttp.ClientSession(loop=self.loop) as session:
res = await self._http_post(session, url, data=params, headers=header)
if res['success'] == 0:
if res['error'].startswith('nonce'):
raise ZaifApiNonceError(res['error'])
raise ZaifApiError(res['error'])
return res['return']
class ZaifLeverageTradeApi(zaifapi.ZaifLeverageTradeApi, AsyncHTTPMixin):
def __init__(self, key, secret, api_url=None, loop=None):
super().__init__(key, secret, get_api_url(api_url, 'tlapi'))
self._timeout = 3
self.loop = loop or asyncio.get_event_loop()
async def _execute_api(self, func_name, schema_keys=None, params=None):
schema_keys = schema_keys or []
params = params or {}
_params = self._params_pre_processing(schema_keys, params, func_name)
header = self._get_header(_params)
url = self._url.get_absolute_url()
async with aiohttp.ClientSession(loop=self.loop) as session:
res = await self._http_post(session, url, data=params, headers=header)
if res['success'] == 0:
if res['error'].startswith('nonce'):
raise ZaifApiNonceError(res['error'])
raise ZaifApiError(res['error'])
return res['return']
| 39.990741
| 94
| 0.662885
| 554
| 4,319
| 4.864621
| 0.137184
| 0.059369
| 0.020037
| 0.037106
| 0.808905
| 0.808905
| 0.790353
| 0.779963
| 0.779963
| 0.742857
| 0
| 0.002397
| 0.227136
| 4,319
| 107
| 95
| 40.364486
| 0.804973
| 0
| 0
| 0.722892
| 0
| 0
| 0.030331
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.048193
| false
| 0
| 0.072289
| 0
| 0.253012
| 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
|
61b75ead7dfda5d815e8dc4b5a18fee8798d22e8
| 645
|
py
|
Python
|
REV/Matrix of hell/rev2.py
|
d4rkvaibhav/Securinets-CTF-Quals-2019
|
7c5c2378b1fbcd4a6ce2e0f1a204761bfb65b83c
|
[
"MIT"
] | null | null | null |
REV/Matrix of hell/rev2.py
|
d4rkvaibhav/Securinets-CTF-Quals-2019
|
7c5c2378b1fbcd4a6ce2e0f1a204761bfb65b83c
|
[
"MIT"
] | null | null | null |
REV/Matrix of hell/rev2.py
|
d4rkvaibhav/Securinets-CTF-Quals-2019
|
7c5c2378b1fbcd4a6ce2e0f1a204761bfb65b83c
|
[
"MIT"
] | null | null | null |
i=0
arr=[65, 0, 0, 0, 66, 0, 0, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 71, 0, 0, 0, 72, 0, 0, 0, 73, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 77, 0, 0, 0, 78, 0, 0, 0, 79, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 82, 0, 0, 0, 83, 0, 0, 0, 84, 0, 0, 0, 85, 0, 0, 0, 0, 0, 0, 0, 86, 0, 0, 0, 87, 0, 0, 0, 88, 0, 0, 0, 89, 0, 0, 0, 90]
password=['a']*14
newarr="B1A1A3A5A2C4C4B5B4D3A5E1B4C1"
while(i<28):
for j in range(5):
for k in range(5):
if((newarr[i] == chr(j+65)) and (newarr[i+1] == chr(k+49))):
password[i//2]=chr(arr[(j*6+k)*4])
i+=2
password="".join(password)
print(password)
| 49.615385
| 368
| 0.475969
| 163
| 645
| 1.883436
| 0.312883
| 0.416938
| 0.390879
| 0.208469
| 0.091205
| 0.091205
| 0.091205
| 0
| 0
| 0
| 0
| 0.344262
| 0.243411
| 645
| 13
| 369
| 49.615385
| 0.284836
| 0
| 0
| 0
| 0
| 0
| 0.044892
| 0.043344
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0
| 0
| 0
| 0.083333
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
4edf07e5ee9405b2755017968ddc331e45627cd3
| 86
|
py
|
Python
|
lib/yamddpp/yamddpp/Diffusion/mutual_diffusion/__init__.py
|
atomrq/simulab
|
886f2d613ecbac711b41026887f6d9f7ac94b25f
|
[
"BSD-3-Clause"
] | null | null | null |
lib/yamddpp/yamddpp/Diffusion/mutual_diffusion/__init__.py
|
atomrq/simulab
|
886f2d613ecbac711b41026887f6d9f7ac94b25f
|
[
"BSD-3-Clause"
] | null | null | null |
lib/yamddpp/yamddpp/Diffusion/mutual_diffusion/__init__.py
|
atomrq/simulab
|
886f2d613ecbac711b41026887f6d9f7ac94b25f
|
[
"BSD-3-Clause"
] | null | null | null |
from ._directly import cu_mutual_diffusion
# TODO: mutual diffusion with $\rho(r, t)$
| 28.666667
| 42
| 0.767442
| 13
| 86
| 4.846154
| 0.846154
| 0.47619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127907
| 86
| 2
| 43
| 43
| 0.84
| 0.465116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f638e21d38c951ad64ed03aa2c16f800dd8b85e9
| 2,997
|
py
|
Python
|
dataset.py
|
AngelFelipeMP/Transformers-for-Arabic-hate-speech-and-offensive-language
|
c65ec2020e8dfbfc7f349a6af0b02f4568e6fc61
|
[
"MIT"
] | null | null | null |
dataset.py
|
AngelFelipeMP/Transformers-for-Arabic-hate-speech-and-offensive-language
|
c65ec2020e8dfbfc7f349a6af0b02f4568e6fc61
|
[
"MIT"
] | null | null | null |
dataset.py
|
AngelFelipeMP/Transformers-for-Arabic-hate-speech-and-offensive-language
|
c65ec2020e8dfbfc7f349a6af0b02f4568e6fc61
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
from transformers import AutoTokenizer
class TransformerDataset:
def __init__(self, text, target, max_len, transformer):
self.text = text
self.target = target
self.max_len = max_len
self.tokenizer = AutoTokenizer.from_pretrained(transformer)
if self.tokenizer.pad_token is None:
self.tokenizer.pad_token = self.tokenizer.eos_token
def __len__(self):
return len(self.text)
def __getitem__(self, item):
text = str(self.text[item])
text = " ".join(text.split())
inputs = self.tokenizer.encode_plus(
text,
None,
add_special_tokens=True,
max_length=self.max_len,
padding='max_length',
truncation=True
)
inputs = {k:torch.tensor(v, dtype=torch.long) for k,v in inputs.items()}
inputs['targets'] = torch.tensor(self.target[item], dtype=torch.long)
return inputs
class TransformerDataset_Test:
def __init__(self, text, max_len, transformer):
self.text = text
self.max_len = max_len
self.tokenizer = AutoTokenizer.from_pretrained(transformer)
if self.tokenizer.pad_token is None:
self.tokenizer.pad_token = self.tokenizer.eos_token
def __len__(self):
return len(self.text)
def __getitem__(self, item):
text = str(self.text[item])
text = " ".join(text.split())
inputs = self.tokenizer.encode_plus(
text,
None,
add_special_tokens=True,
max_length=self.max_len,
padding='max_length',
truncation=True
)
inputs = {k:torch.tensor(v, dtype=torch.long) for k,v in inputs.items()}
return inputs
# class TransformerDataset:
# def __init__(self, text, target, max_len, transformer):
# self.text = text
# self.target = target
# self.tokenizer = AutoTokenizer.from_pretrained(transformer)
# self.max_len = max_len
# def __len__(self):
# return len(self.text)
# def __getitem__(self, item):
# text = str(self.text[item])
# text = " ".join(text.split())
# inputs = self.tokenizer.encode_plus(
# text,
# None,
# add_special_tokens=True,
# max_length=self.max_len,
# padding='max_length',
# truncation=True
# )
# ids = inputs["input_ids"]
# mask = inputs["attention_mask"]
# token_type_ids = inputs["token_type_ids"]
# return {
# "ids": torch.tensor(ids, dtype=torch.long),
# "mask": torch.tensor(mask, dtype=torch.long),
# "token_type_ids": torch.tensor(token_type_ids, dtype=torch.long),
# "targets": torch.tensor(self.target[item], dtype=torch.long),
# }
| 29.97
| 80
| 0.571238
| 334
| 2,997
| 4.877246
| 0.167665
| 0.058932
| 0.06016
| 0.051565
| 0.801105
| 0.791283
| 0.762431
| 0.744629
| 0.744629
| 0.688152
| 0
| 0
| 0.319653
| 2,997
| 100
| 81
| 29.97
| 0.798921
| 0.347681
| 0
| 0.77551
| 0
| 0
| 0.015049
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.122449
| false
| 0
| 0.061224
| 0.040816
| 0.306122
| 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
|
9cd1274996edf1db6f8fc3bf7893967dcefd8fed
| 10,911
|
py
|
Python
|
tests/functional/test_create.py
|
manishmeganathan/flask-audioserver
|
5939df81495d8ba595c1585e85bdfb46a61c919c
|
[
"MIT"
] | 1
|
2021-07-24T20:56:24.000Z
|
2021-07-24T20:56:24.000Z
|
tests/functional/test_create.py
|
manishmeganathan/flask-audioserver
|
5939df81495d8ba595c1585e85bdfb46a61c919c
|
[
"MIT"
] | 3
|
2021-05-22T08:00:07.000Z
|
2021-05-22T08:02:18.000Z
|
tests/functional/test_create.py
|
manishmeganathan/flask-audioserver
|
5939df81495d8ba595c1585e85bdfb46a61c919c
|
[
"MIT"
] | 1
|
2021-07-24T20:56:33.000Z
|
2021-07-24T20:56:33.000Z
|
"""
Functional Test Module for the /get endpoint of the AudioServer
Test Framework: pyTest
"""
import json
import random
def test_Create_Song(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request for creating a Song\n
**THEN** check that the response is valid for a 200 response (OK), perform a get on the
file that has been created, check its values and then delete the file.
"""
# Create a Song file
name = f"test-song-{random.randint(100,999)}"
request = {"audioFileType": "Song", "audioFileMetadata": {"name": f"{name}", "duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 200
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert isinstance(data['status'], int)
assert isinstance(data['message'], str)
assert isinstance(data['result'], str)
assert isinstance(data['document'], int)
assert data['status'] == 200
assert data['message'] == f"Create Complete"
assert data['result'] == f"Song file with ID {data['document']} has been created"
# Retrieve document and check its values
response = client.get(f"/get/song/{data['document']}")
assert response.status_code == 200
assert isinstance(response.data, bytes)
test_data = json.loads(response.data)
assert test_data['documents'][0]['_id'] == data['document']
assert test_data['documents'][0]['type'] == "Song"
assert test_data['documents'][0]['name'] == name
assert test_data['documents'][0]['duration'] == 45
# Cleanup - Delete the added test file
response = client.get(f"/delete/song/{data['document']}")
assert response.status_code == 200
def test_Create_Podcast(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request for creating a Podcast\n
**THEN** check that the response is valid for a 200 response (OK), perform a get on the
file that has been created, check its values and then delete the file.
"""
# Create a Podcast file
name = f"test-podcast-{random.randint(100, 999)}"
request = {"audioFileType": "Podcast",
"audioFileMetadata": {"name": f"{name}", "duration": 45,
"host": "host1", "participants": ["cast1"]}}
response = client.post(f"/create", json=request)
assert response.status_code == 200
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert isinstance(data['status'], int)
assert isinstance(data['message'], str)
assert isinstance(data['result'], str)
assert isinstance(data['document'], int)
assert data['status'] == 200
assert data['message'] == f"Create Complete"
assert data['result'] == f"Podcast file with ID {data['document']} has been created"
# Retrieve document and check its values
response = client.get(f"/get/podcast/{data['document']}")
assert response.status_code == 200
assert isinstance(response.data, bytes)
test_data = json.loads(response.data)
assert test_data['documents'][0]['_id'] == data['document']
assert test_data['documents'][0]['type'] == "Podcast"
assert test_data['documents'][0]['name'] == name
assert test_data['documents'][0]['host'] == "host1"
assert test_data['documents'][0]['participants'] == ["cast1"]
assert test_data['documents'][0]['duration'] == 45
# Cleanup - Delete the added test file
response = client.get(f"/delete/podcast/{data['document']}")
assert response.status_code == 200
def test_Create_Audiobook(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request for creating an Audiobook\n
**THEN** check that the response is valid for a 200 response (OK), perform a get on the
file that has been created, check its values and then delete the file.
"""
# Create an Audiobook file
name = f"test-book-{random.randint(100, 999)}"
request = {"audioFileType": "Audiobook",
"audioFileMetadata": {"name": f"{name}", "duration": 45,
"author": "author1", "narrator": "narrator1"}}
response = client.post(f"/create", json=request)
assert response.status_code == 200
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert isinstance(data['status'], int)
assert isinstance(data['message'], str)
assert isinstance(data['result'], str)
assert isinstance(data['document'], int)
assert data['status'] == 200
assert data['message'] == f"Create Complete"
assert data['result'] == f"Audiobook file with ID {data['document']} has been created"
# Retrieve document and check its values
response = client.get(f"/get/audiobook/{data['document']}")
assert response.status_code == 200
assert isinstance(response.data, bytes)
test_data = json.loads(response.data)
assert test_data['documents'][0]['_id'] == data['document']
assert test_data['documents'][0]['type'] == "Audiobook"
assert test_data['documents'][0]['name'] == name
assert test_data['documents'][0]['author'] == "author1"
assert test_data['documents'][0]['narrator'] == "narrator1"
assert test_data['documents'][0]['duration'] == 45
# Cleanup - Delete the added test file
response = client.get(f"/delete/audiobook/{data['document']}")
assert response.status_code == 200
def test_Create_missing_key(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request with missing keys\n
**THEN** check that the response is valid for a 400 response (OK)
"""
# Test for missing 'audioFileMetadata'
request = {"audioFileMetadata": {"name": "test-song", "duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"'audioFileType' is required"
# Test for missing 'audioFileMetadata'
request = {"audioFileType": "Song"}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"'audioFileMetadata' is required"
def test_Create_invalid_type(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request with an invalid 'audioFileType'\n
**THEN** check that the response is valid for a 400 response (OK)
"""
# Test for 'audioFileType' not an str
request = {"audioFileType": 34, "audioFileMetadata": {"name": "test-song", "duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"'audioFileType' must be an str"
# Test for unsupported 'audioFileType'
request = {"audioFileType": "music", "audioFileMetadata": {"name": "test-song", "duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"'Music' is not supported"
def test_Create_invalid_metadata(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request with an invalid 'audioFileMetadata'\n
**THEN** check that the response is valid for a 400 response (OK)
"""
# Test for 'audioFileMetadata' not a dict
request = {"audioFileType": "song", "audioFileMetadata": ["name", "test-song", "duration", 45]}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"'audioFileMetadata' must be a dict"
def test_Create_invalid_metadata_values(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a POST request with invalid metadata values\n
**THEN** check that the response is valid for a 400 response (OK)
"""
# Test for invalid field in 'audioFileMetadata'
request = {"audioFileType": "song", "audioFileMetadata": {"name": 33, "duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"metadata value is invalid for 'name' - not an str"
# Test for missing field in 'audioFileMetadata'
request = {"audioFileType": "song", "audioFileMetadata": {"duration": 45}}
response = client.post(f"/create", json=request)
assert response.status_code == 400
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert data['status'] == 400
assert data['message'] == f"Bad Request"
assert data['error'] == f"metadata value is missing for 'name'"
def test_Create_GET(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** the create endpoint is hit with a GET request\n
**THEN** check that the response is valid for a 405 response (Method not Allowed)
"""
response = client.get(f"/create")
assert response.status_code == 405
assert isinstance(response.data, bytes)
data = json.loads(response.data)
assert isinstance(data['message'], str)
assert data['message'] == f"The method is not allowed for the requested URL."
def test_Create_badURL(client):
"""
**GIVEN** a Flask application configured for testing\n
**WHEN** an invalid URL for the create endpoint is hit with a POST request\n
**THEN** check that the response is valid for a 404 response (Not Found)
"""
response = client.post(f"/create/")
assert response.status_code == 404
response = client.post(f"/create/234234")
assert response.status_code == 404
response = client.post(f"/create/something")
assert response.status_code == 404
| 36.491639
| 100
| 0.665384
| 1,406
| 10,911
| 5.117354
| 0.08606
| 0.043085
| 0.055594
| 0.066713
| 0.869215
| 0.834468
| 0.797081
| 0.779013
| 0.773454
| 0.769145
| 0
| 0.021989
| 0.195582
| 10,911
| 298
| 101
| 36.614094
| 0.797767
| 0.252681
| 0
| 0.647436
| 0
| 0
| 0.264885
| 0.036863
| 0
| 0
| 0
| 0
| 0.602564
| 1
| 0.057692
| false
| 0
| 0.012821
| 0
| 0.070513
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
142c4e29ea3f642d1eff583cd65faa6eed115016
| 26,484
|
py
|
Python
|
cp_average/tpu_cp_gen.py
|
marcelosalles/dissertacao
|
692f80a0d6b28a7e929dc86f6a684cfa84b59df1
|
[
"MIT"
] | null | null | null |
cp_average/tpu_cp_gen.py
|
marcelosalles/dissertacao
|
692f80a0d6b28a7e929dc86f6a684cfa84b59df1
|
[
"MIT"
] | null | null | null |
cp_average/tpu_cp_gen.py
|
marcelosalles/dissertacao
|
692f80a0d6b28a7e929dc86f6a684cfa84b59df1
|
[
"MIT"
] | null | null | null |
import json
import pandas as pd
df = pd.read_csv('TPU_212_cp.csv')
for nfloor in range(8):
tpu_dict = {
"AirflowNetwork:SimulationControl": {
"Ventilacao": {
"absolute_airflow_convergence_tolerance": 0.0001,
"airflownetwork_control": "MultizoneWithoutDistribution",
"azimuth_angle_of_long_axis_of_building": 90,
"building_type": "HighRise",
"convergence_acceleration_limit": -0.5,
"height_selection_for_local_wind_pressure_calculation": "ExternalNode",
"initialization_type": "ZeroNodePressures",
"maximum_number_of_iterations": 500,
"ratio_of_building_width_along_short_axis_to_width_along_long_axis": 0.7947869038423273,
"relative_airflow_convergence_tolerance": 0.01,
"idf_max_extensible_fields": 0,
"idf_max_fields": 12,
"wind_pressure_coefficient_type": "Input"
}
},
"AirflowNetwork:MultiZone:ExternalNode": {
"window_2_00_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_2_00_curve"
},
"window_3_00_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_3_00_curve"
},
"window_1_01_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_1_01_curve"
},
"window_2_01_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_2_01_curve"
},
"window_3_02_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_3_02_curve"
},
"window_1_03_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_1_03_curve"
},
"window_0_04_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_0_04_curve"
},
"window_3_04_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_3_04_curve"
},
"window_0_05_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_0_05_curve"
},
"window_1_05_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_1_05_curve"
},
"window_0_corr_00_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_corr_curve"
},
"window_2_corr_00_Node": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 5,
"external_node_height": 1.5+3*nfloor,
"symmetric_wind_pressure_coefficient_curve": "No",
"wind_angle_type": "Relative",
"wind_pressure_coefficient_curve_name": "window_corr_curve"
}
},
"AirflowNetwork:MultiZone:WindPressureCoefficientArray": {
"ventos": {
"idf_max_extensible_fields": 0,
"idf_max_fields": 13,
"wind_direction_1": 0.0,
"wind_direction_2": 30.0,
"wind_direction_3": 60.0,
"wind_direction_4": 90.0,
"wind_direction_5": 120.0,
"wind_direction_6": 150.0,
"wind_direction_7": 180.0,
"wind_direction_8": 210.0,
"wind_direction_9": 240.0,
"wind_direction_10": 270.0,
"wind_direction_11": 300.0,
"wind_direction_12": 330.0
}
}
,
"AirflowNetwork:MultiZone:WindPressureCoefficientValues": {
"window_2_00_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 3) & (df.floor == nfloor),'cp'])
},
"window_3_00_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 2) & (df.floor == nfloor),'cp'])
},
"window_1_01_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 0) & (df.floor == nfloor),'cp'])
},
"window_2_01_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 5) & (df.floor == nfloor),'cp'])
},
"window_3_02_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 1) & (df.floor == nfloor),'cp'])
},
"window_1_03_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 1) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 1) & (df.floor == nfloor),'cp'])
},
"window_0_04_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 5) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 5) & (df.floor == nfloor),'cp'])
},
"window_3_04_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 0) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 0) & (df.floor == nfloor),'cp'])
},
"window_0_05_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 3) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 3) & (df.floor == nfloor),'cp'])
},
"window_1_05_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 2) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 2) & (df.floor == nfloor),'cp'])
},
"window_corr_curve": {
"airflownetwork_multizone_windpressurecoefficientarray_name": "ventos",
"idf_max_extensible_fields": 0,
"idf_max_fields": 14,
"wind_pressure_coefficient_value_1": float(df.loc[(df.angle == 0) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_2": float(df.loc[(df.angle == 30) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_3": float(df.loc[(df.angle == 60) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_4": float(df.loc[(df.angle == 90) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_5": float(df.loc[(df.angle == 120) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_6": float(df.loc[(df.angle == 150) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_7": float(df.loc[(df.angle == 180) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_8": float(df.loc[(df.angle == 210) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_9": float(df.loc[(df.angle == 240) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_10": float(df.loc[(df.angle == 270) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_11": float(df.loc[(df.angle == 300) & (df.zone == 4) & (df.floor == nfloor),'cp']),
"wind_pressure_coefficient_value_12": float(df.loc[(df.angle == 330) & (df.zone == 4) & (df.floor == nfloor),'cp'])
}
}
}
with open('tpu_floor'+str(nfloor)+'.json', 'w') as file:
file.write(json.dumps(tpu_dict))
'''
'''
| 77.665689
| 132
| 0.560754
| 3,242
| 26,484
| 4.270512
| 0.036706
| 0.136945
| 0.260816
| 0.266956
| 0.921705
| 0.921705
| 0.917299
| 0.916143
| 0.913615
| 0.910654
| 0
| 0.047541
| 0.261365
| 26,484
| 340
| 133
| 77.894118
| 0.660209
| 0
| 0
| 0.656627
| 0
| 0
| 0.350093
| 0.270578
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.006024
| 0
| 0.006024
| 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
|
14497da90dbf8d3c63fbad77b7435cdee283414d
| 6,741
|
py
|
Python
|
t/o_tables_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 947
|
2021-11-29T10:58:09.000Z
|
2022-03-31T18:14:07.000Z
|
t/o_tables_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 22
|
2021-12-12T22:02:32.000Z
|
2022-03-30T19:31:46.000Z
|
t/o_tables_test.py
|
rohankumardubey/orioledb
|
a736714ed5d71c7f85bee23150c4432b3fbdff1f
|
[
"PostgreSQL"
] | 30
|
2021-12-15T01:11:09.000Z
|
2022-03-27T11:22:16.000Z
|
#!/usr/bin/env python3
# coding: utf-8
import unittest
import testgres
from .base_test import BaseTest
from .base_test import ThreadQueryExecutor
from testgres.enums import NodeStatus
class OTablesTest(BaseTest):
def assertTblCount(self, size):
self.assertEqual(size,
self.node.execute('postgres',
'SELECT count(*) FROM orioledb_table_oids();')[0][0])
def test_o_tables_wal_commit(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n"
"INSERT INTO o_test VALUES(1, 'test');"
)
self.assertTblCount(1)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(1)
self.assertEqual(node.execute('postgres', 'SELECT count(*) FROM o_test;')[0][0], 1)
node.stop()
def test_o_tables_wal_rollback(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n")
self.assertTblCount(0)
con1 = node.connect()
con1.begin()
con1.execute("CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
con1.execute("INSERT INTO o_test VALUES(1, 'test');")
self.assertTblCount(1)
con1.rollback()
self.assertTblCount(0)
con1.close()
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(0)
node.stop()
def test_o_tables_wal_drop_commit(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
self.assertTblCount(1)
node.safe_psql('postgres',
"INSERT INTO o_test VALUES(1, 'test');")
node.safe_psql('postgres',
"DROP TABLE o_test;")
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(0)
node.stop()
def test_o_tables_wal_drop_rollback(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
self.assertTblCount(1)
node.safe_psql('postgres',
"INSERT INTO o_test VALUES(1, 'test');")
con1 = node.connect()
con1.begin()
con1.execute("DROP TABLE o_test;")
self.assertTblCount(1)
con1.rollback()
self.assertTblCount(1)
con1.close()
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(1)
self.assertEqual(node.execute('postgres', 'SELECT count(*) FROM o_test;')[0][0], 1)
node.stop()
def test_o_tables_xip_commit(self):
node = self.node
node.start()
node.safe_psql('postgres', "CREATE EXTENSION IF NOT EXISTS orioledb;\n")
con1 = node.connect()
con1.begin()
con1.execute("CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
con1.execute("INSERT INTO o_test VALUES(1);")
node.safe_psql("CHECKPOINT;");
con1.commit()
con1.close()
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(1)
node.stop()
def test_o_tables_xip_rollback(self):
node = self.node
node.start()
node.safe_psql('postgres', "CREATE EXTENSION IF NOT EXISTS orioledb;\n")
con1 = node.connect()
con1.begin()
con1.execute("CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
con1.execute("INSERT INTO o_test VALUES(1);")
node.safe_psql("CHECKPOINT;");
con1.rollback()
con1.close()
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(0)
node.stop()
def test_o_tables_wal_drop_extension_commit(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
self.assertTblCount(1)
node.safe_psql('postgres',
"DROP EXTENSION orioledb CASCADE;")
node.safe_psql('postgres',
"CREATE EXTENSION orioledb;")
self.assertTblCount(0)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(0)
node.stop()
def test_o_tables_wal_drop_extension_rollback(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
self.assertTblCount(1)
con1 = node.connect()
con1.begin()
con1.execute("DROP EXTENSION orioledb CASCADE;")
con1.rollback()
con1.close()
self.assertTblCount(1)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(1)
node.stop()
def test_o_tables_mix(self):
node = self.node
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION IF NOT EXISTS orioledb;\n"
"CREATE TABLE IF NOT EXISTS o_test(\n"
" id integer NOT NULL,\n"
" val text\n"
") USING orioledb;\n")
self.assertTblCount(1)
node.safe_psql('postgres',
"DROP TABLE o_test;")
self.assertTblCount(0)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(0)
node.safe_psql('postgres',
"CREATE TABLE IF NOT EXISTS o_test1(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
node.safe_psql('postgres',
"CREATE TABLE IF NOT EXISTS o_test2(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
node.safe_psql('postgres',
"CREATE TABLE IF NOT EXISTS o_test3(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
self.assertTblCount(3)
node.safe_psql('postgres',
"DROP TABLE o_test3;")
self.assertTblCount(2)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(2)
con1 = node.connect()
con1.begin()
con1.execute("CREATE TABLE IF NOT EXISTS o_test3(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
con1.rollback()
self.assertTblCount(2)
con1.begin()
con1.execute("CREATE TABLE IF NOT EXISTS o_test3(\n"
" id integer NOT NULL\n"
") USING orioledb;\n")
con1.commit()
con1.close()
self.assertTblCount(3)
node.stop(['-m', 'immediate'])
node.start()
self.assertTblCount(3)
node.safe_psql('postgres',
"DROP EXTENSION orioledb CASCADE;\n")
node.stop(['-m', 'immediate'])
node.start()
node.safe_psql('postgres',
"CREATE EXTENSION orioledb;\n")
self.assertTblCount(0)
node.stop()
| 25.631179
| 85
| 0.640409
| 921
| 6,741
| 4.585233
| 0.080347
| 0.127871
| 0.065356
| 0.099455
| 0.904807
| 0.889652
| 0.875918
| 0.86171
| 0.752546
| 0.752546
| 0
| 0.016566
| 0.211986
| 6,741
| 262
| 86
| 25.729008
| 0.778426
| 0.005192
| 0
| 0.847534
| 0
| 0
| 0.366796
| 0.003282
| 0
| 0
| 0
| 0
| 0.152466
| 1
| 0.044843
| false
| 0
| 0.022422
| 0
| 0.071749
| 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
|
1473bfb655a7598b6f756712f888f44ca3befcfb
| 15,145
|
py
|
Python
|
src/azure-cli/azure/cli/command_modules/ams/tests/latest/test_ams_asset_track_scenarios.py
|
ZengTaoxu/azure-cli
|
6be96de450da5ac9f07aafb22dd69880bea04792
|
[
"MIT"
] | null | null | null |
src/azure-cli/azure/cli/command_modules/ams/tests/latest/test_ams_asset_track_scenarios.py
|
ZengTaoxu/azure-cli
|
6be96de450da5ac9f07aafb22dd69880bea04792
|
[
"MIT"
] | null | null | null |
src/azure-cli/azure/cli/command_modules/ams/tests/latest/test_ams_asset_track_scenarios.py
|
ZengTaoxu/azure-cli
|
6be96de450da5ac9f07aafb22dd69880bea04792
|
[
"MIT"
] | null | null | null |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import os
import time
from azure.cli.core.util import CLIError
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer
from azure.cli.command_modules.ams._test_utils import _get_test_data_file
class AmsAssetFilterTests(ScenarioTest):
@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
def test_ams_asset_track_create(self, storage_account_for_create):
amsname = self.create_random_name(prefix='ams', length=12)
outputContainer = self.create_random_name(prefix='output', length=14)
self.kwargs.update({
'amsname': amsname,
'storageAccount': storage_account_for_create,
'location': 'westeurope',
'outputContainer': outputContainer,
'assetTrackFilePath': _get_test_data_file('assetTrack.ttml'),
'assetTrackFileName': 'assetTrack.ttml',
'sampleIsmFilePath': _get_test_data_file('sampleIsmFile.ism'),
'trackName': self.create_random_name(prefix='track', length=12)
})
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location}')
self.cmd('az ams account storage add -a {amsname} -g {rg} -n {storageAccount}')
outputAssetName = self.create_random_name(prefix='asset', length=12)
self.kwargs.update({
'outputAssetName': outputAssetName
})
self.cmd('az ams asset create -a {amsname} -n {outputAssetName} -g {rg} --container {outputContainer}')
self.kwargs['storage_key'] = str(
self.cmd('az storage account keys list -n {storageAccount} -g {rg} --query "[0].value"').output)
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{assetTrackFilePath}" --name {assetTrackFileName} --account-key {storage_key}')
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{sampleIsmFilePath}" --account-key {storage_key}')
_RETRY_TIMES = 7
for retry_time in range(0, _RETRY_TIMES):
try:
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}',
checks=[
self.check('name', '{trackName}'),
self.check('track.fileName', '{assetTrackFileName}')
])
break
except Exception: # pylint: disable=broad-except
if retry_time < _RETRY_TIMES:
time.sleep(10)
else:
raise
@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
def test_ams_asset_track_show(self, storage_account_for_create):
amsname = self.create_random_name(prefix='ams', length=12)
outputContainer = self.create_random_name(prefix='output', length=14)
self.kwargs.update({
'amsname': amsname,
'storageAccount': storage_account_for_create,
'location': 'westeurope',
'outputContainer': outputContainer,
'assetTrackFilePath': _get_test_data_file('assetTrack.ttml'),
'assetTrackFileName': 'assetTrack.ttml',
'sampleIsmFilePath': _get_test_data_file('sampleIsmFile.ism'),
'trackName': self.create_random_name(prefix='track', length=12)
})
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location}')
self.cmd('az ams account storage add -a {amsname} -g {rg} -n {storageAccount}')
outputAssetName = self.create_random_name(prefix='asset', length=12)
self.kwargs.update({
'outputAssetName': outputAssetName
})
self.cmd('az ams asset create -a {amsname} -n {outputAssetName} -g {rg} --container {outputContainer}')
self.kwargs['storage_key'] = str(
self.cmd('az storage account keys list -n {storageAccount} -g {rg} --query "[0].value"').output)
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{assetTrackFilePath}" --name {assetTrackFileName} --account-key {storage_key}')
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{sampleIsmFilePath}" --account-key {storage_key}')
_RETRY_TIMES = 5
for retry_time in range(0, _RETRY_TIMES):
try:
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}',
checks=[
self.check('name', '{trackName}'),
self.check('track.fileName', '{assetTrackFileName}')
])
self.cmd(
'az ams asset-track show -a {amsname} -g {rg} --track-name {trackName} --asset-name {outputAssetName}',
checks=[
self.check('name', '{trackName}')
])
break
except Exception: # pylint: disable=broad-except
if retry_time < _RETRY_TIMES:
time.sleep(10)
else:
raise
@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
def test_ams_asset_track_list(self, storage_account_for_create):
amsname = self.create_random_name(prefix='ams', length=12)
outputContainer = self.create_random_name(prefix='output', length=14)
self.kwargs.update({
'amsname': amsname,
'storageAccount': storage_account_for_create,
'location': 'westeurope',
'outputContainer': outputContainer,
'assetTrackFilePath': _get_test_data_file('assetTrack.ttml'),
'assetTrackFileName': 'assetTrack.ttml',
'sampleIsmFilePath': _get_test_data_file('sampleIsmFile.ism'),
'trackName1': self.create_random_name(prefix='track', length=12),
'trackName2': self.create_random_name(prefix='track2', length=12)
})
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location}')
self.cmd('az ams account storage add -a {amsname} -g {rg} -n {storageAccount}')
outputAssetName = self.create_random_name(prefix='asset', length=12)
self.kwargs.update({
'outputAssetName': outputAssetName
})
self.cmd('az ams asset create -a {amsname} -n {outputAssetName} -g {rg} --container {outputContainer}')
self.kwargs['storage_key'] = str(
self.cmd('az storage account keys list -n {storageAccount} -g {rg} --query "[0].value"').output)
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{assetTrackFilePath}" --name {assetTrackFileName} --account-key {storage_key}')
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{sampleIsmFilePath}" --account-key {storage_key}')
_RETRY_TIMES = 5
for retry_time in range(0, _RETRY_TIMES):
try:
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}')
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName2} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}')
self.cmd(
'az ams asset-track list -a {amsname} -g {rg} --asset-name {outputAssetName}',
checks=[
self.check('length(@)', 2)
])
break
except Exception: # pylint: disable=broad-except
if retry_time < _RETRY_TIMES:
time.sleep(10)
else:
raise
@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
def test_ams_asset_track_delete(self, storage_account_for_create):
amsname = self.create_random_name(prefix='ams', length=12)
outputContainer = self.create_random_name(prefix='output', length=14)
self.kwargs.update({
'amsname': amsname,
'storageAccount': storage_account_for_create,
'location': 'westeurope',
'outputContainer': outputContainer,
'assetTrackFilePath': _get_test_data_file('assetTrack.ttml'),
'assetTrackFileName': 'assetTrack.ttml',
'sampleIsmFilePath': _get_test_data_file('sampleIsmFile.ism'),
'trackName1': self.create_random_name(prefix='track', length=12),
'trackName2': self.create_random_name(prefix='track2', length=12)
})
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location}')
self.cmd('az ams account storage add -a {amsname} -g {rg} -n {storageAccount}')
outputAssetName = self.create_random_name(prefix='asset', length=12)
self.kwargs.update({
'outputAssetName': outputAssetName
})
self.cmd('az ams asset create -a {amsname} -n {outputAssetName} -g {rg} --container {outputContainer}')
self.kwargs['storage_key'] = str(
self.cmd('az storage account keys list -n {storageAccount} -g {rg} --query "[0].value"').output)
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{assetTrackFilePath}" --name {assetTrackFileName} --account-key {storage_key}')
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{sampleIsmFilePath}" --account-key {storage_key}')
_RETRY_TIMES = 5
for retry_time in range(0, _RETRY_TIMES):
try:
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}')
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName2} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}')
self.cmd(
'az ams asset-track list -a {amsname} -g {rg} --asset-name {outputAssetName}',
checks=[
self.check('length(@)', 2)
])
self.cmd(
'az ams asset-track delete -a {amsname} -g {rg} --asset-name {outputAssetName} --track-name {trackName2}',
checks=[
self.check('length(@)', 1)
]
)
break
except Exception: # pylint: disable=broad-except
if retry_time < _RETRY_TIMES:
time.sleep(10)
else:
raise
@ResourceGroupPreparer()
@StorageAccountPreparer(parameter_name='storage_account_for_create')
def test_ams_asset_track_update(self, storage_account_for_create):
amsname = self.create_random_name(prefix='ams', length=12)
outputContainer = self.create_random_name(prefix='output', length=14)
self.kwargs.update({
'amsname': amsname,
'storageAccount': storage_account_for_create,
'location': 'westeurope',
'outputContainer': outputContainer,
'assetTrackFilePath': _get_test_data_file('assetTrack.ttml'),
'assetTrackFileName': 'assetTrack.ttml',
'sampleIsmFilePath': _get_test_data_file('sampleIsmFile.ism'),
'trackName': self.create_random_name(prefix='track', length=12)
})
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location}')
self.cmd('az ams account storage add -a {amsname} -g {rg} -n {storageAccount}')
outputAssetName = self.create_random_name(prefix='asset', length=12)
self.kwargs.update({
'outputAssetName': outputAssetName
})
self.cmd('az ams asset create -a {amsname} -n {outputAssetName} -g {rg} --container {outputContainer}')
self.kwargs['storage_key'] = str(
self.cmd('az storage account keys list -n {storageAccount} -g {rg} --query "[0].value"').output)
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{assetTrackFilePath}" --name {assetTrackFileName} --account-key {storage_key}')
self.cmd(
'az storage blob upload --no-progress --account-name {storageAccount} --container {outputContainer} --file "{sampleIsmFilePath}" --account-key {storage_key}')
_RETRY_TIMES = 5
for retry_time in range(0, _RETRY_TIMES):
try:
self.cmd(
'az ams asset-track create -a {amsname} -g {rg} --track-name {trackName} --track-type Text --asset-name {outputAssetName} --file-name {assetTrackFileName}',
checks=[
self.check('name', '{trackName}'),
self.check('track.fileName', '{assetTrackFileName}')
])
self.kwargs.update({
'displayName': 'newDisplayName',
'playerVisibility': 'Hidden'
})
self.cmd(
'az ams asset-track update -a {amsname} -g {rg} --track-name {trackName} --asset-name {outputAssetName} --display-name {displayName} --player-visibility {playerVisibility}',
checks=[
self.check('track.displayName', '{displayName}'),
self.check('track.playerVisibility', '{playerVisibility}')
])
break
except Exception: # pylint: disable=broad-except
if retry_time < _RETRY_TIMES:
time.sleep(10)
else:
raise
| 48.386581
| 199
| 0.591152
| 1,499
| 15,145
| 5.828552
| 0.086057
| 0.03365
| 0.043264
| 0.037084
| 0.927321
| 0.925833
| 0.91908
| 0.913014
| 0.913014
| 0.913014
| 0
| 0.007363
| 0.273622
| 15,145
| 312
| 200
| 48.541667
| 0.786838
| 0.03176
| 0
| 0.908
| 0
| 0.148
| 0.438545
| 0.025046
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02
| false
| 0
| 0.02
| 0
| 0.044
| 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
|
210907fcdc40cde8b8e239baabcae37ac6533a5a
| 9,829
|
py
|
Python
|
omniforms/migrations/0001_initial.py
|
vixdigital/omni-forms
|
1a21c4b7428e08ee148fc97662ed6b15c21cbe1c
|
[
"MIT"
] | 6
|
2016-09-02T22:07:32.000Z
|
2019-12-16T08:52:37.000Z
|
omniforms/migrations/0001_initial.py
|
vixdigital/omni-forms
|
1a21c4b7428e08ee148fc97662ed6b15c21cbe1c
|
[
"MIT"
] | 32
|
2016-06-09T14:06:13.000Z
|
2018-04-24T11:45:44.000Z
|
omniforms/migrations/0001_initial.py
|
vixdigital/omni-forms
|
1a21c4b7428e08ee148fc97662ed6b15c21cbe1c
|
[
"MIT"
] | 4
|
2016-08-08T17:49:38.000Z
|
2019-11-19T15:32:03.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-07 13:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import omniforms.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='OmniField',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('label', models.CharField(max_length=255)),
('help_text', models.TextField(blank=True, null=True)),
('required', models.BooleanField(default=False)),
('widget_class', models.CharField(max_length=255)),
('order', models.IntegerField(default=0)),
('object_id', models.PositiveIntegerField()),
],
options={
'ordering': ('order',),
},
),
migrations.CreateModel(
name='OmniForm',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
],
options={
'abstract': False,
},
bases=(omniforms.models.FormGeneratorMixin, models.Model),
),
migrations.CreateModel(
name='OmniFormHandler',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('order', models.IntegerField(default=0)),
('object_id', models.PositiveIntegerField()),
],
options={
'ordering': ('order',),
},
),
migrations.CreateModel(
name='OmniModelForm',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('content_type', models.ForeignKey(help_text='THis is some help text', on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.ContentType')),
],
options={
'abstract': False,
},
bases=(omniforms.models.FormGeneratorMixin, models.Model),
),
migrations.CreateModel(
name='OmniBooleanField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.NullBooleanField()),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniCharField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.TextField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniDateField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.DateField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniDateTimeField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.DateTimeField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniDecimalField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniEmailField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.EmailField(blank=True, max_length=254, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniFloatField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.FloatField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniFormEmailHandler',
fields=[
('omniformhandler_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniFormHandler')),
('subject', models.CharField(max_length=255)),
('recipients', models.TextField()),
('template', models.TextField()),
],
bases=('omniforms.omniformhandler',),
),
migrations.CreateModel(
name='OmniIntegerField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.IntegerField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniRelatedField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniTimeField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.TimeField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.CreateModel(
name='OmniUrlField',
fields=[
('omnifield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniField')),
('initial', models.URLField(blank=True, null=True)),
],
bases=('omniforms.omnifield',),
),
migrations.AddField(
model_name='omniformhandler',
name='content_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
),
migrations.AddField(
model_name='omniformhandler',
name='real_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.ContentType'),
),
migrations.AddField(
model_name='omnifield',
name='content_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
),
migrations.AddField(
model_name='omnifield',
name='real_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.ContentType'),
),
migrations.CreateModel(
name='OmniForeignKeyField',
fields=[
('omnirelatedfield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniRelatedField')),
],
bases=('omniforms.omnirelatedfield',),
),
migrations.CreateModel(
name='OmniManyToManyField',
fields=[
('omnirelatedfield_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='omniforms.OmniRelatedField')),
],
bases=('omniforms.omnirelatedfield',),
),
migrations.AddField(
model_name='omnirelatedfield',
name='related_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='contenttypes.ContentType'),
),
]
| 47.483092
| 213
| 0.593143
| 896
| 9,829
| 6.368304
| 0.138393
| 0.030845
| 0.051525
| 0.080967
| 0.820715
| 0.811251
| 0.779005
| 0.779005
| 0.750613
| 0.74448
| 0
| 0.006848
| 0.272052
| 9,829
| 206
| 214
| 47.713592
| 0.790636
| 0.006817
| 0
| 0.722222
| 1
| 0
| 0.163336
| 0.030536
| 0.005051
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.020202
| 0
| 0.040404
| 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
|
2119a3c4d672b9664c564ee420637ea10c451801
| 21,505
|
py
|
Python
|
great_international/migrations/0062_auto_20190731_1236.py
|
uktrade/directory-cms
|
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
|
[
"MIT"
] | 6
|
2018-03-20T11:19:07.000Z
|
2021-10-05T07:53:11.000Z
|
great_international/migrations/0062_auto_20190731_1236.py
|
uktrade/directory-cms
|
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
|
[
"MIT"
] | 802
|
2018-02-05T14:16:13.000Z
|
2022-02-10T10:59:21.000Z
|
great_international/migrations/0062_auto_20190731_1236.py
|
uktrade/directory-cms
|
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
|
[
"MIT"
] | 6
|
2019-01-22T13:19:37.000Z
|
2019-07-01T10:35:26.000Z
|
# Generated by Django 2.2.2 on 2019-07-31 12:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('great_international', '0061_merge_20190731_1124'),
]
operations = [
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_content_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_image_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='capital_invest_section_title_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_image_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_text_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='isd_section_title_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_call_to_action_url_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_content_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_img_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_lead_in_zh_hans',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_ar',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_de',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_en_gb',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_es',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_fr',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_ja',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_pt',
),
migrations.RemoveField(
model_name='investinternationalhomepage',
name='setup_guide_title_zh_hans',
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page'),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_ar',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_de',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_en_gb',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_es',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_fr',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_ja',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_pt',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsectorpage',
name='featured_description_zh_hans',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page'),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_ar',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_de',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_en_gb',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_es',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_fr',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_ja',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_pt',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AddField(
model_name='internationalsubsectorpage',
name='featured_description_zh_hans',
field=models.TextField(blank=True, help_text='This is the description shown when the sector is featured on another page i.e. the Invest Home Page', null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro',
field=models.TextField(blank=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_ar',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_de',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_en_gb',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_es',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_fr',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_ja',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_pt',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='aboutditlandingpage',
name='intro_zh_hans',
field=models.TextField(blank=True, null=True),
),
]
| 39.458716
| 171
| 0.620879
| 1,892
| 21,505
| 6.7574
| 0.042812
| 0.088698
| 0.20133
| 0.232303
| 0.98686
| 0.984904
| 0.983966
| 0.980289
| 0.967775
| 0.706688
| 0
| 0.002038
| 0.292816
| 21,505
| 544
| 172
| 39.53125
| 0.838638
| 0.002093
| 0
| 0.784387
| 1
| 0.033457
| 0.376876
| 0.246808
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001859
| 0
| 0.007435
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 10
|
3718c670cde7f7f172de1a4b2e5a6ec8a766bbf8
| 179
|
py
|
Python
|
Godzilla_Flies/game/score.py
|
Thrasherop/FinalProject
|
0cbc1504a311f490ae494302fd1a4f0a225e4cae
|
[
"MIT"
] | null | null | null |
Godzilla_Flies/game/score.py
|
Thrasherop/FinalProject
|
0cbc1504a311f490ae494302fd1a4f0a225e4cae
|
[
"MIT"
] | null | null | null |
Godzilla_Flies/game/score.py
|
Thrasherop/FinalProject
|
0cbc1504a311f490ae494302fd1a4f0a225e4cae
|
[
"MIT"
] | null | null | null |
class Score:
def __init__(self):
self._score = 0
def get_score(self):
return self._score
def add_score(self, score):
self._score += score
| 19.888889
| 31
| 0.581006
| 23
| 179
| 4.130435
| 0.391304
| 0.378947
| 0.294737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008264
| 0.324022
| 179
| 9
| 32
| 19.888889
| 0.77686
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.142857
| 0.714286
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
2ee5fdecce50fa998f8d53511f9f40bbdbc20289
| 180
|
py
|
Python
|
models/rl_actions/__init__.py
|
marco-foscato/Lib-INVENT
|
fe6a65ab7165abd87b25752a6b4208c8703d11f7
|
[
"Apache-2.0"
] | 26
|
2021-04-30T23:21:17.000Z
|
2022-03-10T06:33:11.000Z
|
models/rl_actions/__init__.py
|
marco-foscato/Lib-INVENT
|
fe6a65ab7165abd87b25752a6b4208c8703d11f7
|
[
"Apache-2.0"
] | 6
|
2021-10-03T08:35:48.000Z
|
2022-03-24T09:57:39.000Z
|
models/rl_actions/__init__.py
|
marco-foscato/Lib-INVENT
|
fe6a65ab7165abd87b25752a6b4208c8703d11f7
|
[
"Apache-2.0"
] | 10
|
2021-04-28T14:08:17.000Z
|
2022-03-04T04:18:13.000Z
|
from models.rl_actions.base_action import BaseAction
from models.rl_actions.sample_model import SampleModel
from models.rl_actions.likelihood_evaluation import LikelihoodEvaluation
| 60
| 72
| 0.905556
| 24
| 180
| 6.541667
| 0.583333
| 0.191083
| 0.229299
| 0.363057
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061111
| 180
| 3
| 72
| 60
| 0.928994
| 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
| 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
|
d3038c946c6787ee6b465e46bc0a91bf29329da6
| 4,045
|
py
|
Python
|
ietf/dbtemplate/migrations/0003_adjust_review_templates.py
|
hassanakbar4/ietfdb
|
cabee059092ae776015410640226064331c293b7
|
[
"BSD-3-Clause"
] | 25
|
2022-03-05T08:26:52.000Z
|
2022-03-30T15:45:42.000Z
|
ietf/dbtemplate/migrations/0003_adjust_review_templates.py
|
hassanakbar4/ietfdb
|
cabee059092ae776015410640226064331c293b7
|
[
"BSD-3-Clause"
] | 219
|
2022-03-04T17:29:12.000Z
|
2022-03-31T21:16:14.000Z
|
ietf/dbtemplate/migrations/0003_adjust_review_templates.py
|
hassanakbar4/ietfdb
|
cabee059092ae776015410640226064331c293b7
|
[
"BSD-3-Clause"
] | 22
|
2022-03-04T15:34:34.000Z
|
2022-03-28T13:30:59.000Z
|
# Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-05 11:39
from django.db import migrations
def forward(apps, schema_editor):
DBTemplate = apps.get_model('dbtemplate', 'DBTemplate')
DBTemplate.objects.filter(id=186).update(content="""I am the assigned Gen-ART reviewer for this draft. The General Area
Review Team (Gen-ART) reviews all IETF documents being processed
by the IESG for the IETF Chair. Please treat these comments just
like any other last call comments.
For more information, please see the FAQ at
<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.
Document: {{ assignment.review_request.doc.name }}-??
Reviewer: {{ assignment.reviewer.person.plain_name }}
Review Date: {{ today }}
IETF LC End Date: {% if assignment.review_request.doc.most_recent_ietflc %}{{ assignment.review_request.doc.most_recent_ietflc.expires|date:"Y-m-d" }}{% else %}None{% endif %}
IESG Telechat date: {{ assignment.review_request.doc.telechat_date|default:'Not scheduled for a telechat' }}
Summary:
Major issues:
Minor issues:
Nits/editorial comments:
""")
DBTemplate.objects.filter(id=187).update(content="""I am the assigned Gen-ART reviewer for this draft. The General Area
Review Team (Gen-ART) reviews all IETF documents being processed
by the IESG for the IETF Chair. Please wait for direction from your
document shepherd or AD before posting a new version of the draft.
For more information, please see the FAQ at
<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.
Document: {{ assignment.review_request.doc.name }}-??
Reviewer: {{ assignment.reviewer.person.plain_name }}
Review Date: {{ today }}
IETF LC End Date: {% if assignment.review_req.doc.most_recent_ietflc %}{{ assignment.review_request.doc.most_recent_ietflc.expires|date:"Y-m-d" }}{% else %}None{% endif %}
IESG Telechat date: {{ assignment.review_request.doc.telechat_date|default:'Not scheduled for a telechat' }}
Summary:
Major issues:
Minor issues:
Nits/editorial comments:
""")
def reverse(apps, schema_editor):
DBTemplate = apps.get_model('dbtemplate','DBTemplate')
DBTemplate.objects.filter(id=186).update(content="""I am the assigned Gen-ART reviewer for this draft. The General Area
Review Team (Gen-ART) reviews all IETF documents being processed
by the IESG for the IETF Chair. Please treat these comments just
like any other last call comments.
For more information, please see the FAQ at
<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.
Document: {{ review_req.doc.name }}-??
Reviewer: {{ review_req.reviewer.person.plain_name }}
Review Date: {{ today }}
IETF LC End Date: {% if review_req.doc.most_recent_ietflc %}{{ review_req.doc.most_recent_ietflc.expires|date:"Y-m-d" }}{% else %}None{% endif %}
IESG Telechat date: {{ review_req.doc.telechat_date|default:'Not scheduled for a telechat' }}
Summary:
Major issues:
Minor issues:
Nits/editorial comments:
""")
DBTemplate.objects.filter(id=187).update(content="""I am the assigned Gen-ART reviewer for this draft. The General Area
Review Team (Gen-ART) reviews all IETF documents being processed
by the IESG for the IETF Chair. Please wait for direction from your
document shepherd or AD before posting a new version of the draft.
For more information, please see the FAQ at
<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>.
Document: {{ review_req.doc.name }}-??
Reviewer: {{ review_req.reviewer.person.plain_name }}
Review Date: {{ today }}
IETF LC End Date: {% if review_req.doc.most_recent_ietflc %}{{ review_req.doc.most_recent_ietflc.expires|date:"Y-m-d" }}{% else %}None{% endif %}
IESG Telechat date: {{ review_req.doc.telechat_date|default:'Not scheduled for a telechat' }}
Summary:
Major issues:
Minor issues:
Nits/editorial comments:
""")
class Migration(migrations.Migration):
dependencies = [
('dbtemplate', '0002_auto_20180220_1052'),
('doc','0011_reviewassignmentdocevent'),
]
operations = [
migrations.RunPython(forward, reverse)
]
| 33.708333
| 175
| 0.743881
| 593
| 4,045
| 4.989882
| 0.231029
| 0.033457
| 0.036499
| 0.051369
| 0.902332
| 0.902332
| 0.901318
| 0.898952
| 0.898952
| 0.898952
| 0
| 0.016571
| 0.134734
| 4,045
| 119
| 176
| 33.991597
| 0.828857
| 0.030902
| 0
| 0.831169
| 1
| 0.077922
| 0.84474
| 0.221144
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025974
| false
| 0
| 0.012987
| 0
| 0.077922
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d3055399900da91bcfc6e1e8e9f63a64fe9aefdf
| 289
|
py
|
Python
|
processes/__init__.py
|
c3s-magic/adaguc-services-esmvaltool-wps
|
2afc856b05aa816a2b32b961f630e24ce2eab076
|
[
"Apache-2.0"
] | null | null | null |
processes/__init__.py
|
c3s-magic/adaguc-services-esmvaltool-wps
|
2afc856b05aa816a2b32b961f630e24ce2eab076
|
[
"Apache-2.0"
] | null | null | null |
processes/__init__.py
|
c3s-magic/adaguc-services-esmvaltool-wps
|
2afc856b05aa816a2b32b961f630e24ce2eab076
|
[
"Apache-2.0"
] | null | null | null |
#__all__ = ["dummyprocess","ultimatequestionprocess", "esmvaltool-time-series-plot", "pretty-picture"]
__all__ = ["esmvaltool-time-series-plot", "esmvaltool-portrait", "esmvaltool-taylor", "esmvaltool-clouds", "esmvaltool-clouds-ipcc", "esmvaltool-clouds-interannual", "esmvaltool-ozone"]
| 96.333333
| 185
| 0.768166
| 28
| 289
| 7.642857
| 0.535714
| 0.224299
| 0.186916
| 0.224299
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.048443
| 289
| 2
| 186
| 144.5
| 0.778182
| 0.349481
| 0
| 0
| 0
| 0
| 0.786096
| 0.417112
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d3278def968ea5cd85ed4671ff849aa6303a1d23
| 42,256
|
py
|
Python
|
kinow_client/apis/playlists_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | 1
|
2019-06-26T14:24:54.000Z
|
2019-06-26T14:24:54.000Z
|
kinow_client/apis/playlists_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | null | null | null |
kinow_client/apis/playlists_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | 1
|
2018-02-01T10:08:40.000Z
|
2018-02-01T10:08:40.000Z
|
# coding: utf-8
"""
Server API
Reference for Server API (REST/Json)
OpenAPI spec version: 1.4.58
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 ..configuration import Configuration
from ..api_client import ApiClient
class PlaylistsApi(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):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def attach_bookmark_to_playlist(self, playlist_id, product_id, **kwargs):
"""
Attach bookmark to playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_bookmark_to_playlist(playlist_id, product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:param int product_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.attach_bookmark_to_playlist_with_http_info(playlist_id, product_id, **kwargs)
else:
(data) = self.attach_bookmark_to_playlist_with_http_info(playlist_id, product_id, **kwargs)
return data
def attach_bookmark_to_playlist_with_http_info(self, playlist_id, product_id, **kwargs):
"""
Attach bookmark to playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_bookmark_to_playlist_with_http_info(playlist_id, product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:param int product_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id', 'product_id']
all_params.append('callback')
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 attach_bookmark_to_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `attach_bookmark_to_playlist`")
# verify the required parameter 'product_id' is set
if ('product_id' not in params) or (params['product_id'] is None):
raise ValueError("Missing the required parameter `product_id` when calling `attach_bookmark_to_playlist`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}/bookmarks'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'product_id' in params:
form_params.append(('product_id', params['product_id']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_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 create_playlist(self, customer_id, name, **kwargs):
"""
Create playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_playlist(customer_id, name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int customer_id: (required)
:param str name: (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_playlist_with_http_info(customer_id, name, **kwargs)
else:
(data) = self.create_playlist_with_http_info(customer_id, name, **kwargs)
return data
def create_playlist_with_http_info(self, customer_id, name, **kwargs):
"""
Create playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_playlist_with_http_info(customer_id, name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int customer_id: (required)
:param str name: (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['customer_id', 'name']
all_params.append('callback')
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 create_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'customer_id' is set
if ('customer_id' not in params) or (params['customer_id'] is None):
raise ValueError("Missing the required parameter `customer_id` when calling `create_playlist`")
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `create_playlist`")
collection_formats = {}
resource_path = '/playlists'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'customer_id' in params:
form_params.append(('customer_id', params['customer_id']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
if 'name' in params:
form_params.append(('name', params['name']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Playlist',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 delete_playlist(self, playlist_id, **kwargs):
"""
Delete playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_playlist(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_playlist_with_http_info(playlist_id, **kwargs)
else:
(data) = self.delete_playlist_with_http_info(playlist_id, **kwargs)
return data
def delete_playlist_with_http_info(self, playlist_id, **kwargs):
"""
Delete playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_playlist_with_http_info(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id']
all_params.append('callback')
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 delete_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `delete_playlist`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_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 detach_bookmark_from_playlist(self, playlist_id, product_id, **kwargs):
"""
Detach bookmark from playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.detach_bookmark_from_playlist(playlist_id, product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:param int product_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.detach_bookmark_from_playlist_with_http_info(playlist_id, product_id, **kwargs)
else:
(data) = self.detach_bookmark_from_playlist_with_http_info(playlist_id, product_id, **kwargs)
return data
def detach_bookmark_from_playlist_with_http_info(self, playlist_id, product_id, **kwargs):
"""
Detach bookmark from playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.detach_bookmark_from_playlist_with_http_info(playlist_id, product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:param int product_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id', 'product_id']
all_params.append('callback')
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 detach_bookmark_from_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `detach_bookmark_from_playlist`")
# verify the required parameter 'product_id' is set
if ('product_id' not in params) or (params['product_id'] is None):
raise ValueError("Missing the required parameter `product_id` when calling `detach_bookmark_from_playlist`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}/bookmarks/{product_id}'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
if 'product_id' in params:
path_params['product_id'] = params['product_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_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_customer_playlists(self, customer_id, **kwargs):
"""
Get customer playlists
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_customer_playlists(customer_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int customer_id: (required)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Playlists
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_customer_playlists_with_http_info(customer_id, **kwargs)
else:
(data) = self.get_customer_playlists_with_http_info(customer_id, **kwargs)
return data
def get_customer_playlists_with_http_info(self, customer_id, **kwargs):
"""
Get customer playlists
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_customer_playlists_with_http_info(customer_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int customer_id: (required)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Playlists
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['customer_id', 'page', 'per_page', 'sort_by', 'sort_direction']
all_params.append('callback')
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_customer_playlists" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'customer_id' is set
if ('customer_id' not in params) or (params['customer_id'] is None):
raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_playlists`")
collection_formats = {}
resource_path = '/customers/{customer_id}/playlists'.replace('{format}', 'json')
path_params = {}
if 'customer_id' in params:
path_params['customer_id'] = params['customer_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
if 'sort_by' in params:
query_params['sort_by'] = params['sort_by']
if 'sort_direction' in params:
query_params['sort_direction'] = params['sort_direction']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Playlists',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_playlist(self, playlist_id, **kwargs):
"""
Get playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlist(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_playlist_with_http_info(playlist_id, **kwargs)
else:
(data) = self.get_playlist_with_http_info(playlist_id, **kwargs)
return data
def get_playlist_with_http_info(self, playlist_id, **kwargs):
"""
Get playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlist_with_http_info(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to fetch (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id']
all_params.append('callback')
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_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `get_playlist`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Playlist',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_playlist_bookmarks(self, playlist_id, **kwargs):
"""
Get playlist bookmarks
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlist_bookmarks(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: (required)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Products
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_playlist_bookmarks_with_http_info(playlist_id, **kwargs)
else:
(data) = self.get_playlist_bookmarks_with_http_info(playlist_id, **kwargs)
return data
def get_playlist_bookmarks_with_http_info(self, playlist_id, **kwargs):
"""
Get playlist bookmarks
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlist_bookmarks_with_http_info(playlist_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: (required)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Products
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id', 'page', 'per_page', 'sort_by', 'sort_direction']
all_params.append('callback')
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_playlist_bookmarks" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `get_playlist_bookmarks`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}/bookmarks'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
if 'sort_by' in params:
query_params['sort_by'] = params['sort_by']
if 'sort_direction' in params:
query_params['sort_direction'] = params['sort_direction']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Products',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_playlists(self, **kwargs):
"""
Get playlists
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlists(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Playlists
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_playlists_with_http_info(**kwargs)
else:
(data) = self.get_playlists_with_http_info(**kwargs)
return data
def get_playlists_with_http_info(self, **kwargs):
"""
Get playlists
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_playlists_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:param str sort_by: Sort by this attribute (id by default)
:param str sort_direction: Sorting direction (asc by default)
:return: Playlists
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['page', 'per_page', 'sort_by', 'sort_direction']
all_params.append('callback')
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_playlists" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
resource_path = '/playlists'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
if 'sort_by' in params:
query_params['sort_by'] = params['sort_by']
if 'sort_direction' in params:
query_params['sort_direction'] = params['sort_direction']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Playlists',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 update_playlist(self, playlist_id, body, **kwargs):
"""
Update playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_playlist(playlist_id, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to update (required)
:param PlaylistUpdate body: Playlist settings (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.update_playlist_with_http_info(playlist_id, body, **kwargs)
else:
(data) = self.update_playlist_with_http_info(playlist_id, body, **kwargs)
return data
def update_playlist_with_http_info(self, playlist_id, body, **kwargs):
"""
Update playlist
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_playlist_with_http_info(playlist_id, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int playlist_id: Playlist ID to update (required)
:param PlaylistUpdate body: Playlist settings (required)
:return: Playlist
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['playlist_id', 'body']
all_params.append('callback')
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 update_playlist" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'playlist_id' is set
if ('playlist_id' not in params) or (params['playlist_id'] is None):
raise ValueError("Missing the required parameter `playlist_id` when calling `update_playlist`")
# 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 `update_playlist`")
collection_formats = {}
resource_path = '/playlists/{playlist_id}'.replace('{format}', 'json')
path_params = {}
if 'playlist_id' in params:
path_params['playlist_id'] = params['playlist_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
self.api_client.set_default_header('Content-Type', 'application/json')
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Playlist',
auth_settings=auth_settings,
callback=params.get('callback'),
_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)
| 42.596774
| 122
| 0.571067
| 4,290
| 42,256
| 5.371562
| 0.041492
| 0.047735
| 0.021871
| 0.02812
| 0.96025
| 0.939854
| 0.93239
| 0.920457
| 0.911777
| 0.904834
| 0
| 0.000254
| 0.348022
| 42,256
| 991
| 123
| 42.639758
| 0.836189
| 0.304974
| 0
| 0.796781
| 1
| 0
| 0.186029
| 0.044154
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038229
| false
| 0
| 0.014085
| 0
| 0.108652
| 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
|
d3661a6402f874409675b2c8c05918eae8e50273
| 3,830
|
py
|
Python
|
tests/test_alarms.py
|
palazzem/elmo-server
|
b2e02d600a431dc1db31090f0d8dd09a8d586373
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_alarms.py
|
palazzem/elmo-server
|
b2e02d600a431dc1db31090f0d8dd09a8d586373
|
[
"BSD-3-Clause"
] | 8
|
2019-05-20T19:26:01.000Z
|
2019-05-26T13:02:45.000Z
|
tests/test_alarms.py
|
palazzem/elmo-server
|
b2e02d600a431dc1db31090f0d8dd09a8d586373
|
[
"BSD-3-Clause"
] | null | null | null |
from elmo.api.exceptions import APIException, PermissionDenied
def test_alarms_wrong_mimetype(client):
"""Should return 415 if JSON is not used"""
result = client.simulate_put(
"/api/v0/alarms",
headers={
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393",
},
body="code=1234567890",
)
assert result.status_code == 415
def test_alarm_successful_armed(mocker, client):
"""Should return 200 if all alarms have been activated"""
mock = mocker.patch("server.resources.ElmoClient")
instance = mock.return_value
result = client.simulate_put(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
instance.lock.assert_called_once_with("1234567890")
assert instance.arm.call_count == 1
assert instance._session_id == "127d9a48-927a-43f3-a3e3-842f3f2b7393"
assert result.status_code == 200
assert result.json == {"alarms_armed": True}
def test_alarm_invalid_expired_token(mocker, client):
"""Should return 200 if all alarms have been activated"""
mocker.patch("server.resources.ElmoClient.lock", side_effect=PermissionDenied)
result = client.simulate_put(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
assert result.status_code == 401
def test_alarm_api_exception(mocker, client):
"""Should return 200 if all alarms have been activated"""
mocker.patch("server.resources.ElmoClient.lock", side_effect=APIException)
result = client.simulate_put(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
assert result.status_code == 503
def test_disarm_wrong_mimetype(client):
"""Should return 415 if JSON is not used"""
result = client.simulate_delete(
"/api/v0/alarms",
headers={
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393",
},
body="code=1234567890",
)
assert result.status_code == 415
def test_disarm_successful_armed(mocker, client):
"""Should return 200 if all alarms have been activated"""
mock = mocker.patch("server.resources.ElmoClient")
instance = mock.return_value
result = client.simulate_delete(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
instance.lock.assert_called_once_with("1234567890")
assert instance.disarm.call_count == 1
assert instance._session_id == "127d9a48-927a-43f3-a3e3-842f3f2b7393"
assert result.status_code == 200
assert result.json == {"alarms_armed": False}
def test_disarm_invalid_expired_token(mocker, client):
"""Should return 200 if all alarms have been activated"""
mocker.patch("server.resources.ElmoClient.lock", side_effect=PermissionDenied)
result = client.simulate_delete(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
assert result.status_code == 401
def test_disarm_api_exception(mocker, client):
"""Should return 200 if all alarms have been activated"""
mocker.patch("server.resources.ElmoClient.lock", side_effect=APIException)
result = client.simulate_delete(
"/api/v0/alarms",
headers={"Authorization": "Bearer 127d9a48-927a-43f3-a3e3-842f3f2b7393"},
json={"code": "1234567890"},
)
assert result.status_code == 503
| 34.818182
| 82
| 0.680418
| 443
| 3,830
| 5.742664
| 0.187359
| 0.04717
| 0.062893
| 0.078616
| 0.94261
| 0.94261
| 0.94261
| 0.94261
| 0.939072
| 0.939072
| 0
| 0.125283
| 0.191384
| 3,830
| 109
| 83
| 35.137615
| 0.696158
| 0.101044
| 0
| 0.708861
| 0
| 0
| 0.312169
| 0.178718
| 0
| 0
| 0
| 0
| 0.202532
| 1
| 0.101266
| false
| 0
| 0.012658
| 0
| 0.113924
| 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
|
d369950efa0e4af8f3ba17abcfc69d53985baf26
| 6,594
|
py
|
Python
|
Commodity/LMELoadFile_functions.py
|
fzhang00/HFInvest
|
104fd2500a5a22a4c01663387df54fce80107e78
|
[
"MIT"
] | null | null | null |
Commodity/LMELoadFile_functions.py
|
fzhang00/HFInvest
|
104fd2500a5a22a4c01663387df54fce80107e78
|
[
"MIT"
] | 2
|
2021-05-24T15:49:44.000Z
|
2021-05-24T23:54:49.000Z
|
Commodity/LMELoadFile_functions.py
|
fzhang00/HFinvest
|
104fd2500a5a22a4c01663387df54fce80107e78
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Sun May 2 12:48:47 2021
@author: haoli
"""
def sql_load_csvFile_goldSilver_Vol_OI(fileFullPath):
import key as pconst
_server = pconst.RYAN_SQL['server']
_database = pconst.RYAN_SQL['database']
_username = pconst.RYAN_SQL['username']
_password = pconst.RYAN_SQL['password']
_sqlTable_LME_baseMetal_stock = 'LME_baseMetal_stock'
_sqlTable_LME_baseMetal_price = 'LME_baseMetal_price'
_sqlTable_LME_precious_price = 'LME_precious_price'
_sqlTable_LME_precious_VolOpenInterest = 'LME_precious_VolOpenInterest'
df = pd.read_csv(fileFullPath)
df_Vol_OI = df.replace({np.NAN: None})
# whitespace_remover(df_Vol_OI)
convertDateByColNum = 0
date_fromFolderName = '2021-05-02'
df_Vol_OI_updated = convertDDMM_date(df_Vol_OI, date_fromFolderName, convertDateByColNum)
df_Vol_OI_updated = df_Vol_OI_updated.sort_values(df_Vol_OI_updated.columns[convertDateByColNum])
savePath = constA.getFilePathInfo(fileFullPath, 0) #/temp/2021-04-01
df_Vol_OI_updated.to_csv(savePath + '/updated_file.csv')
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+_server+';DATABASE='+_database+';UID='+_username+';PWD='+_password)
cursor = cnxn.cursor()
for index, row in df_Vol_OI_updated.iterrows(): #: #dfvolOI.iterrows():
# print (row)
# row
query = """DELETE FROM %s where Date = '%s' and [Future] = '%s' ;""" % (_sqlTable_LME_precious_VolOpenInterest, row[0], row[1])
cursor.execute(query)
query = """INSERT INTO %s ([Date], [Future], [Volume], [OpenInterest]) VALUES (?,?,?,?);""" %(_sqlTable_LME_precious_VolOpenInterest)
params = (row[0], row[1], row[2], row[3] )
cursor.execute(query, params)
cnxn.commit()
cursor.close()
cnxn.close()
print()
fileFullPath= constLME_a.commodityLME_workDir_A + '/workFolder/LME Gold and silver 2021-01 02 03 Open Interest and Volumes.csv'
sql_load_csvFile_goldSilver_Vol_OI(fileFullPath)
print()
def sql_load_csvFile_baseMetal_price(fileFullPath):
_server = 'RyanPC'
_database = 'Commodity_A1'
_username = 'hl'
_password = '123'
_sqlTable_LME_baseMetal_stock = 'LME_baseMetal_stock'
_sqlTable_LME_baseMetal_price = 'LME_baseMetal_price'
_sqlTable_LME_precious_price = 'LME_precious_price'
_sqlTable_LME_precious_VolOpenInterest = 'LME_precious_VolOpenInterest'
df = pd.read_csv(fileFullPath)
# df_Vol_OI = df.replace({np.NAN: None})
df_price = df.replace({np.NAN: None})
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+_server+';DATABASE='+_database+';UID='+_username+';PWD='+_password)
cursor = cnxn.cursor()
#----------table 1 ---
for index, row in df_price.iterrows(): #: #dfvolOI.iterrows():
query = """DELETE FROM %s where Date = '%s' and [Contract] = '%s' ;""" % (_sqlTable_LME_baseMetal_price, row[0], row[1])
cursor.execute(query)
query = """INSERT INTO %s VALUES (?,?,?,?, ?,?,?,?, ?,? );""" %(_sqlTable_LME_baseMetal_price)
params = (tuple(row) )
# print(params)
cursor.execute(query, params)
cnxn.commit()
cursor.close()
cnxn.close()
fileFullPath= constLME_a.commodityLME_workDir_A + '/workFolder/LME_basemetal_sum_price.csv'
sql_load_csvFile_baseMetal_price(fileFullPath)
print()
def update_DateFormat(df):
for i in range(len(df)):
yy = datetime.strptime(df.iat[i, 0], '%d %b %Y').strftime('%Y-%m-%d')
df.iat[i, 0] = yy
print()
def sql_load_csvFile_baseMetal_Stock(fileFullPath):
_server = 'RyanPC'
_database = 'Commodity_A1'
_username = 'hl'
_password = '123'
_sqlTable_LME_baseMetal_stock = 'LME_baseMetal_stock'
_sqlTable_LME_baseMetal_price = 'LME_baseMetal_price'
_sqlTable_LME_precious_price = 'LME_precious_price'
_sqlTable_LME_precious_VolOpenInterest = 'LME_precious_VolOpenInterest'
df = pd.read_csv(fileFullPath)
df_Stock = df.replace({np.NAN: None})
# df_price = df.replace({np.NAN: None})
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+_server+';DATABASE='+_database+';UID='+_username+';PWD='+_password)
cursor = cnxn.cursor()
for index, row in df_Stock.iterrows(): #: #dfvolOI.iterrows():
query = """DELETE FROM %s where Date = '%s' and [Future] = '%s' ;""" % (_sqlTable_LME_baseMetal_stock, row[0], row[1])
cursor.execute(query)
query = """INSERT INTO %s VALUES (?,?,?,?,?);""" %(_sqlTable_LME_baseMetal_stock)
params = (tuple(row) )
# print(params)
cursor.execute(query, params)
cnxn.commit()
cursor.close()
cnxn.close()
print()
fileFullPath= constLME_a.commodityLME_workDir_A + '/workFolder/LME_basemetal_sum_stock.csv'
sql_load_csvFile_baseMetal_Stock(fileFullPath)
print()
def sql_load_csvFile_baseMetal_Stock(fileFullPath):
_server = 'RyanPC'
_database = 'Commodity_A1'
_username = 'hl'
_password = '123'
_sqlTable_LME_baseMetal_stock = 'LME_baseMetal_stock'
_sqlTable_LME_baseMetal_price = 'LME_baseMetal_price'
_sqlTable_LME_precious_price = 'LME_precious_price'
_sqlTable_LME_precious_VolOpenInterest = 'LME_precious_VolOpenInterest'
df = pd.read_csv(fileFullPath)
df_Stock = df.replace({np.NAN: None})
# df_price = df.replace({np.NAN: None})
update_DateFormat(df_Stock)
df_Stock = df_Stock.sort_values( df_Stock.columns[0])
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+_server+';DATABASE='+_database+';UID='+_username+';PWD='+_password)
cursor = cnxn.cursor()
for index, row in df_Stock.iterrows(): #: #dfvolOI.iterrows():
query = """DELETE FROM %s where Date = '%s' and [Future] = '%s' ;""" % (_sqlTable_LME_baseMetal_stock, row[0], row[1])
cursor.execute(query)
query = """INSERT INTO %s VALUES (?,?,?,?,?);""" %(_sqlTable_LME_baseMetal_stock)
params = (tuple(row) )
print(params)
cursor.execute(query, params)
cnxn.commit()
cursor.close()
cnxn.close()
print()
fileFullPath= constLME_a.commodityLME_workDir_A + '/workFolder/basemetal Stocks 2020-2021-03.csv'
sql_load_csvFile_baseMetal_Stock(fileFullPath)
print()
| 38.561404
| 142
| 0.654686
| 784
| 6,594
| 5.160714
| 0.173469
| 0.06525
| 0.069204
| 0.049432
| 0.767919
| 0.76347
| 0.752348
| 0.724419
| 0.701928
| 0.701928
| 0
| 0.016529
| 0.210949
| 6,594
| 171
| 143
| 38.561404
| 0.761099
| 0.059751
| 0
| 0.70339
| 0
| 0
| 0.21873
| 0.034187
| 0
| 0
| 0
| 0
| 0
| 1
| 0.042373
| false
| 0.067797
| 0.008475
| 0
| 0.050847
| 0.076271
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 7
|
d374871912113cb02d6fd9f53efb6a0f09a2d89a
| 68,583
|
py
|
Python
|
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_fft/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_fft/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_fft/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.134519,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.308346,
'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.869042,
'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.749687,
'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.29819,
'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.744547,
'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': 2.79242,
'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.607799,
'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.56664,
'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.164181,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0271768,
'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.241086,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.200989,
'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.405267,
'Execution Unit/Register Files/Runtime Dynamic': 0.228165,
'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.619416,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.52498,
'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.25929,
'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.0037841,
'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.0037841,
'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.00327615,
'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.00125742,
'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.00288722,
'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.0137316,
'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.0369892,
'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.193216,
'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.643972,
'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.656247,
'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.54416,
'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.0607968,
'L2/Runtime Dynamic': 0.0238427,
'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': 5.70881,
'Load Store Unit/Data Cache/Runtime Dynamic': 2.18696,
'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.14467,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.14467,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 6.39475,
'Load Store Unit/Runtime Dynamic': 3.0451,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.356731,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.713462,
'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.126605,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.127515,
'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.105578,
'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.777369,
'Memory Management Unit/Runtime Dynamic': 0.233093,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 28.33,
'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.57279,
'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.0452274,
'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.38194,
'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.999957,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 11.1054,
'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.0622834,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251609,
'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.400778,
'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.288425,
'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.465219,
'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.234827,
'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.988471,
'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.268429,
'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': 5.0175,
'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.0757156,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0120978,
'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.108181,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.089471,
'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.183896,
'Execution Unit/Register Files/Runtime Dynamic': 0.101569,
'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.243481,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.598191,
'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.34522,
'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.00180264,
'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.00180264,
'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.00159215,
'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.000628404,
'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.00128526,
'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.00648269,
'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.0164959,
'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.0860108,
'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': 5.47103,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.285843,
'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.292131,
'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': 7.95506,
'Instruction Fetch Unit/Runtime Dynamic': 0.686963,
'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.0261081,
'L2/Runtime Dynamic': 0.0101799,
'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.21939,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.968564,
'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.0641313,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0641312,
'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.52223,
'Load Store Unit/Runtime Dynamic': 1.34897,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.158137,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.316273,
'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.0561232,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0565129,
'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.340168,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0468663,
'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.592687,
'Memory Management Unit/Runtime Dynamic': 0.103379,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.7031,
'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.199172,
'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.0154368,
'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.14394,
'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.358549,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.85326,
'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.0516689,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.243272,
'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.329322,
'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.247959,
'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.399949,
'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.201881,
'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.849788,
'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.233105,
'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.83052,
'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.062216,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0104005,
'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.0925082,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0769182,
'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.154724,
'Execution Unit/Register Files/Runtime Dynamic': 0.0873187,
'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.207809,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.511623,
'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.09738,
'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.00159533,
'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.00159533,
'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.00140738,
'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.000554586,
'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.00110494,
'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.00570297,
'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.014658,
'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.0739434,
'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.70344,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.240721,
'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.251145,
'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': 7.15022,
'Instruction Fetch Unit/Runtime Dynamic': 0.586171,
'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.0367448,
'L2/Runtime Dynamic': 0.0148648,
'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.98404,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.875449,
'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.0565171,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.056517,
'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.25093,
'Load Store Unit/Runtime Dynamic': 1.21069,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.139361,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.278723,
'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.0494598,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0500101,
'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.292442,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0394669,
'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.533515,
'Memory Management Unit/Runtime Dynamic': 0.089477,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.3914,
'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.163661,
'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.013179,
'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.123901,
'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.300741,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.29932,
'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.0449672,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.238008,
'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.285601,
'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.210254,
'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.339131,
'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.171182,
'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.720567,
'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.196682,
'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.68648,
'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.0539561,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00881898,
'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.0788684,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0652217,
'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.132824,
'Execution Unit/Register Files/Runtime Dynamic': 0.0740407,
'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.177398,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.43356,
'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.87155,
'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.00134912,
'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.00134912,
'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.00119071,
'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.000469492,
'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.000936915,
'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.00482587,
'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.0123768,
'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.0626993,
'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': 3.98822,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.194691,
'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.212955,
'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.40029,
'Instruction Fetch Unit/Runtime Dynamic': 0.487548,
'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.0482008,
'L2/Runtime Dynamic': 0.0193441,
'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.73966,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.777181,
'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.0486109,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0486109,
'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.96921,
'Load Store Unit/Runtime Dynamic': 1.06552,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.119866,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.239732,
'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.0425409,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0432634,
'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.247973,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0319208,
'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.477159,
'Memory Management Unit/Runtime Dynamic': 0.0751842,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 18.1708,
'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.141934,
'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.0112134,
'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.104957,
'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.258104,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 3.77726,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 4.565347451194352,
'Runtime Dynamic': 4.565347451194352,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.158312,
'Runtime Dynamic': 0.101947,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 86.7536,
'Peak Power': 119.866,
'Runtime Dynamic': 24.1372,
'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': 86.5953,
'Total Cores/Runtime Dynamic': 24.0353,
'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.158312,
'Total L3s/Runtime Dynamic': 0.101947,
'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.036105
| 124
| 0.681962
| 8,082
| 68,583
| 5.781119
| 0.067681
| 0.123622
| 0.113006
| 0.093487
| 0.939387
| 0.930784
| 0.918135
| 0.886394
| 0.861781
| 0.842647
| 0
| 0.131524
| 0.224414
| 68,583
| 914
| 125
| 75.036105
| 0.74686
| 0
| 0
| 0.642232
| 0
| 0
| 0.657661
| 0.048116
| 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
|
6ca50ff879635ca52d37ec07bc50bcd19d2bb5bf
| 15,412
|
py
|
Python
|
tests/BackTestSystem/test_strategies.py
|
HarshCasper/FinMind
|
7b7571e443525edcd52c7f53e7fb0daca42b1f60
|
[
"Apache-2.0"
] | null | null | null |
tests/BackTestSystem/test_strategies.py
|
HarshCasper/FinMind
|
7b7571e443525edcd52c7f53e7fb0daca42b1f60
|
[
"Apache-2.0"
] | null | null | null |
tests/BackTestSystem/test_strategies.py
|
HarshCasper/FinMind
|
7b7571e443525edcd52c7f53e7fb0daca42b1f60
|
[
"Apache-2.0"
] | null | null | null |
import pytest
import pandas as pd
from FinMind.BackTestSystem import BackTest
from FinMind.BackTestSystem.Strategies.ContinueHolding import ContinueHolding
from FinMind.BackTestSystem.Strategies.Bias import Bias
from FinMind.BackTestSystem.Strategies.NaiveKd import NaiveKd
from FinMind.BackTestSystem.Strategies.Kd import Kd
from FinMind.BackTestSystem.Strategies.KdCrossOver import KdCrossOver
from FinMind.BackTestSystem.Strategies.InstitutionalInvestorsFollower import (
InstitutionalInvestorsFollower,
)
from FinMind.BackTestSystem.Strategies.ShortSaleMarginPurchaseRatio import (
ShortSaleMarginPurchaseRatio,
)
from FinMind.BackTestSystem.Strategies.MacdCrossOver import MacdCrossOver
from FinMind.BackTestSystem.Strategies.MaCrossOver import MaCrossOver
from FinMind.BackTestSystem.Strategies.MaxMinPeriodBias import MaxMinPeriodBias
def test_get_stock_price():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=ContinueHolding,
)
assert isinstance(obj.stock_price, pd.DataFrame)
def test_ContinueHolding():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=ContinueHolding,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 2810
assert int(obj.final_stats.MaxLoss) == -9663
assert int(obj.final_stats.FinalProfit) == 3407
assert obj.final_stats["MeanProfitPer"] == 0.56
assert obj.final_stats["FinalProfitPer"] == 0.68
assert obj.final_stats["MaxLossPer"] == -1.93
assert obj.trade_detail.to_dict("r")[1] == {
"stock_id": "0056",
"date": "2018-01-03",
"EverytimeProfit": -96.83,
"RealizedProfit": 0.0,
"UnrealizedProfit": -96.83,
"board_lot": 1000,
"hold_cost": 25.18583875,
"hold_volume": 1000,
"signal": 1,
"trade_price": 25.15,
"trader_fund": 474814.16125,
"EverytimeTotalProfit": 474717.33125,
"CashEarningsDistribution": 0.0,
"StockEarningsDistribution": 0.0,
}
assert obj.compare_market_detail.to_dict("r")[-1] == {
"CumDailyRetrun": -0.61003,
"CumTaiexDailyRetrun": -0.0963,
"date": "2018-12-28",
}
assert obj.compare_market_stats["AnnualTaiexReturnPer"] == -9.6
assert obj.compare_market_stats["AnnualReturnPer"] == 0.68
def test_ContinueHolding_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=ContinueHolding,
)
obj.add_strategy(ContinueHolding)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 2810
assert int(obj.final_stats.MaxLoss) == -9663
assert int(obj.final_stats.FinalProfit) == 3407
assert obj.final_stats["MeanProfitPer"] == 0.56
assert obj.final_stats["FinalProfitPer"] == 0.68
assert obj.final_stats["MaxLossPer"] == -1.93
assert obj.trade_detail.to_dict("r")[1] == {
"EverytimeProfit": -96.83,
"RealizedProfit": 0.0,
"UnrealizedProfit": -96.83,
"board_lot": 1000.0,
"date": "2018-01-03",
"hold_cost": 25.18583875,
"hold_volume": 1000.0,
"signal": 1,
"stock_id": "0056",
"trade_price": 25.15,
"trader_fund": 474814.16125,
"EverytimeTotalProfit": 474717.33125,
"CashEarningsDistribution": 0.0,
"StockEarningsDistribution": 0.0,
}
def test_Bias():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=Bias,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 984
assert int(obj.final_stats.MaxLoss) == -863
assert int(obj.final_stats.FinalProfit) == 2845
assert obj.final_stats["MeanProfitPer"] == 0.20
assert obj.final_stats["FinalProfitPer"] == 0.57
assert obj.final_stats["MaxLossPer"] == -0.17
assert obj.trade_detail.to_dict("r")[1] == {
"EverytimeProfit": 0.0,
"RealizedProfit": 0.0,
"UnrealizedProfit": 0.0,
"board_lot": 1000.0,
"date": "2018-02-05",
"hold_cost": 0.0,
"hold_volume": 0.0,
"signal": 0.0,
"stock_id": "0056",
"trade_price": 26.1,
"trader_fund": 500000.0,
"EverytimeTotalProfit": 500000.0,
"CashEarningsDistribution": 0.0,
"StockEarningsDistribution": 0.0,
}
assert obj.compare_market_detail.to_dict("r")[-1] == {
"CumDailyRetrun": -0.39843,
"CumTaiexDailyRetrun": -0.0963,
"date": "2018-12-28",
}
assert obj.compare_market_stats["AnnualTaiexReturnPer"] == -9.6
assert obj.compare_market_stats["AnnualReturnPer"] == 0.57
def test_Bias_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=Bias,
)
obj.add_strategy(Bias)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 984
assert int(obj.final_stats.MaxLoss) == -863
assert int(obj.final_stats.FinalProfit) == 2845
assert obj.final_stats["MeanProfitPer"] == 0.20
assert obj.final_stats["FinalProfitPer"] == 0.57
assert obj.final_stats["MaxLossPer"] == -0.17
assert obj.trade_detail.to_dict("r")[1] == {
"EverytimeProfit": 0.0,
"RealizedProfit": 0.0,
"UnrealizedProfit": 0.0,
"board_lot": 1000.0,
"date": "2018-02-05",
"hold_cost": 0.0,
"hold_volume": 0.0,
"signal": 0.0,
"stock_id": "0056",
"trade_price": 26.1,
"trader_fund": 500000.0,
"EverytimeTotalProfit": 500000.0,
"CashEarningsDistribution": 0.0,
"StockEarningsDistribution": 0.0,
}
def test_NaiveKd():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=NaiveKd,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 5418
assert int(obj.final_stats.MaxLoss) == -2094
assert int(obj.final_stats.FinalProfit) == 15033
assert obj.final_stats["MeanProfitPer"] == 1.08
assert obj.final_stats["FinalProfitPer"] == 3.01
assert obj.final_stats["MaxLossPer"] == -0.42
def test_NaiveKd_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=NaiveKd,
)
obj.add_strategy(NaiveKd)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 5418
assert int(obj.final_stats.MaxLoss) == -2094
assert int(obj.final_stats.FinalProfit) == 15033
assert obj.final_stats["MeanProfitPer"] == 1.08
assert obj.final_stats["FinalProfitPer"] == 3.01
assert obj.final_stats["MaxLossPer"] == -0.42
def test_Kd():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=Kd,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 2356
assert int(obj.final_stats.MaxLoss) == -1425
assert int(obj.final_stats.FinalProfit) == 6196
assert obj.final_stats["MeanProfitPer"] == 0.47
assert obj.final_stats["FinalProfitPer"] == 1.24
assert obj.final_stats["MaxLossPer"] == -0.29
def test_Kd_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=Kd,
)
obj.add_strategy(Kd)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 2356
assert int(obj.final_stats.MaxLoss) == -1425
assert int(obj.final_stats.FinalProfit) == 6196
assert obj.final_stats["MeanProfitPer"] == 0.47
assert obj.final_stats["FinalProfitPer"] == 1.24
assert obj.final_stats["MaxLossPer"] == -0.29
def test_KdCrossOver():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=KdCrossOver,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 349
assert int(obj.final_stats.MaxLoss) == -1223
assert int(obj.final_stats.FinalProfit) == 933
assert obj.final_stats["MeanProfitPer"] == 0.07
assert obj.final_stats["FinalProfitPer"] == 0.19
assert obj.final_stats["MaxLossPer"] == -0.24
def test_KdCrossOver_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=KdCrossOver,
)
obj.add_strategy(KdCrossOver)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 349
assert int(obj.final_stats.MaxLoss) == -1223
assert int(obj.final_stats.FinalProfit) == 933
assert obj.final_stats["MeanProfitPer"] == 0.07
assert obj.final_stats["FinalProfitPer"] == 0.19
assert obj.final_stats["MaxLossPer"] == -0.24
def test_InstitutionalInvestorsFollower():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=InstitutionalInvestorsFollower,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 6433
assert int(obj.final_stats.MaxLoss) == -16587
assert int(obj.final_stats.FinalProfit) == 11647
assert obj.final_stats["MeanProfitPer"] == 1.29
assert obj.final_stats["FinalProfitPer"] == 2.33
assert obj.final_stats["MaxLossPer"] == -3.32
def test_InstitutionalInvestorsFollower_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=InstitutionalInvestorsFollower,
)
obj.add_strategy(InstitutionalInvestorsFollower)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 6433
assert int(obj.final_stats.MaxLoss) == -16587
assert int(obj.final_stats.FinalProfit) == 11647
assert obj.final_stats["MeanProfitPer"] == 1.29
assert obj.final_stats["FinalProfitPer"] == 2.33
assert obj.final_stats["MaxLossPer"] == -3.32
def test_ShortSaleMarginPurchaseRatio():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=ShortSaleMarginPurchaseRatio,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 12946
assert int(obj.final_stats.MaxLoss) == -14706
assert int(obj.final_stats.FinalProfit) == 22576
assert obj.final_stats["MeanProfitPer"] == 2.59
assert obj.final_stats["FinalProfitPer"] == 4.52
assert obj.final_stats["MaxLossPer"] == -2.94
def test_ShortSaleMarginPurchaseRatio_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=ShortSaleMarginPurchaseRatio,
)
obj.add_strategy(ShortSaleMarginPurchaseRatio)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 12946
assert int(obj.final_stats.MaxLoss) == -14706
assert int(obj.final_stats.FinalProfit) == 22576
assert obj.final_stats["MeanProfitPer"] == 2.59
assert obj.final_stats["FinalProfitPer"] == 4.52
assert obj.final_stats["MaxLossPer"] == -2.94
def test_MacdCrossOver():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=MacdCrossOver,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 1347
assert int(obj.final_stats.MaxLoss) == -397
assert int(obj.final_stats.FinalProfit) == 3232
assert obj.final_stats["MeanProfitPer"] == 0.27
assert obj.final_stats["FinalProfitPer"] == 0.65
assert obj.final_stats["MaxLossPer"] == -0.08
def test_MacdCrossOver_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=MacdCrossOver,
)
obj.add_strategy(MacdCrossOver)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 1347
assert int(obj.final_stats.MaxLoss) == -397
assert int(obj.final_stats.FinalProfit) == 3232
assert obj.final_stats["MeanProfitPer"] == 0.27
assert obj.final_stats["FinalProfitPer"] == 0.65
assert obj.final_stats["MaxLossPer"] == -0.08
def test_MaCrossOver():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=MaCrossOver,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == -381
assert int(obj.final_stats.MaxLoss) == -1230
assert int(obj.final_stats.FinalProfit) == -1230
assert obj.final_stats["MeanProfitPer"] == -0.08
assert obj.final_stats["FinalProfitPer"] == -0.25
assert obj.final_stats["MaxLossPer"] == -0.25
def test_MaCrossOver_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=MaCrossOver,
)
obj.add_strategy(MaCrossOver)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == -381
assert int(obj.final_stats.MaxLoss) == -1230
assert int(obj.final_stats.FinalProfit) == -1230
assert obj.final_stats["MeanProfitPer"] == -0.08
assert obj.final_stats["FinalProfitPer"] == -0.25
assert obj.final_stats["MaxLossPer"] == -0.25
def test_MaxMinPeriodBias():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
strategy=MaxMinPeriodBias,
)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 0
assert int(obj.final_stats.MaxLoss) == 0
assert int(obj.final_stats.FinalProfit) == 0
assert obj.final_stats["MeanProfitPer"] == 0
assert obj.final_stats["FinalProfitPer"] == 0
assert obj.final_stats["MaxLossPer"] == 0
def test_MaxMinPeriodBias_add_strategy():
obj = BackTest(
stock_id="0056",
start_date="2018-01-01",
end_date="2019-01-01",
trader_fund=500000.0,
fee=0.001425,
# strategy=MaxMinPeriodBias,
)
obj.add_strategy(MaxMinPeriodBias)
obj.simulate()
assert int(obj.final_stats.MeanProfit) == 0
assert int(obj.final_stats.MaxLoss) == 0
assert int(obj.final_stats.FinalProfit) == 0
assert obj.final_stats["MeanProfitPer"] == 0
assert obj.final_stats["FinalProfitPer"] == 0
assert obj.final_stats["MaxLossPer"] == 0
| 29.35619
| 79
| 0.641059
| 1,881
| 15,412
| 5.090909
| 0.079213
| 0.100251
| 0.162907
| 0.106516
| 0.874791
| 0.873642
| 0.872703
| 0.866019
| 0.864557
| 0.864557
| 0
| 0.117077
| 0.223008
| 15,412
| 524
| 80
| 29.412214
| 0.682589
| 0.017649
| 0
| 0.78066
| 0
| 0
| 0.145558
| 0.012956
| 0
| 0
| 0
| 0
| 0.308962
| 1
| 0.049528
| false
| 0
| 0.03066
| 0
| 0.080189
| 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
|
4cebfd212f8cdba2134b645e75acaddc79952f4d
| 134
|
py
|
Python
|
icedata/datasets/coco/__init__.py
|
davanstrien/icedata
|
fdab4d47f68c75bc11b0a97599d46fa8107786f4
|
[
"Apache-2.0"
] | null | null | null |
icedata/datasets/coco/__init__.py
|
davanstrien/icedata
|
fdab4d47f68c75bc11b0a97599d46fa8107786f4
|
[
"Apache-2.0"
] | null | null | null |
icedata/datasets/coco/__init__.py
|
davanstrien/icedata
|
fdab4d47f68c75bc11b0a97599d46fa8107786f4
|
[
"Apache-2.0"
] | null | null | null |
from icedata.datasets.coco.data import *
from icedata.datasets.coco.parsers import *
from icedata.datasets.coco import trained_models
| 33.5
| 48
| 0.835821
| 19
| 134
| 5.842105
| 0.473684
| 0.297297
| 0.513514
| 0.621622
| 0.522523
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089552
| 134
| 3
| 49
| 44.666667
| 0.909836
| 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
|
e233334354e5782717ded50e70dfcca4e40e9713
| 81,464
|
py
|
Python
|
sdk/python/pulumi_vultr/instance.py
|
vincentbernat/pulumi-vultr
|
171c75f59d169a62e5486bf9e7f6f421bbe0b7c8
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_vultr/instance.py
|
vincentbernat/pulumi-vultr
|
171c75f59d169a62e5486bf9e7f6f421bbe0b7c8
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_vultr/instance.py
|
vincentbernat/pulumi-vultr
|
171c75f59d169a62e5486bf9e7f6f421bbe0b7c8
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
from ._inputs import *
__all__ = ['InstanceArgs', 'Instance']
@pulumi.input_type
class InstanceArgs:
def __init__(__self__, *,
plan: pulumi.Input[str],
region: pulumi.Input[str],
activation_email: Optional[pulumi.Input[bool]] = None,
app_id: Optional[pulumi.Input[int]] = None,
backups: Optional[pulumi.Input[str]] = None,
backups_schedule: Optional[pulumi.Input['InstanceBackupsScheduleArgs']] = None,
ddos_protection: Optional[pulumi.Input[bool]] = None,
enable_ipv6: Optional[pulumi.Input[bool]] = None,
enable_private_network: Optional[pulumi.Input[bool]] = None,
firewall_group_id: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
iso_id: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
os_id: Optional[pulumi.Input[int]] = None,
private_network_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
reserved_ip_id: Optional[pulumi.Input[str]] = None,
script_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
ssh_key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tag: Optional[pulumi.Input[str]] = None,
user_data: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Instance resource.
:param pulumi.Input[str] plan: The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
:param pulumi.Input[str] region: The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
:param pulumi.Input[bool] activation_email: Whether an activation email will be sent when the server is ready.
:param pulumi.Input[int] app_id: The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
:param pulumi.Input[str] backups: Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
:param pulumi.Input['InstanceBackupsScheduleArgs'] backups_schedule: A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
:param pulumi.Input[bool] ddos_protection: Whether DDOS protection will be enabled on the server (there is an additional charge for this).
:param pulumi.Input[bool] enable_ipv6: Whether the server has IPv6 networking activated.
:param pulumi.Input[bool] enable_private_network: Whether the server has private networking support enabled.
:param pulumi.Input[str] firewall_group_id: The ID of the firewall group to assign to the server.
:param pulumi.Input[str] hostname: The hostname to assign to the server.
:param pulumi.Input[str] image_id: The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
:param pulumi.Input[str] iso_id: The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
:param pulumi.Input[str] label: A label for the server.
:param pulumi.Input[int] os_id: The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of private network IDs to be attached to the server.
:param pulumi.Input[str] reserved_ip_id: ID of the floating IP to use as the main IP of this server.
:param pulumi.Input[str] script_id: The ID of the startup script you want added to the server.
:param pulumi.Input[str] snapshot_id: The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_key_ids: A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
:param pulumi.Input[str] tag: The tag to assign to the server.
:param pulumi.Input[str] user_data: Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
"""
pulumi.set(__self__, "plan", plan)
pulumi.set(__self__, "region", region)
if activation_email is not None:
pulumi.set(__self__, "activation_email", activation_email)
if app_id is not None:
pulumi.set(__self__, "app_id", app_id)
if backups is not None:
pulumi.set(__self__, "backups", backups)
if backups_schedule is not None:
pulumi.set(__self__, "backups_schedule", backups_schedule)
if ddos_protection is not None:
pulumi.set(__self__, "ddos_protection", ddos_protection)
if enable_ipv6 is not None:
pulumi.set(__self__, "enable_ipv6", enable_ipv6)
if enable_private_network is not None:
warnings.warn("""In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""", DeprecationWarning)
pulumi.log.warn("""enable_private_network is deprecated: In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""")
if enable_private_network is not None:
pulumi.set(__self__, "enable_private_network", enable_private_network)
if firewall_group_id is not None:
pulumi.set(__self__, "firewall_group_id", firewall_group_id)
if hostname is not None:
pulumi.set(__self__, "hostname", hostname)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if iso_id is not None:
pulumi.set(__self__, "iso_id", iso_id)
if label is not None:
pulumi.set(__self__, "label", label)
if os_id is not None:
pulumi.set(__self__, "os_id", os_id)
if private_network_ids is not None:
pulumi.set(__self__, "private_network_ids", private_network_ids)
if reserved_ip_id is not None:
pulumi.set(__self__, "reserved_ip_id", reserved_ip_id)
if script_id is not None:
pulumi.set(__self__, "script_id", script_id)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if ssh_key_ids is not None:
pulumi.set(__self__, "ssh_key_ids", ssh_key_ids)
if tag is not None:
pulumi.set(__self__, "tag", tag)
if user_data is not None:
pulumi.set(__self__, "user_data", user_data)
@property
@pulumi.getter
def plan(self) -> pulumi.Input[str]:
"""
The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
"""
return pulumi.get(self, "plan")
@plan.setter
def plan(self, value: pulumi.Input[str]):
pulumi.set(self, "plan", value)
@property
@pulumi.getter
def region(self) -> pulumi.Input[str]:
"""
The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: pulumi.Input[str]):
pulumi.set(self, "region", value)
@property
@pulumi.getter(name="activationEmail")
def activation_email(self) -> Optional[pulumi.Input[bool]]:
"""
Whether an activation email will be sent when the server is ready.
"""
return pulumi.get(self, "activation_email")
@activation_email.setter
def activation_email(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "activation_email", value)
@property
@pulumi.getter(name="appId")
def app_id(self) -> Optional[pulumi.Input[int]]:
"""
The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
"""
return pulumi.get(self, "app_id")
@app_id.setter
def app_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "app_id", value)
@property
@pulumi.getter
def backups(self) -> Optional[pulumi.Input[str]]:
"""
Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
"""
return pulumi.get(self, "backups")
@backups.setter
def backups(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "backups", value)
@property
@pulumi.getter(name="backupsSchedule")
def backups_schedule(self) -> Optional[pulumi.Input['InstanceBackupsScheduleArgs']]:
"""
A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
"""
return pulumi.get(self, "backups_schedule")
@backups_schedule.setter
def backups_schedule(self, value: Optional[pulumi.Input['InstanceBackupsScheduleArgs']]):
pulumi.set(self, "backups_schedule", value)
@property
@pulumi.getter(name="ddosProtection")
def ddos_protection(self) -> Optional[pulumi.Input[bool]]:
"""
Whether DDOS protection will be enabled on the server (there is an additional charge for this).
"""
return pulumi.get(self, "ddos_protection")
@ddos_protection.setter
def ddos_protection(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ddos_protection", value)
@property
@pulumi.getter(name="enableIpv6")
def enable_ipv6(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the server has IPv6 networking activated.
"""
return pulumi.get(self, "enable_ipv6")
@enable_ipv6.setter
def enable_ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_ipv6", value)
@property
@pulumi.getter(name="enablePrivateNetwork")
def enable_private_network(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the server has private networking support enabled.
"""
return pulumi.get(self, "enable_private_network")
@enable_private_network.setter
def enable_private_network(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_private_network", value)
@property
@pulumi.getter(name="firewallGroupId")
def firewall_group_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the firewall group to assign to the server.
"""
return pulumi.get(self, "firewall_group_id")
@firewall_group_id.setter
def firewall_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "firewall_group_id", value)
@property
@pulumi.getter
def hostname(self) -> Optional[pulumi.Input[str]]:
"""
The hostname to assign to the server.
"""
return pulumi.get(self, "hostname")
@hostname.setter
def hostname(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "hostname", value)
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
"""
return pulumi.get(self, "image_id")
@image_id.setter
def image_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_id", value)
@property
@pulumi.getter(name="isoId")
def iso_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
"""
return pulumi.get(self, "iso_id")
@iso_id.setter
def iso_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "iso_id", value)
@property
@pulumi.getter
def label(self) -> Optional[pulumi.Input[str]]:
"""
A label for the server.
"""
return pulumi.get(self, "label")
@label.setter
def label(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "label", value)
@property
@pulumi.getter(name="osId")
def os_id(self) -> Optional[pulumi.Input[int]]:
"""
The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
"""
return pulumi.get(self, "os_id")
@os_id.setter
def os_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "os_id", value)
@property
@pulumi.getter(name="privateNetworkIds")
def private_network_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of private network IDs to be attached to the server.
"""
return pulumi.get(self, "private_network_ids")
@private_network_ids.setter
def private_network_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "private_network_ids", value)
@property
@pulumi.getter(name="reservedIpId")
def reserved_ip_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the floating IP to use as the main IP of this server.
"""
return pulumi.get(self, "reserved_ip_id")
@reserved_ip_id.setter
def reserved_ip_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "reserved_ip_id", value)
@property
@pulumi.getter(name="scriptId")
def script_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the startup script you want added to the server.
"""
return pulumi.get(self, "script_id")
@script_id.setter
def script_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "script_id", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter(name="sshKeyIds")
def ssh_key_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
"""
return pulumi.get(self, "ssh_key_ids")
@ssh_key_ids.setter
def ssh_key_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ssh_key_ids", value)
@property
@pulumi.getter
def tag(self) -> Optional[pulumi.Input[str]]:
"""
The tag to assign to the server.
"""
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag", value)
@property
@pulumi.getter(name="userData")
def user_data(self) -> Optional[pulumi.Input[str]]:
"""
Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
"""
return pulumi.get(self, "user_data")
@user_data.setter
def user_data(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_data", value)
@pulumi.input_type
class _InstanceState:
def __init__(__self__, *,
activation_email: Optional[pulumi.Input[bool]] = None,
allowed_bandwidth: Optional[pulumi.Input[int]] = None,
app_id: Optional[pulumi.Input[int]] = None,
backups: Optional[pulumi.Input[str]] = None,
backups_schedule: Optional[pulumi.Input['InstanceBackupsScheduleArgs']] = None,
date_created: Optional[pulumi.Input[str]] = None,
ddos_protection: Optional[pulumi.Input[bool]] = None,
default_password: Optional[pulumi.Input[str]] = None,
disk: Optional[pulumi.Input[int]] = None,
enable_ipv6: Optional[pulumi.Input[bool]] = None,
enable_private_network: Optional[pulumi.Input[bool]] = None,
features: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
firewall_group_id: Optional[pulumi.Input[str]] = None,
gateway_v4: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
internal_ip: Optional[pulumi.Input[str]] = None,
iso_id: Optional[pulumi.Input[str]] = None,
kvm: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
main_ip: Optional[pulumi.Input[str]] = None,
netmask_v4: Optional[pulumi.Input[str]] = None,
os: Optional[pulumi.Input[str]] = None,
os_id: Optional[pulumi.Input[int]] = None,
plan: Optional[pulumi.Input[str]] = None,
power_status: Optional[pulumi.Input[str]] = None,
private_network_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ram: Optional[pulumi.Input[int]] = None,
region: Optional[pulumi.Input[str]] = None,
reserved_ip_id: Optional[pulumi.Input[str]] = None,
script_id: Optional[pulumi.Input[str]] = None,
server_status: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
ssh_key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
status: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
user_data: Optional[pulumi.Input[str]] = None,
v6_main_ip: Optional[pulumi.Input[str]] = None,
v6_network: Optional[pulumi.Input[str]] = None,
v6_network_size: Optional[pulumi.Input[int]] = None,
vcpu_count: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering Instance resources.
:param pulumi.Input[bool] activation_email: Whether an activation email will be sent when the server is ready.
:param pulumi.Input[int] allowed_bandwidth: The server's allowed bandwidth usage in GB.
:param pulumi.Input[int] app_id: The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
:param pulumi.Input[str] backups: Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
:param pulumi.Input['InstanceBackupsScheduleArgs'] backups_schedule: A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
:param pulumi.Input[str] date_created: The date the server was added to your Vultr account.
:param pulumi.Input[bool] ddos_protection: Whether DDOS protection will be enabled on the server (there is an additional charge for this).
:param pulumi.Input[str] default_password: The server's default password.
:param pulumi.Input[int] disk: The description of the disk(s) on the server.
:param pulumi.Input[bool] enable_ipv6: Whether the server has IPv6 networking activated.
:param pulumi.Input[bool] enable_private_network: Whether the server has private networking support enabled.
:param pulumi.Input[Sequence[pulumi.Input[str]]] features: Array of which features are enabled.
:param pulumi.Input[str] firewall_group_id: The ID of the firewall group to assign to the server.
:param pulumi.Input[str] gateway_v4: The server's IPv4 gateway.
:param pulumi.Input[str] hostname: The hostname to assign to the server.
:param pulumi.Input[str] image_id: The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
:param pulumi.Input[str] internal_ip: The server's internal IP address.
:param pulumi.Input[str] iso_id: The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
:param pulumi.Input[str] kvm: The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
:param pulumi.Input[str] label: A label for the server.
:param pulumi.Input[str] main_ip: The server's main IP address.
:param pulumi.Input[str] netmask_v4: The server's IPv4 netmask.
:param pulumi.Input[str] os: The string description of the operating system installed on the server.
:param pulumi.Input[int] os_id: The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
:param pulumi.Input[str] plan: The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
:param pulumi.Input[str] power_status: Whether the server is powered on or not.
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of private network IDs to be attached to the server.
:param pulumi.Input[int] ram: The amount of memory available on the server in MB.
:param pulumi.Input[str] region: The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
:param pulumi.Input[str] reserved_ip_id: ID of the floating IP to use as the main IP of this server.
:param pulumi.Input[str] script_id: The ID of the startup script you want added to the server.
:param pulumi.Input[str] server_status: A more detailed server status (none, locked, installingbooting, isomounting, ok).
:param pulumi.Input[str] snapshot_id: The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_key_ids: A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
:param pulumi.Input[str] status: The status of the server's subscription.
:param pulumi.Input[str] tag: The tag to assign to the server.
:param pulumi.Input[str] user_data: Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
:param pulumi.Input[str] v6_main_ip: The main IPv6 network address.
:param pulumi.Input[str] v6_network: The IPv6 subnet.
:param pulumi.Input[int] v6_network_size: The IPv6 network size in bits.
:param pulumi.Input[int] vcpu_count: The number of virtual CPUs available on the server.
"""
if activation_email is not None:
pulumi.set(__self__, "activation_email", activation_email)
if allowed_bandwidth is not None:
pulumi.set(__self__, "allowed_bandwidth", allowed_bandwidth)
if app_id is not None:
pulumi.set(__self__, "app_id", app_id)
if backups is not None:
pulumi.set(__self__, "backups", backups)
if backups_schedule is not None:
pulumi.set(__self__, "backups_schedule", backups_schedule)
if date_created is not None:
pulumi.set(__self__, "date_created", date_created)
if ddos_protection is not None:
pulumi.set(__self__, "ddos_protection", ddos_protection)
if default_password is not None:
pulumi.set(__self__, "default_password", default_password)
if disk is not None:
pulumi.set(__self__, "disk", disk)
if enable_ipv6 is not None:
pulumi.set(__self__, "enable_ipv6", enable_ipv6)
if enable_private_network is not None:
warnings.warn("""In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""", DeprecationWarning)
pulumi.log.warn("""enable_private_network is deprecated: In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""")
if enable_private_network is not None:
pulumi.set(__self__, "enable_private_network", enable_private_network)
if features is not None:
pulumi.set(__self__, "features", features)
if firewall_group_id is not None:
pulumi.set(__self__, "firewall_group_id", firewall_group_id)
if gateway_v4 is not None:
pulumi.set(__self__, "gateway_v4", gateway_v4)
if hostname is not None:
pulumi.set(__self__, "hostname", hostname)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if internal_ip is not None:
pulumi.set(__self__, "internal_ip", internal_ip)
if iso_id is not None:
pulumi.set(__self__, "iso_id", iso_id)
if kvm is not None:
pulumi.set(__self__, "kvm", kvm)
if label is not None:
pulumi.set(__self__, "label", label)
if main_ip is not None:
pulumi.set(__self__, "main_ip", main_ip)
if netmask_v4 is not None:
pulumi.set(__self__, "netmask_v4", netmask_v4)
if os is not None:
pulumi.set(__self__, "os", os)
if os_id is not None:
pulumi.set(__self__, "os_id", os_id)
if plan is not None:
pulumi.set(__self__, "plan", plan)
if power_status is not None:
pulumi.set(__self__, "power_status", power_status)
if private_network_ids is not None:
pulumi.set(__self__, "private_network_ids", private_network_ids)
if ram is not None:
pulumi.set(__self__, "ram", ram)
if region is not None:
pulumi.set(__self__, "region", region)
if reserved_ip_id is not None:
pulumi.set(__self__, "reserved_ip_id", reserved_ip_id)
if script_id is not None:
pulumi.set(__self__, "script_id", script_id)
if server_status is not None:
pulumi.set(__self__, "server_status", server_status)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if ssh_key_ids is not None:
pulumi.set(__self__, "ssh_key_ids", ssh_key_ids)
if status is not None:
pulumi.set(__self__, "status", status)
if tag is not None:
pulumi.set(__self__, "tag", tag)
if user_data is not None:
pulumi.set(__self__, "user_data", user_data)
if v6_main_ip is not None:
pulumi.set(__self__, "v6_main_ip", v6_main_ip)
if v6_network is not None:
pulumi.set(__self__, "v6_network", v6_network)
if v6_network_size is not None:
pulumi.set(__self__, "v6_network_size", v6_network_size)
if vcpu_count is not None:
pulumi.set(__self__, "vcpu_count", vcpu_count)
@property
@pulumi.getter(name="activationEmail")
def activation_email(self) -> Optional[pulumi.Input[bool]]:
"""
Whether an activation email will be sent when the server is ready.
"""
return pulumi.get(self, "activation_email")
@activation_email.setter
def activation_email(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "activation_email", value)
@property
@pulumi.getter(name="allowedBandwidth")
def allowed_bandwidth(self) -> Optional[pulumi.Input[int]]:
"""
The server's allowed bandwidth usage in GB.
"""
return pulumi.get(self, "allowed_bandwidth")
@allowed_bandwidth.setter
def allowed_bandwidth(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "allowed_bandwidth", value)
@property
@pulumi.getter(name="appId")
def app_id(self) -> Optional[pulumi.Input[int]]:
"""
The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
"""
return pulumi.get(self, "app_id")
@app_id.setter
def app_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "app_id", value)
@property
@pulumi.getter
def backups(self) -> Optional[pulumi.Input[str]]:
"""
Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
"""
return pulumi.get(self, "backups")
@backups.setter
def backups(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "backups", value)
@property
@pulumi.getter(name="backupsSchedule")
def backups_schedule(self) -> Optional[pulumi.Input['InstanceBackupsScheduleArgs']]:
"""
A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
"""
return pulumi.get(self, "backups_schedule")
@backups_schedule.setter
def backups_schedule(self, value: Optional[pulumi.Input['InstanceBackupsScheduleArgs']]):
pulumi.set(self, "backups_schedule", value)
@property
@pulumi.getter(name="dateCreated")
def date_created(self) -> Optional[pulumi.Input[str]]:
"""
The date the server was added to your Vultr account.
"""
return pulumi.get(self, "date_created")
@date_created.setter
def date_created(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "date_created", value)
@property
@pulumi.getter(name="ddosProtection")
def ddos_protection(self) -> Optional[pulumi.Input[bool]]:
"""
Whether DDOS protection will be enabled on the server (there is an additional charge for this).
"""
return pulumi.get(self, "ddos_protection")
@ddos_protection.setter
def ddos_protection(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "ddos_protection", value)
@property
@pulumi.getter(name="defaultPassword")
def default_password(self) -> Optional[pulumi.Input[str]]:
"""
The server's default password.
"""
return pulumi.get(self, "default_password")
@default_password.setter
def default_password(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "default_password", value)
@property
@pulumi.getter
def disk(self) -> Optional[pulumi.Input[int]]:
"""
The description of the disk(s) on the server.
"""
return pulumi.get(self, "disk")
@disk.setter
def disk(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "disk", value)
@property
@pulumi.getter(name="enableIpv6")
def enable_ipv6(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the server has IPv6 networking activated.
"""
return pulumi.get(self, "enable_ipv6")
@enable_ipv6.setter
def enable_ipv6(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_ipv6", value)
@property
@pulumi.getter(name="enablePrivateNetwork")
def enable_private_network(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the server has private networking support enabled.
"""
return pulumi.get(self, "enable_private_network")
@enable_private_network.setter
def enable_private_network(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_private_network", value)
@property
@pulumi.getter
def features(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Array of which features are enabled.
"""
return pulumi.get(self, "features")
@features.setter
def features(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "features", value)
@property
@pulumi.getter(name="firewallGroupId")
def firewall_group_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the firewall group to assign to the server.
"""
return pulumi.get(self, "firewall_group_id")
@firewall_group_id.setter
def firewall_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "firewall_group_id", value)
@property
@pulumi.getter(name="gatewayV4")
def gateway_v4(self) -> Optional[pulumi.Input[str]]:
"""
The server's IPv4 gateway.
"""
return pulumi.get(self, "gateway_v4")
@gateway_v4.setter
def gateway_v4(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "gateway_v4", value)
@property
@pulumi.getter
def hostname(self) -> Optional[pulumi.Input[str]]:
"""
The hostname to assign to the server.
"""
return pulumi.get(self, "hostname")
@hostname.setter
def hostname(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "hostname", value)
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
"""
return pulumi.get(self, "image_id")
@image_id.setter
def image_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "image_id", value)
@property
@pulumi.getter(name="internalIp")
def internal_ip(self) -> Optional[pulumi.Input[str]]:
"""
The server's internal IP address.
"""
return pulumi.get(self, "internal_ip")
@internal_ip.setter
def internal_ip(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "internal_ip", value)
@property
@pulumi.getter(name="isoId")
def iso_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
"""
return pulumi.get(self, "iso_id")
@iso_id.setter
def iso_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "iso_id", value)
@property
@pulumi.getter
def kvm(self) -> Optional[pulumi.Input[str]]:
"""
The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
"""
return pulumi.get(self, "kvm")
@kvm.setter
def kvm(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "kvm", value)
@property
@pulumi.getter
def label(self) -> Optional[pulumi.Input[str]]:
"""
A label for the server.
"""
return pulumi.get(self, "label")
@label.setter
def label(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "label", value)
@property
@pulumi.getter(name="mainIp")
def main_ip(self) -> Optional[pulumi.Input[str]]:
"""
The server's main IP address.
"""
return pulumi.get(self, "main_ip")
@main_ip.setter
def main_ip(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "main_ip", value)
@property
@pulumi.getter(name="netmaskV4")
def netmask_v4(self) -> Optional[pulumi.Input[str]]:
"""
The server's IPv4 netmask.
"""
return pulumi.get(self, "netmask_v4")
@netmask_v4.setter
def netmask_v4(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "netmask_v4", value)
@property
@pulumi.getter
def os(self) -> Optional[pulumi.Input[str]]:
"""
The string description of the operating system installed on the server.
"""
return pulumi.get(self, "os")
@os.setter
def os(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "os", value)
@property
@pulumi.getter(name="osId")
def os_id(self) -> Optional[pulumi.Input[int]]:
"""
The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
"""
return pulumi.get(self, "os_id")
@os_id.setter
def os_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "os_id", value)
@property
@pulumi.getter
def plan(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
"""
return pulumi.get(self, "plan")
@plan.setter
def plan(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "plan", value)
@property
@pulumi.getter(name="powerStatus")
def power_status(self) -> Optional[pulumi.Input[str]]:
"""
Whether the server is powered on or not.
"""
return pulumi.get(self, "power_status")
@power_status.setter
def power_status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "power_status", value)
@property
@pulumi.getter(name="privateNetworkIds")
def private_network_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of private network IDs to be attached to the server.
"""
return pulumi.get(self, "private_network_ids")
@private_network_ids.setter
def private_network_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "private_network_ids", value)
@property
@pulumi.getter
def ram(self) -> Optional[pulumi.Input[int]]:
"""
The amount of memory available on the server in MB.
"""
return pulumi.get(self, "ram")
@ram.setter
def ram(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "ram", value)
@property
@pulumi.getter
def region(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "region", value)
@property
@pulumi.getter(name="reservedIpId")
def reserved_ip_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of the floating IP to use as the main IP of this server.
"""
return pulumi.get(self, "reserved_ip_id")
@reserved_ip_id.setter
def reserved_ip_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "reserved_ip_id", value)
@property
@pulumi.getter(name="scriptId")
def script_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the startup script you want added to the server.
"""
return pulumi.get(self, "script_id")
@script_id.setter
def script_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "script_id", value)
@property
@pulumi.getter(name="serverStatus")
def server_status(self) -> Optional[pulumi.Input[str]]:
"""
A more detailed server status (none, locked, installingbooting, isomounting, ok).
"""
return pulumi.get(self, "server_status")
@server_status.setter
def server_status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "server_status", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter(name="sshKeyIds")
def ssh_key_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
"""
return pulumi.get(self, "ssh_key_ids")
@ssh_key_ids.setter
def ssh_key_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "ssh_key_ids", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The status of the server's subscription.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@property
@pulumi.getter
def tag(self) -> Optional[pulumi.Input[str]]:
"""
The tag to assign to the server.
"""
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag", value)
@property
@pulumi.getter(name="userData")
def user_data(self) -> Optional[pulumi.Input[str]]:
"""
Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
"""
return pulumi.get(self, "user_data")
@user_data.setter
def user_data(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_data", value)
@property
@pulumi.getter(name="v6MainIp")
def v6_main_ip(self) -> Optional[pulumi.Input[str]]:
"""
The main IPv6 network address.
"""
return pulumi.get(self, "v6_main_ip")
@v6_main_ip.setter
def v6_main_ip(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "v6_main_ip", value)
@property
@pulumi.getter(name="v6Network")
def v6_network(self) -> Optional[pulumi.Input[str]]:
"""
The IPv6 subnet.
"""
return pulumi.get(self, "v6_network")
@v6_network.setter
def v6_network(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "v6_network", value)
@property
@pulumi.getter(name="v6NetworkSize")
def v6_network_size(self) -> Optional[pulumi.Input[int]]:
"""
The IPv6 network size in bits.
"""
return pulumi.get(self, "v6_network_size")
@v6_network_size.setter
def v6_network_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "v6_network_size", value)
@property
@pulumi.getter(name="vcpuCount")
def vcpu_count(self) -> Optional[pulumi.Input[int]]:
"""
The number of virtual CPUs available on the server.
"""
return pulumi.get(self, "vcpu_count")
@vcpu_count.setter
def vcpu_count(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "vcpu_count", value)
class Instance(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
activation_email: Optional[pulumi.Input[bool]] = None,
app_id: Optional[pulumi.Input[int]] = None,
backups: Optional[pulumi.Input[str]] = None,
backups_schedule: Optional[pulumi.Input[pulumi.InputType['InstanceBackupsScheduleArgs']]] = None,
ddos_protection: Optional[pulumi.Input[bool]] = None,
enable_ipv6: Optional[pulumi.Input[bool]] = None,
enable_private_network: Optional[pulumi.Input[bool]] = None,
firewall_group_id: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
iso_id: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
os_id: Optional[pulumi.Input[int]] = None,
plan: Optional[pulumi.Input[str]] = None,
private_network_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
region: Optional[pulumi.Input[str]] = None,
reserved_ip_id: Optional[pulumi.Input[str]] = None,
script_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
ssh_key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tag: Optional[pulumi.Input[str]] = None,
user_data: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Provides a Vultr instance resource. This can be used to create, read, modify, and delete instances on your Vultr account.
## Example Usage
Create a new instance:
```python
import pulumi
import pulumi_vultr as vultr
my_instance = vultr.Instance("myInstance",
os_id=167,
plan="vc2-1c-1gb",
region="sea")
```
Create a new instance with options:
```python
import pulumi
import pulumi_vultr as vultr
my_instance = vultr.Instance("myInstance",
activation_email=False,
backups="enabled",
ddos_protection=True,
enable_ipv6=True,
hostname="my-instance-hostname",
label="my-instance-label",
os_id=167,
plan="vc2-1c-1gb",
region="sea",
tag="my-instance-tag")
```
## Import
Servers can be imported using the server `ID`, e.g.
```sh
$ pulumi import vultr:index/instance:Instance my_server b6a859c5-b299-49dd-8888-b1abbc517d08
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[bool] activation_email: Whether an activation email will be sent when the server is ready.
:param pulumi.Input[int] app_id: The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
:param pulumi.Input[str] backups: Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
:param pulumi.Input[pulumi.InputType['InstanceBackupsScheduleArgs']] backups_schedule: A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
:param pulumi.Input[bool] ddos_protection: Whether DDOS protection will be enabled on the server (there is an additional charge for this).
:param pulumi.Input[bool] enable_ipv6: Whether the server has IPv6 networking activated.
:param pulumi.Input[bool] enable_private_network: Whether the server has private networking support enabled.
:param pulumi.Input[str] firewall_group_id: The ID of the firewall group to assign to the server.
:param pulumi.Input[str] hostname: The hostname to assign to the server.
:param pulumi.Input[str] image_id: The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
:param pulumi.Input[str] iso_id: The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
:param pulumi.Input[str] label: A label for the server.
:param pulumi.Input[int] os_id: The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
:param pulumi.Input[str] plan: The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of private network IDs to be attached to the server.
:param pulumi.Input[str] region: The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
:param pulumi.Input[str] reserved_ip_id: ID of the floating IP to use as the main IP of this server.
:param pulumi.Input[str] script_id: The ID of the startup script you want added to the server.
:param pulumi.Input[str] snapshot_id: The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_key_ids: A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
:param pulumi.Input[str] tag: The tag to assign to the server.
:param pulumi.Input[str] user_data: Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: InstanceArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a Vultr instance resource. This can be used to create, read, modify, and delete instances on your Vultr account.
## Example Usage
Create a new instance:
```python
import pulumi
import pulumi_vultr as vultr
my_instance = vultr.Instance("myInstance",
os_id=167,
plan="vc2-1c-1gb",
region="sea")
```
Create a new instance with options:
```python
import pulumi
import pulumi_vultr as vultr
my_instance = vultr.Instance("myInstance",
activation_email=False,
backups="enabled",
ddos_protection=True,
enable_ipv6=True,
hostname="my-instance-hostname",
label="my-instance-label",
os_id=167,
plan="vc2-1c-1gb",
region="sea",
tag="my-instance-tag")
```
## Import
Servers can be imported using the server `ID`, e.g.
```sh
$ pulumi import vultr:index/instance:Instance my_server b6a859c5-b299-49dd-8888-b1abbc517d08
```
:param str resource_name: The name of the resource.
:param InstanceArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(InstanceArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
activation_email: Optional[pulumi.Input[bool]] = None,
app_id: Optional[pulumi.Input[int]] = None,
backups: Optional[pulumi.Input[str]] = None,
backups_schedule: Optional[pulumi.Input[pulumi.InputType['InstanceBackupsScheduleArgs']]] = None,
ddos_protection: Optional[pulumi.Input[bool]] = None,
enable_ipv6: Optional[pulumi.Input[bool]] = None,
enable_private_network: Optional[pulumi.Input[bool]] = None,
firewall_group_id: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
iso_id: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
os_id: Optional[pulumi.Input[int]] = None,
plan: Optional[pulumi.Input[str]] = None,
private_network_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
region: Optional[pulumi.Input[str]] = None,
reserved_ip_id: Optional[pulumi.Input[str]] = None,
script_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
ssh_key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tag: Optional[pulumi.Input[str]] = None,
user_data: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = InstanceArgs.__new__(InstanceArgs)
__props__.__dict__["activation_email"] = activation_email
__props__.__dict__["app_id"] = app_id
__props__.__dict__["backups"] = backups
__props__.__dict__["backups_schedule"] = backups_schedule
__props__.__dict__["ddos_protection"] = ddos_protection
__props__.__dict__["enable_ipv6"] = enable_ipv6
if enable_private_network is not None and not opts.urn:
warnings.warn("""In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""", DeprecationWarning)
pulumi.log.warn("""enable_private_network is deprecated: In the next release of this provider we will be removing `enable_private_network` due to issues that may cause drift and having to maintain private network ip state. Please switch to using private_network_ids to manage your private network fields.""")
__props__.__dict__["enable_private_network"] = enable_private_network
__props__.__dict__["firewall_group_id"] = firewall_group_id
__props__.__dict__["hostname"] = hostname
__props__.__dict__["image_id"] = image_id
__props__.__dict__["iso_id"] = iso_id
__props__.__dict__["label"] = label
__props__.__dict__["os_id"] = os_id
if plan is None and not opts.urn:
raise TypeError("Missing required property 'plan'")
__props__.__dict__["plan"] = plan
__props__.__dict__["private_network_ids"] = private_network_ids
if region is None and not opts.urn:
raise TypeError("Missing required property 'region'")
__props__.__dict__["region"] = region
__props__.__dict__["reserved_ip_id"] = reserved_ip_id
__props__.__dict__["script_id"] = script_id
__props__.__dict__["snapshot_id"] = snapshot_id
__props__.__dict__["ssh_key_ids"] = ssh_key_ids
__props__.__dict__["tag"] = tag
__props__.__dict__["user_data"] = user_data
__props__.__dict__["allowed_bandwidth"] = None
__props__.__dict__["date_created"] = None
__props__.__dict__["default_password"] = None
__props__.__dict__["disk"] = None
__props__.__dict__["features"] = None
__props__.__dict__["gateway_v4"] = None
__props__.__dict__["internal_ip"] = None
__props__.__dict__["kvm"] = None
__props__.__dict__["main_ip"] = None
__props__.__dict__["netmask_v4"] = None
__props__.__dict__["os"] = None
__props__.__dict__["power_status"] = None
__props__.__dict__["ram"] = None
__props__.__dict__["server_status"] = None
__props__.__dict__["status"] = None
__props__.__dict__["v6_main_ip"] = None
__props__.__dict__["v6_network"] = None
__props__.__dict__["v6_network_size"] = None
__props__.__dict__["vcpu_count"] = None
super(Instance, __self__).__init__(
'vultr:index/instance:Instance',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
activation_email: Optional[pulumi.Input[bool]] = None,
allowed_bandwidth: Optional[pulumi.Input[int]] = None,
app_id: Optional[pulumi.Input[int]] = None,
backups: Optional[pulumi.Input[str]] = None,
backups_schedule: Optional[pulumi.Input[pulumi.InputType['InstanceBackupsScheduleArgs']]] = None,
date_created: Optional[pulumi.Input[str]] = None,
ddos_protection: Optional[pulumi.Input[bool]] = None,
default_password: Optional[pulumi.Input[str]] = None,
disk: Optional[pulumi.Input[int]] = None,
enable_ipv6: Optional[pulumi.Input[bool]] = None,
enable_private_network: Optional[pulumi.Input[bool]] = None,
features: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
firewall_group_id: Optional[pulumi.Input[str]] = None,
gateway_v4: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
internal_ip: Optional[pulumi.Input[str]] = None,
iso_id: Optional[pulumi.Input[str]] = None,
kvm: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
main_ip: Optional[pulumi.Input[str]] = None,
netmask_v4: Optional[pulumi.Input[str]] = None,
os: Optional[pulumi.Input[str]] = None,
os_id: Optional[pulumi.Input[int]] = None,
plan: Optional[pulumi.Input[str]] = None,
power_status: Optional[pulumi.Input[str]] = None,
private_network_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ram: Optional[pulumi.Input[int]] = None,
region: Optional[pulumi.Input[str]] = None,
reserved_ip_id: Optional[pulumi.Input[str]] = None,
script_id: Optional[pulumi.Input[str]] = None,
server_status: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
ssh_key_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
status: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
user_data: Optional[pulumi.Input[str]] = None,
v6_main_ip: Optional[pulumi.Input[str]] = None,
v6_network: Optional[pulumi.Input[str]] = None,
v6_network_size: Optional[pulumi.Input[int]] = None,
vcpu_count: Optional[pulumi.Input[int]] = None) -> 'Instance':
"""
Get an existing Instance resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[bool] activation_email: Whether an activation email will be sent when the server is ready.
:param pulumi.Input[int] allowed_bandwidth: The server's allowed bandwidth usage in GB.
:param pulumi.Input[int] app_id: The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
:param pulumi.Input[str] backups: Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
:param pulumi.Input[pulumi.InputType['InstanceBackupsScheduleArgs']] backups_schedule: A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
:param pulumi.Input[str] date_created: The date the server was added to your Vultr account.
:param pulumi.Input[bool] ddos_protection: Whether DDOS protection will be enabled on the server (there is an additional charge for this).
:param pulumi.Input[str] default_password: The server's default password.
:param pulumi.Input[int] disk: The description of the disk(s) on the server.
:param pulumi.Input[bool] enable_ipv6: Whether the server has IPv6 networking activated.
:param pulumi.Input[bool] enable_private_network: Whether the server has private networking support enabled.
:param pulumi.Input[Sequence[pulumi.Input[str]]] features: Array of which features are enabled.
:param pulumi.Input[str] firewall_group_id: The ID of the firewall group to assign to the server.
:param pulumi.Input[str] gateway_v4: The server's IPv4 gateway.
:param pulumi.Input[str] hostname: The hostname to assign to the server.
:param pulumi.Input[str] image_id: The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
:param pulumi.Input[str] internal_ip: The server's internal IP address.
:param pulumi.Input[str] iso_id: The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
:param pulumi.Input[str] kvm: The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
:param pulumi.Input[str] label: A label for the server.
:param pulumi.Input[str] main_ip: The server's main IP address.
:param pulumi.Input[str] netmask_v4: The server's IPv4 netmask.
:param pulumi.Input[str] os: The string description of the operating system installed on the server.
:param pulumi.Input[int] os_id: The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
:param pulumi.Input[str] plan: The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
:param pulumi.Input[str] power_status: Whether the server is powered on or not.
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of private network IDs to be attached to the server.
:param pulumi.Input[int] ram: The amount of memory available on the server in MB.
:param pulumi.Input[str] region: The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
:param pulumi.Input[str] reserved_ip_id: ID of the floating IP to use as the main IP of this server.
:param pulumi.Input[str] script_id: The ID of the startup script you want added to the server.
:param pulumi.Input[str] server_status: A more detailed server status (none, locked, installingbooting, isomounting, ok).
:param pulumi.Input[str] snapshot_id: The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
:param pulumi.Input[Sequence[pulumi.Input[str]]] ssh_key_ids: A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
:param pulumi.Input[str] status: The status of the server's subscription.
:param pulumi.Input[str] tag: The tag to assign to the server.
:param pulumi.Input[str] user_data: Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
:param pulumi.Input[str] v6_main_ip: The main IPv6 network address.
:param pulumi.Input[str] v6_network: The IPv6 subnet.
:param pulumi.Input[int] v6_network_size: The IPv6 network size in bits.
:param pulumi.Input[int] vcpu_count: The number of virtual CPUs available on the server.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _InstanceState.__new__(_InstanceState)
__props__.__dict__["activation_email"] = activation_email
__props__.__dict__["allowed_bandwidth"] = allowed_bandwidth
__props__.__dict__["app_id"] = app_id
__props__.__dict__["backups"] = backups
__props__.__dict__["backups_schedule"] = backups_schedule
__props__.__dict__["date_created"] = date_created
__props__.__dict__["ddos_protection"] = ddos_protection
__props__.__dict__["default_password"] = default_password
__props__.__dict__["disk"] = disk
__props__.__dict__["enable_ipv6"] = enable_ipv6
__props__.__dict__["enable_private_network"] = enable_private_network
__props__.__dict__["features"] = features
__props__.__dict__["firewall_group_id"] = firewall_group_id
__props__.__dict__["gateway_v4"] = gateway_v4
__props__.__dict__["hostname"] = hostname
__props__.__dict__["image_id"] = image_id
__props__.__dict__["internal_ip"] = internal_ip
__props__.__dict__["iso_id"] = iso_id
__props__.__dict__["kvm"] = kvm
__props__.__dict__["label"] = label
__props__.__dict__["main_ip"] = main_ip
__props__.__dict__["netmask_v4"] = netmask_v4
__props__.__dict__["os"] = os
__props__.__dict__["os_id"] = os_id
__props__.__dict__["plan"] = plan
__props__.__dict__["power_status"] = power_status
__props__.__dict__["private_network_ids"] = private_network_ids
__props__.__dict__["ram"] = ram
__props__.__dict__["region"] = region
__props__.__dict__["reserved_ip_id"] = reserved_ip_id
__props__.__dict__["script_id"] = script_id
__props__.__dict__["server_status"] = server_status
__props__.__dict__["snapshot_id"] = snapshot_id
__props__.__dict__["ssh_key_ids"] = ssh_key_ids
__props__.__dict__["status"] = status
__props__.__dict__["tag"] = tag
__props__.__dict__["user_data"] = user_data
__props__.__dict__["v6_main_ip"] = v6_main_ip
__props__.__dict__["v6_network"] = v6_network
__props__.__dict__["v6_network_size"] = v6_network_size
__props__.__dict__["vcpu_count"] = vcpu_count
return Instance(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="activationEmail")
def activation_email(self) -> pulumi.Output[Optional[bool]]:
"""
Whether an activation email will be sent when the server is ready.
"""
return pulumi.get(self, "activation_email")
@property
@pulumi.getter(name="allowedBandwidth")
def allowed_bandwidth(self) -> pulumi.Output[int]:
"""
The server's allowed bandwidth usage in GB.
"""
return pulumi.get(self, "allowed_bandwidth")
@property
@pulumi.getter(name="appId")
def app_id(self) -> pulumi.Output[int]:
"""
The ID of the Vultr application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications)
"""
return pulumi.get(self, "app_id")
@property
@pulumi.getter
def backups(self) -> pulumi.Output[Optional[str]]:
"""
Whether automatic backups will be enabled for this server (these have an extra charge associated with them). Values can be enabled or disabled.
"""
return pulumi.get(self, "backups")
@property
@pulumi.getter(name="backupsSchedule")
def backups_schedule(self) -> pulumi.Output[Optional['outputs.InstanceBackupsSchedule']]:
"""
A block that defines the way backups should be scheduled. While this is an optional field if `backups` are `enabled` this field is mandatory. The configuration of a `backups_schedule` is listed below.
"""
return pulumi.get(self, "backups_schedule")
@property
@pulumi.getter(name="dateCreated")
def date_created(self) -> pulumi.Output[str]:
"""
The date the server was added to your Vultr account.
"""
return pulumi.get(self, "date_created")
@property
@pulumi.getter(name="ddosProtection")
def ddos_protection(self) -> pulumi.Output[Optional[bool]]:
"""
Whether DDOS protection will be enabled on the server (there is an additional charge for this).
"""
return pulumi.get(self, "ddos_protection")
@property
@pulumi.getter(name="defaultPassword")
def default_password(self) -> pulumi.Output[str]:
"""
The server's default password.
"""
return pulumi.get(self, "default_password")
@property
@pulumi.getter
def disk(self) -> pulumi.Output[int]:
"""
The description of the disk(s) on the server.
"""
return pulumi.get(self, "disk")
@property
@pulumi.getter(name="enableIpv6")
def enable_ipv6(self) -> pulumi.Output[Optional[bool]]:
"""
Whether the server has IPv6 networking activated.
"""
return pulumi.get(self, "enable_ipv6")
@property
@pulumi.getter(name="enablePrivateNetwork")
def enable_private_network(self) -> pulumi.Output[Optional[bool]]:
"""
Whether the server has private networking support enabled.
"""
return pulumi.get(self, "enable_private_network")
@property
@pulumi.getter
def features(self) -> pulumi.Output[Sequence[str]]:
"""
Array of which features are enabled.
"""
return pulumi.get(self, "features")
@property
@pulumi.getter(name="firewallGroupId")
def firewall_group_id(self) -> pulumi.Output[str]:
"""
The ID of the firewall group to assign to the server.
"""
return pulumi.get(self, "firewall_group_id")
@property
@pulumi.getter(name="gatewayV4")
def gateway_v4(self) -> pulumi.Output[str]:
"""
The server's IPv4 gateway.
"""
return pulumi.get(self, "gateway_v4")
@property
@pulumi.getter
def hostname(self) -> pulumi.Output[str]:
"""
The hostname to assign to the server.
"""
return pulumi.get(self, "hostname")
@property
@pulumi.getter(name="imageId")
def image_id(self) -> pulumi.Output[str]:
"""
The ID of the Vultr marketplace application to be installed on the server. [See List Applications](https://www.vultr.com/api/#operation/list-applications) Note marketplace applications are denoted by type: `marketplace` and you must use the `image_id` not the id.
"""
return pulumi.get(self, "image_id")
@property
@pulumi.getter(name="internalIp")
def internal_ip(self) -> pulumi.Output[str]:
"""
The server's internal IP address.
"""
return pulumi.get(self, "internal_ip")
@property
@pulumi.getter(name="isoId")
def iso_id(self) -> pulumi.Output[Optional[str]]:
"""
The ID of the ISO file to be installed on the server. [See List ISO](https://www.vultr.com/api/#operation/list-isos)
"""
return pulumi.get(self, "iso_id")
@property
@pulumi.getter
def kvm(self) -> pulumi.Output[str]:
"""
The server's current KVM URL. This URL will change periodically. It is not advised to cache this value.
"""
return pulumi.get(self, "kvm")
@property
@pulumi.getter
def label(self) -> pulumi.Output[str]:
"""
A label for the server.
"""
return pulumi.get(self, "label")
@property
@pulumi.getter(name="mainIp")
def main_ip(self) -> pulumi.Output[str]:
"""
The server's main IP address.
"""
return pulumi.get(self, "main_ip")
@property
@pulumi.getter(name="netmaskV4")
def netmask_v4(self) -> pulumi.Output[str]:
"""
The server's IPv4 netmask.
"""
return pulumi.get(self, "netmask_v4")
@property
@pulumi.getter
def os(self) -> pulumi.Output[str]:
"""
The string description of the operating system installed on the server.
"""
return pulumi.get(self, "os")
@property
@pulumi.getter(name="osId")
def os_id(self) -> pulumi.Output[int]:
"""
The ID of the operating system to be installed on the server. [See List OS](https://www.vultr.com/api/#operation/list-os)
"""
return pulumi.get(self, "os_id")
@property
@pulumi.getter
def plan(self) -> pulumi.Output[str]:
"""
The ID of the plan that you want the instance to subscribe to. [See List Plans](https://www.vultr.com/api/#tag/plans)
"""
return pulumi.get(self, "plan")
@property
@pulumi.getter(name="powerStatus")
def power_status(self) -> pulumi.Output[str]:
"""
Whether the server is powered on or not.
"""
return pulumi.get(self, "power_status")
@property
@pulumi.getter(name="privateNetworkIds")
def private_network_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
A list of private network IDs to be attached to the server.
"""
return pulumi.get(self, "private_network_ids")
@property
@pulumi.getter
def ram(self) -> pulumi.Output[int]:
"""
The amount of memory available on the server in MB.
"""
return pulumi.get(self, "ram")
@property
@pulumi.getter
def region(self) -> pulumi.Output[str]:
"""
The ID of the region that the instance is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
"""
return pulumi.get(self, "region")
@property
@pulumi.getter(name="reservedIpId")
def reserved_ip_id(self) -> pulumi.Output[str]:
"""
ID of the floating IP to use as the main IP of this server.
"""
return pulumi.get(self, "reserved_ip_id")
@property
@pulumi.getter(name="scriptId")
def script_id(self) -> pulumi.Output[str]:
"""
The ID of the startup script you want added to the server.
"""
return pulumi.get(self, "script_id")
@property
@pulumi.getter(name="serverStatus")
def server_status(self) -> pulumi.Output[str]:
"""
A more detailed server status (none, locked, installingbooting, isomounting, ok).
"""
return pulumi.get(self, "server_status")
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> pulumi.Output[str]:
"""
The ID of the Vultr snapshot that the server will restore for the initial installation. [See List Snapshots](https://www.vultr.com/api/#operation/list-snapshots)
"""
return pulumi.get(self, "snapshot_id")
@property
@pulumi.getter(name="sshKeyIds")
def ssh_key_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
A list of SSH key IDs to apply to the server on install (only valid for Linux/FreeBSD).
"""
return pulumi.get(self, "ssh_key_ids")
@property
@pulumi.getter
def status(self) -> pulumi.Output[str]:
"""
The status of the server's subscription.
"""
return pulumi.get(self, "status")
@property
@pulumi.getter
def tag(self) -> pulumi.Output[str]:
"""
The tag to assign to the server.
"""
return pulumi.get(self, "tag")
@property
@pulumi.getter(name="userData")
def user_data(self) -> pulumi.Output[str]:
"""
Generic data store, which some provisioning tools and cloud operating systems use as a configuration file. It is generally consumed only once after an instance has been launched, but individual needs may vary.
"""
return pulumi.get(self, "user_data")
@property
@pulumi.getter(name="v6MainIp")
def v6_main_ip(self) -> pulumi.Output[str]:
"""
The main IPv6 network address.
"""
return pulumi.get(self, "v6_main_ip")
@property
@pulumi.getter(name="v6Network")
def v6_network(self) -> pulumi.Output[str]:
"""
The IPv6 subnet.
"""
return pulumi.get(self, "v6_network")
@property
@pulumi.getter(name="v6NetworkSize")
def v6_network_size(self) -> pulumi.Output[int]:
"""
The IPv6 network size in bits.
"""
return pulumi.get(self, "v6_network_size")
@property
@pulumi.getter(name="vcpuCount")
def vcpu_count(self) -> pulumi.Output[int]:
"""
The number of virtual CPUs available on the server.
"""
return pulumi.get(self, "vcpu_count")
| 46.233825
| 324
| 0.64906
| 10,487
| 81,464
| 4.848384
| 0.035949
| 0.094326
| 0.077372
| 0.070528
| 0.944065
| 0.925086
| 0.902409
| 0.891985
| 0.879418
| 0.838686
| 0
| 0.003611
| 0.241886
| 81,464
| 1,761
| 325
| 46.26008
| 0.81967
| 0.334995
| 0
| 0.753637
| 1
| 0.00582
| 0.121269
| 0.014195
| 0
| 0
| 0
| 0
| 0
| 1
| 0.168768
| false
| 0.015519
| 0.00679
| 0
| 0.28031
| 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
|
e2a35f2dc645548ebfc5ece3d7f4a3357873aed5
| 7,636
|
py
|
Python
|
test/day_13/test_lib.py
|
teagles/teagles-advent-2021
|
d49d842663d6382bd0d4d93198ccd66ab68e681b
|
[
"MIT"
] | null | null | null |
test/day_13/test_lib.py
|
teagles/teagles-advent-2021
|
d49d842663d6382bd0d4d93198ccd66ab68e681b
|
[
"MIT"
] | null | null | null |
test/day_13/test_lib.py
|
teagles/teagles-advent-2021
|
d49d842663d6382bd0d4d93198ccd66ab68e681b
|
[
"MIT"
] | null | null | null |
import unittest
from io import StringIO
from teagles_advent_2021.day_13.lib import parse_input, PageAndFolds, Fold, fold, new_dimension, Point
class TestDay13Lib(unittest.TestCase):
def test_parse_input(self):
expectation = PageAndFolds([[False, False, False, True, False, False, True, False, False, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[True, False, False, False, False, False, False, False, False, False, False],
[False, False, False, True, False, False, False, False, True, False, True],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, True, False, False, False, False, True, False, True, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, True, False, False, False, True],
[True, False, False, False, False, False, False, False, False, False, False],
[True, False, True, False, False, False, False, False, False, False, False]],
[Fold('y', 7), Fold('x', 5)])
reality = parse_input(StringIO("""6,10
0,14
9,10
0,3
10,4
4,11
6,0
6,12
4,1
0,13
10,12
3,4
3,0
8,4
1,10
2,14
8,10
9,0
fold along y=7
fold along x=5
"""))
self.assertEqual(expectation, reality)
def test_fold(self):
test_page_1 = [[False, False, False, True, False, False, True, False, False, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[True, False, False, False, False, False, False, False, False, False, False],
[False, False, False, True, False, False, False, False, True, False, True],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, True, False, False, False, False, True, False, True, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, True, False, False, False, True],
[True, False, False, False, False, False, False, False, False, False, False],
[True, False, True, False, False, False, False, False, False, False, False]]
expectation = Point(11, 7)
reality = new_dimension(test_page_1, Fold('y', 7))
self.assertEqual(expectation, reality)
test_page_2 = [[True, False, True, True, False, False, True, False, False, True, False],
[True, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, True, False, False, False, True],
[True, False, False, False, True, False, False, False, False, False, False],
[False, True, False, True, False, False, True, False, True, True, True],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False]]
expectation = Point(5, 7)
reality = new_dimension(test_page_2, Fold('x', 5))
self.assertEqual(expectation, reality)
def test_new_dimension(self):
test_page_1 = [[False, False, False, True, False, False, True, False, False, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[True, False, False, False, False, False, False, False, False, False, False],
[False, False, False, True, False, False, False, False, True, False, True],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False],
[False, True, False, False, False, False, True, False, True, True, False],
[False, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, True, False, False, False, True],
[True, False, False, False, False, False, False, False, False, False, False],
[True, False, True, False, False, False, False, False, False, False, False]]
expectation_1 = [[True, False, True, True, False, False, True, False, False, True, False],
[True, False, False, False, True, False, False, False, False, False, False],
[False, False, False, False, False, False, True, False, False, False, True],
[True, False, False, False, True, False, False, False, False, False, False],
[False, True, False, True, False, False, True, False, True, True, True],
[False, False, False, False, False, False, False, False, False, False, False],
[False, False, False, False, False, False, False, False, False, False, False]]
reality = fold(test_page_1, Fold('y', 7))
self.assertEqual(expectation_1, reality)
expectation_2 = [[True, True, True, True, True],
[True, False, False, False, True],
[True, False, False, False, True],
[True, False, False, False, True],
[True, True, True, True, True],
[False, False, False, False, False],
[False, False, False, False, False]]
reality = fold(reality, Fold('x', 5))
self.assertEqual(expectation_2, reality)
if __name__ == '__main__':
unittest.main()
| 64.711864
| 114
| 0.535097
| 860
| 7,636
| 4.70814
| 0.05814
| 1.232403
| 1.611509
| 1.891825
| 0.903186
| 0.903186
| 0.88244
| 0.88244
| 0.861694
| 0.836503
| 0
| 0.015634
| 0.338266
| 7,636
| 117
| 115
| 65.264957
| 0.785672
| 0
| 0
| 0.564815
| 0
| 0
| 0.016894
| 0
| 0
| 0
| 0
| 0
| 0.046296
| 1
| 0.027778
| false
| 0
| 0.027778
| 0
| 0.064815
| 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
|
e2a9f6e84f017e2ce7515bd2c5801cddb81dc83c
| 70
|
py
|
Python
|
molsysmt/tools/mdtraj_XTCTrajectoryFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
molsysmt/tools/mdtraj_XTCTrajectoryFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
molsysmt/tools/mdtraj_XTCTrajectoryFile/__init__.py
|
dprada/molsysmt
|
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
|
[
"MIT"
] | null | null | null |
from .is_mdtraj_XTCTrajectoryFile import is_mdtraj_XTCTrajectoryFile
| 23.333333
| 68
| 0.914286
| 8
| 70
| 7.5
| 0.625
| 0.266667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 70
| 2
| 69
| 35
| 0.923077
| 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
|
e2b7e36b90ba2c6dd5970ea487655b4c321fe2c3
| 20,268
|
py
|
Python
|
fortisoar-soc-simulator/fakemalware.py
|
cs-alok-agarwal/connector-fortisoar-soc-simulator
|
8d78734223e0a4cb08ed9d3327936bb7f2939cb6
|
[
"MIT"
] | null | null | null |
fortisoar-soc-simulator/fakemalware.py
|
cs-alok-agarwal/connector-fortisoar-soc-simulator
|
8d78734223e0a4cb08ed9d3327936bb7f2939cb6
|
[
"MIT"
] | null | null | null |
fortisoar-soc-simulator/fakemalware.py
|
cs-alok-agarwal/connector-fortisoar-soc-simulator
|
8d78734223e0a4cb08ed9d3327936bb7f2939cb6
|
[
"MIT"
] | null | null | null |
MALICIOUS_FILE_B64 = 'UEsDBBQACAgIAMA6mVMAAAAAAAAAAAAAAAAeAAAAd29yZC9fcmVscy92YmFQcm9qZWN0LmJpbi5yZWxzbc89C8IwEAbg3V8RbjfXOoiIaRcRXEXdzzRtg00uJMGPf2/ARdHxvh7u3bQPN4mbicmyV1DLCoTxmjvrBwWn426+graZbQ5molxW0mhDEuXGJwVjzmGNmPRoHCXJwfgy6Tk6yqWMAwbSVxoMLqpqifHTgObLFPtOQdx3NYjjM5gf21kdOXGfpWaH3PdW/1PxzrE7X2hLmYpEcTBZwe3dkOU5wBIGv9I0L1BLBwgqPgbFqQAAAAQBAABQSwMEFAAICAgAwDqZUwAAAAAAAAAAAAAAABwAAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzrZLNboMwEITveQrL99qQ/qiqgFyqSrlVFX0AYxZwir3I3kbN29dqokIkinrguGPvfKOxs92X7dkRfDDocp6KhDNwGmvj2py/ly83j3xXb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AAAAAAAAAAAB1MgAAZG9jUHJvcHMvY3VzdG9tLnhtbFBLAQIUABQACAgIAMA6mVOr6trvjAEAABsDAAARAAAAAAAAAAAAAAAAAA00AABkb2NQcm9wcy9jb3JlLnhtbFBLAQIUABQACAgIAMA6mVO7GoEHkwEAAIMHAAATAAAAAAAAAAAAAAAAANg1AABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAOAA4AiwMAAKw3AAAAAA=='
| 10,134
| 20,267
| 0.970397
| 569
| 20,268
| 34.56239
| 0.987698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153368
| 0.000148
| 20,268
| 1
| 20,268
| 20,268
| 0.817074
| 0
| 0
| 0
| 0
| 1
| 0.998816
| 0.998816
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2c66ee60a5c59d100b552020e8ba5d9fbe05698f
| 1,324
|
py
|
Python
|
jixianjiancha/models.py
|
zx273983653/vulscan
|
787397e267c4e6469522ee0abe55b3e98f968d4a
|
[
"MIT"
] | 582
|
2019-02-23T09:23:33.000Z
|
2022-03-31T04:42:08.000Z
|
jixianjiancha/models.py
|
git-wsf/vulscan
|
112f8d6104daecfaaad579f73029a26d56aaa9b3
|
[
"MIT"
] | 6
|
2019-03-20T10:37:48.000Z
|
2020-03-10T06:20:07.000Z
|
jixianjiancha/models.py
|
git-wsf/vulscan
|
112f8d6104daecfaaad579f73029a26d56aaa9b3
|
[
"MIT"
] | 183
|
2019-02-23T06:00:18.000Z
|
2022-03-20T02:17:57.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import sys
reload(sys)
sys.setdefaultencoding('utf8')
# Create your models here.
class BaseCheck(models.Model):
vid=models.IntegerField(primary_key=True) #主键
ip=models.CharField(max_length=255,null=True,blank=True)#扫描ip
time=models.CharField(max_length=255,null=True,blank=True)#扫描时间
checkpoint=models.CharField(max_length=255,null=True,blank=True)#检查项
level=models.CharField(max_length=255,null=True,blank=True)#漏洞等级
suggestion=models.CharField(max_length=255,null=True,blank=True)#修复建议
describe=models.CharField(max_length=255,null=True,blank=True)#漏洞描述
class Process_save(models.Model):
vid=models.IntegerField(primary_key=True) #主键
ip=models.CharField(max_length=255,null=True,blank=True)#扫描ip
time=models.CharField(max_length=255,null=True,blank=True)#扫描时间
describe=models.TextField()#进程描述
checkpoint=models.CharField(max_length=255,null=True,blank=True)#检查项
level=models.CharField(max_length=255,null=True,blank=True)#漏洞等级
suggestion=models.CharField(max_length=255,null=True,blank=True)#修复建议
class Scan_number(models.Model):
vid=models.IntegerField(primary_key=True) #主键
ip=models.CharField(max_length=255,null=True,blank=True)#扫描ip
time=models.CharField(max_length=255,null=True,blank=True)#扫描时间
| 38.941176
| 70
| 0.804381
| 206
| 1,324
| 5.058252
| 0.247573
| 0.18714
| 0.224568
| 0.299424
| 0.796545
| 0.796545
| 0.796545
| 0.796545
| 0.796545
| 0.754319
| 0
| 0.032826
| 0.056647
| 1,324
| 33
| 71
| 40.121212
| 0.801441
| 0.08006
| 0
| 0.6
| 0
| 0
| 0.003339
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.12
| 0
| 0.92
| 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
| 1
| 0
|
0
| 8
|
2c8406ca0af2413ec1a07939526e58dc89c2ac60
| 1,100
|
py
|
Python
|
sun.py
|
kyullog/picture-clock-2
|
5f601cce0bb0aa3689aba70fd9367af9f64633f1
|
[
"MIT"
] | null | null | null |
sun.py
|
kyullog/picture-clock-2
|
5f601cce0bb0aa3689aba70fd9367af9f64633f1
|
[
"MIT"
] | 11
|
2020-12-10T04:40:59.000Z
|
2022-02-26T22:07:42.000Z
|
sun.py
|
kyullog/picture-clock-2
|
5f601cce0bb0aa3689aba70fd9367af9f64633f1
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import unicornhat
pixels = [[(255, 255, 0), (0, 255, 255), (0, 255, 255), (255, 255, 0), (0, 255, 255), (0, 255, 255), (0, 255, 255), (255, 255, 0)], [(0, 255, 255), (255, 255, 0), (0, 255, 255), (255, 255, 0), (255, 255, 0), (0, 255, 255), (255, 255, 0), (0, 255, 255)], [(0, 255, 255), (0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255), (0, 255, 255)], [(0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0)], [
(255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255)], [(0, 255, 255), (0, 255, 255), (255, 255, 0), (255, 255, 0), (255, 255, 0), (255, 255, 0), (0, 255, 255), (0, 255, 255)], [(0, 255, 255), (255, 255, 0), (0, 255, 255), (255, 255, 0), (255, 255, 0), (0, 255, 255), (255, 255, 0), (0, 255, 255)], [(255, 255, 0), (0, 255, 255), (0, 255, 255), (0, 255, 255), (255, 255, 0), (0, 255, 255), (0, 255, 255), (255, 255, 0)]]
def sun():
unicornhat.set_pixels(pixels)
unicornhat.show()
| 110
| 499
| 0.482727
| 207
| 1,100
| 2.560386
| 0.062802
| 0.883019
| 0.660377
| 0.528302
| 0.845283
| 0.845283
| 0.845283
| 0.845283
| 0.845283
| 0.845283
| 0
| 0.507361
| 0.197273
| 1,100
| 9
| 500
| 122.222222
| 0.092865
| 0.018182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
2cc0e8f3f9b304df5f1356ddcbc3e6c9b9af837a
| 79
|
py
|
Python
|
pylab/signal/__init__.py
|
bodokaiser/pylab
|
3f709256fc89def0af2d8fe1de947d512a3e991a
|
[
"Apache-2.0"
] | null | null | null |
pylab/signal/__init__.py
|
bodokaiser/pylab
|
3f709256fc89def0af2d8fe1de947d512a3e991a
|
[
"Apache-2.0"
] | null | null | null |
pylab/signal/__init__.py
|
bodokaiser/pylab
|
3f709256fc89def0af2d8fe1de947d512a3e991a
|
[
"Apache-2.0"
] | null | null | null |
from pylab.signal.houston import DDS
from pylab.signal.keysight import FG33250
| 26.333333
| 41
| 0.848101
| 12
| 79
| 5.583333
| 0.666667
| 0.268657
| 0.447761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070423
| 0.101266
| 79
| 2
| 42
| 39.5
| 0.873239
| 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
|
391b1422919ba0ab80fe22663cb0571c0a814c25
| 7,792
|
py
|
Python
|
tests/integrations/test_reviewer_views.py
|
theSage21/junction
|
ac713edcf56c41eb3f066da776a0a5d24e55b46a
|
[
"MIT"
] | 192
|
2015-01-12T06:21:24.000Z
|
2022-03-10T09:57:37.000Z
|
tests/integrations/test_reviewer_views.py
|
theSage21/junction
|
ac713edcf56c41eb3f066da776a0a5d24e55b46a
|
[
"MIT"
] | 621
|
2015-01-01T09:19:17.000Z
|
2021-05-28T09:27:35.000Z
|
tests/integrations/test_reviewer_views.py
|
theSage21/junction
|
ac713edcf56c41eb3f066da776a0a5d24e55b46a
|
[
"MIT"
] | 207
|
2015-01-05T16:39:06.000Z
|
2022-02-15T13:18:15.000Z
|
# -*- coding: utf-8 -*-
import pytest
from django.core.urlresolvers import reverse
from .. import factories as f
from . import helpers
pytestmark = pytest.mark.django_db
class TestReviewerViews:
def test_reviewer_private_comment(
self, settings, login, conferences, create_proposal
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-comment-create", kwargs=kwargs)
data = {"comment": "Test", "private": True}
response = client.post(url, data)
assert response.status_code == 302
assert response.url.endswith("#js-reviewers")
def test_reviewer_only_private_comment(
self, settings, login, conferences, create_proposal
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-comment-create", kwargs=kwargs)
data = {"comment": "Test", "reviewer": True}
response = client.post(url, data)
assert response.status_code == 302
assert response.url.endswith("#js-only-reviewers")
def test_get_review_proposal_form(
self, settings, login, conferences, create_reviewer, create_proposal
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "slug": proposal.slug}
url = reverse("proposal-review", kwargs=kwargs)
response = client.get(url)
context = response.context
assert response.status_code == 200
assert context["proposal"] == proposal
helpers.assert_template_used(response, "proposals/review.html")
def test_post_review_proposal(
self, settings, login, conferences, create_reviewer, create_proposal
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "slug": proposal.slug}
url = reverse("proposal-review", kwargs=kwargs)
response = client.post(url, {"review_status": 3})
assert response.status_code == 302
def test_review_proposal_by_non_reviewer(
self, settings, client, conferences, create_proposal
):
username, password = "temp", "temp"
f.create_user(password=password, username=username)
conference = conferences["future"]
client.login(username=username, password=password)
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "slug": proposal.slug}
url = reverse("proposal-review", kwargs=kwargs)
response = client.get(url)
assert response.status_code == 403
def test_proposal_reviewer_vote_by_non_reviewer(
self, settings, client, conferences, create_proposal
):
username, password = "temp", "temp"
f.create_user(password=password, username=username)
conference = conferences["future"]
client.login(username=username, password=password)
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
response = client.post(url)
assert response.status_code == 403
def test_get_proposal_reviewer_vote(
self, settings, login, conferences, create_proposal, create_reviewer
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
response = client.get(url)
context = response.context
assert response.status_code == 200
assert context["proposal"] == proposal
assert context["vote"] is None
helpers.assert_template_used(response, "proposals/vote.html")
def test_post_proposal_reviewer_vote(
self, settings, login, conferences, create_proposal, create_reviewer
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
data = {"vote_value": 1, "comment": "Must Have"}
response = client.post(url, data)
assert response.status_code == 302
assert response.url.endswith("review/") is True
def test_update_proposal_reviewer_vote(
self, settings, login, conferences, create_proposal, create_reviewer
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
data = {"vote_value": 1, "comment": "Must Have"}
client.post(url, data)
update_data = {"vote_value": 2, "comment": "Must Have"}
response = client.post(url, update_data)
assert response.status_code == 302
assert response.url.endswith("review/") is True
def test_get_proposal_reviewer_vote_after_create(
self, settings, login, conferences, create_proposal, create_reviewer
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
comment, vote_value = "Must Have", 1
data = {"vote_value": vote_value, "comment": comment}
client.post(url, data)
response = client.get(url)
context = response.context
assert response.status_code == 200
assert context["form"].initial["vote_value"] == vote_value
assert context["form"].initial["comment"] == comment
def test_post_review_proposal_vote_with_invalid_data(
self, settings, login, conferences, create_proposal, create_reviewer
):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-reviewer-vote", kwargs=kwargs)
data = {"vote_value": 12}
response = client.post(url, data)
assert response.status_code == 200
assert "vote_value" in response.context["form_errors"]
def test_get_proposal_votes_dashboard(self, login, conferences, create_superuser):
client = login[0]
conference = conferences["future"]
kwargs = {"conference_slug": conference.slug}
url = reverse("export-reviewer-votes", kwargs=kwargs)
response = client.get(url)
assert response.status_code == 200
def test_public_comment(settings, login, conferences, create_proposal):
client = login[0]
conference = conferences["future"]
proposal = create_proposal
username, password = "tmp", "tmp"
f.create_user(password=password, username=username)
client.login(username=username, password=password)
kwargs = {"conference_slug": conference.slug, "proposal_slug": proposal.slug}
url = reverse("proposal-comment-create", kwargs=kwargs)
data = {"comment": "Test"}
response = client.post(url, data)
assert response.status_code == 302
assert response.url.endswith("#js-comments")
| 33.586207
| 86
| 0.660934
| 835
| 7,792
| 5.994012
| 0.106587
| 0.072727
| 0.067133
| 0.077922
| 0.847552
| 0.824775
| 0.782418
| 0.766633
| 0.757243
| 0.747453
| 0
| 0.009663
| 0.229723
| 7,792
| 231
| 87
| 33.731602
| 0.824225
| 0.002695
| 0
| 0.751515
| 0
| 0
| 0.132449
| 0.031278
| 0
| 0
| 0
| 0
| 0.157576
| 1
| 0.078788
| false
| 0.054545
| 0.024242
| 0
| 0.109091
| 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
|
1ab90680f959caaee31785586dac2c0f483852ca
| 47,330
|
py
|
Python
|
util/data/gen/RPCRT4.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/RPCRT4.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/RPCRT4.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
symbols = []
exports = [{'type': 'function', 'name': 'CStdStubBuffer_AddRef', 'address': '0x7ffb3d3fbf50'}, {'type': 'function', 'name': 'CStdStubBuffer_Connect', 'address': '0x7ffb3d46bd70'}, {'type': 'function', 'name': 'CStdStubBuffer_CountRefs', 'address': '0x7ffb3d46bdd0'}, {'type': 'function', 'name': 'CStdStubBuffer_DebugServerQueryInterface', 'address': '0x7ffb3d46be20'}, {'type': 'function', 'name': 'CStdStubBuffer_DebugServerRelease', 'address': '0x7ffb3d46be80'}, {'type': 'function', 'name': 'CStdStubBuffer_Disconnect', 'address': '0x7ffb3d3feab0'}, {'type': 'function', 'name': 'CStdStubBuffer_Invoke', 'address': '0x7ffb3d3fb6e0'}, {'type': 'function', 'name': 'CStdStubBuffer_IsIIDSupported', 'address': '0x7ffb3d46bed0'}, {'type': 'function', 'name': 'CStdStubBuffer_QueryInterface', 'address': '0x7ffb3d402630'}, {'type': 'function', 'name': 'CreateProxyFromTypeInfo', 'address': '0x7ffb3d403320'}, {'type': 'function', 'name': 'CreateStubFromTypeInfo', 'address': '0x7ffb3d4055f0'}, {'type': 'function', 'name': 'DceErrorInqTextA', 'address': '0x7ffb3d449ba0'}, {'type': 'function', 'name': 'DceErrorInqTextW', 'address': '0x7ffb3d449c30'}, {'type': 'function', 'name': 'DllGetClassObject', 'address': '0x7ffb3d46bf30'}, {'type': 'function', 'name': 'DllRegisterServer', 'address': '0x7ffb3d46bfa0'}, {'type': 'function', 'name': 'IUnknown_AddRef_Proxy', 'address': '0x7ffb3d3faf40'}, {'type': 'function', 'name': 'IUnknown_QueryInterface_Proxy', 'address': '0x7ffb3d3fc000'}, {'type': 'function', 'name': 'IUnknown_Release_Proxy', 'address': '0x7ffb3d3faf00'}, {'type': 'function', 'name': 'I_RpcAllocate', 'address': '0x7ffb3d3b0310'}, {'type': 'function', 'name': 'I_RpcAsyncAbortCall', 'address': '0x7ffb3d408200'}, {'type': 'function', 'name': 'I_RpcAsyncSetHandle', 'address': '0x7ffb3d3b0070'}, {'type': 'function', 'name': 'I_RpcBCacheAllocate', 'address': '0x7ffb3d3ea430'}, {'type': 'function', 'name': 'I_RpcBCacheFree', 'address': '0x7ffb3d403c80'}, {'type': 'function', 'name': 'I_RpcBindingCopy', 'address': '0x7ffb3d449ef0'}, {'type': 'function', 'name': 'I_RpcBindingCreateNP', 'address': '0x7ffb3d449f60'}, {'type': 'function', 'name': 'I_RpcBindingHandleToAsyncHandle', 'address': '0x7ffb3d451680'}, {'type': 'function', 'name': 'I_RpcBindingInqClientTokenAttributes', 'address': '0x7ffb3d3ea5c0'}, {'type': 'function', 'name': 'I_RpcBindingInqCurrentModifiedId', 'address': '0x7ffb3d3f79f0'}, {'type': 'function', 'name': 'I_RpcBindingInqDynamicEndpointA', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcBindingInqDynamicEndpointW', 'address': '0x7ffb3d3a9b10'}, {'type': 'function', 'name': 'I_RpcBindingInqLocalClientPID', 'address': '0x7ffb3d3f58e0'}, {'type': 'function', 'name': 'I_RpcBindingInqMarshalledTargetInfo', 'address': '0x7ffb3d4516f0'}, {'type': 'function', 'name': 'I_RpcBindingInqSecurityContext', 'address': '0x7ffb3d44a1d0'}, {'type': 'function', 'name': 'I_RpcBindingInqSecurityContextKeyInfo', 'address': '0x7ffb3d44a230'}, {'type': 'function', 'name': 'I_RpcBindingInqTransportType', 'address': '0x7ffb3d3f6e30'}, {'type': 'function', 'name': 'I_RpcBindingInqWireIdForSnego', 'address': '0x7ffb3d451770'}, {'type': 'function', 'name': 'I_RpcBindingIsClientLocal', 'address': '0x7ffb3d3ec470'}, {'type': 'function', 'name': 'I_RpcBindingIsServerLocal', 'address': '0x7ffb3d448670'}, {'type': 'function', 'name': 'I_RpcBindingSetPrivateOption', 'address': '0x7ffb3d406f80'}, {'type': 'function', 'name': 'I_RpcBindingToStaticStringBindingW', 'address': '0x7ffb3d4518e0'}, {'type': 'function', 'name': 'I_RpcCertProcessAndProvision', 'address': '0x7ffb3d449a00'}, {'type': 'function', 'name': 'I_RpcClearMutex', 'address': '0x7ffb3d3fe640'}, {'type': 'function', 'name': 'I_RpcCompleteAndFree', 'address': '0x7ffb3d448230'}, {'type': 'function', 'name': 'I_RpcDeleteMutex', 'address': '0x7ffb3d451a70'}, {'type': 'function', 'name': 'I_RpcEnableWmiTrace', 'address': '0x7ffb3d449900'}, {'type': 'function', 'name': 'I_RpcExceptionFilter', 'address': '0x7ffb3d3f7800'}, {'type': 'function', 'name': 'I_RpcFilterDCOMActivation', 'address': '0x7ffb3d454a10'}, {'type': 'function', 'name': 'I_RpcFixTransferSyntax', 'address': '0x7ffb3d448190'}, {'type': 'function', 'name': 'I_RpcFree', 'address': '0x7ffb3d403490'}, {'type': 'function', 'name': 'I_RpcFreeBuffer', 'address': '0x7ffb3d3fb6a0'}, {'type': 'function', 'name': 'I_RpcFreePipeBuffer', 'address': '0x7ffb3d454bb0'}, {'type': 'function', 'name': 'I_RpcFreeSystemHandle', 'address': '0x7ffb3d401140'}, {'type': 'function', 'name': 'I_RpcFreeSystemHandleCollection', 'address': '0x7ffb3d3faea0'}, {'type': 'function', 'name': 'I_RpcFwThisIsTheManager', 'address': '0x7ffb3d448390'}, {'type': 'function', 'name': 'I_RpcGetBuffer', 'address': '0x7ffb3d3ee6e0'}, {'type': 'function', 'name': 'I_RpcGetBufferWithObject', 'address': '0x7ffb3d3ee6f0'}, {'type': 'function', 'name': 'I_RpcGetCurrentCallHandle', 'address': '0x7ffb3d454d50'}, {'type': 'function', 'name': 'I_RpcGetDefaultSD', 'address': '0x7ffb3d4486e0'}, {'type': 'function', 'name': 'I_RpcGetExtendedError', 'address': '0x7ffb3d4550d0'}, {'type': 'function', 'name': 'I_RpcGetPortAllocationData', 'address': '0x7ffb3d412610'}, {'type': 'function', 'name': 'I_RpcGetSystemHandle', 'address': '0x7ffb3d3ffd50'}, {'type': 'function', 'name': 'I_RpcIfInqTransferSyntaxes', 'address': '0x7ffb3d3a9ad0'}, {'type': 'function', 'name': 'I_RpcInitFwImports', 'address': '0x7ffb3d408fe0'}, {'type': 'function', 'name': 'I_RpcInitHttpImports', 'address': '0x7ffb3d476be0'}, {'type': 'function', 'name': 'I_RpcInitImports', 'address': '0x7ffb3d409270'}, {'type': 'function', 'name': 'I_RpcInitNdrImports', 'address': '0x7ffb3d4064c0'}, {'type': 'function', 'name': 'I_RpcLogEvent', 'address': '0x7ffb3d3d7140'}, {'type': 'function', 'name': 'I_RpcMapWin32Status', 'address': '0x7ffb3d3f77c0'}, {'type': 'function', 'name': 'I_RpcMarshalBindingHandleAndInterfaceForNDF', 'address': '0x7ffb3d44a2e0'}, {'type': 'function', 'name': 'I_RpcMgmtEnableDedicatedThreadPool', 'address': '0x7ffb3d448720'}, {'type': 'function', 'name': 'I_RpcMgmtQueryDedicatedThreadPool', 'address': '0x7ffb3d406be0'}, {'type': 'function', 'name': 'I_RpcNDRCGetWireRepresentation', 'address': '0x7ffb3d4678d0'}, {'type': 'function', 'name': 'I_RpcNDRSContextEmergencyCleanup', 'address': '0x7ffb3d467db0'}, {'type': 'function', 'name': 'I_RpcNegotiateTransferSyntax', 'address': '0x7ffb3d3cc900'}, {'type': 'function', 'name': 'I_RpcNsBindingSetEntryNameA', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcNsBindingSetEntryNameW', 'address': '0x7ffb3d44a340'}, {'type': 'function', 'name': 'I_RpcNsInterfaceExported', 'address': '0x7ffb3d44a340'}, {'type': 'function', 'name': 'I_RpcNsInterfaceUnexported', 'address': '0x7ffb3d44a340'}, {'type': 'function', 'name': 'I_RpcOpenClientProcess', 'address': '0x7ffb3d3db820'}, {'type': 'function', 'name': 'I_RpcOpenClientThread', 'address': '0x7ffb3d3a3f60'}, {'type': 'function', 'name': 'I_RpcParseSecurity', 'address': '0x7ffb3d3df990'}, {'type': 'function', 'name': 'I_RpcPauseExecution', 'address': '0x7ffb3d448340'}, {'type': 'function', 'name': 'I_RpcReallocPipeBuffer', 'address': '0x7ffb3d454be0'}, {'type': 'function', 'name': 'I_RpcReceive', 'address': '0x7ffb3d3eb230'}, {'type': 'function', 'name': 'I_RpcRecordCalloutFailure', 'address': '0x7ffb3d4582a0'}, {'type': 'function', 'name': 'I_RpcRequestMutex', 'address': '0x7ffb3d3fd600'}, {'type': 'function', 'name': 'I_RpcSNCHOption', 'address': '0x7ffb3d408980'}, {'type': 'function', 'name': 'I_RpcSend', 'address': '0x7ffb3d3ea470'}, {'type': 'function', 'name': 'I_RpcSendReceive', 'address': '0x7ffb3d3cf580'}, {'type': 'function', 'name': 'I_RpcServerAllocateIpPort', 'address': '0x7ffb3d4115c0'}, {'type': 'function', 'name': 'I_RpcServerCheckClientRestriction', 'address': '0x7ffb3d4127d0'}, {'type': 'function', 'name': 'I_RpcServerDisableExceptionFilter', 'address': '0x7ffb3d409230'}, {'type': 'function', 'name': 'I_RpcServerGetAssociationID', 'address': '0x7ffb3d3db5e0'}, {'type': 'function', 'name': 'I_RpcServerInqAddressChangeFn', 'address': '0x7ffb3d448750'}, {'type': 'function', 'name': 'I_RpcServerInqLocalConnAddress', 'address': '0x7ffb3d3ed520'}, {'type': 'function', 'name': 'I_RpcServerInqRemoteConnAddress', 'address': '0x7ffb3d3ed480'}, {'type': 'function', 'name': 'I_RpcServerInqTransportType', 'address': '0x7ffb3d454d80'}, {'type': 'function', 'name': 'I_RpcServerIsClientDisconnected', 'address': '0x7ffb3d448760'}, {'type': 'function', 'name': 'I_RpcServerRegisterForwardFunction', 'address': '0x7ffb3d412800'}, {'type': 'function', 'name': 'I_RpcServerSetAddressChangeFn', 'address': '0x7ffb3d412860'}, {'type': 'function', 'name': 'I_RpcServerStartService', 'address': '0x7ffb3d4487f0'}, {'type': 'function', 'name': 'I_RpcServerSubscribeForDisconnectNotification', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcServerSubscribeForDisconnectNotification2', 'address': '0x7ffb3d405240'}, {'type': 'function', 'name': 'I_RpcServerTurnOnOffKeepalives', 'address': '0x7ffb3d4485b0'}, {'type': 'function', 'name': 'I_RpcServerUnsubscribeForDisconnectNotification', 'address': '0x7ffb3d405cb0'}, {'type': 'function', 'name': 'I_RpcServerUseProtseq2A', 'address': '0x7ffb3d40cf70'}, {'type': 'function', 'name': 'I_RpcServerUseProtseq2W', 'address': '0x7ffb3d3a7a90'}, {'type': 'function', 'name': 'I_RpcServerUseProtseqEp2A', 'address': '0x7ffb3d411c30'}, {'type': 'function', 'name': 'I_RpcServerUseProtseqEp2W', 'address': '0x7ffb3d3a7bb0'}, {'type': 'function', 'name': 'I_RpcSessionStrictContextHandle', 'address': '0x7ffb3d4488a0'}, {'type': 'function', 'name': 'I_RpcSetDCOMAppId', 'address': '0x7ffb3d4088c0'}, {'type': 'function', 'name': 'I_RpcSetSystemHandle', 'address': '0x7ffb3d3cefd0'}, {'type': 'function', 'name': 'I_RpcSsDontSerializeContext', 'address': '0x7ffb3d467dd0'}, {'type': 'function', 'name': 'I_RpcSystemFunction001', 'address': '0x7ffb3d412550'}, {'type': 'function', 'name': 'I_RpcSystemHandleTypeSpecificWork', 'address': '0x7ffb3d3fd9b0'}, {'type': 'function', 'name': 'I_RpcTransConnectionAllocatePacket', 'address': '0x7ffb3d4517f0'}, {'type': 'function', 'name': 'I_RpcTransConnectionFreePacket', 'address': '0x7ffb3d451800'}, {'type': 'function', 'name': 'I_RpcTransConnectionReallocPacket', 'address': '0x7ffb3d408580'}, {'type': 'function', 'name': 'I_RpcTransDatagramAllocate', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcTransDatagramAllocate2', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcTransDatagramFree', 'address': '0x7ffb3d40bb70'}, {'type': 'function', 'name': 'I_RpcTransGetThreadEvent', 'address': '0x7ffb3d455110'}, {'type': 'function', 'name': 'I_RpcTransGetThreadEventThreadOptional', 'address': '0x7ffb3d455130'}, {'type': 'function', 'name': 'I_RpcTransIoCancelled', 'address': '0x7ffb3d451880'}, {'type': 'function', 'name': 'I_RpcTransServerNewConnection', 'address': '0x7ffb3d454ae0'}, {'type': 'function', 'name': 'I_RpcTurnOnEEInfoPropagation', 'address': '0x7ffb3d44a3a0'}, {'type': 'function', 'name': 'I_RpcVerifierCorruptionExpected', 'address': '0x7ffb3d449600'}, {'type': 'function', 'name': 'I_UuidCreate', 'address': '0x7ffb3d459450'}, {'type': 'function', 'name': 'MesBufferHandleReset', 'address': '0x7ffb3d3f48f0'}, {'type': 'function', 'name': 'MesDecodeBufferHandleCreate', 'address': '0x7ffb3d3f4ad0'}, {'type': 'function', 'name': 'MesDecodeIncrementalHandleCreate', 'address': '0x7ffb3d3f46a0'}, {'type': 'function', 'name': 'MesEncodeDynBufferHandleCreate', 'address': '0x7ffb3d3f4860'}, {'type': 'function', 'name': 'MesEncodeFixedBufferHandleCreate', 'address': '0x7ffb3d3f4ca0'}, {'type': 'function', 'name': 'MesEncodeIncrementalHandleCreate', 'address': '0x7ffb3d3f4600'}, {'type': 'function', 'name': 'MesHandleFree', 'address': '0x7ffb3d3f6dd0'}, {'type': 'function', 'name': 'MesIncrementalHandleReset', 'address': '0x7ffb3d3f4740'}, {'type': 'function', 'name': 'MesInqProcEncodingId', 'address': '0x7ffb3d46ccc0'}, {'type': 'function', 'name': 'NDRCContextBinding', 'address': '0x7ffb3d3ca130'}, {'type': 'function', 'name': 'NDRCContextMarshall', 'address': '0x7ffb3d3c9dd0'}, {'type': 'function', 'name': 'NDRCContextUnmarshall', 'address': '0x7ffb3d4678f0'}, {'type': 'function', 'name': 'NDRSContextMarshall', 'address': '0x7ffb3d467df0'}, {'type': 'function', 'name': 'NDRSContextMarshall2', 'address': '0x7ffb3d3c9e70'}, {'type': 'function', 'name': 'NDRSContextMarshallEx', 'address': '0x7ffb3d467e60'}, {'type': 'function', 'name': 'NDRSContextUnmarshall', 'address': '0x7ffb3d467e80'}, {'type': 'function', 'name': 'NDRSContextUnmarshall2', 'address': '0x7ffb3d3cb780'}, {'type': 'function', 'name': 'NDRSContextUnmarshallEx', 'address': '0x7ffb3d467ed0'}, {'type': 'function', 'name': 'Ndr64AsyncClientCall', 'address': '0x7ffb3d483e80'}, {'type': 'function', 'name': 'Ndr64AsyncServerCall64', 'address': '0x7ffb3d4867f0'}, {'type': 'function', 'name': 'Ndr64AsyncServerCallAll', 'address': '0x7ffb3d47f240'}, {'type': 'function', 'name': 'Ndr64DcomAsyncClientCall', 'address': '0x7ffb3d46bff0'}, {'type': 'function', 'name': 'Ndr64DcomAsyncStubCall', 'address': '0x7ffb3d46c070'}, {'type': 'function', 'name': 'NdrAllocate', 'address': '0x7ffb3d46e160'}, {'type': 'function', 'name': 'NdrAsyncClientCall', 'address': '0x7ffb3d3a1aa0'}, {'type': 'function', 'name': 'NdrAsyncServerCall', 'address': '0x7ffb3d3a2550'}, {'type': 'function', 'name': 'NdrByteCountPointerBufferSize', 'address': '0x7ffb3d401ae0'}, {'type': 'function', 'name': 'NdrByteCountPointerFree', 'address': '0x7ffb3d402b60'}, {'type': 'function', 'name': 'NdrByteCountPointerMarshall', 'address': '0x7ffb3d4019d0'}, {'type': 'function', 'name': 'NdrByteCountPointerUnmarshall', 'address': '0x7ffb3d3ffab0'}, {'type': 'function', 'name': 'NdrCStdStubBuffer2_Release', 'address': '0x7ffb3d3fd1b0'}, {'type': 'function', 'name': 'NdrCStdStubBuffer_Release', 'address': '0x7ffb3d3fb740'}, {'type': 'function', 'name': 'NdrClearOutParameters', 'address': '0x7ffb3d3a2a30'}, {'type': 'function', 'name': 'NdrClientCall2', 'address': '0x7ffb3d3a11f0'}, {'type': 'function', 'name': 'NdrClientCall3', 'address': '0x7ffb3d483750'}, {'type': 'function', 'name': 'NdrClientContextMarshall', 'address': '0x7ffb3d468f50'}, {'type': 'function', 'name': 'NdrClientContextUnmarshall', 'address': '0x7ffb3d46b200'}, {'type': 'function', 'name': 'NdrClientInitialize', 'address': '0x7ffb3d3cccc0'}, {'type': 'function', 'name': 'NdrClientInitializeNew', 'address': '0x7ffb3d3ccc80'}, {'type': 'function', 'name': 'NdrComplexArrayBufferSize', 'address': '0x7ffb3d3c14c0'}, {'type': 'function', 'name': 'NdrComplexArrayFree', 'address': '0x7ffb3d3becd0'}, {'type': 'function', 'name': 'NdrComplexArrayMarshall', 'address': '0x7ffb3d3c0190'}, {'type': 'function', 'name': 'NdrComplexArrayMemorySize', 'address': '0x7ffb3d3f9bc0'}, {'type': 'function', 'name': 'NdrComplexArrayUnmarshall', 'address': '0x7ffb3d3c5f40'}, {'type': 'function', 'name': 'NdrComplexStructBufferSize', 'address': '0x7ffb3d3c3f60'}, {'type': 'function', 'name': 'NdrComplexStructFree', 'address': '0x7ffb3d3c82c0'}, {'type': 'function', 'name': 'NdrComplexStructMarshall', 'address': '0x7ffb3d3c2f20'}, {'type': 'function', 'name': 'NdrComplexStructMemorySize', 'address': '0x7ffb3d3c4ce0'}, {'type': 'function', 'name': 'NdrComplexStructUnmarshall', 'address': '0x7ffb3d3c1e80'}, {'type': 'function', 'name': 'NdrConformantArrayBufferSize', 'address': '0x7ffb3d3bfa30'}, {'type': 'function', 'name': 'NdrConformantArrayFree', 'address': '0x7ffb3d3fe720'}, {'type': 'function', 'name': 'NdrConformantArrayMarshall', 'address': '0x7ffb3d3bf930'}, {'type': 'function', 'name': 'NdrConformantArrayMemorySize', 'address': '0x7ffb3d3f8e00'}, {'type': 'function', 'name': 'NdrConformantArrayUnmarshall', 'address': '0x7ffb3d3c5aa0'}, {'type': 'function', 'name': 'NdrConformantStringBufferSize', 'address': '0x7ffb3d3cd750'}, {'type': 'function', 'name': 'NdrConformantStringMarshall', 'address': '0x7ffb3d3cc330'}, {'type': 'function', 'name': 'NdrConformantStringMemorySize', 'address': '0x7ffb3d3f8c30'}, {'type': 'function', 'name': 'NdrConformantStringUnmarshall', 'address': '0x7ffb3d3b2dc0'}, {'type': 'function', 'name': 'NdrConformantStructBufferSize', 'address': '0x7ffb3d3cd580'}, {'type': 'function', 'name': 'NdrConformantStructFree', 'address': '0x7ffb3d4689e0'}, {'type': 'function', 'name': 'NdrConformantStructMarshall', 'address': '0x7ffb3d3ca170'}, {'type': 'function', 'name': 'NdrConformantStructMemorySize', 'address': '0x7ffb3d3f8510'}, {'type': 'function', 'name': 'NdrConformantStructUnmarshall', 'address': '0x7ffb3d3c7e40'}, {'type': 'function', 'name': 'NdrConformantVaryingArrayBufferSize', 'address': '0x7ffb3d3f9230'}, {'type': 'function', 'name': 'NdrConformantVaryingArrayFree', 'address': '0x7ffb3d405480'}, {'type': 'function', 'name': 'NdrConformantVaryingArrayMarshall', 'address': '0x7ffb3d3f90e0'}, {'type': 'function', 'name': 'NdrConformantVaryingArrayMemorySize', 'address': '0x7ffb3d46f200'}, {'type': 'function', 'name': 'NdrConformantVaryingArrayUnmarshall', 'address': '0x7ffb3d3f8f20'}, {'type': 'function', 'name': 'NdrConformantVaryingStructBufferSize', 'address': '0x7ffb3d469fa0'}, {'type': 'function', 'name': 'NdrConformantVaryingStructFree', 'address': '0x7ffb3d468a50'}, {'type': 'function', 'name': 'NdrConformantVaryingStructMarshall', 'address': '0x7ffb3d468fa0'}, {'type': 'function', 'name': 'NdrConformantVaryingStructMemorySize', 'address': '0x7ffb3d46f250'}, {'type': 'function', 'name': 'NdrConformantVaryingStructUnmarshall', 'address': '0x7ffb3d46b260'}, {'type': 'function', 'name': 'NdrContextHandleInitialize', 'address': '0x7ffb3d3cc210'}, {'type': 'function', 'name': 'NdrContextHandleSize', 'address': '0x7ffb3d46a0c0'}, {'type': 'function', 'name': 'NdrConvert', 'address': '0x7ffb3d471b60'}, {'type': 'function', 'name': 'NdrConvert2', 'address': '0x7ffb3d471c80'}, {'type': 'function', 'name': 'NdrCorrelationFree', 'address': '0x7ffb3d4046d0'}, {'type': 'function', 'name': 'NdrCorrelationInitialize', 'address': '0x7ffb3d404d40'}, {'type': 'function', 'name': 'NdrCorrelationPass', 'address': '0x7ffb3d472020'}, {'type': 'function', 'name': 'NdrCreateServerInterfaceFromStub', 'address': '0x7ffb3d46c0f0'}, {'type': 'function', 'name': 'NdrDcomAsyncClientCall', 'address': '0x7ffb3d46c150'}, {'type': 'function', 'name': 'NdrDcomAsyncStubCall', 'address': '0x7ffb3d46c1d0'}, {'type': 'function', 'name': 'NdrDllCanUnloadNow', 'address': '0x7ffb3d3fb790'}, {'type': 'function', 'name': 'NdrDllGetClassObject', 'address': '0x7ffb3d3fb7e0'}, {'type': 'function', 'name': 'NdrDllRegisterProxy', 'address': '0x7ffb3d46c250'}, {'type': 'function', 'name': 'NdrDllUnregisterProxy', 'address': '0x7ffb3d46c2c0'}, {'type': 'function', 'name': 'NdrEncapsulatedUnionBufferSize', 'address': '0x7ffb3d407e70'}, {'type': 'function', 'name': 'NdrEncapsulatedUnionFree', 'address': '0x7ffb3d3fcd80'}, {'type': 'function', 'name': 'NdrEncapsulatedUnionMarshall', 'address': '0x7ffb3d3fa210'}, {'type': 'function', 'name': 'NdrEncapsulatedUnionMemorySize', 'address': '0x7ffb3d3f7db0'}, {'type': 'function', 'name': 'NdrEncapsulatedUnionUnmarshall', 'address': '0x7ffb3d408c70'}, {'type': 'function', 'name': 'NdrFixedArrayBufferSize', 'address': '0x7ffb3d3fdcd0'}, {'type': 'function', 'name': 'NdrFixedArrayFree', 'address': '0x7ffb3d406530'}, {'type': 'function', 'name': 'NdrFixedArrayMarshall', 'address': '0x7ffb3d3fd200'}, {'type': 'function', 'name': 'NdrFixedArrayMemorySize', 'address': '0x7ffb3d3fe660'}, {'type': 'function', 'name': 'NdrFixedArrayUnmarshall', 'address': '0x7ffb3d3fdbe0'}, {'type': 'function', 'name': 'NdrFreeBuffer', 'address': '0x7ffb3d3fb650'}, {'type': 'function', 'name': 'NdrFullPointerFree', 'address': '0x7ffb3d3f3070'}, {'type': 'function', 'name': 'NdrFullPointerInsertRefId', 'address': '0x7ffb3d3affd0'}, {'type': 'function', 'name': 'NdrFullPointerQueryPointer', 'address': '0x7ffb3d3afde0'}, {'type': 'function', 'name': 'NdrFullPointerQueryRefId', 'address': '0x7ffb3d3b03a0'}, {'type': 'function', 'name': 'NdrFullPointerXlatFree', 'address': '0x7ffb3d3ecda0'}, {'type': 'function', 'name': 'NdrFullPointerXlatInit', 'address': '0x7ffb3d3b0110'}, {'type': 'function', 'name': 'NdrGetBaseInterfaceFromStub', 'address': '0x7ffb3d46c330'}, {'type': 'function', 'name': 'NdrGetBuffer', 'address': '0x7ffb3d3ccab0'}, {'type': 'function', 'name': 'NdrGetDcomProtocolVersion', 'address': '0x7ffb3d46c3a0'}, {'type': 'function', 'name': 'NdrGetSimpleTypeBufferAlignment', 'address': '0x7ffb3d472090'}, {'type': 'function', 'name': 'NdrGetSimpleTypeBufferSize', 'address': '0x7ffb3d4720b0'}, {'type': 'function', 'name': 'NdrGetSimpleTypeMemorySize', 'address': '0x7ffb3d4053b0'}, {'type': 'function', 'name': 'NdrGetTypeFlags', 'address': '0x7ffb3d405390'}, {'type': 'function', 'name': 'NdrGetUserMarshalInfo', 'address': '0x7ffb3d3f72e0'}, {'type': 'function', 'name': 'NdrInterfacePointerBufferSize', 'address': '0x7ffb3d46a120'}, {'type': 'function', 'name': 'NdrInterfacePointerFree', 'address': '0x7ffb3d468af0'}, {'type': 'function', 'name': 'NdrInterfacePointerMarshall', 'address': '0x7ffb3d469100'}, {'type': 'function', 'name': 'NdrInterfacePointerMemorySize', 'address': '0x7ffb3d46f440'}, {'type': 'function', 'name': 'NdrInterfacePointerUnmarshall', 'address': '0x7ffb3d46b810'}, {'type': 'function', 'name': 'NdrMapCommAndFaultStatus', 'address': '0x7ffb3d3f78c0'}, {'type': 'function', 'name': 'NdrMesProcEncodeDecode', 'address': '0x7ffb3d46ce20'}, {'type': 'function', 'name': 'NdrMesProcEncodeDecode2', 'address': '0x7ffb3d46d200'}, {'type': 'function', 'name': 'NdrMesProcEncodeDecode3', 'address': '0x7ffb3d3a36b0'}, {'type': 'function', 'name': 'NdrMesSimpleTypeAlignSize', 'address': '0x7ffb3d46d4f0'}, {'type': 'function', 'name': 'NdrMesSimpleTypeAlignSizeAll', 'address': '0x7ffb3d47b7a0'}, {'type': 'function', 'name': 'NdrMesSimpleTypeDecode', 'address': '0x7ffb3d46d560'}, {'type': 'function', 'name': 'NdrMesSimpleTypeDecodeAll', 'address': '0x7ffb3d47b860'}, {'type': 'function', 'name': 'NdrMesSimpleTypeEncode', 'address': '0x7ffb3d46d650'}, {'type': 'function', 'name': 'NdrMesSimpleTypeEncodeAll', 'address': '0x7ffb3d47b9e0'}, {'type': 'function', 'name': 'NdrMesTypeAlignSize', 'address': '0x7ffb3d3cd120'}, {'type': 'function', 'name': 'NdrMesTypeAlignSize2', 'address': '0x7ffb3d3c0cd0'}, {'type': 'function', 'name': 'NdrMesTypeAlignSize3', 'address': '0x7ffb3d3fdeb0'}, {'type': 'function', 'name': 'NdrMesTypeDecode', 'address': '0x7ffb3d46d730'}, {'type': 'function', 'name': 'NdrMesTypeDecode2', 'address': '0x7ffb3d3bfb10'}, {'type': 'function', 'name': 'NdrMesTypeDecode3', 'address': '0x7ffb3d3fe1b0'}, {'type': 'function', 'name': 'NdrMesTypeEncode', 'address': '0x7ffb3d46d880'}, {'type': 'function', 'name': 'NdrMesTypeEncode2', 'address': '0x7ffb3d3c0f90'}, {'type': 'function', 'name': 'NdrMesTypeEncode3', 'address': '0x7ffb3d3fdd50'}, {'type': 'function', 'name': 'NdrMesTypeFree2', 'address': '0x7ffb3d404b40'}, {'type': 'function', 'name': 'NdrMesTypeFree3', 'address': '0x7ffb3d405a20'}, {'type': 'function', 'name': 'NdrNonConformantStringBufferSize', 'address': '0x7ffb3d46a1c0'}, {'type': 'function', 'name': 'NdrNonConformantStringMarshall', 'address': '0x7ffb3d469160'}, {'type': 'function', 'name': 'NdrNonConformantStringMemorySize', 'address': '0x7ffb3d409070'}, {'type': 'function', 'name': 'NdrNonConformantStringUnmarshall', 'address': '0x7ffb3d408d90'}, {'type': 'function', 'name': 'NdrNonEncapsulatedUnionBufferSize', 'address': '0x7ffb3d3ccda0'}, {'type': 'function', 'name': 'NdrNonEncapsulatedUnionFree', 'address': '0x7ffb3d3fd000'}, {'type': 'function', 'name': 'NdrNonEncapsulatedUnionMarshall', 'address': '0x7ffb3d3fa260'}, {'type': 'function', 'name': 'NdrNonEncapsulatedUnionMemorySize', 'address': '0x7ffb3d3f8660'}, {'type': 'function', 'name': 'NdrNonEncapsulatedUnionUnmarshall', 'address': '0x7ffb3d3ca580'}, {'type': 'function', 'name': 'NdrNsGetBuffer', 'address': '0x7ffb3d418a30'}, {'type': 'function', 'name': 'NdrNsSendReceive', 'address': '0x7ffb3d418a30'}, {'type': 'function', 'name': 'NdrOleAllocate', 'address': '0x7ffb3d3fae30'}, {'type': 'function', 'name': 'NdrOleFree', 'address': '0x7ffb3d3fadf0'}, {'type': 'function', 'name': 'NdrOutInit', 'address': '0x7ffb3d4720d0'}, {'type': 'function', 'name': 'NdrPartialIgnoreClientBufferSize', 'address': '0x7ffb3d46a2d0'}, {'type': 'function', 'name': 'NdrPartialIgnoreClientMarshall', 'address': '0x7ffb3d469260'}, {'type': 'function', 'name': 'NdrPartialIgnoreServerInitialize', 'address': '0x7ffb3d472250'}, {'type': 'function', 'name': 'NdrPartialIgnoreServerUnmarshall', 'address': '0x7ffb3d46b8a0'}, {'type': 'function', 'name': 'NdrPointerBufferSize', 'address': '0x7ffb3d3cd390'}, {'type': 'function', 'name': 'NdrPointerFree', 'address': '0x7ffb3d3beba0'}, {'type': 'function', 'name': 'NdrPointerMarshall', 'address': '0x7ffb3d3c9760'}, {'type': 'function', 'name': 'NdrPointerMemorySize', 'address': '0x7ffb3d46f4e0'}, {'type': 'function', 'name': 'NdrPointerUnmarshall', 'address': '0x7ffb3d3bf260'}, {'type': 'function', 'name': 'NdrProxyErrorHandler', 'address': '0x7ffb3d472410'}, {'type': 'function', 'name': 'NdrProxyFreeBuffer', 'address': '0x7ffb3d46c400'}, {'type': 'function', 'name': 'NdrProxyGetBuffer', 'address': '0x7ffb3d46c450'}, {'type': 'function', 'name': 'NdrProxyInitialize', 'address': '0x7ffb3d46c4a0'}, {'type': 'function', 'name': 'NdrProxySendReceive', 'address': '0x7ffb3d46c520'}, {'type': 'function', 'name': 'NdrRangeUnmarshall', 'address': '0x7ffb3d3bda70'}, {'type': 'function', 'name': 'NdrRpcSmClientAllocate', 'address': '0x7ffb3d472b00'}, {'type': 'function', 'name': 'NdrRpcSmClientFree', 'address': '0x7ffb3d472b80'}, {'type': 'function', 'name': 'NdrRpcSmSetClientToOsf', 'address': '0x7ffb3d472c00'}, {'type': 'function', 'name': 'NdrRpcSsDefaultAllocate', 'address': '0x7ffb3d472c30'}, {'type': 'function', 'name': 'NdrRpcSsDefaultFree', 'address': '0x7ffb3d412790'}, {'type': 'function', 'name': 'NdrRpcSsDisableAllocate', 'address': '0x7ffb3d472c40'}, {'type': 'function', 'name': 'NdrRpcSsEnableAllocate', 'address': '0x7ffb3d472c80'}, {'type': 'function', 'name': 'NdrSendReceive', 'address': '0x7ffb3d418a50'}, {'type': 'function', 'name': 'NdrServerCall2', 'address': '0x7ffb3d3fec20'}, {'type': 'function', 'name': 'NdrServerCallAll', 'address': '0x7ffb3d3fcd30'}, {'type': 'function', 'name': 'NdrServerCallNdr64', 'address': '0x7ffb3d3a3400'}, {'type': 'function', 'name': 'NdrServerContextMarshall', 'address': '0x7ffb3d469290'}, {'type': 'function', 'name': 'NdrServerContextNewMarshall', 'address': '0x7ffb3d4692e0'}, {'type': 'function', 'name': 'NdrServerContextNewUnmarshall', 'address': '0x7ffb3d46b8d0'}, {'type': 'function', 'name': 'NdrServerContextUnmarshall', 'address': '0x7ffb3d46ba20'}, {'type': 'function', 'name': 'NdrServerInitialize', 'address': '0x7ffb3d3f5db0'}, {'type': 'function', 'name': 'NdrServerInitializeMarshall', 'address': '0x7ffb3d40bb30'}, {'type': 'function', 'name': 'NdrServerInitializeNew', 'address': '0x7ffb3d46e170'}, {'type': 'function', 'name': 'NdrServerInitializePartial', 'address': '0x7ffb3d46e220'}, {'type': 'function', 'name': 'NdrServerInitializeUnmarshall', 'address': '0x7ffb3d46e290'}, {'type': 'function', 'name': 'NdrSimpleStructBufferSize', 'address': '0x7ffb3d3c4bb0'}, {'type': 'function', 'name': 'NdrSimpleStructFree', 'address': '0x7ffb3d468b20'}, {'type': 'function', 'name': 'NdrSimpleStructMarshall', 'address': '0x7ffb3d3c4c20'}, {'type': 'function', 'name': 'NdrSimpleStructMemorySize', 'address': '0x7ffb3d3c57a0'}, {'type': 'function', 'name': 'NdrSimpleStructUnmarshall', 'address': '0x7ffb3d3c13a0'}, {'type': 'function', 'name': 'NdrSimpleTypeMarshall', 'address': '0x7ffb3d4189d0'}, {'type': 'function', 'name': 'NdrSimpleTypeUnmarshall', 'address': '0x7ffb3d3cc560'}, {'type': 'function', 'name': 'NdrStubCall2', 'address': '0x7ffb3d3bc080'}, {'type': 'function', 'name': 'NdrStubCall3', 'address': '0x7ffb3d3bb2a0'}, {'type': 'function', 'name': 'NdrStubForwardingFunction', 'address': '0x7ffb3d405dc0'}, {'type': 'function', 'name': 'NdrStubGetBuffer', 'address': '0x7ffb3d46c570'}, {'type': 'function', 'name': 'NdrStubInitialize', 'address': '0x7ffb3d46c5d0'}, {'type': 'function', 'name': 'NdrStubInitializeMarshall', 'address': '0x7ffb3d46c650'}, {'type': 'function', 'name': 'NdrTypeFlags', 'address': '0x7ffb3d496f70'}, {'type': 'function', 'name': 'NdrTypeFree', 'address': '0x7ffb3d3fcf40'}, {'type': 'function', 'name': 'NdrTypeMarshall', 'address': '0x7ffb3d3cdcd0'}, {'type': 'function', 'name': 'NdrTypeSize', 'address': '0x7ffb3d3cdca0'}, {'type': 'function', 'name': 'NdrTypeUnmarshall', 'address': '0x7ffb3d4064e0'}, {'type': 'function', 'name': 'NdrUnmarshallBasetypeInline', 'address': '0x7ffb3d3fd360'}, {'type': 'function', 'name': 'NdrUserMarshalBufferSize', 'address': '0x7ffb3d3c5850'}, {'type': 'function', 'name': 'NdrUserMarshalFree', 'address': '0x7ffb3d3fd110'}, {'type': 'function', 'name': 'NdrUserMarshalMarshall', 'address': '0x7ffb3d3cbfb0'}, {'type': 'function', 'name': 'NdrUserMarshalMemorySize', 'address': '0x7ffb3d3c8210'}, {'type': 'function', 'name': 'NdrUserMarshalSimpleTypeConvert', 'address': '0x7ffb3d471d50'}, {'type': 'function', 'name': 'NdrUserMarshalUnmarshall', 'address': '0x7ffb3d3e9fc0'}, {'type': 'function', 'name': 'NdrVaryingArrayBufferSize', 'address': '0x7ffb3d3f8200'}, {'type': 'function', 'name': 'NdrVaryingArrayFree', 'address': '0x7ffb3d407ca0'}, {'type': 'function', 'name': 'NdrVaryingArrayMarshall', 'address': '0x7ffb3d3f7f70'}, {'type': 'function', 'name': 'NdrVaryingArrayMemorySize', 'address': '0x7ffb3d3f8090'}, {'type': 'function', 'name': 'NdrVaryingArrayUnmarshall', 'address': '0x7ffb3d3f8320'}, {'type': 'function', 'name': 'NdrXmitOrRepAsBufferSize', 'address': '0x7ffb3d46a300'}, {'type': 'function', 'name': 'NdrXmitOrRepAsFree', 'address': '0x7ffb3d468b40'}, {'type': 'function', 'name': 'NdrXmitOrRepAsMarshall', 'address': '0x7ffb3d4693a0'}, {'type': 'function', 'name': 'NdrXmitOrRepAsMemorySize', 'address': '0x7ffb3d46f730'}, {'type': 'function', 'name': 'NdrXmitOrRepAsUnmarshall', 'address': '0x7ffb3d46ba90'}, {'type': 'function', 'name': 'NdrpClientCall2', 'address': '0x7ffb3d3a1220'}, {'type': 'function', 'name': 'NdrpCreateProxy', 'address': '0x7ffb3d46c6c0'}, {'type': 'function', 'name': 'NdrpCreateStub', 'address': '0x7ffb3d46c740'}, {'type': 'function', 'name': 'NdrpGetProcFormatString', 'address': '0x7ffb3d40f820'}, {'type': 'function', 'name': 'NdrpGetTypeFormatString', 'address': '0x7ffb3d40f8c0'}, {'type': 'function', 'name': 'NdrpGetTypeGenCookie', 'address': '0x7ffb3d40f960'}, {'type': 'function', 'name': 'NdrpMemoryIncrement', 'address': '0x7ffb3d3c4810'}, {'type': 'function', 'name': 'NdrpReleaseTypeFormatString', 'address': '0x7ffb3d46c7b0'}, {'type': 'function', 'name': 'NdrpReleaseTypeGenCookie', 'address': '0x7ffb3d40f920'}, {'type': 'function', 'name': 'NdrpVarVtOfTypeDesc', 'address': '0x7ffb3d40f7c0'}, {'type': 'function', 'name': 'RpcAsyncAbortCall', 'address': '0x7ffb3d3a28f0'}, {'type': 'function', 'name': 'RpcAsyncCancelCall', 'address': '0x7ffb3d408490'}, {'type': 'function', 'name': 'RpcAsyncCompleteCall', 'address': '0x7ffb3d3a2160'}, {'type': 'function', 'name': 'RpcAsyncGetCallStatus', 'address': '0x7ffb3d3ff510'}, {'type': 'function', 'name': 'RpcAsyncInitializeHandle', 'address': '0x7ffb3d3a1170'}, {'type': 'function', 'name': 'RpcAsyncRegisterInfo', 'address': '0x7ffb3d40bb60'}, {'type': 'function', 'name': 'RpcBindingBind', 'address': '0x7ffb3d3db760'}, {'type': 'function', 'name': 'RpcBindingCopy', 'address': '0x7ffb3d3db370'}, {'type': 'function', 'name': 'RpcBindingCreateA', 'address': '0x7ffb3d458950'}, {'type': 'function', 'name': 'RpcBindingCreateW', 'address': '0x7ffb3d3eceb0'}, {'type': 'function', 'name': 'RpcBindingFree', 'address': '0x7ffb3d3eaad0'}, {'type': 'function', 'name': 'RpcBindingFromStringBindingA', 'address': '0x7ffb3d407280'}, {'type': 'function', 'name': 'RpcBindingFromStringBindingW', 'address': '0x7ffb3d3e0600'}, {'type': 'function', 'name': 'RpcBindingInqAuthClientA', 'address': '0x7ffb3d40ce50'}, {'type': 'function', 'name': 'RpcBindingInqAuthClientExA', 'address': '0x7ffb3d40ce80'}, {'type': 'function', 'name': 'RpcBindingInqAuthClientExW', 'address': '0x7ffb3d3db660'}, {'type': 'function', 'name': 'RpcBindingInqAuthClientW', 'address': '0x7ffb3d3db630'}, {'type': 'function', 'name': 'RpcBindingInqAuthInfoA', 'address': '0x7ffb3d458ca0'}, {'type': 'function', 'name': 'RpcBindingInqAuthInfoExA', 'address': '0x7ffb3d458ce0'}, {'type': 'function', 'name': 'RpcBindingInqAuthInfoExW', 'address': '0x7ffb3d3db450'}, {'type': 'function', 'name': 'RpcBindingInqAuthInfoW', 'address': '0x7ffb3d44a460'}, {'type': 'function', 'name': 'RpcBindingInqObject', 'address': '0x7ffb3d3f6fd0'}, {'type': 'function', 'name': 'RpcBindingInqOption', 'address': '0x7ffb3d451960'}, {'type': 'function', 'name': 'RpcBindingReset', 'address': '0x7ffb3d44a4e0'}, {'type': 'function', 'name': 'RpcBindingServerFromClient', 'address': '0x7ffb3d402ab0'}, {'type': 'function', 'name': 'RpcBindingSetAuthInfoA', 'address': '0x7ffb3d458d90'}, {'type': 'function', 'name': 'RpcBindingSetAuthInfoExA', 'address': '0x7ffb3d458dc0'}, {'type': 'function', 'name': 'RpcBindingSetAuthInfoExW', 'address': '0x7ffb3d3ed030'}, {'type': 'function', 'name': 'RpcBindingSetAuthInfoW', 'address': '0x7ffb3d404910'}, {'type': 'function', 'name': 'RpcBindingSetObject', 'address': '0x7ffb3d401560'}, {'type': 'function', 'name': 'RpcBindingSetOption', 'address': '0x7ffb3d3ace50'}, {'type': 'function', 'name': 'RpcBindingToStringBindingA', 'address': '0x7ffb3d3a9b70'}, {'type': 'function', 'name': 'RpcBindingToStringBindingW', 'address': '0x7ffb3d3db570'}, {'type': 'function', 'name': 'RpcBindingUnbind', 'address': '0x7ffb3d403910'}, {'type': 'function', 'name': 'RpcBindingVectorFree', 'address': '0x7ffb3d3d0030'}, {'type': 'function', 'name': 'RpcCancelThread', 'address': '0x7ffb3d455150'}, {'type': 'function', 'name': 'RpcCancelThreadEx', 'address': '0x7ffb3d4551a0'}, {'type': 'function', 'name': 'RpcCertGeneratePrincipalNameA', 'address': '0x7ffb3d458eb0'}, {'type': 'function', 'name': 'RpcCertGeneratePrincipalNameW', 'address': '0x7ffb3d449b30'}, {'type': 'function', 'name': 'RpcCertMatchPrincipalName', 'address': '0x7ffb3d449920'}, {'type': 'function', 'name': 'RpcEpRegisterA', 'address': '0x7ffb3d40d250'}, {'type': 'function', 'name': 'RpcEpRegisterNoReplaceA', 'address': '0x7ffb3d459470'}, {'type': 'function', 'name': 'RpcEpRegisterNoReplaceW', 'address': '0x7ffb3d459560'}, {'type': 'function', 'name': 'RpcEpRegisterW', 'address': '0x7ffb3d3d10e0'}, {'type': 'function', 'name': 'RpcEpResolveBinding', 'address': '0x7ffb3d4066d0'}, {'type': 'function', 'name': 'RpcEpUnregister', 'address': '0x7ffb3d3d08b0'}, {'type': 'function', 'name': 'RpcErrorAddRecord', 'address': '0x7ffb3d458390'}, {'type': 'function', 'name': 'RpcErrorClearInformation', 'address': '0x7ffb3d4584d0'}, {'type': 'function', 'name': 'RpcErrorEndEnumeration', 'address': '0x7ffb3d407dc0'}, {'type': 'function', 'name': 'RpcErrorGetNextRecord', 'address': '0x7ffb3d405770'}, {'type': 'function', 'name': 'RpcErrorGetNumberOfRecords', 'address': '0x7ffb3d4584e0'}, {'type': 'function', 'name': 'RpcErrorLoadErrorInfo', 'address': '0x7ffb3d458510'}, {'type': 'function', 'name': 'RpcErrorResetEnumeration', 'address': '0x7ffb3d458550'}, {'type': 'function', 'name': 'RpcErrorSaveErrorInfo', 'address': '0x7ffb3d458580'}, {'type': 'function', 'name': 'RpcErrorStartEnumeration', 'address': '0x7ffb3d407050'}, {'type': 'function', 'name': 'RpcExceptionFilter', 'address': '0x7ffb3d3f7800'}, {'type': 'function', 'name': 'RpcFreeAuthorizationContext', 'address': '0x7ffb3d407e30'}, {'type': 'function', 'name': 'RpcGetAuthorizationContextForClient', 'address': '0x7ffb3d4067e0'}, {'type': 'function', 'name': 'RpcIfIdVectorFree', 'address': '0x7ffb3d4488f0'}, {'type': 'function', 'name': 'RpcIfInqId', 'address': '0x7ffb3d3a9a80'}, {'type': 'function', 'name': 'RpcImpersonateClient', 'address': '0x7ffb3d3f70b0'}, {'type': 'function', 'name': 'RpcImpersonateClient2', 'address': '0x7ffb3d3ea530'}, {'type': 'function', 'name': 'RpcImpersonateClientContainer', 'address': '0x7ffb3d448960'}, {'type': 'function', 'name': 'RpcMgmtEnableIdleCleanup', 'address': '0x7ffb3d4127a0'}, {'type': 'function', 'name': 'RpcMgmtEpEltInqBegin', 'address': '0x7ffb3d459600'}, {'type': 'function', 'name': 'RpcMgmtEpEltInqDone', 'address': '0x7ffb3d4598b0'}, {'type': 'function', 'name': 'RpcMgmtEpEltInqNextA', 'address': '0x7ffb3d459990'}, {'type': 'function', 'name': 'RpcMgmtEpEltInqNextW', 'address': '0x7ffb3d459e60'}, {'type': 'function', 'name': 'RpcMgmtEpUnregister', 'address': '0x7ffb3d459ed0'}, {'type': 'function', 'name': 'RpcMgmtInqComTimeout', 'address': '0x7ffb3d449cc0'}, {'type': 'function', 'name': 'RpcMgmtInqDefaultProtectLevel', 'address': '0x7ffb3d4519e0'}, {'type': 'function', 'name': 'RpcMgmtInqIfIds', 'address': '0x7ffb3d448a20'}, {'type': 'function', 'name': 'RpcMgmtInqServerPrincNameA', 'address': '0x7ffb3d4118a0'}, {'type': 'function', 'name': 'RpcMgmtInqServerPrincNameW', 'address': '0x7ffb3d411900'}, {'type': 'function', 'name': 'RpcMgmtInqStats', 'address': '0x7ffb3d448ae0'}, {'type': 'function', 'name': 'RpcMgmtIsServerListening', 'address': '0x7ffb3d40bab0'}, {'type': 'function', 'name': 'RpcMgmtSetAuthorizationFn', 'address': '0x7ffb3d459ef0'}, {'type': 'function', 'name': 'RpcMgmtSetCancelTimeout', 'address': '0x7ffb3d404890'}, {'type': 'function', 'name': 'RpcMgmtSetComTimeout', 'address': '0x7ffb3d3acde0'}, {'type': 'function', 'name': 'RpcMgmtSetServerStackSize', 'address': '0x7ffb3d406e40'}, {'type': 'function', 'name': 'RpcMgmtStatsVectorFree', 'address': '0x7ffb3d448c20'}, {'type': 'function', 'name': 'RpcMgmtStopServerListening', 'address': '0x7ffb3d409150'}, {'type': 'function', 'name': 'RpcMgmtWaitServerListen', 'address': '0x7ffb3d448c60'}, {'type': 'function', 'name': 'RpcNetworkInqProtseqsA', 'address': '0x7ffb3d458f10'}, {'type': 'function', 'name': 'RpcNetworkInqProtseqsW', 'address': '0x7ffb3d409440'}, {'type': 'function', 'name': 'RpcNetworkIsProtseqValidA', 'address': '0x7ffb3d458fb0'}, {'type': 'function', 'name': 'RpcNetworkIsProtseqValidW', 'address': '0x7ffb3d4092a0'}, {'type': 'function', 'name': 'RpcNsBindingInqEntryNameA', 'address': '0x7ffb3d459120'}, {'type': 'function', 'name': 'RpcNsBindingInqEntryNameW', 'address': '0x7ffb3d44a340'}, {'type': 'function', 'name': 'RpcObjectInqType', 'address': '0x7ffb3d448c90'}, {'type': 'function', 'name': 'RpcObjectSetInqFn', 'address': '0x7ffb3d448d00'}, {'type': 'function', 'name': 'RpcObjectSetType', 'address': '0x7ffb3d401330'}, {'type': 'function', 'name': 'RpcProtseqVectorFreeA', 'address': '0x7ffb3d4591a0'}, {'type': 'function', 'name': 'RpcProtseqVectorFreeW', 'address': '0x7ffb3d4093c0'}, {'type': 'function', 'name': 'RpcRaiseException', 'address': '0x7ffb3d3f76f0'}, {'type': 'function', 'name': 'RpcRevertContainerImpersonation', 'address': '0x7ffb3d448d40'}, {'type': 'function', 'name': 'RpcRevertToSelf', 'address': '0x7ffb3d3f9ed0'}, {'type': 'function', 'name': 'RpcRevertToSelfEx', 'address': '0x7ffb3d3fb5d0'}, {'type': 'function', 'name': 'RpcServerCompleteSecurityCallback', 'address': '0x7ffb3d448da0'}, {'type': 'function', 'name': 'RpcServerInqBindingHandle', 'address': '0x7ffb3d3ec930'}, {'type': 'function', 'name': 'RpcServerInqBindings', 'address': '0x7ffb3d3d0630'}, {'type': 'function', 'name': 'RpcServerInqBindingsEx', 'address': '0x7ffb3d412180'}, {'type': 'function', 'name': 'RpcServerInqCallAttributesA', 'address': '0x7ffb3d3e9e40'}, {'type': 'function', 'name': 'RpcServerInqCallAttributesW', 'address': '0x7ffb3d3ea280'}, {'type': 'function', 'name': 'RpcServerInqDefaultPrincNameA', 'address': '0x7ffb3d448e00'}, {'type': 'function', 'name': 'RpcServerInqDefaultPrincNameW', 'address': '0x7ffb3d3a63a0'}, {'type': 'function', 'name': 'RpcServerInqIf', 'address': '0x7ffb3d448e60'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupActivate', 'address': '0x7ffb3d3d02e0'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupClose', 'address': '0x7ffb3d3cfca0'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupCreateA', 'address': '0x7ffb3d448eb0'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupCreateW', 'address': '0x7ffb3d40abd0'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupDeactivate', 'address': '0x7ffb3d408ec0'}, {'type': 'function', 'name': 'RpcServerInterfaceGroupInqBindings', 'address': '0x7ffb3d4492a0'}, {'type': 'function', 'name': 'RpcServerListen', 'address': '0x7ffb3d405ea0'}, {'type': 'function', 'name': 'RpcServerRegisterAuthInfoA', 'address': '0x7ffb3d40d100'}, {'type': 'function', 'name': 'RpcServerRegisterAuthInfoW', 'address': '0x7ffb3d3a6a40'}, {'type': 'function', 'name': 'RpcServerRegisterIf', 'address': '0x7ffb3d4126c0'}, {'type': 'function', 'name': 'RpcServerRegisterIf2', 'address': '0x7ffb3d40d1b0'}, {'type': 'function', 'name': 'RpcServerRegisterIf3', 'address': '0x7ffb3d3acfa0'}, {'type': 'function', 'name': 'RpcServerRegisterIfEx', 'address': '0x7ffb3d4071e0'}, {'type': 'function', 'name': 'RpcServerSubscribeForNotification', 'address': '0x7ffb3d3fc790'}, {'type': 'function', 'name': 'RpcServerTestCancel', 'address': '0x7ffb3d3db7d0'}, {'type': 'function', 'name': 'RpcServerUnregisterIf', 'address': '0x7ffb3d3abf50'}, {'type': 'function', 'name': 'RpcServerUnregisterIfEx', 'address': '0x7ffb3d407a70'}, {'type': 'function', 'name': 'RpcServerUnsubscribeForNotification', 'address': '0x7ffb3d3fc690'}, {'type': 'function', 'name': 'RpcServerUseAllProtseqs', 'address': '0x7ffb3d4492f0'}, {'type': 'function', 'name': 'RpcServerUseAllProtseqsEx', 'address': '0x7ffb3d449320'}, {'type': 'function', 'name': 'RpcServerUseAllProtseqsIf', 'address': '0x7ffb3d4494e0'}, {'type': 'function', 'name': 'RpcServerUseAllProtseqsIfEx', 'address': '0x7ffb3d449530'}, {'type': 'function', 'name': 'RpcServerUseProtseqA', 'address': '0x7ffb3d40cf10'}, {'type': 'function', 'name': 'RpcServerUseProtseqEpA', 'address': '0x7ffb3d4591b0'}, {'type': 'function', 'name': 'RpcServerUseProtseqEpExA', 'address': '0x7ffb3d459210'}, {'type': 'function', 'name': 'RpcServerUseProtseqEpExW', 'address': '0x7ffb3d412360'}, {'type': 'function', 'name': 'RpcServerUseProtseqEpW', 'address': '0x7ffb3d3a7b50'}, {'type': 'function', 'name': 'RpcServerUseProtseqExA', 'address': '0x7ffb3d459240'}, {'type': 'function', 'name': 'RpcServerUseProtseqExW', 'address': '0x7ffb3d412520'}, {'type': 'function', 'name': 'RpcServerUseProtseqIfA', 'address': '0x7ffb3d459270'}, {'type': 'function', 'name': 'RpcServerUseProtseqIfExA', 'address': '0x7ffb3d4592c0'}, {'type': 'function', 'name': 'RpcServerUseProtseqIfExW', 'address': '0x7ffb3d411af0'}, {'type': 'function', 'name': 'RpcServerUseProtseqIfW', 'address': '0x7ffb3d411aa0'}, {'type': 'function', 'name': 'RpcServerUseProtseqW', 'address': '0x7ffb3d3a79f0'}, {'type': 'function', 'name': 'RpcServerYield', 'address': '0x7ffb3d455200'}, {'type': 'function', 'name': 'RpcSmAllocate', 'address': '0x7ffb3d472ce0'}, {'type': 'function', 'name': 'RpcSmClientFree', 'address': '0x7ffb3d472d30'}, {'type': 'function', 'name': 'RpcSmDestroyClientContext', 'address': '0x7ffb3d4079d0'}, {'type': 'function', 'name': 'RpcSmDisableAllocate', 'address': '0x7ffb3d472d50'}, {'type': 'function', 'name': 'RpcSmEnableAllocate', 'address': '0x7ffb3d472d80'}, {'type': 'function', 'name': 'RpcSmFree', 'address': '0x7ffb3d472db0'}, {'type': 'function', 'name': 'RpcSmGetThreadHandle', 'address': '0x7ffb3d472dd0'}, {'type': 'function', 'name': 'RpcSmSetClientAllocFree', 'address': '0x7ffb3d472e10'}, {'type': 'function', 'name': 'RpcSmSetThreadHandle', 'address': '0x7ffb3d472e30'}, {'type': 'function', 'name': 'RpcSmSwapClientAllocFree', 'address': '0x7ffb3d472e50'}, {'type': 'function', 'name': 'RpcSsAllocate', 'address': '0x7ffb3d472e70'}, {'type': 'function', 'name': 'RpcSsContextLockExclusive', 'address': '0x7ffb3d403ee0'}, {'type': 'function', 'name': 'RpcSsContextLockShared', 'address': '0x7ffb3d467ef0'}, {'type': 'function', 'name': 'RpcSsDestroyClientContext', 'address': '0x7ffb3d4079f0'}, {'type': 'function', 'name': 'RpcSsDisableAllocate', 'address': '0x7ffb3d472f00'}, {'type': 'function', 'name': 'RpcSsEnableAllocate', 'address': '0x7ffb3d472f10'}, {'type': 'function', 'name': 'RpcSsFree', 'address': '0x7ffb3d472f20'}, {'type': 'function', 'name': 'RpcSsGetContextBinding', 'address': '0x7ffb3d406920'}, {'type': 'function', 'name': 'RpcSsGetThreadHandle', 'address': '0x7ffb3d472f30'}, {'type': 'function', 'name': 'RpcSsSetClientAllocFree', 'address': '0x7ffb3d472f90'}, {'type': 'function', 'name': 'RpcSsSetThreadHandle', 'address': '0x7ffb3d473000'}, {'type': 'function', 'name': 'RpcSsSwapClientAllocFree', 'address': '0x7ffb3d4730d0'}, {'type': 'function', 'name': 'RpcStringBindingComposeA', 'address': '0x7ffb3d3a74a0'}, {'type': 'function', 'name': 'RpcStringBindingComposeW', 'address': '0x7ffb3d3ac3e0'}, {'type': 'function', 'name': 'RpcStringBindingParseA', 'address': '0x7ffb3d3a9bd0'}, {'type': 'function', 'name': 'RpcStringBindingParseW', 'address': '0x7ffb3d3dcc20'}, {'type': 'function', 'name': 'RpcStringFreeA', 'address': '0x7ffb3d4088b0'}, {'type': 'function', 'name': 'RpcStringFreeW', 'address': '0x7ffb3d3acd60'}, {'type': 'function', 'name': 'RpcTestCancel', 'address': '0x7ffb3d455250'}, {'type': 'function', 'name': 'RpcUserFree', 'address': '0x7ffb3d46e320'}, {'type': 'function', 'name': 'SimpleTypeAlignment', 'address': '0x7ffb3d4983d0'}, {'type': 'function', 'name': 'SimpleTypeBufferSize', 'address': '0x7ffb3d498310'}, {'type': 'function', 'name': 'SimpleTypeMemorySize', 'address': '0x7ffb3d497260'}, {'type': 'function', 'name': 'TowerConstruct', 'address': '0x7ffb3d3af0e0'}, {'type': 'function', 'name': 'TowerExplode', 'address': '0x7ffb3d3aeb60'}, {'type': 'function', 'name': 'UuidCompare', 'address': '0x7ffb3d401450'}, {'type': 'function', 'name': 'UuidCreate', 'address': '0x7ffb3d3f7990'}, {'type': 'function', 'name': 'UuidCreateNil', 'address': '0x7ffb3d40d1a0'}, {'type': 'function', 'name': 'UuidCreateSequential', 'address': '0x7ffb3d402fd0'}, {'type': 'function', 'name': 'UuidEqual', 'address': '0x7ffb3d3fc520'}, {'type': 'function', 'name': 'UuidFromStringA', 'address': '0x7ffb3d40cd40'}, {'type': 'function', 'name': 'UuidFromStringW', 'address': '0x7ffb3d3a9020'}, {'type': 'function', 'name': 'UuidHash', 'address': '0x7ffb3d3a3b80'}, {'type': 'function', 'name': 'UuidIsNil', 'address': '0x7ffb3d401600'}, {'type': 'function', 'name': 'UuidToStringA', 'address': '0x7ffb3d408bf0'}, {'type': 'function', 'name': 'UuidToStringW', 'address': '0x7ffb3d3a9600'}, {'type': 'function', 'name': 'pfnFreeRoutines', 'address': '0x7ffb3d492428'}, {'type': 'function', 'name': 'pfnMarshallRoutines', 'address': '0x7ffb3d492430'}, {'type': 'function', 'name': 'pfnSizeRoutines', 'address': '0x7ffb3d492438'}, {'type': 'function', 'name': 'pfnUnmarshallRoutines', 'address': '0x7ffb3d492440'}]
| 23,665
| 47,317
| 0.696577
| 3,441
| 47,330
| 9.544319
| 0.319093
| 0.201693
| 0.268924
| 0.056939
| 0.017143
| 0.013763
| 0
| 0
| 0
| 0
| 0
| 0.094879
| 0.070061
| 47,330
| 2
| 47,317
| 23,665
| 0.651293
| 0
| 0
| 0
| 0
| 0
| 0.696267
| 0.191777
| 0
| 0
| 0.163276
| 0
| 0
| 1
| 0
| false
| 0.5
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 8
|
46c56c94d64a24c3d8ad992807d4af84522e5b98
| 43,197
|
py
|
Python
|
boto3_type_annotations_with_docs/boto3_type_annotations/resource_groups/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 119
|
2018-12-01T18:20:57.000Z
|
2022-02-02T10:31:29.000Z
|
boto3_type_annotations_with_docs/boto3_type_annotations/resource_groups/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 15
|
2018-11-16T00:16:44.000Z
|
2021-11-13T03:44:18.000Z
|
boto3_type_annotations_with_docs/boto3_type_annotations/resource_groups/client.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 11
|
2019-05-06T05:26:51.000Z
|
2021-09-28T15:27:59.000Z
|
from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from botocore.paginate import Paginator
from botocore.waiter import Waiter
from typing import Union
from typing import List
class Client(BaseClient):
def can_paginate(self, operation_name: str = None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is ``create_foo``, and you\'d normally invoke the
operation as ``client.create_foo(**kwargs)``, if the
``create_foo`` operation can be paginated, you can use the
call ``client.get_paginator(\"create_foo\")``.
:return: ``True`` if the operation can be paginated,
``False`` otherwise.
"""
pass
def create_group(self, Name: str, ResourceQuery: Dict, Description: str = None, Tags: Dict = None) -> Dict:
"""
Creates a group with a specified name, description, and resource query.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroup>`_
**Request Syntax**
::
response = client.create_group(
Name='string',
Description='string',
ResourceQuery={
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
},
Tags={
'string': 'string'
}
)
**Response Syntax**
::
{
'Group': {
'GroupArn': 'string',
'Name': 'string',
'Description': 'string'
},
'ResourceQuery': {
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
},
'Tags': {
'string': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Group** *(dict) --*
A full description of the resource group after it is created.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Name** *(string) --*
The name of a resource group.
- **Description** *(string) --*
The description of the resource group.
- **ResourceQuery** *(dict) --*
The resource query associated with the group.
- **Type** *(string) --*
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{"Key":"Stage","Values":["Test","Deploy"]},{"Key":"Version","Values":["1","2"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{"Key":"Stage","Value":"Deploy"}`` , and ``{"Key":"Version","Value":"2"}``
* An S3 bucket that has the following two tags: {"Key":"Stage","Value":"Test"}, and {"Key":"Version","Value":"1"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{"Key":"Stage","Value":"Deploy"}`` .
* An RDS database that has the following two tags: ``{"Key":"Stage","Value":"Archived"}`` , and ``{"Key":"Version","Value":"4"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --*
The query that defines a group or a search.
- **Tags** *(dict) --*
The tags associated with the group.
- *(string) --*
- *(string) --*
:type Name: string
:param Name: **[REQUIRED]**
The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 128 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with ``AWS`` or ``aws`` ; these are reserved. A resource group name must be unique within your account.
:type Description: string
:param Description:
The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.
:type ResourceQuery: dict
:param ResourceQuery: **[REQUIRED]**
The resource query that determines which AWS resources are members of this group.
- **Type** *(string) --* **[REQUIRED]**
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"2\"}``
* An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Value\":\"Test\"}, and {\"Key\":\"Version\",\"Value\":\"1\"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` .
* An RDS database that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Archived\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"4\"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --* **[REQUIRED]**
The query that defines a group or a search.
:type Tags: dict
:param Tags:
The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- *(string) --*
- *(string) --*
:rtype: dict
:returns:
"""
pass
def delete_group(self, GroupName: str) -> Dict:
"""
Deletes a specified resource group. Deleting a resource group does not delete resources that are members of the group; it only deletes the group structure.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroup>`_
**Request Syntax**
::
response = client.delete_group(
GroupName='string'
)
**Response Syntax**
::
{
'Group': {
'GroupArn': 'string',
'Name': 'string',
'Description': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Group** *(dict) --*
A full description of the deleted resource group.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Name** *(string) --*
The name of a resource group.
- **Description** *(string) --*
The description of the resource group.
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group to delete.
:rtype: dict
:returns:
"""
pass
def generate_presigned_url(self, ClientMethod: str = None, Params: Dict = None, ExpiresIn: int = None, HttpMethod: str = None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to
``ClientMethod``.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid
for. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By
default, the http method is whatever is used in the method\'s model.
:returns: The presigned url
"""
pass
def get_group(self, GroupName: str) -> Dict:
"""
Returns information about a specified resource group.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroup>`_
**Request Syntax**
::
response = client.get_group(
GroupName='string'
)
**Response Syntax**
::
{
'Group': {
'GroupArn': 'string',
'Name': 'string',
'Description': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Group** *(dict) --*
A full description of the resource group.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Name** *(string) --*
The name of a resource group.
- **Description** *(string) --*
The description of the resource group.
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group.
:rtype: dict
:returns:
"""
pass
def get_group_query(self, GroupName: str) -> Dict:
"""
Returns the resource query associated with the specified resource group.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQuery>`_
**Request Syntax**
::
response = client.get_group_query(
GroupName='string'
)
**Response Syntax**
::
{
'GroupQuery': {
'GroupName': 'string',
'ResourceQuery': {
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
}
}
}
**Response Structure**
- *(dict) --*
- **GroupQuery** *(dict) --*
The resource query associated with the specified group.
- **GroupName** *(string) --*
The name of a resource group that is associated with a specific resource query.
- **ResourceQuery** *(dict) --*
The resource query which determines which AWS resources are members of the associated resource group.
- **Type** *(string) --*
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{"Key":"Stage","Values":["Test","Deploy"]},{"Key":"Version","Values":["1","2"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{"Key":"Stage","Value":"Deploy"}`` , and ``{"Key":"Version","Value":"2"}``
* An S3 bucket that has the following two tags: {"Key":"Stage","Value":"Test"}, and {"Key":"Version","Value":"1"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{"Key":"Stage","Value":"Deploy"}`` .
* An RDS database that has the following two tags: ``{"Key":"Stage","Value":"Archived"}`` , and ``{"Key":"Version","Value":"4"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --*
The query that defines a group or a search.
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group.
:rtype: dict
:returns:
"""
pass
def get_paginator(self, operation_name: str = None) -> Paginator:
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is ``create_foo``, and you\'d normally invoke the
operation as ``client.create_foo(**kwargs)``, if the
``create_foo`` operation can be paginated, you can use the
call ``client.get_paginator(\"create_foo\")``.
:raise OperationNotPageableError: Raised if the operation is not
pageable. You can use the ``client.can_paginate`` method to
check if an operation is pageable.
:rtype: L{botocore.paginate.Paginator}
:return: A paginator object.
"""
pass
def get_tags(self, Arn: str) -> Dict:
"""
Returns a list of tags that are associated with a resource group, specified by an ARN.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTags>`_
**Request Syntax**
::
response = client.get_tags(
Arn='string'
)
**Response Syntax**
::
{
'Arn': 'string',
'Tags': {
'string': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Arn** *(string) --*
The ARN of the tagged resource group.
- **Tags** *(dict) --*
The tags associated with the specified resource group.
- *(string) --*
- *(string) --*
:type Arn: string
:param Arn: **[REQUIRED]**
The ARN of the resource group for which you want a list of tags. The resource must exist within the account you are using.
:rtype: dict
:returns:
"""
pass
def get_waiter(self, waiter_name: str = None) -> Waiter:
"""
Returns an object that can wait for some condition.
:type waiter_name: str
:param waiter_name: The name of the waiter to get. See the waiters
section of the service docs for a list of available waiters.
:returns: The specified waiter object.
:rtype: botocore.waiter.Waiter
"""
pass
def list_group_resources(self, GroupName: str, Filters: List = None, MaxResults: int = None, NextToken: str = None) -> Dict:
"""
Returns a list of ARNs of resources that are members of a specified resource group.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResources>`_
**Request Syntax**
::
response = client.list_group_resources(
GroupName='string',
Filters=[
{
'Name': 'resource-type',
'Values': [
'string',
]
},
],
MaxResults=123,
NextToken='string'
)
**Response Syntax**
::
{
'ResourceIdentifiers': [
{
'ResourceArn': 'string',
'ResourceType': 'string'
},
],
'NextToken': 'string',
'QueryErrors': [
{
'ErrorCode': 'CLOUDFORMATION_STACK_INACTIVE'|'CLOUDFORMATION_STACK_NOT_EXISTING',
'Message': 'string'
},
]
}
**Response Structure**
- *(dict) --*
- **ResourceIdentifiers** *(list) --*
The ARNs and resource types of resources that are members of the group that you specified.
- *(dict) --*
The ARN of a resource, and its resource type.
- **ResourceArn** *(string) --*
The ARN of a resource.
- **ResourceType** *(string) --*
The resource type of a resource, such as ``AWS::EC2::Instance`` .
- **NextToken** *(string) --*
The NextToken value to include in a subsequent ``ListGroupResources`` request, to get more results.
- **QueryErrors** *(list) --*
A list of ``QueryError`` objects. Each error is an object that contains ``ErrorCode`` and ``Message`` structures. Possible values for ``ErrorCode`` are ``CLOUDFORMATION_STACK_INACTIVE`` and ``CLOUDFORMATION_STACK_NOT_EXISTING`` .
- *(dict) --*
A two-part error structure that can occur in ``ListGroupResources`` or ``SearchResources`` operations on CloudFormation stack-based queries. The error occurs if the CloudFormation stack on which the query is based either does not exist, or has a status that renders the stack inactive. A ``QueryError`` occurrence does not necessarily mean that AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.
- **ErrorCode** *(string) --*
Possible values are ``CLOUDFORMATION_STACK_INACTIVE`` and ``CLOUDFORMATION_STACK_NOT_EXISTING`` .
- **Message** *(string) --*
A message that explains the ``ErrorCode`` value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For ``CLOUDFORMATION_STACK_INACTIVE`` , the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as ``CREATE_FAILED`` .
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group.
:type Filters: list
:param Filters:
Filters, formatted as ResourceFilter objects, that you want to apply to a ListGroupResources operation.
* ``resource-type`` - Filter resources by their type. Specify up to five resource types in the format AWS::ServiceCode::ResourceType. For example, AWS::EC2::Instance, or AWS::S3::Bucket.
- *(dict) --*
A filter name and value pair that is used to obtain more specific results from a list of resources.
- **Name** *(string) --* **[REQUIRED]**
The name of the filter. Filter names are case-sensitive.
- **Values** *(list) --* **[REQUIRED]**
One or more filter values. Allowed filter values vary by resource filter name, and are case-sensitive.
- *(string) --*
:type MaxResults: integer
:param MaxResults:
The maximum number of group member ARNs that are returned in a single call by ListGroupResources, in paginated output. By default, this number is 50.
:type NextToken: string
:param NextToken:
The NextToken value that is returned in a paginated ListGroupResources request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.
:rtype: dict
:returns:
"""
pass
def list_groups(self, Filters: List = None, MaxResults: int = None, NextToken: str = None) -> Dict:
"""
Returns a list of existing resource groups in your account.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroups>`_
**Request Syntax**
::
response = client.list_groups(
Filters=[
{
'Name': 'resource-type',
'Values': [
'string',
]
},
],
MaxResults=123,
NextToken='string'
)
**Response Syntax**
::
{
'GroupIdentifiers': [
{
'GroupName': 'string',
'GroupArn': 'string'
},
],
'Groups': [
{
'GroupArn': 'string',
'Name': 'string',
'Description': 'string'
},
],
'NextToken': 'string'
}
**Response Structure**
- *(dict) --*
- **GroupIdentifiers** *(list) --*
A list of GroupIdentifier objects. Each identifier is an object that contains both the GroupName and the GroupArn.
- *(dict) --*
The ARN and group name of a group.
- **GroupName** *(string) --*
The name of a resource group.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Groups** *(list) --*
A list of resource groups.
- *(dict) --*
A resource group.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Name** *(string) --*
The name of a resource group.
- **Description** *(string) --*
The description of the resource group.
- **NextToken** *(string) --*
The NextToken value to include in a subsequent ``ListGroups`` request, to get more results.
:type Filters: list
:param Filters:
Filters, formatted as GroupFilter objects, that you want to apply to a ListGroups operation.
* ``resource-type`` - Filter groups by resource type. Specify up to five resource types in the format AWS::ServiceCode::ResourceType. For example, AWS::EC2::Instance, or AWS::S3::Bucket.
- *(dict) --*
A filter name and value pair that is used to obtain more specific results from a list of groups.
- **Name** *(string) --* **[REQUIRED]**
The name of the filter. Filter names are case-sensitive.
- **Values** *(list) --* **[REQUIRED]**
One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
- *(string) --*
:type MaxResults: integer
:param MaxResults:
The maximum number of resource group results that are returned by ListGroups in paginated output. By default, this number is 50.
:type NextToken: string
:param NextToken:
The NextToken value that is returned in a paginated ``ListGroups`` request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.
:rtype: dict
:returns:
"""
pass
def search_resources(self, ResourceQuery: Dict, MaxResults: int = None, NextToken: str = None) -> Dict:
"""
Returns a list of AWS resource identifiers that matches a specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResources>`_
**Request Syntax**
::
response = client.search_resources(
ResourceQuery={
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
},
MaxResults=123,
NextToken='string'
)
**Response Syntax**
::
{
'ResourceIdentifiers': [
{
'ResourceArn': 'string',
'ResourceType': 'string'
},
],
'NextToken': 'string',
'QueryErrors': [
{
'ErrorCode': 'CLOUDFORMATION_STACK_INACTIVE'|'CLOUDFORMATION_STACK_NOT_EXISTING',
'Message': 'string'
},
]
}
**Response Structure**
- *(dict) --*
- **ResourceIdentifiers** *(list) --*
The ARNs and resource types of resources that are members of the group that you specified.
- *(dict) --*
The ARN of a resource, and its resource type.
- **ResourceArn** *(string) --*
The ARN of a resource.
- **ResourceType** *(string) --*
The resource type of a resource, such as ``AWS::EC2::Instance`` .
- **NextToken** *(string) --*
The NextToken value to include in a subsequent ``SearchResources`` request, to get more results.
- **QueryErrors** *(list) --*
A list of ``QueryError`` objects. Each error is an object that contains ``ErrorCode`` and ``Message`` structures. Possible values for ``ErrorCode`` are ``CLOUDFORMATION_STACK_INACTIVE`` and ``CLOUDFORMATION_STACK_NOT_EXISTING`` .
- *(dict) --*
A two-part error structure that can occur in ``ListGroupResources`` or ``SearchResources`` operations on CloudFormation stack-based queries. The error occurs if the CloudFormation stack on which the query is based either does not exist, or has a status that renders the stack inactive. A ``QueryError`` occurrence does not necessarily mean that AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.
- **ErrorCode** *(string) --*
Possible values are ``CLOUDFORMATION_STACK_INACTIVE`` and ``CLOUDFORMATION_STACK_NOT_EXISTING`` .
- **Message** *(string) --*
A message that explains the ``ErrorCode`` value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For ``CLOUDFORMATION_STACK_INACTIVE`` , the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as ``CREATE_FAILED`` .
:type ResourceQuery: dict
:param ResourceQuery: **[REQUIRED]**
The search query, using the same formats that are supported for resource group definition.
- **Type** *(string) --* **[REQUIRED]**
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"2\"}``
* An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Value\":\"Test\"}, and {\"Key\":\"Version\",\"Value\":\"1\"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` .
* An RDS database that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Archived\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"4\"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --* **[REQUIRED]**
The query that defines a group or a search.
:type MaxResults: integer
:param MaxResults:
The maximum number of group member ARNs returned by ``SearchResources`` in paginated output. By default, this number is 50.
:type NextToken: string
:param NextToken:
The NextToken value that is returned in a paginated ``SearchResources`` request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.
:rtype: dict
:returns:
"""
pass
def tag(self, Arn: str, Tags: Dict) -> Dict:
"""
Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/Tag>`_
**Request Syntax**
::
response = client.tag(
Arn='string',
Tags={
'string': 'string'
}
)
**Response Syntax**
::
{
'Arn': 'string',
'Tags': {
'string': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Arn** *(string) --*
The ARN of the tagged resource.
- **Tags** *(dict) --*
The tags that have been added to the specified resource.
- *(string) --*
- *(string) --*
:type Arn: string
:param Arn: **[REQUIRED]**
The ARN of the resource to which to add tags.
:type Tags: dict
:param Tags: **[REQUIRED]**
The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- *(string) --*
- *(string) --*
:rtype: dict
:returns:
"""
pass
def untag(self, Arn: str, Keys: List) -> Dict:
"""
Deletes specified tags from a specified resource.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/Untag>`_
**Request Syntax**
::
response = client.untag(
Arn='string',
Keys=[
'string',
]
)
**Response Syntax**
::
{
'Arn': 'string',
'Keys': [
'string',
]
}
**Response Structure**
- *(dict) --*
- **Arn** *(string) --*
The ARN of the resource from which tags have been removed.
- **Keys** *(list) --*
The keys of tags that have been removed.
- *(string) --*
:type Arn: string
:param Arn: **[REQUIRED]**
The ARN of the resource from which to remove tags.
:type Keys: list
:param Keys: **[REQUIRED]**
The keys of the tags to be removed.
- *(string) --*
:rtype: dict
:returns:
"""
pass
def update_group(self, GroupName: str, Description: str = None) -> Dict:
"""
Updates an existing group with a new or changed description. You cannot update the name of a resource group.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroup>`_
**Request Syntax**
::
response = client.update_group(
GroupName='string',
Description='string'
)
**Response Syntax**
::
{
'Group': {
'GroupArn': 'string',
'Name': 'string',
'Description': 'string'
}
}
**Response Structure**
- *(dict) --*
- **Group** *(dict) --*
The full description of the resource group after it has been updated.
- **GroupArn** *(string) --*
The ARN of a resource group.
- **Name** *(string) --*
The name of a resource group.
- **Description** *(string) --*
The description of the resource group.
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group for which you want to update its description.
:type Description: string
:param Description:
The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.
:rtype: dict
:returns:
"""
pass
def update_group_query(self, GroupName: str, ResourceQuery: Dict) -> Dict:
"""
Updates the resource query of a group.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQuery>`_
**Request Syntax**
::
response = client.update_group_query(
GroupName='string',
ResourceQuery={
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
}
)
**Response Syntax**
::
{
'GroupQuery': {
'GroupName': 'string',
'ResourceQuery': {
'Type': 'TAG_FILTERS_1_0'|'CLOUDFORMATION_STACK_1_0',
'Query': 'string'
}
}
}
**Response Structure**
- *(dict) --*
- **GroupQuery** *(dict) --*
The resource query associated with the resource group after the update.
- **GroupName** *(string) --*
The name of a resource group that is associated with a specific resource query.
- **ResourceQuery** *(dict) --*
The resource query which determines which AWS resources are members of the associated resource group.
- **Type** *(string) --*
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{"Key":"Stage","Values":["Test","Deploy"]},{"Key":"Version","Values":["1","2"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{"Key":"Stage","Value":"Deploy"}`` , and ``{"Key":"Version","Value":"2"}``
* An S3 bucket that has the following two tags: {"Key":"Stage","Value":"Test"}, and {"Key":"Version","Value":"1"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{"Key":"Stage","Value":"Deploy"}`` .
* An RDS database that has the following two tags: ``{"Key":"Stage","Value":"Archived"}`` , and ``{"Key":"Version","Value":"4"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --*
The query that defines a group or a search.
:type GroupName: string
:param GroupName: **[REQUIRED]**
The name of the resource group for which you want to edit the query.
:type ResourceQuery: dict
:param ResourceQuery: **[REQUIRED]**
The resource query that determines which AWS resources are members of the resource group.
- **Type** *(string) --* **[REQUIRED]**
The type of the query. The valid values in this release are ``TAG_FILTERS_1_0`` and ``CLOUDFORMATION_STACK_1_0`` .
* ``TAG_FILTERS_1_0:`` * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API `GetResources <https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html>`__ operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches *any* of the specified values.
For example, consider the following sample query for resources that have two tags, ``Stage`` and ``Version`` , with two values each. (``[{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]`` ) The results of this query might include the following.
* An EC2 instance that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"2\"}``
* An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Value\":\"Test\"}, and {\"Key\":\"Version\",\"Value\":\"1\"}
The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.
* An EC2 instance that has only the following tag: ``{\"Key\":\"Stage\",\"Value\":\"Deploy\"}`` .
* An RDS database that has the following two tags: ``{\"Key\":\"Stage\",\"Value\":\"Archived\"}`` , and ``{\"Key\":\"Version\",\"Value\":\"4\"}``
* ``CLOUDFORMATION_STACK_1_0:`` * A JSON syntax that lets you specify a CloudFormation stack ARN.
- **Query** *(string) --* **[REQUIRED]**
The query that defines a group or a search.
:rtype: dict
:returns:
"""
pass
| 55.523136
| 607
| 0.564576
| 4,901
| 43,197
| 4.930218
| 0.072638
| 0.012416
| 0.012912
| 0.013409
| 0.832388
| 0.810744
| 0.797252
| 0.784174
| 0.775235
| 0.773828
| 0
| 0.00917
| 0.323425
| 43,197
| 777
| 608
| 55.594595
| 0.817594
| 0.819062
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0.4
| 0.175
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
20101e8ef8044781125aff7f8c4b4bf7865bcf43
| 116
|
py
|
Python
|
tools/Polygraphy/polygraphy/mod/__init__.py
|
KaliberAI/TensorRT
|
34a167558058bb801176430d37d38a46328ab0d2
|
[
"Apache-2.0"
] | 5,249
|
2019-06-17T17:20:34.000Z
|
2022-03-31T17:56:05.000Z
|
tools/Polygraphy/polygraphy/mod/__init__.py
|
KaliberAI/TensorRT
|
34a167558058bb801176430d37d38a46328ab0d2
|
[
"Apache-2.0"
] | 1,721
|
2019-06-17T18:13:29.000Z
|
2022-03-31T16:09:53.000Z
|
tools/Polygraphy/polygraphy/mod/__init__.py
|
KaliberAI/TensorRT
|
34a167558058bb801176430d37d38a46328ab0d2
|
[
"Apache-2.0"
] | 1,414
|
2019-06-18T04:01:17.000Z
|
2022-03-31T09:16:53.000Z
|
from polygraphy.mod.importer import *
from polygraphy.mod.exporter import *
from polygraphy.mod.util import version
| 29
| 39
| 0.827586
| 16
| 116
| 6
| 0.5
| 0.4375
| 0.53125
| 0.479167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103448
| 116
| 3
| 40
| 38.666667
| 0.923077
| 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
| 0
| 0
|
0
| 7
|
645b32ec7805ff523d8b68caaa72af2cef3ef070
| 167,732
|
py
|
Python
|
test/connectivity/acts/tests/google/tel/live/TelWifiVoiceTest.py
|
Keneral/atools
|
055e76621340c7dced125e9de56e2645b5e1cdfb
|
[
"Unlicense"
] | null | null | null |
test/connectivity/acts/tests/google/tel/live/TelWifiVoiceTest.py
|
Keneral/atools
|
055e76621340c7dced125e9de56e2645b5e1cdfb
|
[
"Unlicense"
] | null | null | null |
test/connectivity/acts/tests/google/tel/live/TelWifiVoiceTest.py
|
Keneral/atools
|
055e76621340c7dced125e9de56e2645b5e1cdfb
|
[
"Unlicense"
] | 1
|
2018-02-24T19:13:01.000Z
|
2018-02-24T19:13:01.000Z
|
#!/usr/bin/env python3.4
#
# Copyright 2016 - Google
#
# 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.
"""
Test Script for epdg RF shield box related tests.
"""
import time
from queue import Empty
from acts.test_utils.tel.TelephonyBaseTest import TelephonyBaseTest
from acts.test_utils.tel.tel_atten_utils import set_rssi
from acts.test_utils.tel.tel_defines import CELL_STRONG_RSSI_VALUE
from acts.test_utils.tel.tel_defines import CELL_WEAK_RSSI_VALUE
from acts.test_utils.tel.tel_defines import DIRECTION_MOBILE_ORIGINATED
from acts.test_utils.tel.tel_defines import DIRECTION_MOBILE_TERMINATED
from acts.test_utils.tel.tel_defines import GEN_3G
from acts.test_utils.tel.tel_defines import GEN_4G
from acts.test_utils.tel.tel_defines import INVALID_WIFI_RSSI
from acts.test_utils.tel.tel_defines import MAX_WAIT_TIME_CALL_DROP
from acts.test_utils.tel.tel_defines import MAX_WAIT_TIME_NW_SELECTION
from acts.test_utils.tel.tel_defines import MAX_RSSI_RESERVED_VALUE
from acts.test_utils.tel.tel_defines import MIN_RSSI_RESERVED_VALUE
from acts.test_utils.tel.tel_defines import NETWORK_SERVICE_DATA
from acts.test_utils.tel.tel_defines import NETWORK_SERVICE_VOICE
from acts.test_utils.tel.tel_defines import PRECISE_CALL_STATE_LISTEN_LEVEL_BACKGROUND
from acts.test_utils.tel.tel_defines import PRECISE_CALL_STATE_LISTEN_LEVEL_FOREGROUND
from acts.test_utils.tel.tel_defines import PRECISE_CALL_STATE_LISTEN_LEVEL_RINGING
from acts.test_utils.tel.tel_defines import RAT_LTE
from acts.test_utils.tel.tel_defines import RAT_IWLAN
from acts.test_utils.tel.tel_defines import RAT_WCDMA
from acts.test_utils.tel.tel_defines import WAIT_TIME_BETWEEN_REG_AND_CALL
from acts.test_utils.tel.tel_defines import WAIT_TIME_IN_CALL
from acts.test_utils.tel.tel_defines import WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON
from acts.test_utils.tel.tel_defines import WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED
from acts.test_utils.tel.tel_defines import WFC_MODE_CELLULAR_PREFERRED
from acts.test_utils.tel.tel_defines import WFC_MODE_DISABLED
from acts.test_utils.tel.tel_defines import WFC_MODE_WIFI_ONLY
from acts.test_utils.tel.tel_defines import WFC_MODE_WIFI_PREFERRED
from acts.test_utils.tel.tel_defines import WIFI_WEAK_RSSI_VALUE
from acts.test_utils.tel.tel_defines import EventNetworkCallback
from acts.test_utils.tel.tel_defines import NetworkCallbackAvailable
from acts.test_utils.tel.tel_defines import NetworkCallbackLost
from acts.test_utils.tel.tel_defines import SignalStrengthContainer
from acts.test_utils.tel.tel_test_utils import WifiUtils
from acts.test_utils.tel.tel_test_utils import ensure_network_generation
from acts.test_utils.tel.tel_test_utils import ensure_phones_default_state
from acts.test_utils.tel.tel_test_utils import ensure_wifi_connected
from acts.test_utils.tel.tel_test_utils import get_network_rat
from acts.test_utils.tel.tel_test_utils import get_phone_number
from acts.test_utils.tel.tel_test_utils import hangup_call
from acts.test_utils.tel.tel_test_utils import initiate_call
from acts.test_utils.tel.tel_test_utils import is_network_call_back_event_match
from acts.test_utils.tel.tel_test_utils import is_phone_in_call
from acts.test_utils.tel.tel_test_utils import is_phone_not_in_call
from acts.test_utils.tel.tel_test_utils import set_wfc_mode
from acts.test_utils.tel.tel_test_utils import toggle_airplane_mode
from acts.test_utils.tel.tel_test_utils import toggle_volte
from acts.test_utils.tel.tel_test_utils import wait_and_answer_call
from acts.test_utils.tel.tel_test_utils import wait_for_cell_data_connection
from acts.test_utils.tel.tel_test_utils import wait_for_droid_not_in_call
from acts.test_utils.tel.tel_test_utils import wait_for_wfc_disabled
from acts.test_utils.tel.tel_test_utils import wait_for_wfc_enabled
from acts.test_utils.tel.tel_test_utils import wait_for_wifi_data_connection
from acts.test_utils.tel.tel_test_utils import verify_http_connection
from acts.test_utils.tel.tel_voice_utils import is_phone_in_call_3g
from acts.test_utils.tel.tel_voice_utils import is_phone_in_call_csfb
from acts.test_utils.tel.tel_voice_utils import is_phone_in_call_iwlan
from acts.test_utils.tel.tel_voice_utils import is_phone_in_call_not_iwlan
from acts.test_utils.tel.tel_voice_utils import is_phone_in_call_volte
from acts.test_utils.tel.tel_voice_utils import phone_setup_voice_general
from acts.test_utils.tel.tel_voice_utils import phone_idle_3g
from acts.test_utils.tel.tel_voice_utils import phone_idle_csfb
from acts.test_utils.tel.tel_voice_utils import phone_idle_iwlan
from acts.test_utils.tel.tel_voice_utils import phone_idle_volte
from acts.utils import load_config
# Attenuator name
ATTEN_NAME_FOR_WIFI = 'wifi0'
ATTEN_NAME_FOR_CELL = 'cell0'
# WiFi RSSI settings for ROVE_IN test
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN = -60
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN = -70
# WiFi RSSI settings for ROVE_OUT test
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE = -60
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT = -70
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT = -90
# WiFi RSSI settings for HAND_IN test
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN = -80
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN = -50
# WiFi RSSI settings for HAND_OUT test
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT = -70
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT = -85
class TelWifiVoiceTest(TelephonyBaseTest):
def __init__(self, controllers):
TelephonyBaseTest.__init__(self, controllers)
self.tests = (
# WFC Call Routing tests.
# epdg, WFC, APM, WiFi strong
"test_call_epdg_wfc_wifi_only_wifi_strong_apm",
"test_call_epdg_wfc_wifi_preferred_wifi_strong_apm",
"test_call_epdg_wfc_cellular_preferred_wifi_strong_apm",
# epdg, WFC, APM, WiFi Absent
"test_call_epdg_wfc_wifi_only_wifi_absent_apm",
"test_call_epdg_wfc_wifi_preferred_wifi_absent_apm",
"test_call_epdg_wfc_cellular_preferred_wifi_absent_apm",
# epdg, WFC, APM, WiFi Disabled
"test_call_epdg_wfc_wifi_only_wifi_disabled_apm",
"test_call_epdg_wfc_wifi_preferred_wifi_disabled_apm",
"test_call_epdg_wfc_cellular_preferred_wifi_disabled_apm",
# epdg, WFC, cellular strong, WiFi strong
"test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_strong",
"test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_strong",
# epdg, WFC, cellular strong, WiFi weak
"test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_strong",
"test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_strong",
# epdg, WFC, cellular strong, WiFi Absent
"test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_strong",
"test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_strong",
# epdg, WFC, cellular strong, WiFi Disabled
"test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_strong",
"test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_strong",
# epdg, WFC, cellular weak, WiFi strong
"test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_weak",
# epdg, WFC, cellular weak, WiFi Absent=
"test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_weak",
"test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_weak",
# epdg, WFC, cellular weak, WiFi Disabled
"test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_weak",
"test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_weak",
# epdg, WiFI strong, WFC disabled
"test_call_epdg_wfc_disabled_wifi_strong_apm",
"test_call_epdg_wfc_disabled_wifi_strong_cellular_strong",
"test_call_epdg_wfc_disabled_wifi_strong_cellular_weak",
# WFC Idle-Mode Mobility
# Rove-in, Rove-out test
"test_rove_in_lte_wifi_preferred",
"test_rove_in_lte_wifi_only",
"test_rove_in_wcdma_wifi_preferred",
"test_rove_in_wcdma_wifi_only",
"test_rove_out_lte_wifi_preferred",
"test_rove_out_lte_wifi_only",
"test_rove_out_wcdma_wifi_preferred",
"test_rove_out_wcdma_wifi_only",
"test_rove_out_in_stress",
# WFC Active-Mode Mobility
# Hand-in, Hand-out test
"test_hand_out_wifi_only",
"test_hand_out_wifi_preferred",
"test_hand_out_in_wifi_preferred",
"test_hand_in_wifi_preferred",
"test_hand_in_out_wifi_preferred",
"test_hand_out_in_stress",
# WFC test with E4G disabled
"test_call_epdg_wfc_wifi_preferred_e4g_disabled",
"test_call_epdg_wfc_wifi_preferred_e4g_disabled_wifi_not_connected",
"test_call_epdg_wfc_wifi_preferred_e4g_disabled_leave_wifi_coverage",
# ePDG Active-Mode Mobility: Hand-in, Hand-out test
"test_hand_out_cellular_preferred",
"test_hand_in_cellular_preferred",
# epdg, WFC, cellular weak, WiFi strong
"test_call_epdg_wfc_wifi_only_wifi_strong_cellular_weak",
"test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_weak",
# epdg, WFC, cellular weak, WiFi weak
"test_call_epdg_wfc_wifi_only_wifi_weak_cellular_weak",
"test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_weak",
"test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_weak",
# epdg, WFC, cellular weak, WiFi Absent
"test_call_epdg_wfc_wifi_only_wifi_absent_cellular_weak",
# epdg, WFC, cellular weak, WiFi Disabled
"test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_weak",
# epdg, WFC, cellular absent, WiFi strong
"test_call_epdg_wfc_wifi_only_wifi_strong_cellular_absent",
"test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_absent",
"test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_absent",
# epdg, WFC, cellular absent, WiFi weak
"test_call_epdg_wfc_wifi_only_wifi_weak_cellular_absent",
"test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_absent",
"test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_absent",
# epdg, WFC, cellular absent, WiFi Absent
"test_call_epdg_wfc_wifi_only_wifi_absent_cellular_absent",
"test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_absent",
"test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_absent",
# epdg, WFC, cellular absent, WiFi Disabled
"test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_absent",
"test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_absent",
"test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_absent",
# epdg, WiFI strong, WFC disabled
"test_call_epdg_wfc_disabled_wifi_strong_cellular_absent",
# Below test fail now, because:
# 1. wifi weak not working now. (phone don't rove-in)
# 2. wifi-only mode not working now.
# epdg, WFC, APM, WiFi weak
"test_call_epdg_wfc_wifi_only_wifi_weak_apm",
"test_call_epdg_wfc_wifi_preferred_wifi_weak_apm",
"test_call_epdg_wfc_cellular_preferred_wifi_weak_apm",
# epdg, WFC, cellular strong, WiFi strong
"test_call_epdg_wfc_wifi_only_wifi_strong_cellular_strong",
# epdg, WFC, cellular strong, WiFi weak
"test_call_epdg_wfc_wifi_only_wifi_weak_cellular_strong",
# epdg, WFC, cellular strong, WiFi Absent
"test_call_epdg_wfc_wifi_only_wifi_absent_cellular_strong",
# epdg, WFC, cellular strong, WiFi Disabled
"test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_strong",
# RSSI monitoring
"test_rssi_monitoring", )
self.simconf = load_config(self.user_params["sim_conf_file"])
self.stress_test_number = int(self.user_params["stress_test_number"])
self.live_network_ssid = self.user_params["wifi_network_ssid"]
try:
self.live_network_pwd = self.user_params["wifi_network_pass"]
except KeyError:
self.live_network_pwd = None
self.attens = {}
for atten in self.attenuators:
self.attens[atten.path] = atten
def setup_class(self):
super().setup_class()
self.log.info("WFC phone: <{}> <{}>".format(self.android_devices[
0].serial, get_phone_number(self.log, self.android_devices[0])))
self.android_devices[
0].droid.telephonyStartTrackingSignalStrengthChange()
# Do WiFi RSSI calibration.
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI], 0,
MAX_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL], 0,
MAX_RSSI_RESERVED_VALUE)
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA,
toggle_apm_after_setting=True):
self.log.error("Setup_class: phone failed to select to LTE.")
return False
if not ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error("{} connect WiFI failed".format(
self.android_devices[0].serial))
return False
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
# Delay WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED after WiFi
# Connected to make sure WiFi RSSI reported value is correct.
time.sleep(WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED)
# Turn On Screen and delay WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON
# then get WiFi RSSI to avoid WiFi RSSI report -127(invalid value).
self.android_devices[0].droid.wakeUpNow()
time.sleep(WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON)
setattr(self, "wifi_rssi_with_no_atten",
self.android_devices[0].droid.wifiGetConnectionInfo()['rssi'])
if self.wifi_rssi_with_no_atten == INVALID_WIFI_RSSI:
self.log.error(
"Initial WiFi RSSI calibration value is wrong: -127.")
return False
self.log.info("WiFi RSSI calibration info: atten=0, RSSI={}".format(
self.wifi_rssi_with_no_atten))
ensure_phones_default_state(self.log, [self.android_devices[0]])
# Do Cellular RSSI calibration.
setattr(self, "cell_rssi_with_no_atten", self.android_devices[
0].droid.telephonyGetSignalStrength()[
SignalStrengthContainer.SIGNAL_STRENGTH_LTE_DBM])
self.log.info(
"Cellular RSSI calibration info: atten=0, RSSI={}".format(
self.cell_rssi_with_no_atten))
return True
def teardown_class(self):
super().teardown_class()
self.android_devices[
0].droid.telephonyStopTrackingSignalStrengthChange()
return True
def teardown_test(self):
super().teardown_test()
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI], 0,
MAX_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL], 0,
MAX_RSSI_RESERVED_VALUE)
return True
def _wfc_call_sequence(self, ads, mo_mt, initial_wifi_cellular_setup_func,
wfc_phone_setup_func, verify_wfc_initial_idle_func,
verify_wfc_in_call_state_func,
incall_wifi_cellular_setting_check_func,
expected_result):
"""_wfc_call_sequence
Args:
ads: list of android devices. This list should have 2 ad.
mo_mt: indicating this call sequence is MO or MT.
Valid input: DIRECTION_MOBILE_ORIGINATED and
DIRECTION_MOBILE_TERMINATED.
initial_wifi_cellular_setup_func: Initial WiFI router and Attenuator
setup function before phone setup.
wfc_phone_setup_func: WFC phone setup function.
verify_wfc_initial_idle_func: Initial WFC phone idle check function.
verify_wfc_in_call_state_func: WFC phone in call state check function.
incall_wifi_cellular_setting_check_func: During call, WiFI router and Attenuator
change setting and phone status check function.
(for test hand-in and hand-out)
expected_result: expected test result.
If expect call sequence finish, this value should be set to 'True'.
If expect call sequence not finish (eg. setup fail, call initial fail),
this value should be set to "exception string"
Current supported string include:
"initial_wifi_cellular_setup_func fail."
"wfc_phone_setup_func fail."
"phone_setup_voice_general fail."
"verify_wfc_initial_idle_func fail."
"initiate_call fail."
"wait_and_answer_call fail."
"verify_wfc_in_call_state_func fail."
"PhoneB not in call."
"verify_wfc_in_call_state_func fail after 30 seconds."
"PhoneB not in call after 30 seconds."
"incall_wifi_cellular_setting_func fail."
"incall_setting_check_func fail."
"hangup_call fail."
Returns:
if expected_result is True,
Return True if call sequence finish without exception. Otherwise False.
if expected_result is string,
Return True if expected exception happened. Otherwise False.
"""
class _WfcCallSequenceException(Exception):
pass
if (len(ads) != 2) or (mo_mt not in [
DIRECTION_MOBILE_ORIGINATED, DIRECTION_MOBILE_TERMINATED
]):
self.log.error("Invalid parameters.")
return False
if mo_mt == DIRECTION_MOBILE_ORIGINATED:
ad_caller = ads[0]
ad_callee = ads[1]
else:
ad_caller = ads[1]
ad_callee = ads[0]
caller_number = get_phone_number(self.log, ad_caller)
callee_number = get_phone_number(self.log, ad_callee)
self.log.info("-->Begin wfc_call_sequence: {} to {}<--".format(
caller_number, callee_number))
try:
# initial setup wifi router and RF
if initial_wifi_cellular_setup_func and not initial_wifi_cellular_setup_func(
):
raise _WfcCallSequenceException(
"initial_wifi_cellular_setup_func fail.")
if wfc_phone_setup_func and not wfc_phone_setup_func():
raise _WfcCallSequenceException("wfc_phone_setup_func fail.")
if not phone_setup_voice_general(self.log, ads[1]):
raise _WfcCallSequenceException(
"phone_setup_voice_general fail.")
time.sleep(WAIT_TIME_BETWEEN_REG_AND_CALL)
# Ensure idle status correct
if verify_wfc_initial_idle_func and not verify_wfc_initial_idle_func(
):
raise _WfcCallSequenceException(
"verify_wfc_initial_idle_func fail.")
# Make MO/MT call.
if not initiate_call(self.log, ad_caller, callee_number):
raise _WfcCallSequenceException("initiate_call fail.")
if not wait_and_answer_call(self.log, ad_callee, caller_number):
raise _WfcCallSequenceException("wait_and_answer_call fail.")
time.sleep(1)
# Check state, wait 30 seconds, check again.
if verify_wfc_in_call_state_func and not verify_wfc_in_call_state_func(
):
raise _WfcCallSequenceException(
"verify_wfc_in_call_state_func fail.")
if is_phone_not_in_call(self.log, ads[1]):
raise _WfcCallSequenceException("PhoneB not in call.")
time.sleep(WAIT_TIME_IN_CALL)
if verify_wfc_in_call_state_func and not verify_wfc_in_call_state_func(
):
raise _WfcCallSequenceException(
"verify_wfc_in_call_state_func fail after 30 seconds.")
if is_phone_not_in_call(self.log, ads[1]):
raise _WfcCallSequenceException(
"PhoneB not in call after 30 seconds.")
# in call change setting and check
if incall_wifi_cellular_setting_check_func and not incall_wifi_cellular_setting_check_func(
):
raise _WfcCallSequenceException(
"incall_wifi_cellular_setting_check_func fail.")
if is_phone_in_call(self.log, ads[0]):
# hangup call
if not hangup_call(self.log, ads[0]):
raise _WfcCallSequenceException("hangup_call fail.")
else:
# Call drop is unexpected if
# incall_wifi_cellular_setting_check_func is None
if incall_wifi_cellular_setting_check_func is None:
raise _WfcCallSequenceException("Unexpected call drop.")
except _WfcCallSequenceException as e:
if str(e) == expected_result:
self.log.info(
"Expected exception happened: <{}>, return True.".format(
e))
return True
else:
self.log.info(
"Unexpected exception happened: <{}>, return False.".format(
e))
return False
finally:
ensure_phones_default_state(self.log, [ads[0], ads[1]])
self.log.info("wfc_call_sequence finished, return {}".format(
expected_result is True))
return (expected_result is True)
def _phone_idle_iwlan(self):
return phone_idle_iwlan(self.log, self.android_devices[0])
def _phone_idle_not_iwlan(self):
return not self._phone_idle_iwlan()
def _phone_idle_volte(self):
return phone_idle_volte(self.log, self.android_devices[0])
def _phone_idle_csfb(self):
return phone_idle_csfb(self.log, self.android_devices[0])
def _phone_idle_3g(self):
return phone_idle_3g(self.log, self.android_devices[0])
def _phone_wait_for_not_wfc(self):
result = wait_for_wfc_disabled(self.log, self.android_devices[0],
MAX_WAIT_TIME_NW_SELECTION)
self.log.info("_phone_wait_for_not_wfc: WFC_disabled is {}".format(
result))
if not result:
return False
# TODO: b/26338343 Need to check Data RAT. Data RAT should not be iwlan.
return True
def _phone_wait_for_wfc(self):
result = wait_for_wfc_enabled(self.log, self.android_devices[0],
MAX_WAIT_TIME_NW_SELECTION)
self.log.info("_phone_wait_for_wfc: WFC_enabled is {}".format(result))
if not result:
return False
nw_type = get_network_rat(self.log, self.android_devices[0],
NETWORK_SERVICE_DATA)
if nw_type != RAT_IWLAN:
self.log.error(
"_phone_wait_for_wfc Data Rat is {}, expecting {}".format(
nw_type, RAT_IWLAN))
return False
return True
def _phone_wait_for_call_drop(self):
if not wait_for_droid_not_in_call(self.log, self.android_devices[0],
MAX_WAIT_TIME_CALL_DROP):
self.log.info("_phone_wait_for_call_drop: Call not drop.")
return False
return True
def _is_phone_in_call_iwlan(self):
return is_phone_in_call_iwlan(self.log, self.android_devices[0])
def _is_phone_in_call_not_iwlan(self):
return is_phone_in_call_not_iwlan(self.log, self.android_devices[0])
def _is_phone_not_in_call(self):
if is_phone_in_call(self.log, self.android_devices[0]):
self.log.info("{} in call.".format(self.android_devices[0].serial))
return False
self.log.info("{} not in call.".format(self.android_devices[0].serial))
return True
def _is_phone_in_call_volte(self):
return is_phone_in_call_volte(self.log, self.android_devices[0])
def _is_phone_in_call_3g(self):
return is_phone_in_call_3g(self.log, self.android_devices[0])
def _is_phone_in_call_csfb(self):
return is_phone_in_call_csfb(self.log, self.android_devices[0])
def _wfc_phone_setup(self, is_airplane_mode, wfc_mode, volte_mode=True):
toggle_airplane_mode(self.log, self.android_devices[0], False)
toggle_volte(self.log, self.android_devices[0], volte_mode)
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
return False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
toggle_airplane_mode(self.log, self.android_devices[0],
is_airplane_mode)
if not ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error("{} connect WiFI failed".format(
self.android_devices[0].serial))
return False
return True
def _wfc_phone_setup_cellular_absent(self, wfc_mode):
is_exception_happened = False
try:
if not toggle_airplane_mode(self.log, self.android_devices[0],
False):
raise Exception("Toggle APM failed.")
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
raise Exception("Ensure LTE failed.")
except Exception:
is_exception_happened = True
if not is_exception_happened:
self.log.error(
"_wfc_phone_setup_cellular_absent error:"
"Phone on LTE, expected Phone have no cellular signal")
return False
if not toggle_volte(self.log, self.android_devices[0], True):
self.log.error(
"_wfc_phone_setup_cellular_absent: toggle VoLTE fail.")
raise False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
if not ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error("{} connect WiFI failed".format(
self.android_devices[0].serial))
return False
return True
def _wfc_phone_setup_apm_wifi_only(self):
return self._wfc_phone_setup(True, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_apm_wifi_preferred(self):
return self._wfc_phone_setup(True, WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_apm_cellular_preferred(self):
return self._wfc_phone_setup(True, WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_apm_wfc_disabled(self):
return self._wfc_phone_setup(True, WFC_MODE_DISABLED)
def _wfc_phone_setup_wifi_only(self):
return self._wfc_phone_setup(False, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_wifi_preferred(self):
return self._wfc_phone_setup(False, WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_cellular_preferred(self):
return self._wfc_phone_setup(False, WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_wfc_disabled(self):
return self._wfc_phone_setup(False, WFC_MODE_DISABLED)
def _wfc_phone_setup_cellular_absent_wifi_only(self):
return self._wfc_phone_setup_cellular_absent(WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_cellular_absent_wifi_preferred(self):
return self._wfc_phone_setup_cellular_absent(WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_cellular_absent_cellular_preferred(self):
return self._wfc_phone_setup_cellular_absent(
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_cellular_absent_wfc_disabled(self):
return self._wfc_phone_setup_cellular_absent(WFC_MODE_DISABLED)
def _wfc_phone_setup_wifi_preferred_e4g_disabled(self):
return self._wfc_phone_setup(False, WFC_MODE_WIFI_PREFERRED, False)
def _wfc_phone_setup_wifi_absent(self,
is_airplane_mode,
wfc_mode,
volte_mode=True):
toggle_airplane_mode(self.log, self.android_devices[0], False)
toggle_volte(self.log, self.android_devices[0], volte_mode)
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
return False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
toggle_airplane_mode(self.log, self.android_devices[0],
is_airplane_mode)
if ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error(
"{} connect WiFI succeed, expected not succeed".format(
self.android_devices[0].serial))
return False
return True
def _wfc_phone_setup_cellular_absent_wifi_absent(self, wfc_mode):
is_exception_happened = False
try:
if not toggle_airplane_mode(self.log, self.android_devices[0],
False):
raise Exception("Toggle APM failed.")
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
raise Exception("Ensure LTE failed.")
except Exception:
is_exception_happened = True
if not is_exception_happened:
self.log.error(
"_wfc_phone_setup_cellular_absent_wifi_absent error:"
"Phone on LTE, expected Phone have no cellular signal")
return False
if not toggle_volte(self.log, self.android_devices[0], True):
self.log.error(
"_wfc_phone_setup_cellular_absent: toggle VoLTE fail.")
raise False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
if ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error(
"{} connect WiFI succeed, expected not succeed".format(
self.android_devices[0].serial))
return False
return True
def _wfc_phone_setup_apm_wifi_absent_wifi_only(self):
return self._wfc_phone_setup_wifi_absent(True, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_apm_wifi_absent_wifi_preferred(self):
return self._wfc_phone_setup_wifi_absent(True, WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_apm_wifi_absent_cellular_preferred(self):
return self._wfc_phone_setup_wifi_absent(True,
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_wifi_absent_wifi_only(self):
return self._wfc_phone_setup_wifi_absent(False, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_wifi_absent_wifi_preferred(self):
return self._wfc_phone_setup_wifi_absent(False,
WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_wifi_absent_cellular_preferred(self):
return self._wfc_phone_setup_wifi_absent(False,
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_cellular_absent_wifi_absent_wifi_only(self):
return self._wfc_phone_setup_cellular_absent_wifi_absent(
WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_cellular_absent_wifi_absent_wifi_preferred(self):
return self._wfc_phone_setup_cellular_absent_wifi_absent(
WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_cellular_absent_wifi_absent_cellular_preferred(self):
return self._wfc_phone_setup_cellular_absent_wifi_absent(
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_wifi_absent_wifi_preferred_e4g_disabled(self):
return self._wfc_phone_setup_wifi_absent(
False, WFC_MODE_WIFI_PREFERRED, False)
def _wfc_phone_setup_wifi_disabled(self, is_airplane_mode, wfc_mode):
toggle_airplane_mode(self.log, self.android_devices[0], False)
toggle_volte(self.log, self.android_devices[0], True)
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
return False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
toggle_airplane_mode(self.log, self.android_devices[0],
is_airplane_mode)
WifiUtils.wifi_toggle_state(self.log, self.android_devices[0], False)
return True
def _wfc_phone_setup_cellular_absent_wifi_disabled(self, wfc_mode):
is_exception_happened = False
try:
if not toggle_airplane_mode(self.log, self.android_devices[0],
False):
raise Exception("Toggle APM failed.")
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
raise Exception("Ensure LTE failed.")
except Exception:
is_exception_happened = True
if not is_exception_happened:
self.log.error(
"_wfc_phone_setup_cellular_absent_wifi_disabled error:"
"Phone on LTE, expected Phone have no cellular signal")
return False
if not toggle_volte(self.log, self.android_devices[0], True):
self.log.error(
"_wfc_phone_setup_cellular_absent: toggle VoLTE fail.")
raise False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
WifiUtils.wifi_toggle_state(self.log, self.android_devices[0], False)
return True
def _wfc_phone_setup_apm_wifi_disabled_wifi_only(self):
return self._wfc_phone_setup_wifi_disabled(True, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_apm_wifi_disabled_wifi_preferred(self):
return self._wfc_phone_setup_wifi_disabled(True,
WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_apm_wifi_disabled_cellular_preferred(self):
return self._wfc_phone_setup_wifi_disabled(True,
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_wifi_disabled_wifi_only(self):
return self._wfc_phone_setup_wifi_disabled(False, WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_wifi_disabled_wifi_preferred(self):
return self._wfc_phone_setup_wifi_disabled(False,
WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_wifi_disabled_cellular_preferred(self):
return self._wfc_phone_setup_wifi_disabled(False,
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_phone_setup_cellular_absent_wifi_disabled_wifi_only(self):
return self._wfc_phone_setup_cellular_absent_wifi_disabled(
WFC_MODE_WIFI_ONLY)
def _wfc_phone_setup_cellular_absent_wifi_disabled_wifi_preferred(self):
return self._wfc_phone_setup_cellular_absent_wifi_disabled(
WFC_MODE_WIFI_PREFERRED)
def _wfc_phone_setup_cellular_absent_wifi_disabled_cellular_preferred(
self):
return self._wfc_phone_setup_cellular_absent_wifi_disabled(
WFC_MODE_CELLULAR_PREFERRED)
def _wfc_set_wifi_strong_cell_strong(self):
self.log.info("--->Setting WiFi strong cell strong<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
return True
def _wfc_set_wifi_strong_cell_weak(self):
self.log.info("--->Setting WiFi strong cell weak<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, CELL_WEAK_RSSI_VALUE)
return True
def _wfc_set_wifi_strong_cell_absent(self):
self.log.info("--->Setting WiFi strong cell absent<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
return True
def _wfc_set_wifi_weak_cell_strong(self):
self.log.info("--->Setting WiFi weak cell strong<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, WIFI_WEAK_RSSI_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
return True
def _wfc_set_wifi_weak_cell_weak(self):
self.log.info("--->Setting WiFi weak cell weak<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, CELL_WEAK_RSSI_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, WIFI_WEAK_RSSI_VALUE)
return True
def _wfc_set_wifi_weak_cell_absent(self):
self.log.info("--->Setting WiFi weak cell absent<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, WIFI_WEAK_RSSI_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
return True
def _wfc_set_wifi_absent_cell_strong(self):
self.log.info("--->Setting WiFi absent cell strong<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
return True
def _wfc_set_wifi_absent_cell_weak(self):
self.log.info("--->Setting WiFi absent cell weak<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, CELL_WEAK_RSSI_VALUE)
return True
def _wfc_set_wifi_absent_cell_absent(self):
self.log.info("--->Setting WiFi absent cell absent<---")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
return True
""" Tests Begin """
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_strong_apm(self):
""" Test WFC MO MT, WiFI only mode, WIFI Strong, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_strong_apm(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI Strong, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_strong_apm(self):
""" Test WFC MO MT, cellular preferred mode, WIFI Strong, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_weak_apm(self):
""" Test WFC MO MT, WiFI only mode, WIFI weak, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_weak_apm(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI weak, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_weak_apm(self):
""" Test WFC MO MT, cellular preferred mode, WIFI weak, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_apm_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_absent_apm(self):
""" Test WFC MO MT, WiFI only mode, WIFI absent, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_absent_apm(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI absent, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_absent_apm(self):
""" Test WFC MO MT, cellular preferred mode, WIFI absent, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_apm_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_disabled_apm(self):
""" Test WFC MO MT, WiFI only mode, WIFI disabled, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_disabled_apm(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI disabled, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_disabled_apm(self):
""" Test WFC MO MT, cellular preferred mode, WIFI disabled, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_strong_cellular_strong(self):
""" Test WFC MO MT, WiFI only mode, WIFI strong, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_strong(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI strong, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_strong(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI strong, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_weak_cellular_strong(self):
""" Test WFC MO MT, WiFI only mode, WIFI weak, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PHoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_strong(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI weak, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_strong(self):
""" Test WFC MO MT, cellular preferred mode, WIFI strong, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_absent_cellular_strong(self):
""" Test WFC MO MT, WiFI only mode, WIFI absent, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_strong(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI absent, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_strong(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI absent, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_strong(self):
""" Test WFC MO MT, WiFI only mode, WIFI disabled, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PHoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_strong(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI disabled, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_strong(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI disabled, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_strong_cellular_weak(self):
""" Test WFC MO MT, WiFI only mode, WIFI strong, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_weak(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI strong, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_weak(self):
""" Test WFC MO MT, cellular preferred mode, WIFI strong, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_cellular_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_cellular_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_weak_cellular_weak(self):
""" Test WFC MO MT, WiFI only mode, WIFI weak, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_weak, self._wfc_phone_setup_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_weak, self._wfc_phone_setup_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_weak(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI weak, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_weak,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_weak,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_weak(self):
""" Test WFC MO MT, cellular preferred mode, WIFI weak, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PhoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_weak,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_weak,
self._wfc_phone_setup_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_absent_cellular_weak(self):
""" Test WFC MO MT, WiFI only mode, WIFI absent, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_weak(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI absent, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PhoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_weak(self):
""" Test WFC MO MT, cellular preferred mode, WIFI absent, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PhoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_weak,
self._wfc_phone_setup_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_weak(self):
""" Test WFC MO MT, WiFI only mode, WIFI disabled, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_weak(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI disabled, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PhoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_weak(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI disabled, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PhoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_in_call_not_iwlan, None,
True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_strong_cellular_absent(self):
""" Test WFC MO MT, WiFI only mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_strong_cellular_absent(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_strong_cellular_absent(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_weak_cellular_absent(self):
""" Test WFC MO MT, WiFI only mode, WIFI weak, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_only,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_weak_cellular_absent(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI weak, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_weak_cellular_absent(self):
""" Test WFC MO MT, cellular preferred mode, WIFI weak, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on WiFi.
Call from PhoneB to PhoneA, call should succeed, call should on WiFi.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_weak_cell_absent,
self._wfc_phone_setup_cellular_absent_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_absent_cellular_absent(self):
""" Test WFC MO MT, WiFI only mode, WIFI absent, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_absent_cellular_absent(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI absent, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_absent_cellular_absent(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI absent, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_absent_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_absent_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_only_wifi_disabled_cellular_absent(self):
""" Test WFC MO MT, WiFI only mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_wifi_only,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_wifi_disabled_cellular_absent(self):
""" Test WFC MO MT, WiFI preferred mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_wifi_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_cellular_preferred_wifi_disabled_cellular_absent(
self):
""" Test WFC MO MT, cellular preferred mode, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wifi_disabled_cellular_preferred,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_disabled_wifi_strong_cellular_strong(self):
""" Test WFC MO MT, WFC disabled, WIFI strong, Cellular strong
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_disabled_wifi_strong_cellular_weak(self):
""" Test WFC MO MT, WFC disabled, WIFI strong, Cellular weak
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should succeed, call should on Cellular.
Call from PhoneB to PHoneA, call should succeed, call should on Cellular.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_weak,
self._wfc_phone_setup_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_in_call_not_iwlan, None, True)
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_disabled_wifi_strong_cellular_absent(self):
""" Test WFC MO MT, WFC disabled, WIFI strong, Cellular absent
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
###########
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wfc_disabled,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_wfc_disabled,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_disabled_wifi_strong_apm(self):
""" Test WFC MO MT, WFC disabled, WIFI strong, Phone in APM
Set WiFi/Cellular network environment.
Make Sure PhoneA is set correct WFC parameters.
Make SUre PhoneB is able to make MO/MT call.
Call from PhoneA to PhoneB, call should fail.
Call from PhoneB to PhoneA, call should fail.
Returns:
True if pass; False if fail.
"""
ads = [self.android_devices[0], self.android_devices[1]]
mo_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_ORIGINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_not_in_call, None, "initiate_call fail.")
mt_result = self._wfc_call_sequence(
ads, DIRECTION_MOBILE_TERMINATED,
self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_apm_wfc_disabled, self._phone_idle_not_iwlan,
self._is_phone_not_in_call, None, "wait_and_answer_call fail.")
self.log.info("MO: {}, MT: {}".format(mo_result, mt_result))
return ((mo_result is True) and (mt_result is True))
def _rove_in_test(self, cellular_gen, wfc_mode):
"""Test utility for Rove-in Tests.
Cellular strong, WiFi RSSI < -100 dBm.
Setup Cellular network and wfc_mode, WiFi enabled but not associated.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10s,
PhoneA does not rove-in.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
Make WFC call.
"""
self._wfc_set_wifi_absent_cell_strong()
# ensure cellular rat, wfc mode, wifi not associated
toggle_airplane_mode(self.log, self.android_devices[0], False)
toggle_volte(self.log, self.android_devices[0], True)
if not ensure_network_generation(self.log, self.android_devices[0],
cellular_gen, voice_or_data=NETWORK_SERVICE_DATA):
self.log.error("_rove_in_test: {} failed to be in rat: {}".format(
self.android_devices[0].serial, cellular_rat))
return False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
if ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error(
"{} connect WiFI succeed, expected not succeed".format(
self.android_devices[0].serial))
return False
# set up wifi to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN, 5, 1)
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
if self._phone_idle_iwlan():
self.log.error("Phone should not report iwlan in WiFi {}Bm".format(
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN))
return False
# set up wifi to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN, 1, 1)
if not self._phone_idle_iwlan():
self.log.error("Phone should report iwlan in WiFi {}dBm".format(
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN))
return False
# make a wfc call.
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, None, None, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, None, True)
def _rove_out_test(self, cellular_gen, wfc_mode):
"""Test utility for Rove-out Tests.
Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
Setup Cellular network and wfc_mode, WiFi associated.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10s,
PhoneA does not rove-out.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
Make a call.
"""
# set up cell strong
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, MAX_RSSI_RESERVED_VALUE)
# set up wifi WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE)
# ensure cellular rat, wfc mode, wifi associated
toggle_airplane_mode(self.log, self.android_devices[0], False)
toggle_volte(self.log, self.android_devices[0], True)
if not ensure_network_generation(self.log, self.android_devices[0],
GEN_4G, voice_or_data=NETWORK_SERVICE_DATA):
self.log.error("_rove_out_test: {} failed to be in rat: {}".format(
self.android_devices[0].serial, cellular_rat))
return False
if not set_wfc_mode(self.log, self.android_devices[0], wfc_mode):
self.log.error("{} set WFC mode failed.".format(
self.android_devices[0].serial))
return False
if not ensure_wifi_connected(self.log, self.android_devices[0],
self.live_network_ssid,
self.live_network_pwd):
self.log.error("{} connect WiFI failed, expected succeed".format(
self.android_devices[0].serial))
return False
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
if not self._phone_idle_iwlan():
self.log.error("Phone failed to report iwlan in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE))
return False
# set up wifi to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT, 1, 1)
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
if self._phone_wait_for_not_wfc() or not self._phone_idle_iwlan():
self.log.error("Phone should not rove-out in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT))
return False
# set up wifi to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT, 2, 1)
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
if not self._phone_wait_for_not_wfc() or self._phone_idle_iwlan():
self.log.error("Phone should rove-out in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT))
return False
# make a call.
if wfc_mode == WFC_MODE_WIFI_ONLY:
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, None, None,
self._phone_idle_not_iwlan, self._is_phone_not_in_call, None,
"initiate_call fail.")
elif wfc_mode == WFC_MODE_WIFI_PREFERRED:
if cellular_gen == GEN_4G:
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, None, None,
self._phone_idle_volte, self._is_phone_in_call_volte, None,
True)
else:
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, None, None,
self._phone_idle_3g, self._is_phone_in_call_3g, None, True)
else:
return False
@TelephonyBaseTest.tel_test_wrap
def test_rove_out_in_stress(self):
"""WiFi Calling Rove out/in stress test.
Steps:
1. PhoneA on LTE, VoLTE enabled.
2. PhoneA WFC mode WiFi preferred, WiFi associated.
3. Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
4. Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
5. Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
6. Repeat Step 4~5.
Expected Results:
4. Phone should rove out.
5. Phone should rove in.
6. Stress test pass rate should be higher than pre-defined limit.
"""
self._wfc_set_wifi_strong_cell_strong()
if not self._wfc_phone_setup_wifi_preferred():
self.log.error("Setup WFC failed.")
return False
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
if not self._phone_idle_iwlan():
self.log.error("Phone failed to report iwlan in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE))
return False
total_iteration = self.stress_test_number
self.log.info(
"Rove_out/Rove_in stress test. Total iteration = {}.".format(
total_iteration))
current_iteration = 1
while (current_iteration <= total_iteration):
self.log.info(">----Current iteration = {}/{}----<".format(
current_iteration, total_iteration))
# set up wifi to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT, 2, 1)
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
if not self._phone_wait_for_not_wfc():
self.log.error("Phone should rove-out in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT))
break
self.log.info("Rove-out succeed.")
# set up wifi to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN, 2, 1)
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
if not self._phone_wait_for_wfc():
self.log.error("Phone should rove-in in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN))
break
self.log.info("Rove-in succeed.")
self.log.info(">----Iteration : {}/{} succeed.----<".format(
current_iteration, total_iteration))
current_iteration += 1
if current_iteration <= total_iteration:
self.log.info(">----Iteration : {}/{} failed.----<".format(
current_iteration, total_iteration))
return False
else:
return True
@TelephonyBaseTest.tel_test_wrap
def test_rove_in_out_stress(self):
"""WiFi Calling Rove in/out stress test.
Steps:
1. PhoneA on LTE, VoLTE enabled.
2. PhoneA WFC mode WiFi preferred, WiFi associated.
3. Cellular strong, WiFi RSSI weak.
4. Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
5. Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
6. Repeat Step 4~5.
Expected Results:
4. Phone should rove in.
5. Phone should rove out.
6. Stress test pass rate should be higher than pre-defined limit.
"""
self._wfc_set_wifi_weak_cell_strong()
# ensure cellular rat, wfc mode, wifi not associated
if not self._wfc_phone_setup_wifi_preferred():
self.log.error("Failed to setup for rove_in_out_stress")
return False
total_iteration = self.stress_test_number
self.log.info(
"Rove_in/Rove_out stress test. Total iteration = {}.".format(
total_iteration))
current_iteration = 1
while (current_iteration <= total_iteration):
self.log.info(">----Current iteration = {}/{}----<".format(
current_iteration, total_iteration))
# set up wifi to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN, 2, 1)
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
if not self._phone_wait_for_wfc():
self.log.error("Phone should rove-in in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN))
break
self.log.info("Rove-in succeed.")
# set up wifi to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT, 2, 1)
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
if not self._phone_wait_for_not_wfc():
self.log.error("Phone should rove-out in {}dBm.".format(
WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT))
break
self.log.info("Rove-out succeed.")
self.log.info(">----Iteration : {}/{} succeed.----<".format(
current_iteration, total_iteration))
current_iteration += 1
if current_iteration <= total_iteration:
self.log.info(">----Iteration : {}/{} failed.----<".format(
current_iteration, total_iteration))
return False
else:
return True
@TelephonyBaseTest.tel_test_wrap
def test_rove_in_lte_wifi_preferred(self):
""" Test WFC rove-in features.
PhoneA on LTE, VoLTE enabled.
PhoneA WFC mode WiFi preferred, WiFi enabled but not associated.
Cellular strong, WiFi RSSI < -100 dBm.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10s,
PhoneA does not rove-in.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
Make WFC call.
Returns:
True if pass; False if fail.
"""
return self._rove_in_test(GEN_4G, WFC_MODE_WIFI_PREFERRED)
@TelephonyBaseTest.tel_test_wrap
def test_rove_in_lte_wifi_only(self):
""" Test WFC rove-in features.
PhoneA on LTE, VoLTE enabled.
PhoneA WFC mode WiFi only, WiFi enabled but not associated.
Cellular strong, WiFi RSSI < -100 dBm.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10s,
PhoneA does not rove-in.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
Make WFC call.
Returns:
True if pass; False if fail.
"""
###########
return self._rove_in_test(GEN_4G, WFC_MODE_WIFI_ONLY)
@TelephonyBaseTest.tel_test_wrap
def test_rove_in_wcdma_wifi_preferred(self):
""" Test WFC rove-in features.
PhoneA on WCDMA, VoLTE enabled.
PhoneA WFC mode WiFi preferred, WiFi enabled but not associated.
Cellular strong, WiFi RSSI < -100 dBm.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10s,
PhoneA does not rove-in.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
Make WFC call.
Returns:
True if pass; False if fail.
"""
return self._rove_in_test(GEN_3G, WFC_MODE_WIFI_PREFERRED)
@TelephonyBaseTest.tel_test_wrap
def test_rove_in_wcdma_wifi_only(self):
""" Test WFC rove-in features.
PhoneA on WCDMA, VoLTE enabled.
PhoneA WFC mode WiFi only, WiFi enabled but not associated.
Cellular strong, WiFi RSSI < -100 dBm.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_NOT_ROVE_IN in 10s,
PhoneA does not rove-in.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_IN_TEST_PHONE_ROVE_IN in 10s,
PhoneA rove-in.
Make WFC call.
Returns:
True if pass; False if fail.
"""
###########
return self._rove_in_test(GEN_3G, WFC_MODE_WIFI_ONLY)
@TelephonyBaseTest.tel_test_wrap
def test_rove_out_lte_wifi_preferred(self):
""" Test WFC rove-out features.
PhoneA on LTE, VoLTE enabled.
PhoneA WFC mode WiFi preferred, WiFi associated.
Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10s,
PhoneA does not rove-out.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
Make a call, call should succeed by cellular VoLTE.
Returns:
True if pass; False if fail.
"""
return self._rove_out_test(GEN_4G, WFC_MODE_WIFI_PREFERRED)
@TelephonyBaseTest.tel_test_wrap
def test_rove_out_lte_wifi_only(self):
""" Test WFC rove-out features.
PhoneA on LTE, VoLTE enabled.
PhoneA WFC mode WiFi only, WiFi associated.
Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10s,
PhoneA does not rove-out.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
Make a call, call should fail.
Returns:
True if pass; False if fail.
"""
###########
return self._rove_out_test(GEN_4G, WFC_MODE_WIFI_ONLY)
@TelephonyBaseTest.tel_test_wrap
def test_rove_out_wcdma_wifi_preferred(self):
""" Test WFC rove-out features.
PhoneA on WCDMA, VoLTE enabled.
PhoneA WFC mode WiFi preferred, WiFi associated.
Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10s,
PhoneA does not rove-out.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
Make a call, call should succeed by cellular 3g.
Returns:
True if pass; False if fail.
"""
return self._rove_out_test(GEN_3G, WFC_MODE_WIFI_PREFERRED)
@TelephonyBaseTest.tel_test_wrap
def test_rove_out_wcdma_wifi_only(self):
""" Test WFC rove-out features.
PhoneA on WCDMA, VoLTE enabled.
PhoneA WFC mode WiFi only, WiFi associated.
Cellular strong, WiFi RSSI WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_INITIAL_STATE.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_NOT_ROVE_OUT in 10s,
PhoneA does not rove-out.
Set WiFI RSSI to WIFI_RSSI_FOR_ROVE_OUT_TEST_PHONE_ROVE_OUT in 10s,
PhoneA rove-out.
Make a call, call should fail.
Returns:
True if pass; False if fail.
"""
###########
return self._rove_out_test(GEN_3G, WFC_MODE_WIFI_ONLY)
def _increase_wifi_rssi_check_phone_hand_in(self):
"""Private Test utility for hand_in test.
Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN in 10s.
PhoneA should connect to WiFi and have data on WiFi.
PhoneA should not hand-in to iwlan.
Increase WiFi RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s.
PhoneA should hand-in to iwlan.
PhoneA call should remain active.
"""
# Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN in 10s
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN, 5, 1)
# Make sure WiFI connected and data OK.
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
# Make sure phone not hand in to iwlan.
if self._phone_wait_for_wfc():
self.log.error("Phone hand-in to wfc.")
return False
# Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN, 2, 1)
# Make sure phone hand in to iwlan.
if not self._phone_wait_for_wfc():
self.log.error("Phone failed to hand-in to wfc.")
return False
if self._is_phone_not_in_call():
self.log.error("Phone call dropped.")
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_in_wifi_preferred(self):
"""WiFi Hand-In Threshold - WiFi Preferred
PhoneA on LTE, VoLTE enabled, WFC WiFi preferred. WiFI not associated.
Cellular Strong, WiFi <-100 dBm
Call from PhoneA to PhoneB, PhoneA should be on VoLTE.
Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN in 10s.
PhoneA should connect to WiFi and have data on WiFi.
PhoneA should not hand-in to iwlan.
Increase WiFi RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s.
PhoneA should hand-in to iwlan.
PhoneA call should remain active.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_volte, self._is_phone_in_call_volte,
self._increase_wifi_rssi_check_phone_hand_in, True)
def _increase_wifi_rssi_hand_in_and_decrease_wifi_rssi_hand_out(self):
if not self._increase_wifi_rssi_check_phone_hand_in():
return False
if not self._decrease_wifi_rssi_check_phone_hand_out():
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_in_out_wifi_preferred(self):
"""WiFi Hand-In-Out Threshold - WiFi Preferred
PhoneA on LTE, VoLTE enabled, WFC WiFi preferred. WiFI not associated.
Cellular Strong, WiFi <-100 dBm
Call from PhoneA to PhoneB, PhoneA should be on VoLTE.
Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN in 10s.
PhoneA should connect to WiFi and have data on WiFi.
PhoneA should not hand-in to iwlan.
Increase WiFi RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s.
PhoneA should hand-in to iwlan.
PhoneA call should remain active.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT, in 10s.
PhoneA should still be in call.
PhoneA should not hand-out, PhoneA should have data on WiFi.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT, in 10s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_preferred,
self._phone_idle_volte, self._is_phone_in_call_volte,
self._increase_wifi_rssi_hand_in_and_decrease_wifi_rssi_hand_out,
True)
def _decrease_lte_rssi_check_phone_not_hand_in(self):
"""Private Test utility for hand_in test.
Decrease Cellular RSSI to CELL_WEAK_RSSI_VALUE in 30s.
PhoneA should not hand-in to WFC.
PhoneA should either drop or hands over to 3g/2g.
"""
# Decrease LTE RSSI to CELL_WEAK_RSSI_VALUE in 30 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, CELL_WEAK_RSSI_VALUE, 1, 1)
# Make sure phone not hand in to iwlan.
if self._phone_wait_for_wfc():
self.log.error("Phone hand-in to wfc.")
return False
if is_phone_not_in_call(self.log, self.android_devices[0]):
self.log.info("Call drop.")
return True
if self._is_phone_in_call_csfb():
self.log.info("Call hands over to 2g/3g.")
return True
return False
@TelephonyBaseTest.tel_test_wrap
def test_hand_in_cellular_preferred(self):
"""WiFi Hand-In Not Attempted - Cellular Preferred
PhoneA on LTE, VoLTE enabled, WFC cellular preferred. WiFI associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on VoLTE.
Decrease Cellular RSSI to CELL_WEAK_RSSI_VALUE in 30s.
PhoneA should not hand-in to WFC.
PhoneA should either drop or hands over to 3g/2g.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_cellular_preferred, self._phone_idle_volte,
self._is_phone_in_call_volte,
self._decrease_lte_rssi_check_phone_not_hand_in, True)
def _decrease_wifi_rssi_check_phone_hand_out(self):
"""Private Test utility for hand_out test.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT in 10s.
PhoneA should still be in call.
PhoneA should not hand-out, PhoneA should have data on WiFi.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
PhoneA should have data on WiFi.
"""
# Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT
# in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
# Make sure phone not hand-out, not drop call
if self._phone_wait_for_not_wfc():
self.log.error("Phone should not hand out.")
return False
if self._is_phone_not_in_call():
self.log.error("Phone should not drop call.")
return False
# Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT
# in 10 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
# Make sure phone hand-out, not drop call
if not self._phone_wait_for_not_wfc():
self.log.error("Phone should hand out.")
return False
if not self._is_phone_in_call_volte():
self.log.error("Phone should be in volte call.")
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_out_wifi_preferred(self):
"""WiFi Hand-Out Threshold - WiFi Preferred
PhoneA on LTE, VoLTE enabled, WFC WiFi preferred, WiFi associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT in 10s.
PhoneA should still be in call.
PhoneA should not hand-out, PhoneA should have data on WiFi.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
PhoneA should have data on WiFi.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan,
self._decrease_wifi_rssi_check_phone_hand_out, True)
def _decrease_wifi_rssi_hand_out_and_increase_wifi_rssi_hand_in(self):
if not self._decrease_wifi_rssi_check_phone_hand_out():
return False
if not self._increase_wifi_rssi_check_phone_hand_in():
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_out_in_wifi_preferred(self):
"""WiFi Hand-Out Threshold - WiFi Preferred
PhoneA on LTE, VoLTE enabled, WFC WiFi preferred, WiFi associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_NOT_HAND_OUT in 10s.
PhoneA should still be in call.
PhoneA should not hand-out, PhoneA should have data on WiFi.
Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
PhoneA should have data on WiFi.
Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_NOT_HAND_IN in 10s.
PhoneA should connect to WiFi and have data on WiFi.
PhoneA should not hand-in to iwlan.
Increase WiFi RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s.
PhoneA should hand-in to iwlan.
PhoneA call should remain active.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan,
self._decrease_wifi_rssi_hand_out_and_increase_wifi_rssi_hand_in,
True)
def _hand_out_hand_in_stress(self):
total_iteration = self.stress_test_number
self.log.info(
"Hand_out/Hand_in stress test. Total iteration = {}.".format(
total_iteration))
current_iteration = 1
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
return False
while (current_iteration <= total_iteration):
self.log.info(">----Current iteration = {}/{}----<".format(
current_iteration, total_iteration))
# Decrease WiFi RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT
# in 10 seconds
self.log.info("Decrease WiFi RSSI to hand out.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
# Make sure phone hand-out, not drop call
if not self._phone_wait_for_not_wfc():
self.log.error("Phone failed to hand-out in RSSI {}.".format(
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT))
break
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
break
# Increase WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s
self.log.info("Increase WiFi RSSI to hand in.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
# Make sure phone hand in to iwlan.
if not self._phone_wait_for_wfc():
self.log.error("Phone failed to hand-in to wfc.")
break
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
break
self.log.info(">----Iteration : {}/{} succeed.----<".format(
current_iteration, total_iteration))
current_iteration += 1
if current_iteration <= total_iteration:
self.log.info(">----Iteration : {}/{} failed.----<".format(
current_iteration, total_iteration))
return False
else:
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_out_in_stress(self):
"""WiFi Calling Hand out/in stress test.
Steps:
1. PhoneA on LTE, VoLTE enabled.
2. PhoneA WFC mode WiFi preferred, WiFi associated.
3. Cellular strong, WiFi RSSI strong. Call from PhoneA to PhoneB,
call should be on WFC.
4. Set WiFI RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s,
PhoneA hand-out.
5. Set WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s,
PhoneA hand-in.
6. Repeat Step 4~5. Call should not drop.
Expected Results:
4. Phone should hand out.
5. Phone should hand in.
6. Stress test pass rate should be higher than pre-defined limit.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan, self._hand_out_hand_in_stress, True)
def _hand_in_hand_out_stress(self):
total_iteration = self.stress_test_number
self.log.info(
"Hand_in/Hand_out stress test. Total iteration = {}.".format(
total_iteration))
current_iteration = 1
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
return False
while (current_iteration <= total_iteration):
self.log.info(">----Current iteration = {}/{}----<".format(
current_iteration, total_iteration))
# Increase WiFi RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN
# in 10 seconds
self.log.info("Increase WiFi RSSI to hand in.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
# Make sure phone hand in to iwlan.
if not self._phone_wait_for_wfc():
self.log.error("Phone failed to hand-in to wfc.")
break
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
break
# Decrease WiFI RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s
self.log.info("Decrease WiFi RSSI to hand out.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT, 2, 1)
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(
self.log, self.android_devices[0], True) or
not verify_http_connection(self.log,
self.android_devices[0])):
self.log.error("No Data on Wifi")
break
# Make sure phone hand-out, not drop call
if not self._phone_wait_for_not_wfc():
self.log.error("Phone failed to hand-out in RSSI {}.".format(
WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT))
break
if self._phone_wait_for_call_drop():
self.log.error("Call Drop.")
break
self.log.info(">----Iteration : {}/{} succeed.----<".format(
current_iteration, total_iteration))
current_iteration += 1
if current_iteration <= total_iteration:
self.log.info(">----Iteration : {}/{} failed.----<".format(
current_iteration, total_iteration))
return False
else:
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_in_out_stress(self):
"""WiFi Calling Hand in/out stress test.
Steps:
1. PhoneA on LTE, VoLTE enabled.
2. PhoneA WFC mode WiFi preferred, WiFi associated.
3. Cellular strong, WiFi RSSI weak. Call from PhoneA to PhoneB,
call should be on VoLTE.
4. Set WiFI RSSI to WIFI_RSSI_FOR_HAND_IN_TEST_PHONE_HAND_IN in 10s,
PhoneA hand-in.
5. Set WiFI RSSI to WIFI_RSSI_FOR_HAND_OUT_TEST_PHONE_HAND_OUT in 10s,
PhoneA hand-out.
6. Repeat Step 4~5. Call should not drop.
Expected Results:
4. Phone should hand in.
5. Phone should hand out.
6. Stress test pass rate should be higher than pre-defined limit.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_weak_cell_strong,
self._wfc_phone_setup_wifi_preferred, self._phone_idle_volte,
self._is_phone_in_call_volte, self._hand_in_hand_out_stress, True)
def _increase_cellular_rssi_check_phone_hand_out(self):
"""Private Test utility for hand_out test.
Increase Cellular RSSI to CELL_STRONG_RSSI_VALUE, in 30s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
PhoneA should have data on WiFi.
"""
# Increase Cellular RSSI to CELL_STRONG_RSSI_VALUE in 30 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL],
self.cell_rssi_with_no_atten, CELL_STRONG_RSSI_VALUE, 1, 1)
# Make sure phone hand-out, not drop call
if not self._phone_wait_for_not_wfc():
self.log.error("Phone should hand out.")
return False
if not self._is_phone_in_call_volte():
self.log.error("Phone should be in volte call.")
return False
# Make sure WiFi still connected and have data.
if (not wait_for_wifi_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("No Data on Wifi")
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_out_cellular_preferred(self):
"""WiFi Hand-Out Threshold - Cellular Preferred
Cellular signal absent, WiFi signal strong.
PhoneA VoLTE enabled, WFC Cellular preferred, WiFi associated.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
Increase Cellular RSSI to CELL_STRONG_RSSI_VALUE, in 30s.
PhoneA should still be in call. PhoneA should hand-out to LTE.
PhoneA should have data on WiFi.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_absent,
self._wfc_phone_setup_cellular_absent_cellular_preferred,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan,
self._increase_cellular_rssi_check_phone_hand_out, True)
def _decrease_wifi_rssi_check_phone_not_hand_out(self):
"""Private Test utility for hand_out test.
Decrease WiFi RSSI to <-100dBm, in 30s.
PhoneA should drop call. PhoneA should not report LTE as voice RAT.
PhoneA data should be on LTE.
"""
# Decrease WiFi RSSI to <-100dBm in 30 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
# Make sure PhoneA data is on LTE.
if (not wait_for_cell_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("Data not on Cell.")
return False
# Make sure phone drop.
self.log.info("Wait for call drop.")
if not self._phone_wait_for_call_drop():
self.log.error("Phone should drop call.")
return False
# Make sure Voice RAT is not LTE.
# FIXME: I think there's something wrong with this check
if RAT_LTE == get_network_rat(self.log, self.android_devices[0],
NETWORK_SERVICE_VOICE):
self.log.error("Phone should not report lte as voice rat.")
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_hand_out_wifi_only(self):
"""WiFi Hand-Out Not Attempted - WiFi Only
PhoneA on LTE, VoLTE enabled, WFC WiFi only, WiFi associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
Decrease WiFi RSSI to <-100dBm, in 30s.
PhoneA should drop call. PhoneA should not report LTE as voice RAT.
PhoneA data should be on LTE.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_only, self._phone_idle_iwlan,
self._is_phone_in_call_iwlan,
self._decrease_wifi_rssi_check_phone_not_hand_out, True)
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_e4g_disabled(self):
"""WiFi Calling with E4G disabled.
PhoneA on LTE, VoLTE disabled, WFC WiFi preferred, WiFi associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred_e4g_disabled,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan, None, True)
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_e4g_disabled_wifi_not_connected(
self):
"""WiFi Calling with E4G disabled.
PhoneA on LTE, VoLTE disabled, WFC WiFi preferred, WiFi not associated.
Cellular signal strong, WiFi absent.
Call from PhoneA to PhoneB, PhoneA should be on CSFB.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_absent_cell_strong,
self._wfc_phone_setup_wifi_absent_wifi_preferred_e4g_disabled,
self._phone_idle_not_iwlan, self._is_phone_in_call_csfb, None,
True)
def _decrease_wifi_rssi_check_phone_drop(self):
"""Private Test utility for e4g_disabled_wfc test.
Decrease WiFi RSSI to make sure WiFI not connected. Call should Drop.
"""
# Decrease WiFi RSSI to <-100dBm in 30 seconds
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, MIN_RSSI_RESERVED_VALUE)
# Make sure PhoneA data is on cellular.
if (not wait_for_cell_data_connection(self.log,
self.android_devices[0], True) or
not verify_http_connection(self.log, self.android_devices[0])):
self.log.error("Data not on Cell.")
return False
# Make sure phone drop.
self.log.info("Wait for call drop.")
if not self._phone_wait_for_call_drop():
self.log.error("Phone should drop call.")
return False
return True
@TelephonyBaseTest.tel_test_wrap
def test_call_epdg_wfc_wifi_preferred_e4g_disabled_leave_wifi_coverage(
self):
"""WiFi Calling with E4G disabled.
PhoneA on LTE, VoLTE disabled, WFC WiFi preferred, WiFi associated.
Cellular and WiFi signal strong.
Call from PhoneA to PhoneB, PhoneA should be on iwlan.
Decrease WiFi RSSI to make sure WiFI not connected. Call should Drop.
"""
return self._wfc_call_sequence(
[self.android_devices[0], self.android_devices[1]],
DIRECTION_MOBILE_ORIGINATED, self._wfc_set_wifi_strong_cell_strong,
self._wfc_phone_setup_wifi_preferred_e4g_disabled,
self._phone_idle_iwlan, self._is_phone_in_call_iwlan,
self._decrease_wifi_rssi_check_phone_drop, True)
@TelephonyBaseTest.tel_test_wrap
def test_rssi_monitoring(self):
"""Test WiFi RSSI Monitoring API and Callback function.
Steps:
1. Set WiFi RSSI to INITIAL_RSSI (-60dBm), connect WiFi on DUT.
2. Start WiFi RSSI Monitoring for HIGHER_RSSI_THRESHOLD (-50dBm) and
LOWER_RSSI_THRESHOLD (-70dBm)
3. Increase WiFi RSSI to HIGHER_RSSI_THRESHOLD+5dBm
4. Decrease WiFi RSSI to HIGHER_RSSI_THRESHOLD-5dBm
5. Decrease WiFi RSSI to LOWER_RSSI_THRESHOLD-5dBm
6. Increase WiFi RSSI to LOWER_RSSI_THRESHOLD+5dBm
Expected Results:
1. WiFi Connected successfully.
2. DUT report LOWER_RSSI_THRESHOLD available.
3. DUT report HIGHER_RSSI_THRESHOLD available.
4. DUT report HIGHER_RSSI_THRESHOLD lost.
5. DUT report LOWER_RSSI_THRESHOLD lost.
6. DUT report LOWER_RSSI_THRESHOLD available.
"""
INITIAL_RSSI = -60
HIGHER_RSSI_THRESHOLD = -50
LOWER_RSSI_THRESHOLD = -70
RSSI_THRESHOLD_MARGIN = 5
WIFI_RSSI_CHANGE_STEP_SIZE = 2
WIFI_RSSI_CHANGE_DELAY_PER_STEP = 1
ad = self.android_devices[0]
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten, INITIAL_RSSI)
if not ensure_wifi_connected(self.log, ad, self.live_network_ssid,
self.live_network_pwd):
self.log.error("{} connect WiFI failed".format(ad.serial))
return False
try:
rssi_monitoring_id_higher = ad.droid.connectivitySetRssiThresholdMonitor(
HIGHER_RSSI_THRESHOLD)
rssi_monitoring_id_lower = ad.droid.connectivitySetRssiThresholdMonitor(
LOWER_RSSI_THRESHOLD)
self.log.info(
"Initial RSSI: {},"
"rssi_monitoring_id_lower should be available.".format(
INITIAL_RSSI))
try:
event = ad.ed.wait_for_event(
EventNetworkCallback,
is_network_call_back_event_match,
network_callback_id=rssi_monitoring_id_lower,
network_callback_event=NetworkCallbackAvailable)
self.log.info("Received Event: {}".format(event))
except Empty:
self.log.error("No {} event for id {}".format(
NetworkCallbackAvailable, rssi_monitoring_id_lower))
return False
self.log.info("Set RSSI to HIGHER_RSSI_THRESHOLD+5,"
"rssi_monitoring_id_higher should be available.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
HIGHER_RSSI_THRESHOLD + RSSI_THRESHOLD_MARGIN,
WIFI_RSSI_CHANGE_STEP_SIZE,
WIFI_RSSI_CHANGE_DELAY_PER_STEP)
try:
event = ad.ed.wait_for_event(
EventNetworkCallback,
is_network_call_back_event_match,
network_callback_id=rssi_monitoring_id_higher,
network_callback_event=NetworkCallbackAvailable)
self.log.info("Received Event: {}".format(event))
except Empty:
self.log.error("No {} event for id {}".format(
NetworkCallbackAvailable, rssi_monitoring_id_higher))
return False
self.log.info("Set RSSI to HIGHER_RSSI_THRESHOLD-5,"
"rssi_monitoring_id_higher should be lost.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
HIGHER_RSSI_THRESHOLD - RSSI_THRESHOLD_MARGIN,
WIFI_RSSI_CHANGE_STEP_SIZE,
WIFI_RSSI_CHANGE_DELAY_PER_STEP)
try:
event = ad.ed.wait_for_event(
EventNetworkCallback,
is_network_call_back_event_match,
network_callback_id=rssi_monitoring_id_higher,
network_callback_event=NetworkCallbackLost)
self.log.info("Received Event: {}".format(event))
except Empty:
self.log.error("No {} event for id {}".format(
NetworkCallbackLost, rssi_monitoring_id_higher))
return False
self.log.info("Set RSSI to LOWER_RSSI_THRESHOLD-5,"
"rssi_monitoring_id_lower should be lost.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
LOWER_RSSI_THRESHOLD - RSSI_THRESHOLD_MARGIN,
WIFI_RSSI_CHANGE_STEP_SIZE,
WIFI_RSSI_CHANGE_DELAY_PER_STEP)
try:
event = ad.ed.wait_for_event(
EventNetworkCallback,
is_network_call_back_event_match,
network_callback_id=rssi_monitoring_id_lower,
network_callback_event=NetworkCallbackLost)
self.log.info("Received Event: {}".format(event))
except Empty:
self.log.error("No {} event for id {}".format(
NetworkCallbackLost, rssi_monitoring_id_lower))
return False
self.log.info("Set RSSI to LOWER_RSSI_THRESHOLD+5,"
"rssi_monitoring_id_lower should be available.")
set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI],
self.wifi_rssi_with_no_atten,
LOWER_RSSI_THRESHOLD + RSSI_THRESHOLD_MARGIN,
WIFI_RSSI_CHANGE_STEP_SIZE,
WIFI_RSSI_CHANGE_DELAY_PER_STEP)
try:
event = ad.ed.wait_for_event(
EventNetworkCallback,
is_network_call_back_event_match,
network_callback_id=rssi_monitoring_id_lower,
network_callback_event=NetworkCallbackAvailable)
self.log.info("Received Event: {}".format(event))
except Empty:
self.log.error("No {} event for id {}".format(
NetworkCallbackAvailable, rssi_monitoring_id_lower))
return False
finally:
ad.droid.connectivityStopRssiThresholdMonitor(
rssi_monitoring_id_higher)
ad.droid.connectivityStopRssiThresholdMonitor(
rssi_monitoring_id_lower)
return True
""" Tests End """
| 45.345228
| 103
| 0.657603
| 22,421
| 167,732
| 4.521475
| 0.017617
| 0.027068
| 0.047053
| 0.036922
| 0.941584
| 0.927123
| 0.909712
| 0.894877
| 0.88374
| 0.865096
| 0
| 0.005636
| 0.273305
| 167,732
| 3,698
| 104
| 45.357491
| 0.826064
| 0.232627
| 0
| 0.741522
| 0
| 0
| 0.085734
| 0.035577
| 0
| 0
| 0
| 0.000541
| 0
| 1
| 0.070119
| false
| 0.000917
| 0.031164
| 0.019248
| 0.211732
| 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
|
645c2e051ec54f6cc09fead4e426e9ca58317bf8
| 2,138
|
py
|
Python
|
8term/OR/lab5.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
8term/OR/lab5.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
8term/OR/lab5.py
|
nik-sergeson/bsuir-informatics-labs
|
14805fb83b8e2324580b6253158565068595e804
|
[
"Apache-2.0"
] | null | null | null |
from sympy import Matrix
from lab5.Network import Network
from lab5.MinCostFlow import MinCostFlow, get_flow_cost
paths = Matrix([[0, 1, 0, 0, 0, 0, 0],
[0, 0, 1, 3, 2, 0, 0],
[3, 0, 0, 3, 0, 4, 0],
[4, 0, 0, 0, 0, -1, 6],
[0, 0, 0, 5, 0, 0, 1],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 2, 0]])
a = Matrix([-2, 3, 1, 8, 4 - 6, -8])
u = {(3, 0): 2, (1, 2): 3, (2, 3): 4, (4, 3): 4, (3, 6): 8, (3, 5): 6}
network = Network(paths, a)
solver = MinCostFlow(network)
U, flow = solver.solve(u)
result = get_flow_cost(U, flow, network)
print(result)
from lab5.MinCostFlowWithContraint import MinCostFlow, get_flow_cost
paths = Matrix([[0, 1, 0, 0, 0, 0, 0],
[0, 0, 1, 3, 2, 0, 0],
[3, 0, 0, 3, 0, 4, 0],
[4, 0, 0, 0, 0, -1, 6],
[0, 0, 0, 5, 0, 0, 1],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 2, 0]])
constraints = Matrix([[0, 5, 0, 0, 0, 0, 0],
[0, 0, 5, 5, 5, 0, 0],
[5, 0, 0, 5, 0, 5, 0],
[5, 0, 0, 0, 0, 7, 10],
[0, 0, 0, 5, 0, 0, 5],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 5, 0]])
a = Matrix([-2, 3, 1, 8, 4 - 6, -8])
u = {(3, 0): 2, (1, 2): 3, (2, 3): 4, (4, 3): 4, (3, 6): 8, (3, 5): 6}
network = Network(paths, a)
solver = MinCostFlow(network)
U, flow = solver.solve(constraints, u)
result = get_flow_cost(U, flow, network)
print(result)
paths = Matrix([[0, 8, 0, 0, 0, 10],
[0, 0, 10, 0, -10, 5],
[0, 0, 0, -4, 6, 3],
[0, 0, 0, 0, 0, 0],
[0, 0, 0, 5, 0, 0],
[0, 0, 0, 0, 9, 0]])
constraints = Matrix([[0, 7, 0, 0, 0, 7],
[0, 0, 7, 0, 7, 7],
[0, 0, 0, 7, 7, 7],
[0, 0, 0, 0, 0, 0],
[0, 0, 0, 7, 0, 0],
[0, 0, 0, 0, 7, 0]])
a = Matrix([10, 4, 4,-2,-10,-6])
u = {(0,5):3, (1,5):4, (2,5):6,(2,4):5,(4,3):2}
network = Network(paths, a)
solver = MinCostFlow(network)
U, flow = solver.solve(constraints, u)
result = get_flow_cost(U, flow, network)
print(result)
| 34.483871
| 70
| 0.410664
| 399
| 2,138
| 2.175439
| 0.075188
| 0.25576
| 0.276498
| 0.276498
| 0.764977
| 0.752304
| 0.736175
| 0.723502
| 0.711982
| 0.682028
| 0
| 0.21651
| 0.354069
| 2,138
| 62
| 71
| 34.483871
| 0.41202
| 0
| 0
| 0.603448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.068966
| 0
| 0.068966
| 0.051724
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 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
| 10
|
649c11002ad2030fb70e9e270e21d2945718dd76
| 14,503
|
py
|
Python
|
rl/agents/dqn.py
|
KNakane/tensorflow
|
1e8c862b8f7928967b1c02c613df0222ab8c4cd2
|
[
"MIT"
] | 1
|
2019-05-13T15:14:03.000Z
|
2019-05-13T15:14:03.000Z
|
rl/agents/dqn.py
|
KNakane/tensorflow
|
1e8c862b8f7928967b1c02c613df0222ab8c4cd2
|
[
"MIT"
] | 44
|
2018-12-22T02:45:29.000Z
|
2019-06-05T05:44:16.000Z
|
rl/agents/dqn.py
|
KNakane/tensorflow
|
1e8c862b8f7928967b1c02c613df0222ab8c4cd2
|
[
"MIT"
] | 1
|
2021-11-05T06:08:07.000Z
|
2021-11-05T06:08:07.000Z
|
# -*- coding: utf-8 -*-
import sys,os
sys.path.append(os.path.join(os.path.dirname(__file__), '../../utility'))
sys.path.append(os.path.join(os.path.dirname(__file__), '../../network'))
import numpy as np
import tensorflow as tf
from agent import Agent
from eager_nn import EagerNN, Dueling_Net
from optimizer import *
class DQN(Agent):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.is_categorical:
self.Vmax, self.Vmin = 10.0, -10.0
self.delta_z = (self.Vmax - self.Vmin) / (self.q_eval.N_atoms - 1)
self.z_list = tf.constant([self.Vmin + i * self.delta_z for i in range(self.q_eval.N_atoms)],dtype=tf.float32)
self.z_list_broadcasted = tf.tile(tf.reshape(self.z_list,[1,self.q_eval.N_atoms]), tf.constant([self.n_actions,1]))
def _build_net(self):
# ------------------ build eval_net ------------------
with tf.variable_scope('eval_net'):
self.q_eval = eval(self.network)(model=self.model, out_dim=self.n_actions, name='Q_net', opt=self._optimizer, lr=self.lr, trainable=self.trainable, is_categorical=self.is_categorical, is_noise=self.is_noise)
# ------------------ build target_net ------------------
with tf.variable_scope('target_net'):
self.q_next = eval(self.network)(model=self.model, out_dim=self.n_actions, name='target_net', trainable=False, is_categorical=self.is_categorical, is_noise=self.is_noise)
def inference(self, state):
if self.is_categorical:
return tf.argmax(tf.reduce_sum(self.q_eval.inference(state) * self.z_list_broadcasted, axis=2), axis=1)
else:
return self.q_eval.inference(state)
def update_q_net(self, replay_data, weights):
self.bs, eval_act_index, done, bs_, reward, p_idx = replay_data
eval_act_index = np.reshape(np.array(eval_act_index, dtype=np.int32),(self.batch_size,1))
reward = np.array(reward, dtype=np.float32)
done = np.array(done, dtype=np.float32)
loss, td_error = self._train_body(self.bs, eval_act_index, done, bs_, reward, p_idx, weights)
# check to replace target parameters
if self._iteration % self.replace_target_iter == 0:
self.update_target_net()
# decreasing epsilon
self.epsilon = max(self.epsilon - self.epsilon_decrement, self.epsilon_min)
self._iteration += 1
return loss, td_error
@tf.contrib.eager.defun
def _train_body(self, bs, eval_act_index, done, bs_, reward, p_idx, weights):
global_step = tf.train.get_or_create_global_step()
with tf.device(self.device):
with tf.GradientTape() as tape:
if self.is_categorical:
# based on https://github.com/cmusjtuliuyuan/RainBow/blob/master/agent.py
q_next = self.q_next.inference(bs_) #target network Q'(s', a)
q_eval = self.q_eval.inference(bs) #main network Q(s, a)
q_next_value = tf.reduce_sum(q_next * self.z_list_broadcasted, axis=2)
action_chosen_by_target_Q = tf.cast(tf.argmax(q_next_value, axis=1), tf.int32)
Q_distributional_chosen_by_action_target = tf.gather_nd(q_next,
tf.concat([tf.reshape(tf.range(self.batch_size), [-1, 1]),
tf.reshape(action_chosen_by_target_Q,[-1,1])], axis = 1))
target = tf.tile(tf.reshape(reward,[-1, 1]), tf.constant([1, self.q_eval.N_atoms])) \
+ tf.cast(tf.reshape((self.discount ** tf.cast(p_idx, tf.float32)), [-1, 1]), tf.float32) * tf.multiply(tf.reshape(self.z_list,[1, self.q_eval.N_atoms]),
(1.0 - tf.tile(tf.reshape(done ,[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))))
target = tf.clip_by_value(target, self.Vmin, self.Vmax)
b = (target - self.Vmin) / self.delta_z
u, l = tf.ceil(b), tf.floor(b)
u_id, l_id = tf.cast(u, tf.int32), tf.cast(l, tf.int32)
u_minus_b, b_minus_l = u - b, b - l
action_list = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), eval_act_index], axis=1)
Q_distributional_chosen_by_action_online = tf.gather_nd(q_eval, action_list)
index_help = tf.tile(tf.reshape(tf.range(self.batch_size),[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))
index_help = tf.expand_dims(index_help, -1)
u_id = tf.concat([index_help, tf.expand_dims(u_id, -1)], axis=2)
l_id = tf.concat([index_help, tf.expand_dims(l_id, -1)], axis=2)
error = Q_distributional_chosen_by_action_target * u_minus_b * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, l_id)) \
+ Q_distributional_chosen_by_action_target * b_minus_l * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, u_id))
error = tf.reduce_mean(error, axis=1)
td_error = tf.abs(error)
loss = tf.reduce_mean(tf.negative(error) * weights)
else:
q_next, q_eval = self.q_next.inference(bs_), self.q_eval.inference(bs)
q_target = reward + self.discount ** tf.cast(p_idx, tf.float32) * tf.reduce_max(q_next, axis=1) * (1. - done)
q_target = tf.stop_gradient(q_target)
action_list = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), eval_act_index], axis=1)
q_eval = tf.gather_nd(q_eval, action_list)
td_error = tf.abs(q_target - q_eval)
loss = tf.reduce_mean(tf.losses.huber_loss(labels=q_target, predictions=q_eval) * weights)
self.q_eval.optimize(loss, global_step, tape)
return loss, td_error
def update_target_net(self):
for param, target_param in zip(self.q_eval.weights, self.q_next.weights):
target_param.assign(param)
return
class DDQN(DQN):
def __init__(self,*args, **kwargs):
super().__init__(*args, **kwargs)
def update_q_net(self, replay_data, weights):
self.bs, eval_act_index, done, bs_, reward, p_idx = replay_data
eval_act_index = np.reshape(np.array(eval_act_index, dtype=np.int32),(self.batch_size,1))
reward = np.array(reward, dtype=np.float32)
done = np.array(done, dtype=np.float32)
loss, td_error = self._train_body(self.bs, eval_act_index, done, bs_, reward, p_idx, weights)
# check to replace target parameters
if self._iteration % self.replace_target_iter == 0:
self.update_target_net()
# decreasing epsilon
self.epsilon = max(self.epsilon - self.epsilon_decrement, self.epsilon_min)
self._iteration += 1
return loss, td_error
@tf.contrib.eager.defun
def _train_body(self, bs, eval_act_index, done, bs_, reward, p_idx, weights):
with tf.device(self.device):
global_step = tf.train.get_or_create_global_step()
with tf.GradientTape() as tape:
if self.is_categorical:
q_next = self.q_next.inference(bs_) #target network Q'(s', a)
q_eval4next = self.q_eval.inference(bs_) #main network Q(s', a)
q_eval = self.q_eval.inference(bs) #main network Q(s, a)
q_ = tf.reduce_sum(tf.multiply(q_eval4next, self.z_list), axis=2) # a = argmax(Q(s',a))
next_action = tf.cast(tf.argmax(q_, axis=1), tf.int32)
indices = tf.concat(values=[tf.expand_dims(tf.range(self.batch_size), axis=1), tf.expand_dims(next_action, axis=1)], axis=1)
Q_distributional_chosen_by_action_target = tf.gather_nd(q_next, indices)
target = tf.tile(tf.reshape(reward,[-1, 1]), tf.constant([1, self.q_eval.N_atoms])) \
+ tf.cast(tf.reshape((self.discount ** tf.cast(p_idx, tf.float32)), [-1, 1]), tf.float32) * tf.multiply(tf.reshape(self.z_list,[1, self.q_eval.N_atoms]),
(1.0 - tf.tile(tf.reshape(done ,[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))))
target = tf.clip_by_value(target, self.Vmin, self.Vmax)
b = (target - self.Vmin) / self.delta_z
u, l = tf.ceil(b), tf.floor(b)
u_id, l_id = tf.cast(u, tf.int32), tf.cast(l, tf.int32)
u_minus_b, b_minus_l = u - b, b - l
action_list = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), eval_act_index], axis=1)
Q_distributional_chosen_by_action_online = tf.gather_nd(q_eval,action_list)
index_help = tf.tile(tf.reshape(tf.range(self.batch_size),[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))
index_help = tf.expand_dims(index_help, -1)
u_id = tf.concat([index_help, tf.expand_dims(u_id, -1)], axis=2)
l_id = tf.concat([index_help, tf.expand_dims(l_id, -1)], axis=2)
error = Q_distributional_chosen_by_action_target * u_minus_b * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, l_id)) \
+ Q_distributional_chosen_by_action_target * b_minus_l * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, u_id))
error = tf.reduce_mean(error, axis=1)
td_error = tf.abs(error)
loss = tf.reduce_mean(tf.negative(error) * weights)
else:
q_next, q_eval = self.q_next.inference(bs_), self.q_eval.inference(bs)
q_eval4next = tf.argmax(self.q_eval.inference(bs_), axis=1, output_type=tf.int32)
indices = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), tf.expand_dims(q_eval4next, axis=1)], axis=1)
q_target = tf.gather_nd(q_next, indices)
q_target = reward + self.discount ** tf.cast(p_idx, tf.float32) * q_target * (1. - done)
q_target = tf.stop_gradient(q_target)
action_list = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), eval_act_index], axis=1)
q_eval = tf.gather_nd(q_eval, action_list)
td_error = tf.abs(q_target - q_eval)
loss = tf.reduce_mean(tf.losses.huber_loss(labels=q_target, predictions=q_eval) * weights)
self.q_eval.optimize(loss, global_step, tape)
return loss, td_error
class Rainbow(DDQN):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.epsilon = self.epsilon_max
def update_q_net(self, replay_data, weights):
self.bs, eval_act_index, done, bs_, reward, p_idx = replay_data
eval_act_index = np.reshape(np.array(eval_act_index, dtype=np.int32),(self.batch_size,1))
reward = np.array(reward, dtype=np.float32)
done = np.array(done, dtype=np.float32)
loss, td_error = self._train_body(self.bs, eval_act_index, done, bs_, reward, p_idx, weights)
# check to replace target parameters
if self._iteration % self.replace_target_iter == 0:
self.update_target_net()
self._iteration += 1
return loss, td_error
@tf.contrib.eager.defun
def _train_body(self, bs, eval_act_index, done, bs_, reward, p_idx, weights):
with tf.device(self.device):
global_step = tf.train.get_or_create_global_step()
with tf.GradientTape() as tape:
q_next = self.q_next.inference(bs_) #target network Q'(s', a)
q_eval4next = self.q_eval.inference(bs_) #main network Q(s', a)
q_eval = self.q_eval.inference(bs) #main network Q(s, a)
q_ = tf.reduce_sum(tf.multiply(q_eval4next, self.z_list), axis=2) # a = argmax(Q(s',a))
next_action = tf.cast(tf.argmax(q_, axis=1), tf.int32)
indices = tf.concat(values=[tf.expand_dims(tf.range(self.batch_size), axis=1), tf.expand_dims(next_action, axis=1)], axis=1)
Q_distributional_chosen_by_action_target = tf.gather_nd(q_next, indices)
target = tf.tile(tf.reshape(reward,[-1, 1]), tf.constant([1, self.q_eval.N_atoms])) \
+ tf.cast(tf.reshape((self.discount ** tf.cast(p_idx, tf.float32)), [-1, 1]), tf.float32) * tf.multiply(tf.reshape(self.z_list,[1, self.q_eval.N_atoms]),
(1.0 - tf.tile(tf.reshape(done ,[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))))
target = tf.clip_by_value(target, self.Vmin, self.Vmax)
b = (target - self.Vmin) / self.delta_z
u, l = tf.ceil(b), tf.floor(b)
u_id, l_id = tf.cast(u, tf.int32), tf.cast(l, tf.int32)
u_minus_b, b_minus_l = u - b, b - l
action_list = tf.concat([tf.expand_dims(tf.range(self.batch_size), axis=1), eval_act_index], axis=1)
Q_distributional_chosen_by_action_online = tf.gather_nd(q_eval,action_list)
index_help = tf.tile(tf.reshape(tf.range(self.batch_size),[-1, 1]), tf.constant([1, self.q_eval.N_atoms]))
index_help = tf.expand_dims(index_help, -1)
u_id = tf.concat([index_help, tf.expand_dims(u_id, -1)], axis=2)
l_id = tf.concat([index_help, tf.expand_dims(l_id, -1)], axis=2)
error = Q_distributional_chosen_by_action_target * u_minus_b * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, l_id)) \
+ Q_distributional_chosen_by_action_target * b_minus_l * \
tf.log(tf.gather_nd(Q_distributional_chosen_by_action_online, u_id))
error = tf.reduce_mean(error, axis=1)
td_error = tf.abs(error)
loss = tf.reduce_mean(tf.negative(error) * weights)
self.q_eval.optimize(loss, global_step, tape)
return loss, td_error
| 55.56705
| 219
| 0.594084
| 2,083
| 14,503
| 3.854057
| 0.086894
| 0.02865
| 0.033632
| 0.05157
| 0.88864
| 0.858744
| 0.850523
| 0.846786
| 0.846786
| 0.824116
| 0
| 0.016835
| 0.275047
| 14,503
| 260
| 220
| 55.780769
| 0.746719
| 0.039164
| 0
| 0.805128
| 0
| 0
| 0.00424
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.061538
| false
| 0
| 0.030769
| 0
| 0.153846
| 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
|
64a712e441eb320ff34e53103a9c540eb28dad0d
| 357,064
|
py
|
Python
|
themes/Future Bloo.py
|
AliveChive/Raid-Toolbox
|
0ec2608a17d50a8f396effebe36ee5c41484bfc6
|
[
"ISC"
] | null | null | null |
themes/Future Bloo.py
|
AliveChive/Raid-Toolbox
|
0ec2608a17d50a8f396effebe36ee5c41484bfc6
|
[
"ISC"
] | null | null | null |
themes/Future Bloo.py
|
AliveChive/Raid-Toolbox
|
0ec2608a17d50a8f396effebe36ee5c41484bfc6
|
[
"ISC"
] | null | null | null |
# Skin info and colours
theme_name = "Future Bloo"
theme_author = "Lucas."
theme_version = "1.0"
theme_bio = "Bloo" # A long bio will get cut off, keep it simple.
window_theme = "Black"
button_colour = "black"
attacks_theme = {"background": "Black", "button_colour": ('black', 'cyan')}
banner_size = (600, 100)
banner_padding = ((75, 15), 0)
# Command Line colours
menu1 = "cyan"
menu2 = "white"
# Button/Banner Images (Base64)
rtb_icon = b'iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAALEZSURBVHja7J13uBxV2cB/s7u3pOemkUASCC3UGLqEIkIAASkiIsWPjhhFQAQLREEMWEBUQEJVuoD0KkjvvQZCKCG955a023b3fH+c8+68c3Z2701yE26SOc8zz96yO3umnN+8/Q2MMSQjGclIxpowUskpSEYykpEAKxnJSEYyEmAlIxnJSICVjGQkIxkJsJKRjGQkIwFWMpKRjARYyUhGMpKRjGQkIxnLPzLAN93rWjeMMcu1JSMZyeicowdwGzAVMMDH7m/rNLCCYNz45NZIRjI60yIeO2ZH4BZgSwC2GwXvvgJwezBu/A862VxXOdB8cTMZyUhG5wHAKcD1AqrgW9+xf7fA2oMgkJW8zurHyUhGAoqxY4YBG7lfRwK93c8bqb/7YwrwYjBu/A0dNIc7gKMBOOhIglF7278/do+85cUCsIIgCq11BGAJsJKxLsCoRkFoJJAG9lBw6rmCu94TOM6MHcPKQMuMHTMEuBY4gB41BN89Djbb0kJp2mR4+SmA2cDPzHmnBUAgH9X7CcaNX+uplQArGR0FhQxwlgPBi8G48ZetZhj5EOrtJKOh7drR4GHQf5D9ef3BU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R8eOnd+XJGm9yGxi6NWrd1koVPespmnH6LreAuc5aQcOmhOJdVVVawKB4PpWrcrWSJK0Hrjv/wYAPllHpHSNE/wAAAAASUVORK5CYII='
| 5,759.096774
| 60,626
| 0.965132
| 11,715
| 357,064
| 29.41195
| 0.947674
| 0.005912
| 0.002113
| 0.000128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158078
| 0.000445
| 357,064
| 61
| 60,627
| 5,853.508197
| 0.807335
| 0.000328
| 0
| 0
| 0
| 0.676471
| 0.99763
| 0.997406
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
64d72f66f61e4b33dd3d79a6f959b7ff0b7ce63b
| 154
|
py
|
Python
|
tests/test_plugin.py
|
euro-hpc-pl/omnisolver-pt
|
402beed5b7c475a13cc59b04a77fe03ca7174e70
|
[
"Apache-2.0"
] | null | null | null |
tests/test_plugin.py
|
euro-hpc-pl/omnisolver-pt
|
402beed5b7c475a13cc59b04a77fe03ca7174e70
|
[
"Apache-2.0"
] | 1
|
2021-09-02T22:31:18.000Z
|
2021-09-02T22:31:18.000Z
|
tests/test_plugin.py
|
euro-hpc-pl/omnisolver-pt
|
402beed5b7c475a13cc59b04a77fe03ca7174e70
|
[
"Apache-2.0"
] | null | null | null |
from omnisolver.plugin import Plugin
from omnisolver.pt import get_plugin
def test_plugin_can_be_loaded():
assert isinstance(get_plugin(), Plugin)
| 19.25
| 43
| 0.805195
| 22
| 154
| 5.363636
| 0.590909
| 0.237288
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12987
| 154
| 7
| 44
| 22
| 0.880597
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 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
| 1
| 0
| 1
| 0
|
0
| 7
|
b3beb3f3fbcde569409595a1a7e2ad617fffe935
| 116,631
|
py
|
Python
|
parser/team19/BDTytus/Gramatica/parsetab.py
|
webdev188/tytus
|
847071edb17b218f51bb969d335a8ec093d13f94
|
[
"MIT"
] | 35
|
2020-12-07T03:11:43.000Z
|
2021-04-15T17:38:16.000Z
|
parser/team19/BDTytus/Gramatica/parsetab.py
|
webdev188/tytus
|
847071edb17b218f51bb969d335a8ec093d13f94
|
[
"MIT"
] | 47
|
2020-12-09T01:29:09.000Z
|
2021-01-13T05:37:50.000Z
|
parser/team19/BDTytus/Gramatica/parsetab.py
|
webdev188/tytus
|
847071edb17b218f51bb969d335a8ec093d13f94
|
[
"MIT"
] | 556
|
2020-12-07T03:13:31.000Z
|
2021-06-17T17:41:10.000Z
|
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'leftpuntobipuntoleftcomarightigualleftcor1cor2leftmasmenosleftasteriscodivporcentajeleftpotrightumenosumasleftpar1par2leftt_orleftt_andleftdiferenteleftmayormenormayorimenorirightt_notasterisco bipunto char coma cor1 cor2 decimal diferente diferentede div entero id igual mas mayor mayori menor menori menos par1 par2 porcentaje pot punto pyc string t_abs t_acos t_acosd t_acosh t_add t_all t_alter t_and t_as t_asc t_asin t_asind t_asinh t_atan t_atan2 t_atan2d t_atand t_atanh t_avg t_bigint t_bool t_boolean t_by t_cbrt t_ceil t_ceiling t_character t_charn t_check t_column t_constraint t_convert t_cos t_cosd t_cosh t_cot t_cotd t_count t_create t_current t_current_user t_database t_databases t_date t_decimal t_decode t_default t_degrees t_delete t_desc t_distinct t_div t_double t_drop t_encode t_enum t_exists t_exp t_factorial t_false t_first t_floor t_foreign t_from t_full t_gcd t_get_byte t_group t_having t_if t_inherits t_inner t_insert t_integer t_into t_join t_key t_last t_left t_length t_like t_limit t_ln t_log t_max t_md5 t_min t_min_scale t_mod t_mode t_money t_natural t_not t_null t_nulls t_numeric t_of t_offset t_on t_only t_or t_order t_outer t_owner t_pi t_power t_precision t_primary t_radians t_random t_real t_references t_rename t_replace t_returning t_right t_round t_scale t_select t_session_user t_set t_set_byte t_setseed t_sha256 t_show t_sign t_sin t_sind t_sinh t_smallint t_sqrt t_substr t_substring t_sum t_table t_tan t_tand t_tanh t_text t_to t_trim t_trim_scale t_true t_trunc t_type t_unique t_update t_use t_using t_values t_varchar t_varying t_where t_width_bucketSQL : Sentencias_SQLSQL : emptySentencias_SQL : Sentencias_SQL Sentencia_SQLSentencias_SQL : Sentencia_SQLSentencia_SQL : Sentencias_DMLSentencia_SQL : Sentencias_DDLSentencias_DML : t_select Lista_EXP Select_SQL Condiciones GRP ORD pyc\n | t_select asterisco Select_SQL Condiciones GRP ORD pyc\n | t_insert t_into id Insert_SQL pyc\n | t_update id t_set Lista_EXP Condiciones1 pyc\n | t_delete t_from id Condiciones1 pyc\n | t_use id pycSelect_SQL : t_from Table_ExpressionSelect_SQL : emptyTable_Expression : Alias_Tabla\n | SubqueriesAlias_Tabla : Lista_ID\n | Lista_AliasSubqueries : par1 t_select par2Insert_SQL : par1 Lista_ID par2 t_values par1 Lista_EXP par2Insert_SQL : t_values par1 Lista_EXP par2Condiciones : t_where EXP\n | emptyCondiciones1 : t_where EXP\n | emptyGRP : t_group t_by Lista_ID\n | t_group t_by Lista_ID HV\n | emptyHV : t_having EXPORD : t_order t_by LSORT\n | t_order t_by LSORT LMT\n | emptyLSORT : LSORT coma SORT\n | SORTSORT : EXP AD NFL\n | EXP AD\n | EXPAD : t_asc\n | t_descNFL : t_nulls t_first\n | t_nulls t_lastLMT : t_limit NAL t_offset entero\n | t_limit NAL\n | t_offset entero NAL : entero\n | t_all Sentencias_DDL : t_show t_databases Show_DB_Like_Char pyc\n | Enum_Type\n | t_drop Drop pyc\n | t_alter Alter pyc\n | t_create Create pycShow_DB_Like_Char : t_like char \n | empty Enum_Type : t_create t_type id t_as t_enum par1 Lista_Enum par2 pycDrop : t_database DropDB id\n | t_table id DropDB : t_if t_exists\n | emptyAlter : t_database id AlterDB\n | t_table id AlterTB AlterDB : t_rename t_to id\n | t_owner t_to SesionDB SesionDB : id\n | t_current_user\n | t_session_user AlterTB : t_add Add_Opc\n | t_drop Drop_Opc\n | t_alter t_column Alter_Column\n | t_rename t_column id t_to id Add_Opc : t_column id Tipo\n | Constraint_AlterTB t_foreign t_key par1 Lista_ID par2 t_references id par1 Lista_ID par2\n | Constraint_AlterTB t_unique par1 id par2\n | Constraint_AlterTB t_check EXP Constraint_AlterTB : t_constraint id\n | empty Drop_Opc : t_column id\n | t_constraint id Alter_Column : id t_set t_not t_null\n | Alter_Columns Alter_Columns : Alter_Columns coma Alter_Column1\n | Alter_Column1Alter_Column1 : id t_type t_varchar par1 entero par2\n | t_alter t_column id t_type t_varchar par1 entero par2Create : CreateDBCreate : CreateTB CreateDB : OrReplace_CreateDB t_database IfNotExist_CreateDB id Sesion OrReplace_CreateDB : t_or t_replace\n | empty IfNotExist_CreateDB : t_if t_not t_exists\n | empty Sesion : t_owner Op_Sesion Sesion_mode\n | t_mode Op_Mode\n | empty Op_Sesion : igual char\n | char Sesion_mode : t_mode Op_Mode\n | empty Op_Mode : igual entero\n | entero CreateTB : t_table id par1 Columnas par2 Inherits Inherits : t_inherits par1 id par2\n | empty Columnas : Columnas coma Columna\n | Columna Columna : id Tipo Cond_CreateTB\n | Constraint Cond_CreateTB : Constraint_CreateTB t_default id Cond_CreateTB\n | Constraint_CreateTB t_not t_null Cond_CreateTB\n | Constraint_CreateTB t_null Cond_CreateTB\n | Constraint_CreateTB t_unique Cond_CreateTB\n | Constraint_CreateTB t_check par1 EXP par2 Cond_CreateTB\n | Constraint_CreateTB t_primary t_key Cond_CreateTB\n | Constraint_CreateTB t_references id Cond_CreateTB\n | emptyConstraint_CreateTB : t_constraint id\n | empty Constraint : Constraint_CreateTB t_unique par1 Lista_ID par2\n | Constraint_CreateTB t_check par1 EXP par2\n | Constraint_CreateTB t_primary t_key par1 Lista_ID par2\n | Constraint_CreateTB t_foreign t_key par1 Lista_ID par2 t_references id par1 Lista_ID par2\n | empty Tipo : t_smallint\n | t_integer\n | t_bigint\n | t_decimal\n | t_numeric par1 entero par2\n | t_real\n | t_double t_precision\n | t_money\n | t_character t_varying par1 entero par2\n | t_varchar par1 entero par2\n | t_character par1 entero par2\n | t_charn par1 entero par2\n | t_text\n | t_boolean\n | t_date\n | id Valor : decimal\n | entero\n | string\n | char\n | t_true\n | t_falseValor : idempty :EXP : EXP mas EXP\n | EXP menos EXP\n | EXP asterisco EXP\n | EXP div EXP\n | EXP pot EXP\n | EXP porcentaje EXPEXP : par1 EXP par2EXP : id par1 Lista_EXP par2EXP : EXP mayor EXP\n | EXP mayori EXP\n | EXP menor EXP\n | EXP menori EXP\n | EXP igual EXP\n | EXP diferente EXP\n | EXP diferentede EXPEXP : EXP t_and EXP\n | EXP t_or EXP\n EXP : mas EXP %prec umas\n | menos EXP %prec umenos\n | t_not EXPEXP : ValorEXP : id punto idEXP : EXP t_as EXPEXP : t_avg par1 EXP par2\n | t_sum par1 EXP par2\n | t_count par1 EXP par2\n | t_count par1 asterisco par2\n | t_max par1 EXP par2\n | t_min par1 EXP par2EXP : t_abs par1 EXP par2\n | t_cbrt par1 EXP par2\n | t_ceil par1 EXP par2\n | t_ceiling par1 EXP par2\n | t_degrees par1 EXP par2\n | t_exp par1 EXP par2\n | t_factorial par1 EXP par2\n | t_floor par1 EXP par2\n | t_gcd par1 Lista_EXP par2\n | t_ln par1 EXP par2\n | t_log par1 EXP par2\n | t_pi par1 par2\n | t_radians par1 EXP par2\n | t_round par1 EXP par2\n | t_min_scale par1 EXP par2\n | t_scale par1 EXP par2\n | t_sign par1 EXP par2\n | t_sqrt par1 EXP par2\n | t_trim_scale par1 EXP par2\n | t_trunc par1 EXP par2\n | t_width_bucket par1 Lista_EXP par2\n | t_random par1 par2\n | t_setseed par1 EXP par2 EXP : t_div par1 EXP coma EXP par2\n | t_mod par1 EXP coma EXP par2\n | t_power par1 EXP coma EXP par2 EXP : t_acos par1 EXP par2\n | t_acosd par1 EXP par2\n | t_asin par1 EXP par2\n | t_asind par1 EXP par2\n | t_atan par1 EXP par2\n | t_atand par1 EXP par2\n | t_cos par1 EXP par2\n | t_cosd par1 EXP par2\n | t_cot par1 EXP par2\n | t_cotd par1 EXP par2\n | t_sin par1 EXP par2\n | t_sind par1 EXP par2\n | t_tan par1 EXP par2\n | t_tand par1 EXP par2 EXP : t_atan2 par1 EXP coma EXP par2\n | t_atan2d par1 EXP coma EXP par2 EXP : t_length par1 id par2\n | t_substring par1 char coma entero coma entero par2\n | t_trim par1 char par2\n | t_md5 par1 char par2\n | t_sha256 par1 par2\n | t_substr par1 par2\n | t_get_byte par1 par2\n | t_set_byte par1 par2\n | t_convert par1 EXP t_as Tipo par2\n | t_encode par1 par2\n | t_decode par1 par2 Lista_ID : Lista_ID coma id\n | id Lista_Enum : Lista_Enum coma char\n | char Lista_EXP : Lista_EXP coma EXP\n | EXP Lista_Alias : Lista_Alias coma Nombre_Alias\n | Nombre_Alias Nombre_Alias : id id'
_lr_action_items = {'$end':([0,1,2,3,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[-145,0,-1,-2,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_select':([0,2,4,5,6,13,17,198,202,207,210,224,313,391,396,453,487,490,593,],[7,7,-4,-5,-6,-48,-3,-12,-49,-50,-51,336,-47,-9,-11,-10,-7,-8,-54,]),'t_insert':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[8,8,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_update':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[9,9,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_delete':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[10,10,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_use':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[11,11,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_show':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[12,12,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_drop':([0,2,4,5,6,13,17,198,202,207,209,210,313,391,396,453,487,490,593,],[14,14,-4,-5,-6,-48,-3,-12,-49,-50,322,-51,-47,-9,-11,-10,-7,-8,-54,]),'t_alter':([0,2,4,5,6,13,17,198,202,207,209,210,313,391,396,408,453,487,490,513,593,],[15,15,-4,-5,-6,-48,-3,-12,-49,-50,323,-51,-47,-9,-11,466,-10,-7,-8,466,-54,]),'t_create':([0,2,4,5,6,13,17,198,202,207,210,313,391,396,453,487,490,593,],[16,16,-4,-5,-6,-48,-3,-12,-49,-50,-51,-47,-9,-11,-10,-7,-8,-54,]),'asterisco':([7,20,24,26,76,77,87,88,89,90,131,132,133,136,139,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[19,117,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,117,-165,250,117,117,117,-148,-149,-150,-151,-154,-155,-156,-157,117,-159,117,-161,-162,117,-152,-167,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-186,117,117,117,117,117,117,117,117,-196,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-221,-222,-223,-224,117,-226,-227,117,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,117,117,117,117,117,117,-144,-198,-199,-200,-215,-216,-225,117,117,117,117,-218,117,]),'par1':([7,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,78,79,80,81,82,83,84,85,86,111,112,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,195,196,213,216,308,311,367,368,369,384,385,390,394,410,440,444,445,446,450,461,462,482,483,488,500,504,507,527,531,532,533,538,545,550,565,574,600,618,637,640,],[23,23,23,23,134,23,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,23,224,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,307,23,329,23,394,23,23,23,23,23,23,23,23,472,498,501,502,503,134,508,23,530,531,23,541,545,546,568,23,571,572,23,23,592,600,23,23,632,641,643,]),'id':([7,9,11,21,22,23,25,91,93,97,98,100,101,103,107,111,112,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,135,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,192,196,203,205,212,216,225,307,311,316,326,328,329,334,335,367,368,369,384,385,390,394,398,399,401,403,406,407,408,409,413,419,423,426,459,462,477,481,488,508,510,513,514,530,531,538,545,546,561,567,568,571,572,574,600,631,635,641,643,],[24,92,94,24,24,24,24,195,197,-145,206,208,209,211,213,24,225,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,246,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,295,24,24,315,-58,-145,24,337,393,24,-57,411,-90,413,424,426,24,24,24,24,24,450,24,454,456,459,463,464,465,468,471,478,486,393,337,478,24,-89,413,24,547,548,552,553,393,24,24,24,393,596,602,603,393,393,24,24,637,640,393,393,]),'mas':([7,20,21,22,23,24,25,26,76,77,87,88,89,90,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,311,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,388,389,390,394,397,429,430,431,432,433,450,462,488,491,492,493,494,495,497,509,531,536,538,545,570,574,580,581,600,622,],[21,115,21,21,21,-144,21,-166,-141,-139,-138,-140,-142,-143,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,-163,-164,115,21,-165,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,115,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,115,-159,115,-161,-162,115,-152,-167,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-186,115,115,115,115,115,115,115,115,-196,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-221,-222,-223,-224,115,-226,-227,21,115,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,21,21,21,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,21,21,-217,-219,-220,21,21,115,115,115,115,115,115,-144,21,21,-198,-199,-200,-215,-216,-225,115,21,115,21,21,115,21,115,-218,21,115,]),'menos':([7,20,21,22,23,24,25,26,76,77,87,88,89,90,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,311,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,388,389,390,394,397,429,430,431,432,433,450,462,488,491,492,493,494,495,497,509,531,536,538,545,570,574,580,581,600,622,],[22,116,22,22,22,-144,22,-166,-141,-139,-138,-140,-142,-143,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,-163,-164,116,22,-165,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,116,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,116,-159,116,-161,-162,116,-152,-167,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-186,116,116,116,116,116,116,116,116,-196,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-221,-222,-223,-224,116,-226,-227,22,116,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,22,22,22,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,22,22,-217,-219,-220,22,22,116,116,116,116,116,116,-144,22,22,-198,-199,-200,-215,-216,-225,116,22,116,22,22,116,22,116,-218,22,116,]),'t_not':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,327,367,368,369,384,385,390,394,436,437,438,439,441,443,447,448,449,462,478,479,486,488,499,511,524,525,531,538,545,563,564,574,582,584,585,586,596,597,600,601,602,615,634,],[25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,412,25,25,25,25,25,25,25,-122,-123,-124,-125,-127,-129,-134,-135,-136,25,-137,-145,-115,25,-128,549,562,-116,25,25,25,-145,-145,25,-126,-132,-131,-133,-145,-145,25,-145,-145,-130,-145,]),'t_avg':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,]),'t_sum':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,]),'t_count':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,]),'t_max':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,]),'t_min':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,]),'t_abs':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,]),'t_cbrt':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,]),'t_ceil':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,]),'t_ceiling':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,]),'t_degrees':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,]),'t_exp':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,]),'t_factorial':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,]),'t_floor':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,]),'t_gcd':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,]),'t_ln':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,]),'t_log':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,]),'t_pi':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,]),'t_radians':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,]),'t_round':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,]),'t_min_scale':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,]),'t_scale':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,]),'t_sign':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,]),'t_sqrt':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,]),'t_trim_scale':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,]),'t_trunc':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,]),'t_width_bucket':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,]),'t_random':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,]),'t_setseed':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,]),'t_div':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,]),'t_mod':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,]),'t_power':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,]),'t_acos':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,]),'t_acosd':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,]),'t_asin':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,]),'t_asind':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,]),'t_atan':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,]),'t_atand':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,]),'t_cos':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,]),'t_cosd':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,]),'t_cot':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,]),'t_cotd':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,]),'t_sin':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,]),'t_sind':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,]),'t_tan':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,]),'t_tand':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,]),'t_atan2':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,]),'t_atan2d':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,]),'t_length':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,]),'t_substring':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,]),'t_trim':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,]),'t_md5':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,]),'t_sha256':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,]),'t_substr':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,]),'t_get_byte':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,]),'t_set_byte':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,]),'t_convert':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,]),'t_encode':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,]),'t_decode':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,]),'decimal':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,]),'entero':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,387,390,394,462,475,488,496,498,501,502,503,521,531,538,541,545,557,574,575,576,592,600,628,632,],[77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,434,77,77,77,522,77,539,540,542,543,544,560,77,77,583,77,522,77,610,612,619,77,636,638,]),'string':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,]),'char':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,192,196,200,216,311,367,368,369,384,385,390,394,462,472,474,488,518,531,538,545,555,574,600,],[76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,296,297,298,76,76,314,76,76,76,76,76,76,76,76,76,76,516,519,76,559,76,76,76,594,76,76,]),'t_true':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,]),'t_false':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,]),'t_into':([8,],[91,]),'t_from':([10,18,19,20,24,26,76,77,87,88,89,90,131,132,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,491,492,493,494,495,497,581,],[93,112,112,-233,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-232,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-198,-199,-200,-215,-216,-225,-218,]),'t_databases':([12,],[95,]),'t_database':([14,15,16,106,109,214,],[97,100,-145,212,-88,-87,]),'t_table':([14,15,16,],[98,101,107,]),'t_type':([16,468,548,552,],[103,512,590,512,]),'t_or':([16,20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[108,129,-144,-166,-141,-139,-138,-140,-142,-143,129,129,129,-165,129,129,129,129,129,129,129,-154,-155,-156,-157,129,-159,129,-161,-162,129,-152,-167,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,-186,129,129,129,129,129,129,129,129,-196,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,-221,-222,-223,-224,129,-226,-227,129,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,129,129,129,129,129,129,-144,-198,-199,-200,-215,-216,-225,129,129,129,129,-218,129,]),'coma':([18,20,24,26,76,77,87,88,89,90,131,132,136,218,222,223,225,226,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,261,264,273,274,276,277,278,293,294,296,299,300,301,302,304,305,309,329,337,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,392,393,414,415,416,418,424,425,434,436,437,438,439,441,443,447,448,449,452,469,470,478,479,481,489,491,492,493,494,495,497,499,515,516,523,525,529,534,535,536,551,563,564,569,577,578,579,581,582,584,585,586,587,588,594,596,597,598,599,601,602,604,605,606,607,608,613,615,620,621,623,624,626,629,630,633,634,639,642,644,645,647,],[111,-233,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-232,334,335,-229,-235,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,111,-167,111,-186,111,-196,367,368,369,384,385,387,-221,-222,-223,-224,-226,-227,111,-145,-236,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,334,-229,481,-104,-106,-121,-228,-234,496,-122,-123,-124,-125,-127,-129,-134,-135,-136,111,513,-81,-137,-145,-145,334,-198,-199,-200,-215,-216,-225,-128,555,-231,-105,-114,-103,574,-34,-37,-80,-145,-145,334,-36,-38,-39,-218,-126,-132,-131,-133,111,334,-230,-145,-145,-109,-110,-145,-145,-117,-118,334,334,-33,-35,-130,-107,-108,-112,-113,-119,-40,-41,-82,-145,-111,-83,334,334,-120,]),'t_where':([18,19,20,24,26,76,77,87,88,89,90,110,113,114,131,132,136,197,218,219,220,221,222,223,225,226,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,309,337,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,424,425,427,491,492,493,494,495,497,581,],[-145,-145,-233,-144,-166,-141,-139,-138,-140,-142,-143,216,-14,216,-163,-164,-165,311,-232,-13,-15,-16,-17,-18,-229,-235,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,311,-236,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-228,-234,-19,-198,-199,-200,-215,-216,-225,-218,]),'t_group':([18,19,20,24,26,76,77,87,88,89,90,110,113,114,131,132,136,215,217,218,219,220,221,222,223,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,333,337,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,424,425,427,491,492,493,494,495,497,581,],[-145,-145,-233,-144,-166,-141,-139,-138,-140,-142,-143,-145,-14,-145,-163,-164,-165,331,-23,-232,-13,-15,-16,-17,-18,-229,-235,331,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-22,-236,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-228,-234,-19,-198,-199,-200,-215,-216,-225,-218,]),'t_order':([18,19,20,24,26,76,77,87,88,89,90,110,113,114,131,132,136,215,217,218,219,220,221,222,223,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,330,332,333,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,393,424,425,427,489,491,492,493,494,495,497,537,580,581,],[-145,-145,-233,-144,-166,-141,-139,-138,-140,-142,-143,-145,-14,-145,-163,-164,-165,-145,-23,-232,-13,-15,-16,-17,-18,-229,-235,-145,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,421,-28,-22,-236,421,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-229,-228,-234,-19,-26,-198,-199,-200,-215,-216,-225,-27,-29,-218,]),'pyc':([18,19,20,24,26,76,77,87,88,89,90,94,95,96,99,102,104,105,110,113,114,131,132,136,197,199,201,206,215,217,218,219,220,221,222,223,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,306,309,310,312,314,315,317,320,330,332,333,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,393,395,397,400,405,411,420,422,424,425,427,428,436,437,438,439,441,443,447,448,449,454,455,456,457,458,464,465,467,469,470,473,476,478,480,489,491,492,493,494,495,497,499,505,506,509,517,519,520,522,526,528,534,535,536,537,551,553,554,556,558,559,560,573,577,578,579,580,581,582,584,585,586,589,591,595,608,609,610,611,612,613,615,616,625,629,630,633,636,642,646,],[-145,-145,-233,-144,-166,-141,-139,-138,-140,-142,-143,198,-145,202,207,210,-84,-85,-145,-14,-145,-163,-164,-165,-145,313,-53,-56,-145,-23,-232,-13,-15,-16,-17,-18,-229,-235,-145,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,391,-145,396,-25,-52,-55,-59,-60,-145,-28,-22,-236,-145,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-229,453,-24,-66,-67,-145,487,-32,-228,-234,-19,490,-122,-123,-124,-125,-127,-129,-134,-135,-136,-61,-62,-63,-64,-65,-76,-77,-68,-79,-81,-86,-93,-137,-145,-26,-198,-199,-200,-215,-216,-225,-128,-21,-70,-73,-145,-95,-92,-99,-100,-102,-30,-34,-37,-27,-80,-69,593,-91,-97,-94,-98,-31,-36,-38,-39,-29,-218,-126,-132,-131,-133,-72,-78,-96,-33,-43,-45,-46,-44,-35,-130,-20,-101,-40,-41,-82,-42,-83,-71,]),'par2':([20,24,26,76,77,87,88,89,90,131,132,133,136,153,163,188,189,190,191,193,194,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,279,280,281,282,283,284,285,286,287,288,289,290,291,292,295,297,298,299,300,301,302,304,305,329,336,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,392,393,414,415,416,418,424,429,430,431,432,433,435,436,437,438,439,441,443,447,448,449,450,452,478,479,481,491,492,493,494,495,497,499,515,516,523,525,529,539,540,542,543,544,547,563,564,569,570,581,582,583,584,585,586,587,588,594,596,597,598,599,601,602,603,604,605,606,607,615,619,620,621,622,623,624,626,634,638,639,644,645,647,],[-233,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,244,-165,264,274,299,300,301,302,304,305,-232,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,339,-167,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,-186,357,358,359,360,361,362,363,364,365,-196,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,-221,-222,-223,-224,-226,-227,-145,427,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,451,-229,480,-104,-106,-121,-228,491,492,493,494,495,497,-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,505,-137,-145,-145,-198,-199,-200,-215,-216,-225,-128,554,-231,-105,-114,-103,581,582,584,585,586,589,-145,-145,604,605,-218,-126,615,-132,-131,-133,616,617,-230,-145,-145,-109,-110,-145,-145,625,-117,-118,626,627,-130,633,-107,-108,634,-112,-113,-119,-145,642,-111,646,647,-120,]),'div':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[118,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,118,-165,118,118,118,-148,-149,-150,-151,-154,-155,-156,-157,118,-159,118,-161,-162,118,-152,-167,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-186,118,118,118,118,118,118,118,118,-196,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-221,-222,-223,-224,118,-226,-227,118,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,118,118,118,118,118,118,-144,-198,-199,-200,-215,-216,-225,118,118,118,118,-218,118,]),'pot':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[119,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,119,-165,119,119,119,119,119,-150,119,-154,-155,-156,-157,119,-159,119,-161,-162,119,-152,-167,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,-186,119,119,119,119,119,119,119,119,-196,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,-221,-222,-223,-224,119,-226,-227,119,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,119,119,119,119,119,119,-144,-198,-199,-200,-215,-216,-225,119,119,119,119,-218,119,]),'porcentaje':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[120,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,120,-165,120,120,120,-148,-149,-150,-151,-154,-155,-156,-157,120,-159,120,-161,-162,120,-152,-167,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,-186,120,120,120,120,120,120,120,120,-196,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,-221,-222,-223,-224,120,-226,-227,120,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,120,120,120,120,120,120,-144,-198,-199,-200,-215,-216,-225,120,120,120,120,-218,120,]),'mayor':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[121,-144,-166,-141,-139,-138,-140,-142,-143,121,121,121,-165,121,121,121,121,121,121,121,-154,-155,-156,-157,121,121,121,121,121,121,-152,-167,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-186,121,121,121,121,121,121,121,121,-196,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-221,-222,-223,-224,121,-226,-227,121,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,121,121,121,121,121,121,-144,-198,-199,-200,-215,-216,-225,121,121,121,121,-218,121,]),'mayori':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[122,-144,-166,-141,-139,-138,-140,-142,-143,122,122,122,-165,122,122,122,122,122,122,122,-154,-155,-156,-157,122,122,122,122,122,122,-152,-167,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-186,122,122,122,122,122,122,122,122,-196,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-221,-222,-223,-224,122,-226,-227,122,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,122,122,122,122,122,122,-144,-198,-199,-200,-215,-216,-225,122,122,122,122,-218,122,]),'menor':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[123,-144,-166,-141,-139,-138,-140,-142,-143,123,123,123,-165,123,123,123,123,123,123,123,-154,-155,-156,-157,123,123,123,123,123,123,-152,-167,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-186,123,123,123,123,123,123,123,123,-196,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-221,-222,-223,-224,123,-226,-227,123,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,123,123,123,123,123,123,-144,-198,-199,-200,-215,-216,-225,123,123,123,123,-218,123,]),'menori':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[124,-144,-166,-141,-139,-138,-140,-142,-143,124,124,124,-165,124,124,124,124,124,124,124,-154,-155,-156,-157,124,124,124,124,124,124,-152,-167,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,-186,124,124,124,124,124,124,124,124,-196,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,-221,-222,-223,-224,124,-226,-227,124,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,124,124,124,124,124,124,-144,-198,-199,-200,-215,-216,-225,124,124,124,124,-218,124,]),'igual':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,474,475,491,492,493,494,495,497,509,536,557,570,580,581,622,],[125,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,125,-165,125,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,125,-159,125,-161,-162,125,-152,-167,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,-186,125,125,125,125,125,125,125,125,-196,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,-221,-222,-223,-224,125,-226,-227,125,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,125,125,125,125,125,125,-144,518,521,-198,-199,-200,-215,-216,-225,125,125,521,125,125,-218,125,]),'diferente':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[126,-144,-166,-141,-139,-138,-140,-142,-143,126,126,126,-165,126,126,126,126,126,126,126,-154,-155,-156,-157,126,-159,126,126,126,126,-152,-167,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,-186,126,126,126,126,126,126,126,126,-196,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,-221,-222,-223,-224,126,-226,-227,126,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,126,126,126,126,126,126,-144,-198,-199,-200,-215,-216,-225,126,126,126,126,-218,126,]),'diferentede':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[127,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,127,-165,127,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,127,-161,-162,127,-152,-167,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-186,127,127,127,127,127,127,127,127,-196,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-221,-222,-223,-224,127,-226,-227,127,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,127,127,127,127,127,127,-144,-198,-199,-200,-215,-216,-225,127,127,127,127,-218,127,]),'t_and':([20,24,26,76,77,87,88,89,90,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[128,-144,-166,-141,-139,-138,-140,-142,-143,128,128,128,-165,128,128,128,128,128,128,128,-154,-155,-156,-157,128,-159,128,-161,128,128,-152,-167,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,-186,128,128,128,128,128,128,128,128,-196,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,-221,-222,-223,-224,128,-226,-227,128,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,128,128,128,128,128,128,-144,-198,-199,-200,-215,-216,-225,128,128,128,128,-218,128,]),'t_as':([20,24,26,76,77,87,88,89,90,131,132,133,136,211,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,247,248,249,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,299,300,301,302,303,304,305,333,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,397,429,430,431,432,433,450,491,492,493,494,495,497,509,536,570,580,581,622,],[130,-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,130,-165,325,130,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,130,-161,-162,130,-152,-167,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,-186,130,130,130,130,130,130,130,130,-196,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,-221,-222,-223,-224,390,-226,-227,130,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,130,130,130,130,130,130,-144,-198,-199,-200,-215,-216,-225,130,130,130,130,-218,130,]),'punto':([24,450,],[135,135,]),'t_asc':([24,26,76,77,87,88,89,90,131,132,136,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,491,492,493,494,495,497,536,581,],[-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-198,-199,-200,-215,-216,-225,578,-218,]),'t_desc':([24,26,76,77,87,88,89,90,131,132,136,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,491,492,493,494,495,497,536,581,],[-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-198,-199,-200,-215,-216,-225,579,-218,]),'t_limit':([24,26,76,77,87,88,89,90,131,132,136,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,491,492,493,494,495,497,534,535,536,577,578,579,581,608,613,629,630,],[-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-198,-199,-200,-215,-216,-225,575,-34,-37,-36,-38,-39,-218,-33,-35,-40,-41,]),'t_offset':([24,26,76,77,87,88,89,90,131,132,136,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,246,264,274,299,300,301,302,304,305,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,370,371,372,373,374,375,376,377,378,379,380,381,382,383,386,388,389,491,492,493,494,495,497,534,535,536,577,578,579,581,608,609,610,611,613,629,630,],[-144,-166,-141,-139,-138,-140,-142,-143,-163,-164,-165,-146,-147,-148,-149,-150,-151,-154,-155,-156,-157,-158,-159,-160,-161,-162,-168,-152,-167,-186,-196,-221,-222,-223,-224,-226,-227,-153,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-187,-188,-189,-190,-191,-192,-193,-194,-195,-197,-201,-202,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-217,-219,-220,-198,-199,-200,-215,-216,-225,576,-34,-37,-36,-38,-39,-218,-33,628,-45,-46,-35,-40,-41,]),'t_set':([92,468,],[196,511,]),'t_like':([95,],[200,]),'t_if':([97,212,],[204,327,]),'t_replace':([108,],[214,]),'t_values':([195,451,],[308,504,]),'t_exists':([204,412,],[316,477,]),'t_rename':([208,209,],[318,324,]),'t_owner':([208,411,],[319,474,]),'t_add':([209,],[321,]),'t_to':([318,319,471,],[398,399,514,]),'t_column':([321,322,323,324,466,],[401,406,408,409,510,]),'t_constraint':([321,322,329,436,437,438,439,441,443,447,448,449,478,479,481,499,563,564,582,584,585,586,596,597,601,602,615,634,],[403,407,419,-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,419,419,-128,419,419,-126,-132,-131,-133,419,419,419,419,-130,419,]),'t_foreign':([321,329,402,404,417,418,463,481,486,],[-145,-145,460,-75,485,-116,-74,-145,-115,]),'t_unique':([321,329,402,404,417,418,436,437,438,439,441,443,447,448,449,463,478,479,481,486,499,524,525,563,564,582,584,585,586,596,597,601,602,615,634,],[-145,-145,461,-75,482,-116,-122,-123,-124,-125,-127,-129,-134,-135,-136,-74,-137,-145,-145,-115,-128,564,-116,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,-145,]),'t_check':([321,329,402,404,417,418,436,437,438,439,441,443,447,448,449,463,478,479,481,486,499,524,525,563,564,582,584,585,586,596,597,601,602,615,634,],[-145,-145,462,-75,483,-116,-122,-123,-124,-125,-127,-129,-134,-135,-136,-74,-137,-145,-145,-115,-128,565,-116,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,-145,]),'t_enum':([325,],[410,]),'t_primary':([329,417,418,436,437,438,439,441,443,447,448,449,478,479,481,486,499,524,525,563,564,582,584,585,586,596,597,601,602,615,634,],[-145,484,-116,-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,-145,-145,-115,-128,566,-116,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,-145,]),'t_by':([331,421,],[423,488,]),'t_smallint':([390,413,459,],[436,436,436,]),'t_integer':([390,413,459,],[437,437,437,]),'t_bigint':([390,413,459,],[438,438,438,]),'t_decimal':([390,413,459,],[439,439,439,]),'t_numeric':([390,413,459,],[440,440,440,]),'t_real':([390,413,459,],[441,441,441,]),'t_double':([390,413,459,],[442,442,442,]),'t_money':([390,413,459,],[443,443,443,]),'t_character':([390,413,459,],[444,444,444,]),'t_varchar':([390,413,459,512,590,],[445,445,445,550,618,]),'t_charn':([390,413,459,],[446,446,446,]),'t_text':([390,413,459,],[447,447,447,]),'t_boolean':([390,413,459,],[448,448,448,]),'t_date':([390,413,459,],[449,449,449,]),'t_having':([393,424,489,],[-229,-228,538,]),'t_current_user':([399,],[457,]),'t_session_user':([399,],[458,]),'t_mode':([411,517,519,559,],[475,557,-95,-94,]),'t_default':([436,437,438,439,441,443,447,448,449,478,479,486,499,524,525,563,564,582,584,585,586,596,597,601,602,615,634,],[-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,-145,-115,-128,561,-116,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,-145,]),'t_null':([436,437,438,439,441,443,447,448,449,478,479,486,499,524,525,549,562,563,564,582,584,585,586,596,597,601,602,615,634,],[-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,-145,-115,-128,563,-116,591,597,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,-145,]),'t_references':([436,437,438,439,441,443,447,448,449,478,479,486,499,524,525,563,564,582,584,585,586,596,597,601,602,615,617,627,634,],[-122,-123,-124,-125,-127,-129,-134,-135,-136,-137,-145,-115,-128,567,-116,-145,-145,-126,-132,-131,-133,-145,-145,-145,-145,-130,631,635,-145,]),'t_precision':([442,],[499,]),'t_varying':([444,],[500,]),'t_key':([460,484,485,566,],[507,532,533,601,]),'t_inherits':([480,],[527,]),'t_all':([575,],[611,]),'t_nulls':([577,578,579,],[614,-38,-39,]),'t_first':([614,],[629,]),'t_last':([614,],[630,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'SQL':([0,],[1,]),'Sentencias_SQL':([0,],[2,]),'empty':([0,16,18,19,95,97,110,114,197,212,215,227,309,321,329,330,338,411,479,480,481,517,563,564,596,597,601,602,634,],[3,109,113,113,201,205,217,217,312,328,332,332,312,404,418,422,422,476,525,528,418,558,525,525,525,525,525,525,525,]),'Sentencia_SQL':([0,2,],[4,17,]),'Sentencias_DML':([0,2,],[5,5,]),'Sentencias_DDL':([0,2,],[6,6,]),'Enum_Type':([0,2,],[13,13,]),'Lista_EXP':([7,134,150,162,196,394,545,],[18,245,261,273,309,452,587,]),'EXP':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[20,131,132,133,136,218,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,20,247,248,249,251,252,253,254,255,256,257,258,259,260,20,262,263,265,266,267,268,269,270,271,272,20,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,303,20,333,397,429,430,431,432,433,243,20,509,536,570,580,20,536,622,]),'Valor':([7,21,22,23,25,111,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,192,196,216,311,367,368,369,384,385,390,394,462,488,531,538,545,574,600,],[26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,]),'Drop':([14,],[96,]),'Alter':([15,],[99,]),'Create':([16,],[102,]),'CreateDB':([16,],[104,]),'CreateTB':([16,],[105,]),'OrReplace_CreateDB':([16,],[106,]),'Select_SQL':([18,19,],[110,114,]),'Show_DB_Like_Char':([95,],[199,]),'DropDB':([97,],[203,]),'Condiciones':([110,114,],[215,227,]),'Table_Expression':([112,],[219,]),'Alias_Tabla':([112,],[220,]),'Subqueries':([112,],[221,]),'Lista_ID':([112,307,423,530,546,571,572,641,643,],[222,392,489,569,588,606,607,644,645,]),'Lista_Alias':([112,],[223,]),'Nombre_Alias':([112,335,],[226,425,]),'Insert_SQL':([195,],[306,]),'Condiciones1':([197,309,],[310,395,]),'AlterDB':([208,],[317,]),'AlterTB':([209,],[320,]),'IfNotExist_CreateDB':([212,],[326,]),'GRP':([215,227,],[330,338,]),'Add_Opc':([321,],[400,]),'Constraint_AlterTB':([321,],[402,]),'Drop_Opc':([322,],[405,]),'Columnas':([329,],[414,]),'Columna':([329,481,],[415,529,]),'Constraint':([329,481,],[416,416,]),'Constraint_CreateTB':([329,479,481,563,564,596,597,601,602,634,],[417,524,417,524,524,524,524,524,524,524,]),'ORD':([330,338,],[420,428,]),'Tipo':([390,413,459,],[435,479,506,]),'SesionDB':([399,],[455,]),'Alter_Column':([408,],[467,]),'Alter_Columns':([408,],[469,]),'Alter_Column1':([408,513,],[470,551,]),'Sesion':([411,],[473,]),'Lista_Enum':([472,],[515,]),'Op_Sesion':([474,],[517,]),'Op_Mode':([475,557,],[520,595,]),'Cond_CreateTB':([479,563,564,596,597,601,602,634,],[523,598,599,620,621,623,624,639,]),'Inherits':([480,],[526,]),'LSORT':([488,],[534,]),'SORT':([488,574,],[535,608,]),'HV':([489,],[537,]),'Sesion_mode':([517,],[556,]),'LMT':([534,],[573,]),'AD':([536,],[577,]),'NAL':([575,],[609,]),'NFL':([577,],[613,]),}
_lr_goto = {}
for _k, _v in _lr_goto_items.items():
for _x, _y in zip(_v[0], _v[1]):
if not _x in _lr_goto: _lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> SQL","S'",1,None,None,None),
('SQL -> Sentencias_SQL','SQL',1,'p_sql','Gramatica.py',318),
('SQL -> empty','SQL',1,'p_sql2','Gramatica.py',322),
('Sentencias_SQL -> Sentencias_SQL Sentencia_SQL','Sentencias_SQL',2,'p_Sentencias_SQL_Sentencia_SQL','Gramatica.py',326),
('Sentencias_SQL -> Sentencia_SQL','Sentencias_SQL',1,'p_Sentencias_SQL','Gramatica.py',332),
('Sentencia_SQL -> Sentencias_DML','Sentencia_SQL',1,'p_Sentencia_SQL_DML','Gramatica.py',337),
('Sentencia_SQL -> Sentencias_DDL','Sentencia_SQL',1,'p_Sentencia_SQL_DDL','Gramatica.py',346),
('Sentencias_DML -> t_select Lista_EXP Select_SQL Condiciones GRP ORD pyc','Sentencias_DML',7,'p_Sentencias_DML','Gramatica.py',352),
('Sentencias_DML -> t_select asterisco Select_SQL Condiciones GRP ORD pyc','Sentencias_DML',7,'p_Sentencias_DML','Gramatica.py',353),
('Sentencias_DML -> t_insert t_into id Insert_SQL pyc','Sentencias_DML',5,'p_Sentencias_DML','Gramatica.py',354),
('Sentencias_DML -> t_update id t_set Lista_EXP Condiciones1 pyc','Sentencias_DML',6,'p_Sentencias_DML','Gramatica.py',355),
('Sentencias_DML -> t_delete t_from id Condiciones1 pyc','Sentencias_DML',5,'p_Sentencias_DML','Gramatica.py',356),
('Sentencias_DML -> t_use id pyc','Sentencias_DML',3,'p_Sentencias_DML','Gramatica.py',357),
('Select_SQL -> t_from Table_Expression','Select_SQL',2,'p_Select_SQL','Gramatica.py',376),
('Select_SQL -> empty','Select_SQL',1,'p_Select2_SQL','Gramatica.py',382),
('Table_Expression -> Alias_Tabla','Table_Expression',1,'p_Table_Expression','Gramatica.py',388),
('Table_Expression -> Subqueries','Table_Expression',1,'p_Table_Expression','Gramatica.py',389),
('Alias_Tabla -> Lista_ID','Alias_Tabla',1,'p_Alias_Tabla','Gramatica.py',395),
('Alias_Tabla -> Lista_Alias','Alias_Tabla',1,'p_Alias_Tabla','Gramatica.py',396),
('Subqueries -> par1 t_select par2','Subqueries',3,'p_Subqueries','Gramatica.py',401),
('Insert_SQL -> par1 Lista_ID par2 t_values par1 Lista_EXP par2','Insert_SQL',7,'p_Insert_SQL','Gramatica.py',406),
('Insert_SQL -> t_values par1 Lista_EXP par2','Insert_SQL',4,'p_Insert_SQL2','Gramatica.py',411),
('Condiciones -> t_where EXP','Condiciones',2,'p_Condiciones','Gramatica.py',416),
('Condiciones -> empty','Condiciones',1,'p_Condiciones','Gramatica.py',417),
('Condiciones1 -> t_where EXP','Condiciones1',2,'p_Condiciones1','Gramatica.py',426),
('Condiciones1 -> empty','Condiciones1',1,'p_Condiciones1','Gramatica.py',427),
('GRP -> t_group t_by Lista_ID','GRP',3,'p_GRP','Gramatica.py',438),
('GRP -> t_group t_by Lista_ID HV','GRP',4,'p_GRP','Gramatica.py',439),
('GRP -> empty','GRP',1,'p_GRP','Gramatica.py',440),
('HV -> t_having EXP','HV',2,'p_HV','Gramatica.py',447),
('ORD -> t_order t_by LSORT','ORD',3,'p_ORD','Gramatica.py',451),
('ORD -> t_order t_by LSORT LMT','ORD',4,'p_ORD','Gramatica.py',452),
('ORD -> empty','ORD',1,'p_ORD','Gramatica.py',453),
('LSORT -> LSORT coma SORT','LSORT',3,'p_L_SORT','Gramatica.py',461),
('LSORT -> SORT','LSORT',1,'p_L_SORT','Gramatica.py',462),
('SORT -> EXP AD NFL','SORT',3,'p_SORT','Gramatica.py',469),
('SORT -> EXP AD','SORT',2,'p_SORT','Gramatica.py',470),
('SORT -> EXP','SORT',1,'p_SORT','Gramatica.py',471),
('AD -> t_asc','AD',1,'p_AD','Gramatica.py',480),
('AD -> t_desc','AD',1,'p_AD','Gramatica.py',481),
('NFL -> t_nulls t_first','NFL',2,'p_NFL','Gramatica.py',486),
('NFL -> t_nulls t_last','NFL',2,'p_NFL','Gramatica.py',487),
('LMT -> t_limit NAL t_offset entero','LMT',4,'p_LMT','Gramatica.py',491),
('LMT -> t_limit NAL','LMT',2,'p_LMT','Gramatica.py',492),
('LMT -> t_offset entero','LMT',2,'p_LMT','Gramatica.py',493),
('NAL -> entero','NAL',1,'p_NAL','Gramatica.py',500),
('NAL -> t_all','NAL',1,'p_NAL','Gramatica.py',501),
('Sentencias_DDL -> t_show t_databases Show_DB_Like_Char pyc','Sentencias_DDL',4,'p_Sentencias_DDL','Gramatica.py',506),
('Sentencias_DDL -> Enum_Type','Sentencias_DDL',1,'p_Sentencias_DDL','Gramatica.py',507),
('Sentencias_DDL -> t_drop Drop pyc','Sentencias_DDL',3,'p_Sentencias_DDL','Gramatica.py',508),
('Sentencias_DDL -> t_alter Alter pyc','Sentencias_DDL',3,'p_Sentencias_DDL','Gramatica.py',509),
('Sentencias_DDL -> t_create Create pyc','Sentencias_DDL',3,'p_Sentencias_DDL','Gramatica.py',510),
('Show_DB_Like_Char -> t_like char','Show_DB_Like_Char',2,'p_show_db_like_regex','Gramatica.py',530),
('Show_DB_Like_Char -> empty','Show_DB_Like_Char',1,'p_show_db_like_regex','Gramatica.py',531),
('Enum_Type -> t_create t_type id t_as t_enum par1 Lista_Enum par2 pyc','Enum_Type',9,'p_Enum_Type','Gramatica.py',540),
('Drop -> t_database DropDB id','Drop',3,'p_Drop','Gramatica.py',545),
('Drop -> t_table id','Drop',2,'p_Drop','Gramatica.py',546),
('DropDB -> t_if t_exists','DropDB',2,'p_DropDB','Gramatica.py',555),
('DropDB -> empty','DropDB',1,'p_DropDB','Gramatica.py',556),
('Alter -> t_database id AlterDB','Alter',3,'p_Alter','Gramatica.py',565),
('Alter -> t_table id AlterTB','Alter',3,'p_Alter','Gramatica.py',566),
('AlterDB -> t_rename t_to id','AlterDB',3,'p_AlterDB','Gramatica.py',575),
('AlterDB -> t_owner t_to SesionDB','AlterDB',3,'p_AlterDB','Gramatica.py',576),
('SesionDB -> id','SesionDB',1,'p_SesionDB','Gramatica.py',585),
('SesionDB -> t_current_user','SesionDB',1,'p_SesionDB','Gramatica.py',586),
('SesionDB -> t_session_user','SesionDB',1,'p_SesionDB','Gramatica.py',587),
('AlterTB -> t_add Add_Opc','AlterTB',2,'p_AlterTB','Gramatica.py',597),
('AlterTB -> t_drop Drop_Opc','AlterTB',2,'p_AlterTB','Gramatica.py',598),
('AlterTB -> t_alter t_column Alter_Column','AlterTB',3,'p_AlterTB','Gramatica.py',599),
('AlterTB -> t_rename t_column id t_to id','AlterTB',5,'p_AlterTB','Gramatica.py',600),
('Add_Opc -> t_column id Tipo','Add_Opc',3,'p_Add_Opc','Gramatica.py',615),
('Add_Opc -> Constraint_AlterTB t_foreign t_key par1 Lista_ID par2 t_references id par1 Lista_ID par2','Add_Opc',11,'p_Add_Opc','Gramatica.py',616),
('Add_Opc -> Constraint_AlterTB t_unique par1 id par2','Add_Opc',5,'p_Add_Opc','Gramatica.py',617),
('Add_Opc -> Constraint_AlterTB t_check EXP','Add_Opc',3,'p_Add_Opc','Gramatica.py',618),
('Constraint_AlterTB -> t_constraint id','Constraint_AlterTB',2,'p_Constraint_AlterTB','Gramatica.py',633),
('Constraint_AlterTB -> empty','Constraint_AlterTB',1,'p_Constraint_AlterTB','Gramatica.py',634),
('Drop_Opc -> t_column id','Drop_Opc',2,'p_Drop_Opc','Gramatica.py',643),
('Drop_Opc -> t_constraint id','Drop_Opc',2,'p_Drop_Opc','Gramatica.py',644),
('Alter_Column -> id t_set t_not t_null','Alter_Column',4,'p_Alter_Column','Gramatica.py',653),
('Alter_Column -> Alter_Columns','Alter_Column',1,'p_Alter_Column','Gramatica.py',654),
('Alter_Columns -> Alter_Columns coma Alter_Column1','Alter_Columns',3,'p_Alter_Columns','Gramatica.py',663),
('Alter_Columns -> Alter_Column1','Alter_Columns',1,'p_Alter_Columns','Gramatica.py',664),
('Alter_Column1 -> id t_type t_varchar par1 entero par2','Alter_Column1',6,'p_Alter_Colum1','Gramatica.py',674),
('Alter_Column1 -> t_alter t_column id t_type t_varchar par1 entero par2','Alter_Column1',8,'p_Alter_Colum1','Gramatica.py',675),
('Create -> CreateDB','Create',1,'p_Create','Gramatica.py',690),
('Create -> CreateTB','Create',1,'p_Create1','Gramatica.py',695),
('CreateDB -> OrReplace_CreateDB t_database IfNotExist_CreateDB id Sesion','CreateDB',5,'p_CreateDB','Gramatica.py',700),
('OrReplace_CreateDB -> t_or t_replace','OrReplace_CreateDB',2,'p_CreateDB_or_replace','Gramatica.py',705),
('OrReplace_CreateDB -> empty','OrReplace_CreateDB',1,'p_CreateDB_or_replace','Gramatica.py',706),
('IfNotExist_CreateDB -> t_if t_not t_exists','IfNotExist_CreateDB',3,'p_IfNotExist_CreateDB','Gramatica.py',715),
('IfNotExist_CreateDB -> empty','IfNotExist_CreateDB',1,'p_IfNotExist_CreateDB','Gramatica.py',716),
('Sesion -> t_owner Op_Sesion Sesion_mode','Sesion',3,'p_Sesion','Gramatica.py',725),
('Sesion -> t_mode Op_Mode','Sesion',2,'p_Sesion','Gramatica.py',726),
('Sesion -> empty','Sesion',1,'p_Sesion','Gramatica.py',727),
('Op_Sesion -> igual char','Op_Sesion',2,'p_Op_Sesion','Gramatica.py',739),
('Op_Sesion -> char','Op_Sesion',1,'p_Op_Sesion','Gramatica.py',740),
('Sesion_mode -> t_mode Op_Mode','Sesion_mode',2,'p_Sesion_mode','Gramatica.py',749),
('Sesion_mode -> empty','Sesion_mode',1,'p_Sesion_mode','Gramatica.py',750),
('Op_Mode -> igual entero','Op_Mode',2,'p_Op_Mode','Gramatica.py',759),
('Op_Mode -> entero','Op_Mode',1,'p_Op_Mode','Gramatica.py',760),
('CreateTB -> t_table id par1 Columnas par2 Inherits','CreateTB',6,'p_CreateTB','Gramatica.py',769),
('Inherits -> t_inherits par1 id par2','Inherits',4,'p_Inherits','Gramatica.py',774),
('Inherits -> empty','Inherits',1,'p_Inherits','Gramatica.py',775),
('Columnas -> Columnas coma Columna','Columnas',3,'p_Columnas','Gramatica.py',784),
('Columnas -> Columna','Columnas',1,'p_Columnas','Gramatica.py',785),
('Columna -> id Tipo Cond_CreateTB','Columna',3,'p_Columna','Gramatica.py',795),
('Columna -> Constraint','Columna',1,'p_Columna','Gramatica.py',796),
('Cond_CreateTB -> Constraint_CreateTB t_default id Cond_CreateTB','Cond_CreateTB',4,'p_Cond_CreateTB','Gramatica.py',805),
('Cond_CreateTB -> Constraint_CreateTB t_not t_null Cond_CreateTB','Cond_CreateTB',4,'p_Cond_CreateTB','Gramatica.py',806),
('Cond_CreateTB -> Constraint_CreateTB t_null Cond_CreateTB','Cond_CreateTB',3,'p_Cond_CreateTB','Gramatica.py',807),
('Cond_CreateTB -> Constraint_CreateTB t_unique Cond_CreateTB','Cond_CreateTB',3,'p_Cond_CreateTB','Gramatica.py',808),
('Cond_CreateTB -> Constraint_CreateTB t_check par1 EXP par2 Cond_CreateTB','Cond_CreateTB',6,'p_Cond_CreateTB','Gramatica.py',809),
('Cond_CreateTB -> Constraint_CreateTB t_primary t_key Cond_CreateTB','Cond_CreateTB',4,'p_Cond_CreateTB','Gramatica.py',810),
('Cond_CreateTB -> Constraint_CreateTB t_references id Cond_CreateTB','Cond_CreateTB',4,'p_Cond_CreateTB','Gramatica.py',811),
('Cond_CreateTB -> empty','Cond_CreateTB',1,'p_Cond_CreateTB','Gramatica.py',812),
('Constraint_CreateTB -> t_constraint id','Constraint_CreateTB',2,'p_Constraint_CreateTB','Gramatica.py',846),
('Constraint_CreateTB -> empty','Constraint_CreateTB',1,'p_Constraint_CreateTB','Gramatica.py',847),
('Constraint -> Constraint_CreateTB t_unique par1 Lista_ID par2','Constraint',5,'p_Constraint','Gramatica.py',856),
('Constraint -> Constraint_CreateTB t_check par1 EXP par2','Constraint',5,'p_Constraint','Gramatica.py',857),
('Constraint -> Constraint_CreateTB t_primary t_key par1 Lista_ID par2','Constraint',6,'p_Constraint','Gramatica.py',858),
('Constraint -> Constraint_CreateTB t_foreign t_key par1 Lista_ID par2 t_references id par1 Lista_ID par2','Constraint',11,'p_Constraint','Gramatica.py',859),
('Constraint -> empty','Constraint',1,'p_Constraint','Gramatica.py',860),
('Tipo -> t_smallint','Tipo',1,'p_Tipo','Gramatica.py',878),
('Tipo -> t_integer','Tipo',1,'p_Tipo','Gramatica.py',879),
('Tipo -> t_bigint','Tipo',1,'p_Tipo','Gramatica.py',880),
('Tipo -> t_decimal','Tipo',1,'p_Tipo','Gramatica.py',881),
('Tipo -> t_numeric par1 entero par2','Tipo',4,'p_Tipo','Gramatica.py',882),
('Tipo -> t_real','Tipo',1,'p_Tipo','Gramatica.py',883),
('Tipo -> t_double t_precision','Tipo',2,'p_Tipo','Gramatica.py',884),
('Tipo -> t_money','Tipo',1,'p_Tipo','Gramatica.py',885),
('Tipo -> t_character t_varying par1 entero par2','Tipo',5,'p_Tipo','Gramatica.py',886),
('Tipo -> t_varchar par1 entero par2','Tipo',4,'p_Tipo','Gramatica.py',887),
('Tipo -> t_character par1 entero par2','Tipo',4,'p_Tipo','Gramatica.py',888),
('Tipo -> t_charn par1 entero par2','Tipo',4,'p_Tipo','Gramatica.py',889),
('Tipo -> t_text','Tipo',1,'p_Tipo','Gramatica.py',890),
('Tipo -> t_boolean','Tipo',1,'p_Tipo','Gramatica.py',891),
('Tipo -> t_date','Tipo',1,'p_Tipo','Gramatica.py',892),
('Tipo -> id','Tipo',1,'p_Tipo','Gramatica.py',893),
('Valor -> decimal','Valor',1,'p_Valor','Gramatica.py',978),
('Valor -> entero','Valor',1,'p_Valor','Gramatica.py',979),
('Valor -> string','Valor',1,'p_Valor','Gramatica.py',980),
('Valor -> char','Valor',1,'p_Valor','Gramatica.py',981),
('Valor -> t_true','Valor',1,'p_Valor','Gramatica.py',982),
('Valor -> t_false','Valor',1,'p_Valor','Gramatica.py',983),
('Valor -> id','Valor',1,'p_Valor2','Gramatica.py',989),
('empty -> <empty>','empty',0,'p_empty','Gramatica.py',994),
('EXP -> EXP mas EXP','EXP',3,'p_aritmeticas','Gramatica.py',1001),
('EXP -> EXP menos EXP','EXP',3,'p_aritmeticas','Gramatica.py',1002),
('EXP -> EXP asterisco EXP','EXP',3,'p_aritmeticas','Gramatica.py',1003),
('EXP -> EXP div EXP','EXP',3,'p_aritmeticas','Gramatica.py',1004),
('EXP -> EXP pot EXP','EXP',3,'p_aritmeticas','Gramatica.py',1005),
('EXP -> EXP porcentaje EXP','EXP',3,'p_aritmeticas','Gramatica.py',1006),
('EXP -> par1 EXP par2','EXP',3,'p_parentesis','Gramatica.py',1011),
('EXP -> id par1 Lista_EXP par2','EXP',4,'p_funciones','Gramatica.py',1017),
('EXP -> EXP mayor EXP','EXP',3,'p_relacionales','Gramatica.py',1024),
('EXP -> EXP mayori EXP','EXP',3,'p_relacionales','Gramatica.py',1025),
('EXP -> EXP menor EXP','EXP',3,'p_relacionales','Gramatica.py',1026),
('EXP -> EXP menori EXP','EXP',3,'p_relacionales','Gramatica.py',1027),
('EXP -> EXP igual EXP','EXP',3,'p_relacionales','Gramatica.py',1028),
('EXP -> EXP diferente EXP','EXP',3,'p_relacionales','Gramatica.py',1029),
('EXP -> EXP diferentede EXP','EXP',3,'p_relacionales','Gramatica.py',1030),
('EXP -> EXP t_and EXP','EXP',3,'p_logicos','Gramatica.py',1035),
('EXP -> EXP t_or EXP','EXP',3,'p_logicos','Gramatica.py',1036),
('EXP -> mas EXP','EXP',2,'p_unario','Gramatica.py',1042),
('EXP -> menos EXP','EXP',2,'p_unario','Gramatica.py',1043),
('EXP -> t_not EXP','EXP',2,'p_unario','Gramatica.py',1044),
('EXP -> Valor','EXP',1,'p_EXP_Valor','Gramatica.py',1053),
('EXP -> id punto id','EXP',3,'p_EXP_Indices','Gramatica.py',1058),
('EXP -> EXP t_as EXP','EXP',3,'p_EXP_IndicesAS','Gramatica.py',1064),
('EXP -> t_avg par1 EXP par2','EXP',4,'p_exp_agregacion','Gramatica.py',1071),
('EXP -> t_sum par1 EXP par2','EXP',4,'p_exp_agregacion','Gramatica.py',1072),
('EXP -> t_count par1 EXP par2','EXP',4,'p_exp_agregacion','Gramatica.py',1073),
('EXP -> t_count par1 asterisco par2','EXP',4,'p_exp_agregacion','Gramatica.py',1074),
('EXP -> t_max par1 EXP par2','EXP',4,'p_exp_agregacion','Gramatica.py',1075),
('EXP -> t_min par1 EXP par2','EXP',4,'p_exp_agregacion','Gramatica.py',1076),
('EXP -> t_abs par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1081),
('EXP -> t_cbrt par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1082),
('EXP -> t_ceil par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1083),
('EXP -> t_ceiling par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1084),
('EXP -> t_degrees par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1085),
('EXP -> t_exp par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1086),
('EXP -> t_factorial par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1087),
('EXP -> t_floor par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1088),
('EXP -> t_gcd par1 Lista_EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1089),
('EXP -> t_ln par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1090),
('EXP -> t_log par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1091),
('EXP -> t_pi par1 par2','EXP',3,'p_funciones_matematicas','Gramatica.py',1092),
('EXP -> t_radians par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1093),
('EXP -> t_round par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1094),
('EXP -> t_min_scale par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1095),
('EXP -> t_scale par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1096),
('EXP -> t_sign par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1097),
('EXP -> t_sqrt par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1098),
('EXP -> t_trim_scale par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1099),
('EXP -> t_trunc par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1100),
('EXP -> t_width_bucket par1 Lista_EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1101),
('EXP -> t_random par1 par2','EXP',3,'p_funciones_matematicas','Gramatica.py',1102),
('EXP -> t_setseed par1 EXP par2','EXP',4,'p_funciones_matematicas','Gramatica.py',1103),
('EXP -> t_div par1 EXP coma EXP par2','EXP',6,'p_funciones_matematicas2','Gramatica.py',1108),
('EXP -> t_mod par1 EXP coma EXP par2','EXP',6,'p_funciones_matematicas2','Gramatica.py',1109),
('EXP -> t_power par1 EXP coma EXP par2','EXP',6,'p_funciones_matematicas2','Gramatica.py',1110),
('EXP -> t_acos par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1115),
('EXP -> t_acosd par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1116),
('EXP -> t_asin par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1117),
('EXP -> t_asind par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1118),
('EXP -> t_atan par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1119),
('EXP -> t_atand par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1120),
('EXP -> t_cos par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1121),
('EXP -> t_cosd par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1122),
('EXP -> t_cot par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1123),
('EXP -> t_cotd par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1124),
('EXP -> t_sin par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1125),
('EXP -> t_sind par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1126),
('EXP -> t_tan par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1127),
('EXP -> t_tand par1 EXP par2','EXP',4,'p_funciones_Trigonometricas','Gramatica.py',1128),
('EXP -> t_atan2 par1 EXP coma EXP par2','EXP',6,'p_funciones_Trigonometricas1','Gramatica.py',1133),
('EXP -> t_atan2d par1 EXP coma EXP par2','EXP',6,'p_funciones_Trigonometricas1','Gramatica.py',1134),
('EXP -> t_length par1 id par2','EXP',4,'p_funciones_String_Binarias','Gramatica.py',1138),
('EXP -> t_substring par1 char coma entero coma entero par2','EXP',8,'p_funciones_String_Binarias','Gramatica.py',1139),
('EXP -> t_trim par1 char par2','EXP',4,'p_funciones_String_Binarias','Gramatica.py',1140),
('EXP -> t_md5 par1 char par2','EXP',4,'p_funciones_String_Binarias','Gramatica.py',1141),
('EXP -> t_sha256 par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1142),
('EXP -> t_substr par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1143),
('EXP -> t_get_byte par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1144),
('EXP -> t_set_byte par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1145),
('EXP -> t_convert par1 EXP t_as Tipo par2','EXP',6,'p_funciones_String_Binarias','Gramatica.py',1146),
('EXP -> t_encode par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1147),
('EXP -> t_decode par1 par2','EXP',3,'p_funciones_String_Binarias','Gramatica.py',1148),
('Lista_ID -> Lista_ID coma id','Lista_ID',3,'p_Lista_ID','Gramatica.py',1158),
('Lista_ID -> id','Lista_ID',1,'p_Lista_ID','Gramatica.py',1159),
('Lista_Enum -> Lista_Enum coma char','Lista_Enum',3,'p_Lista_Enum','Gramatica.py',1168),
('Lista_Enum -> char','Lista_Enum',1,'p_Lista_Enum','Gramatica.py',1169),
('Lista_EXP -> Lista_EXP coma EXP','Lista_EXP',3,'p_Lista_EXP','Gramatica.py',1178),
('Lista_EXP -> EXP','Lista_EXP',1,'p_Lista_EXP','Gramatica.py',1179),
('Lista_Alias -> Lista_Alias coma Nombre_Alias','Lista_Alias',3,'p_Lista_Alias','Gramatica.py',1194),
('Lista_Alias -> Nombre_Alias','Lista_Alias',1,'p_Lista_Alias','Gramatica.py',1195),
('Nombre_Alias -> id id','Nombre_Alias',2,'p_Nombre_Alias','Gramatica.py',1204),
]
| 436.820225
| 82,344
| 0.683026
| 26,752
| 116,631
| 2.92109
| 0.042165
| 0.03322
| 0.011402
| 0.015203
| 0.812784
| 0.782776
| 0.751603
| 0.721377
| 0.697946
| 0.67815
| 0
| 0.525927
| 0.043436
| 116,631
| 266
| 82,345
| 438.462406
| 0.174517
| 0.00072
| 0
| 0.007813
| 1
| 0.003906
| 0.226022
| 0.016543
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
b3d93f885b74f0db79fe2907a0776ed397bab1cc
| 1,500
|
py
|
Python
|
creat_folder.py
|
JerryJack121/Django
|
ccfe6d1cce7e9f5f78eff44506448053cdb299f6
|
[
"MIT"
] | 1
|
2021-01-06T15:19:49.000Z
|
2021-01-06T15:19:49.000Z
|
creat_folder.py
|
JerryJack121/Django
|
ccfe6d1cce7e9f5f78eff44506448053cdb299f6
|
[
"MIT"
] | null | null | null |
creat_folder.py
|
JerryJack121/Django
|
ccfe6d1cce7e9f5f78eff44506448053cdb299f6
|
[
"MIT"
] | null | null | null |
#建立資料夾
#\date_classification\month\date\
import os
def creat_folder(filePath):
month=1
while month<10:
foder1 = '0'+str(month)
write_filePath = os.path.join(filePath,foder1)
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date=1
while date<10:
foder2 = '0'+str(date)
write_filePath = os.path.join(filePath,foder1,foder2)
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date+=1
while date<=31:
write_filePath = os.path.join(filePath,foder1,str(date))
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date+=1
month+=1
while month<=12:
write_filePath = os.path.join(filePath,str(month))
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date=1
while date<10:
foder2 = '0'+str(date)
write_filePath = os.path.join(filePath,str(month),foder2)
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date+=1
while date<=31:
write_filePath = os.path.join(filePath,str(month),str(date))
if os.path.isdir(write_filePath)==False:
os.makedirs(write_filePath)
date+=1
month+=1
#print("資料夾建立完成")
| 33.333333
| 72
| 0.554
| 178
| 1,500
| 4.55618
| 0.157303
| 0.288533
| 0.110974
| 0.140567
| 0.853268
| 0.853268
| 0.853268
| 0.792848
| 0.725031
| 0.725031
| 0
| 0.031904
| 0.331333
| 1,500
| 44
| 73
| 34.090909
| 0.77667
| 0.035333
| 0
| 0.684211
| 0
| 0
| 0.002079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026316
| false
| 0
| 0.026316
| 0
| 0.052632
| 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
|
b3db6616f0908aea41a885d3c4b21f62b199731d
| 4,293
|
py
|
Python
|
tests/app/api/business/validators/application_validator/test_validate_recruiter.py
|
AusDTO/dto-digitalmarketplace-api
|
937843c9c01a71518cf4688b4daa55bbe7df1965
|
[
"MIT"
] | 6
|
2017-06-09T03:38:53.000Z
|
2021-12-22T02:42:15.000Z
|
tests/app/api/business/validators/application_validator/test_validate_recruiter.py
|
AusDTO/dto-digitalmarketplace-api
|
937843c9c01a71518cf4688b4daa55bbe7df1965
|
[
"MIT"
] | 47
|
2016-08-02T05:21:31.000Z
|
2022-03-28T01:14:17.000Z
|
tests/app/api/business/validators/application_validator/test_validate_recruiter.py
|
AusDTO/dto-digitalmarketplace-api
|
937843c9c01a71518cf4688b4daa55bbe7df1965
|
[
"MIT"
] | 7
|
2016-09-13T13:07:18.000Z
|
2021-02-17T10:16:21.000Z
|
from app.api.business.validators import ApplicationValidator
from app.models import Application
from datetime import date, timedelta
def test_can_get_errors_with_none_recruiter():
application = Application(
data={
'recruiter': None
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 1
def test_can_get_errors_with_no_recruiter():
application = Application(
data={
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 1
def test_no_errors_for_valid_recruiter():
application = Application(
data={
'recruiter': 'yes'
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 0
def test_can_get_errors_for_past_date_and_no_licence_number():
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'vic': {
'expiry': '01/01/2019'
},
'act': {
'expiry': '01/01/2019'
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 4
def test_get_no_errors_for_sa_past_date_and_no_licence_number():
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'sa': {
'expiry': '01/01/2019'
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 0
def test_can_get_error_for_no_licence_number():
expiry_date = date.today() + timedelta(days=10)
expiry = '{}-{}-{}'.format(expiry_date.year, expiry_date.month, expiry_date.day)
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'vic': {
'expiry': expiry
},
'act': {
'expiry': expiry
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 2
def test_get_no_errors_from_sa_empty_licence_number():
expiry_date = date.today() + timedelta(days=10)
expiry = '{}-{}-{}'.format(expiry_date.year, expiry_date.month, expiry_date.day)
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'sa': {
'expiry': expiry
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 0
def test_can_get_error_for_no_expiry():
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'vic': {
'licenceNumber': 'foobar-licence'
},
'act': {
'licenceNumber': 'foobar-licence'
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 2
def test_can_get_no_errors_for_sa_no_expiry():
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'sa': {
'licenceNumber': 'foobar-licence'
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 0
def test_valid_for_recruiter_and_labour_hire():
expiry_date = date.today() + timedelta(days=10)
expiry = '{}-{}-{}'.format(expiry_date.year, expiry_date.month, expiry_date.day)
application = Application(
data={
'recruiter': 'yes',
'labourHire': {
'vic': {
'expiry': expiry,
'licenceNumber': 'foobar-licence'
},
'act': {
'expiry': expiry,
'licenceNumber': 'foobar-licence'
}
}
}
)
errors = ApplicationValidator(application).validate_recruiter()
assert len(errors) == 0
| 25.553571
| 84
| 0.524575
| 357
| 4,293
| 6.042017
| 0.156863
| 0.055633
| 0.120538
| 0.208623
| 0.874826
| 0.789059
| 0.770978
| 0.76866
| 0.711637
| 0.711637
| 0
| 0.014599
| 0.361752
| 4,293
| 167
| 85
| 25.706587
| 0.772628
| 0
| 0
| 0.605839
| 0
| 0
| 0.102958
| 0
| 0
| 0
| 0
| 0
| 0.072993
| 1
| 0.072993
| false
| 0
| 0.021898
| 0
| 0.094891
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
37a81c618253bf72f4fa971ae77c6597fde31371
| 121
|
py
|
Python
|
quines/python_quine.py
|
yasserglez/programming-problems
|
08cef1186b182430b231ed9772d8f92ec1d2365b
|
[
"MIT"
] | 2
|
2017-02-17T01:40:27.000Z
|
2018-04-22T12:47:28.000Z
|
quines/python_quine.py
|
yasserglez/programming-problems
|
08cef1186b182430b231ed9772d8f92ec1d2365b
|
[
"MIT"
] | null | null | null |
quines/python_quine.py
|
yasserglez/programming-problems
|
08cef1186b182430b231ed9772d8f92ec1d2365b
|
[
"MIT"
] | 1
|
2016-10-14T06:00:42.000Z
|
2016-10-14T06:00:42.000Z
|
s = "s = %s%s%s%sprint(s %s (chr(34), s, chr(34), chr(10), chr(37)))"
print(s % (chr(34), s, chr(34), chr(10), chr(37)))
| 40.333333
| 69
| 0.504132
| 28
| 121
| 2.178571
| 0.25
| 0.163934
| 0.393443
| 0.131148
| 0.721311
| 0.721311
| 0.721311
| 0.721311
| 0.721311
| 0.721311
| 0
| 0.15534
| 0.14876
| 121
| 2
| 70
| 60.5
| 0.436893
| 0
| 0
| 0
| 0
| 0.5
| 0.520661
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 11
|
37c790fbdc6831bf44dcdf94f3b47ed4bd7fec99
| 479
|
py
|
Python
|
SBaaS_quantification/stage01_quantification_analysis_io.py
|
dmccloskey/SBaaS_quantification
|
b2a9c7a9a0d318f22ff20e311f94c213852ba914
|
[
"MIT"
] | null | null | null |
SBaaS_quantification/stage01_quantification_analysis_io.py
|
dmccloskey/SBaaS_quantification
|
b2a9c7a9a0d318f22ff20e311f94c213852ba914
|
[
"MIT"
] | null | null | null |
SBaaS_quantification/stage01_quantification_analysis_io.py
|
dmccloskey/SBaaS_quantification
|
b2a9c7a9a0d318f22ff20e311f94c213852ba914
|
[
"MIT"
] | null | null | null |
from .stage01_quantification_analysis_query import stage01_quantification_analysis_query
from SBaaS_base.sbaas_template_io import sbaas_template_io
# Resources
from io_utilities.base_importData import base_importData
from io_utilities.base_exportData import base_exportData
class stage01_quantification_analysis_io(stage01_quantification_analysis_query,
sbaas_template_io #abstract io methods
):
pass
| 47.9
| 88
| 0.762004
| 53
| 479
| 6.415094
| 0.339623
| 0.247059
| 0.341176
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021333
| 0.217119
| 479
| 10
| 89
| 47.9
| 0.885333
| 0.058455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.5
| 0
| 0.625
| 0
| 0
| 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
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
8071c5f2622157381fb24627c20dfe6624f446dc
| 158
|
py
|
Python
|
scripts/linux/ofProjectManager/ofEnvironment.py
|
HellicarAndLewis/ProjectDonk
|
96fde869c469f8312843333e51c862bd3b143222
|
[
"MIT"
] | 1
|
2015-12-05T04:53:15.000Z
|
2015-12-05T04:53:15.000Z
|
scripts/linux/ofProjectManager/ofEnvironment.py
|
HellicarAndLewis/ProjectDonk
|
96fde869c469f8312843333e51c862bd3b143222
|
[
"MIT"
] | null | null | null |
scripts/linux/ofProjectManager/ofEnvironment.py
|
HellicarAndLewis/ProjectDonk
|
96fde869c469f8312843333e51c862bd3b143222
|
[
"MIT"
] | null | null | null |
of_root = "/pathTo_openframeworks/of_preRelease_v0.06_linux_cb_FAT/" #usually /home/user_name/Desktop/of_preRelease_v0.06_linux_cb_FAT/
of_platform = "linux"
| 52.666667
| 135
| 0.841772
| 26
| 158
| 4.576923
| 0.615385
| 0.201681
| 0.235294
| 0.268908
| 0.436975
| 0.436975
| 0.436975
| 0
| 0
| 0
| 0
| 0.04
| 0.050633
| 158
| 2
| 136
| 79
| 0.753333
| 0.411392
| 0
| 0
| 0
| 0
| 0.663043
| 0.608696
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
80f8946a847b58148db817cd551bc39492b916b7
| 147
|
py
|
Python
|
ciclo1_python/upb/MisionTIC_UPB_Ciclo1/Python-coding/XACA-RANA-YouTube-channel/02_python_101_Generalidades_Juan_Bustamante.py
|
felipeescallon/mision_tic_2022
|
20496fc40b18d2e98114d6362928f34fde41aaae
|
[
"CC0-1.0"
] | 7
|
2021-07-05T21:25:50.000Z
|
2021-11-09T11:09:41.000Z
|
ciclo1_python/upb/MisionTIC_UPB_Ciclo1/Python-coding/XACA-RANA-YouTube-channel/02_python_101_Generalidades_Juan_Bustamante.py
|
felipeescallon/mision_tic_2022
|
20496fc40b18d2e98114d6362928f34fde41aaae
|
[
"CC0-1.0"
] | null | null | null |
ciclo1_python/upb/MisionTIC_UPB_Ciclo1/Python-coding/XACA-RANA-YouTube-channel/02_python_101_Generalidades_Juan_Bustamante.py
|
felipeescallon/mision_tic_2022
|
20496fc40b18d2e98114d6362928f34fde41aaae
|
[
"CC0-1.0"
] | null | null | null |
print("holis")
#TODO agregar la linea intermedia
print("holis")
#print("holis")
print("holis")
print("holis")
#TODO agregar la linea numero 6
| 21
| 34
| 0.70068
| 21
| 147
| 4.904762
| 0.428571
| 0.485437
| 0.436893
| 0.582524
| 0.834951
| 0.834951
| 0
| 0
| 0
| 0
| 0
| 0.007937
| 0.142857
| 147
| 7
| 35
| 21
| 0.809524
| 0.517007
| 0
| 1
| 0
| 0
| 0.31746
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 11
|
038ed800899ff0250e4d4975d56b539eb8413308
| 134,451
|
py
|
Python
|
perma_web/perma/tests/test_views_user_management.py
|
rachelaus/perma
|
36c05080520ea3ffce465dbc383795c060fa4112
|
[
"MIT",
"Unlicense"
] | 317
|
2015-02-12T16:53:34.000Z
|
2022-03-14T23:38:04.000Z
|
perma_web/perma/tests/test_views_user_management.py
|
rachelaus/perma
|
36c05080520ea3ffce465dbc383795c060fa4112
|
[
"MIT",
"Unlicense"
] | 2,069
|
2015-01-06T20:09:24.000Z
|
2022-03-31T15:44:36.000Z
|
perma_web/perma/tests/test_views_user_management.py
|
rachelaus/perma
|
36c05080520ea3ffce465dbc383795c060fa4112
|
[
"MIT",
"Unlicense"
] | 69
|
2015-01-12T18:56:07.000Z
|
2022-02-22T19:57:10.000Z
|
# -*- coding: utf-8 -*-
from django.urls import reverse
from django.core import mail
from django.conf import settings
from django.utils import timezone
from mock import patch, sentinel
from perma.models import LinkUser, Organization, Registrar, Sponsorship
from perma.exceptions import PermaPaymentsCommunicationException
from .utils import PermaTestCase
from random import random
import re
from bs4 import BeautifulSoup
from datetime import datetime
# Fixtures
GENESIS = datetime.fromtimestamp(0).replace(tzinfo=timezone.utc)
def spoof_current_monthly_subscription():
return {
"status": "Current",
"rate": "10.00",
"frequency": "monthly",
"paid_through": GENESIS,
"link_limit": 10
}
def spoof_current_monthly_subscription_with_scheduled_downgrade():
return {
"status": "Current",
"rate": "10.00",
"frequency": "monthly",
"paid_through": GENESIS,
"link_limit": 10,
"pending_change": {
"rate": "1.00",
"link_limit": 1,
"effective": GENESIS.replace(year=9999)
},
}
def spoof_on_hold_monthly_subscription():
return {
"status": "Hold",
"rate": "7777.77",
"frequency": "monthly",
"paid_through": GENESIS,
"link_limit": 10
}
def spoof_cancellation_requested_subscription():
return {
"status": "Cancellation Requested",
"rate": "3333.33",
"frequency": "monthly",
"paid_through": GENESIS,
"link_limit": 10
}
# Tests
class UserManagementViewsTestCase(PermaTestCase):
@classmethod
def setUpTestData(cls):
cls.admin_user = LinkUser.objects.get(pk=1)
cls.registrar_user = LinkUser.objects.get(pk=2)
cls.sponsored_user = LinkUser.objects.get(pk=20)
cls.another_sponsored_user = LinkUser.objects.get(pk=21)
cls.inactive_sponsored_user = LinkUser.objects.get(pk=22)
cls.another_inactive_sponsored_user = LinkUser.objects.get(pk=23)
cls.regular_user = LinkUser.objects.get(pk=4)
cls.registrar = cls.registrar_user.registrar
cls.pending_registrar = Registrar.objects.get(pk=2)
cls.unrelated_registrar = Registrar.objects.get(pk=2)
cls.unrelated_registrar_user = cls.unrelated_registrar.users.first()
cls.organization = Organization.objects.get(pk=1)
cls.organization_user = cls.organization.users.first()
cls.another_organization = Organization.objects.get(pk=2)
cls.unrelated_organization = cls.unrelated_registrar.organizations.first()
cls.unrelated_organization_user = cls.unrelated_organization.users.first()
cls.another_unrelated_organization_user = cls.unrelated_organization.users.get(pk=11)
cls.deletable_organization = Organization.objects.get(pk=3)
### Helpers ###
def pk_from_email(self, email):
return LinkUser.objects.get(email=email).pk
### REGISTRAR A/E/D VIEWS ###
def test_registrar_list_filters(self):
# test assumptions: two registrars, one pending, one approved
response = self.get('user_management_manage_registrar',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 4 registrars", count)
self.assertEqual(response.count(b'needs approval'), 1)
# get just approved registrars
response = self.get('user_management_manage_registrar',
user=self.admin_user,
request_kwargs={'data':{'status':'approved'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 registrars", count)
self.assertEqual(response.count(b'needs approval'), 0)
# get just pending registrars
response = self.get('user_management_manage_registrar',
user=self.admin_user,
request_kwargs={'data': {'status': 'pending'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 registrar", count)
self.assertEqual(response.count(b'needs approval'), 1)
def test_registrar_user_list_filters(self):
# test assumptions: five users
# - one deactivated
# - one unactivated
# - one from Test Library, three from Another Library, one from Test Firm
response = self.get('user_management_manage_registrar_user',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 5 users", count)
self.assertEqual(response.count(b'deactivated account'), 1)
self.assertEqual(response.count(b'User must activate account'), 1)
# registrar name appears by each user, and once in the filter dropdown
self.assertEqual(response.count(b'Test Library'), 2)
self.assertEqual(response.count(b'Another Library'), 4)
self.assertEqual(response.count(b'Test Firm'), 2)
# filter by registrar
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 1}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 2}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 4}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
# filter by status
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'status': 'active'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
self.assertEqual(response.count(b'deactivated account'), 0)
self.assertEqual(response.count(b'User must activate account'), 0)
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'status': 'deactivated'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
self.assertEqual(response.count(b'deactivated account'), 1)
self.assertEqual(response.count(b'User must activate account'), 0)
response = self.get('user_management_manage_registrar_user',
user=self.admin_user,
request_kwargs={'data':{'status': 'unactivated'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
self.assertEqual(response.count(b'deactivated account'), 0)
self.assertEqual(response.count(b'User must activate account'), 1)
def test_admin_can_create_registrar(self):
self.submit_form(
'user_management_manage_registrar', {
'a-name':'test_views_registrar',
'a-email':'test@test.com',
'a-website':'http://test.com'
},
user=self.admin_user,
success_url=reverse('user_management_manage_registrar'),
success_query=Registrar.objects.filter(name='test_views_registrar'))
def test_admin_can_update_registrar(self):
self.submit_form('user_management_manage_single_registrar',
user=self.admin_user,
reverse_kwargs={'args':[self.unrelated_registrar.pk]},
data={
'a-name': 'new_name',
'a-email': 'test@test.com2',
'a-website': 'http://test.com'},
success_url=reverse('user_management_manage_registrar'),
success_query=Registrar.objects.filter(name='new_name'))
def test_registrar_can_update_registrar(self):
self.submit_form('user_management_manage_single_registrar',
user=self.registrar_user,
reverse_kwargs={'args': [self.registrar.pk]},
data={
'a-name': 'new_name',
'a-email': 'test@test.com2',
'a-website': 'http://test.com'},
success_url=reverse('user_management_settings_affiliations'),
success_query=Registrar.objects.filter(name='new_name'))
def test_registrar_cannot_update_unrelated_registrar(self):
self.get('user_management_manage_single_registrar',
user=self.registrar_user,
reverse_kwargs={'args': [self.unrelated_registrar.pk]},
require_status_code=404)
def test_admin_can_approve_pending_registrar(self):
self.submit_form('user_management_approve_pending_registrar',
user=self.admin_user,
data={'status':'approved'},
reverse_kwargs={'args': [self.pending_registrar.pk]},
success_query=Registrar.objects.filter(pk=self.pending_registrar.pk,
status="approved").exists())
def test_admin_can_deny_pending_registrar(self):
self.submit_form('user_management_approve_pending_registrar',
user=self.admin_user,
data={'status': 'denied'},
reverse_kwargs={'args': [self.pending_registrar.pk]},
success_query=Registrar.objects.filter(pk=self.pending_registrar.pk,
status="denied").exists())
### ORGANIZATION A/E/D VIEWS ###
def test_organization_list_filters(self):
# test assumptions: six orgs, three for Test Library and one for Another Library, two for Test Firm
response = self.get('user_management_manage_organization',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 6 organizations", count)
# registrar name appears by each org, once in the filter dropdown, once in the "add an org" markup
self.assertEqual(response.count(b'Test Library'), 3 + 2)
self.assertEqual(response.count(b'Test Firm'), 2 + 2)
# 'Another Library' needs special handling because the fixture's org is
# named 'Another Library's journal'. The "string" search finds the instance
# by the org and the instance in the filter dropdown, but not the <option> in the "add an org" markup
self.assertEqual(len(soup.find_all(string=re.compile(r"Another Library(?!')"))), 1 + 1)
# get orgs for a single registrar
response = self.get('user_management_manage_organization',
user=self.admin_user,
request_kwargs={'data': {'registrar': 1}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 organizations", count)
response = self.get('user_management_manage_organization',
user=self.admin_user,
request_kwargs={'data': {'registrar': 2}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 organization", count)
def test_org_user_list_filters(self):
# test assumptions: seven users
# - three from Test Journal
# - one from Another Journal
# - three from A Third Journal
# - three from Another Library's Journal
# - one from Some Case
response = self.get('user_management_manage_organization_user',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 7 users", count)
# registrar name appears by each user, and once in the filter dropdown
self.assertEqual(response.count(b'Test Journal'), 3 + 1)
self.assertEqual(response.count(b'Another Journal'), 1 + 1)
self.assertEqual(response.count(b"A Third Journal"), 3 + 1)
self.assertEqual(response.count(b"Another Library's Journal"), 3 + 1)
self.assertEqual(response.count(b"Some Case"), 1 + 1)
# filter by org
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'org': 1}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'org': 2}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'org': 3}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'org': 4}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'org': 5}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
# filter by registrar
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 1}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 5 users", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 2}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 3 users", count)
response = self.get('user_management_manage_organization_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 4}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
# status filter tested in test_registrar_user_list_filters
def test_sponsored_user_list_filters(self):
# test assumptions: four users, with five sponsorships between them
# - two users with active sponsorships, two users with inactive sponsorships
# - two sponsored by Test Library, two from Another Library, one from A Third Library
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 4 users", count)
self.assertEqual(response.count(b'(inactive sponsorship)'), 2)
# registrar name appears by each user, and once in the filter dropdown
self.assertEqual(response.count(b'Test Library'), 3)
self.assertEqual(response.count(b'Another Library'), 3)
self.assertEqual(response.count(b'A Third Library'), 2)
# filter by registrar
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 1}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 2 users", count)
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 2}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 2 users", count)
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user,
request_kwargs={'data':{'registrar': 3}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
# filter by sponsorship status
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user,
request_kwargs={'data':{'sponsorship_status': 'active'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 2 users", count)
response = self.get('user_management_manage_sponsored_user',
user=self.admin_user,
request_kwargs={'data':{'sponsorship_status': 'inactive'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 2 users", count)
# user status filter tested in test_registrar_user_list_filters
def test_admin_can_create_organization(self):
self.submit_form('user_management_manage_organization',
user=self.admin_user,
data={
'a-name': 'new_name',
'a-registrar': self.registrar.pk},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(name='new_name'))
def test_registrar_can_create_organization(self):
self.submit_form('user_management_manage_organization',
user=self.registrar_user,
data={
'a-name': 'new_name'},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(name='new_name'))
def test_admin_can_update_organization(self):
self.submit_form('user_management_manage_single_organization',
user=self.admin_user,
reverse_kwargs={'args':[self.organization.pk]},
data={
'a-name': 'new_name',
'a-registrar': self.registrar.pk},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(name='new_name'))
def test_registrar_can_update_organization(self):
self.submit_form('user_management_manage_single_organization',
user=self.registrar_user,
reverse_kwargs={'args':[self.organization.pk]},
data={
'a-name': 'new_name'},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(name='new_name'))
def test_org_user_can_update_organization(self):
self.submit_form('user_management_manage_single_organization',
user=self.organization_user,
reverse_kwargs={'args': [self.organization.pk]},
data={
'a-name': 'new_name'},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(name='new_name'))
def test_registrar_cannot_update_unrelated_organization(self):
self.get('user_management_manage_single_organization',
user=self.registrar_user,
reverse_kwargs={'args': [self.unrelated_organization.pk]},
require_status_code=404)
def test_org_user_cannot_update_unrelated_organization(self):
self.get('user_management_manage_single_organization',
user=self.organization_user,
reverse_kwargs={'args': [self.unrelated_organization.pk]},
require_status_code=404)
def _delete_organization(self, user, should_succeed=True):
if should_succeed:
self.submit_form('user_management_manage_single_organization_delete',
user=user,
reverse_kwargs={'args': [self.deletable_organization.pk]},
success_url=reverse('user_management_manage_organization'),
success_query=Organization.objects.filter(user_deleted=True, pk=self.deletable_organization.pk))
else:
self.submit_form('user_management_manage_single_organization_delete',
user=user,
reverse_kwargs={'args': [self.deletable_organization.pk]},
require_status_code=404)
def test_admin_user_can_delete_empty_organization(self):
self._delete_organization(self.admin_user)
self._delete_organization(self.admin_user, False)
def test_registrar_user_can_delete_empty_organization(self):
self._delete_organization(self.deletable_organization.registrar.users.first())
self._delete_organization(self.deletable_organization.registrar.users.first(), False)
def test_org_user_can_delete_empty_organization(self):
self._delete_organization(self.deletable_organization.users.first())
self._delete_organization(self.deletable_organization.users.first(), False)
def test_cannot_delete_nonempty_organization(self):
self.submit_form('user_management_manage_single_organization_delete',
user=self.admin_user,
reverse_kwargs={'args': [self.organization.pk]},
require_status_code=404)
### USER A/E/D VIEWS ###
def test_user_list_filters(self):
# test assumptions: six users
# - one aspiring court user, faculty user, journal user
response = self.get('user_management_manage_user',
user=self.admin_user).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 6 users", count)
self.assertEqual(response.count(b'Interested in a court account'), 1)
self.assertEqual(response.count(b'Interested in a journal account'), 1)
self.assertEqual(response.count(b'Interested in a faculty account'), 1)
# filter by requested_account_type ("upgrade")
response = self.get('user_management_manage_user',
user=self.admin_user,
request_kwargs={'data':{'upgrade': 'court'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
self.assertEqual(response.count(b'Interested in a court account'), 1)
self.assertEqual(response.count(b'Interested in a journal account'), 0)
self.assertEqual(response.count(b'Interested in a faculty account'), 0)
response = self.get('user_management_manage_user',
user=self.admin_user,
request_kwargs={'data':{'upgrade': 'journal'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
self.assertEqual(response.count(b'Interested in a court account'), 0)
self.assertEqual(response.count(b'Interested in a journal account'), 1)
self.assertEqual(response.count(b'Interested in a faculty account'), 0)
response = self.get('user_management_manage_user',
user=self.admin_user,
request_kwargs={'data':{'upgrade': 'faculty'}}).content
soup = BeautifulSoup(response, 'html.parser')
count = soup.select('.sort-filter-count')[0].text
self.assertEqual("Found: 1 user", count)
self.assertEqual(response.count(b'Interested in a court account'), 0)
self.assertEqual(response.count(b'Interested in a journal account'), 0)
self.assertEqual(response.count(b'Interested in a faculty account'), 1)
# status filter tested in test_registrar_user_list_filters
def test_create_and_delete_user(self):
self.log_in_user(self.admin_user)
base_user = {
'a-first_name':'First',
'a-last_name':'Last',
}
email = 'test_views_test@test.com'
for view_name, form_extras in [
['registrar_user', {'a-registrar': 1}],
['user', {}],
['organization_user', {'a-organizations': 1}],
['sponsored_user', {'a-sponsoring_registrars': 1}],
]:
# create user
email += '1'
self.submit_form('user_management_' + view_name + '_add_user',
data=dict(list(base_user.items()) + list(form_extras.items()) + [['a-e-address', email]]),
success_url=reverse('user_management_manage_' + view_name),
success_query=LinkUser.objects.filter(email=email))
new_user = LinkUser.objects.get(email=email)
# delete user (deactivate)
new_user.is_confirmed = True
new_user.save()
self.submit_form('user_management_manage_single_' + view_name + '_delete',
reverse_kwargs={'args': [new_user.pk]},
success_url=reverse('user_management_manage_' + view_name))
# reactivate user
self.submit_form('user_management_manage_single_' + view_name + '_reactivate',
reverse_kwargs={'args': [new_user.pk]},
success_url=reverse('user_management_manage_' + view_name))
# delete user (really delete)
new_user.is_confirmed = False
new_user.save()
self.submit_form('user_management_manage_single_' + view_name + '_delete',
reverse_kwargs={'args': [new_user.pk]},
success_url=reverse('user_management_manage_' + view_name))
### ADDING NEW USERS TO ORGANIZATIONS ###
def test_admin_user_can_add_new_user_to_org(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
success_url=reverse('user_management_manage_organization_user'),
success_query=LinkUser.objects.filter(email='doesnotexist@example.com',
organizations=self.organization).exists())
def test_registrar_user_can_add_new_user_to_org(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
success_url=reverse('user_management_manage_organization_user'),
success_query=LinkUser.objects.filter(email='doesnotexist@example.com',
organizations=self.organization).exists())
def test_org_user_can_add_new_user_to_org(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
success_url=reverse('user_management_manage_organization_user'),
success_query=LinkUser.objects.filter(email='doesnotexist@example.com',
organizations=self.organization).exists())
def test_registrar_user_cannot_add_new_user_to_inaccessible_org(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.unrelated_organization.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
error_keys=['organizations'])
self.assertFalse(LinkUser.objects.filter(email='doesnotexist@example.com',
organizations=self.unrelated_organization).exists())
def test_org_user_cannot_add_new_user_to_inaccessible_org(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.unrelated_organization.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
error_keys=['organizations'])
self.assertFalse(LinkUser.objects.filter(email='doesnotexist@example.com',
organizations=self.unrelated_organization).exists())
### ADDING EXISTING USERS TO ORGANIZATIONS ###
def test_admin_user_can_add_existing_user_to_org(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_organization_user'),
success_query=self.regular_user.organizations.filter(pk=self.organization.pk))
def test_registrar_user_can_add_existing_user_to_org(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_organization_user'),
success_query=self.regular_user.organizations.filter(pk=self.organization.pk))
def test_org_user_can_add_existing_user_to_org(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_organization_user'),
success_query=self.regular_user.organizations.filter(pk=self.organization.pk))
def test_registrar_user_cannot_add_existing_user_to_inaccessible_org(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.unrelated_organization.pk},
query_params={'email': self.regular_user.email},
error_keys=['organizations'])
self.assertFalse(self.regular_user.organizations.filter(pk=self.unrelated_organization.pk).exists())
def test_org_user_cannot_add_existing_user_to_inaccessible_org(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.another_organization.pk},
query_params={'email': self.regular_user.email},
error_keys=['organizations'])
self.assertFalse(self.regular_user.organizations.filter(pk=self.another_organization.pk).exists())
def test_cannot_add_admin_user_to_org(self):
self.log_in_user(self.organization_user)
resp = self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk},
query_params={'email': self.admin_user.email})
self.assertIn(b"is an admin user", resp.content)
self.assertFalse(self.admin_user.organizations.exists())
def test_cannot_add_registrar_user_to_org(self):
self.log_in_user(self.organization_user)
resp = self.submit_form('user_management_organization_user_add_user',
data={'a-organizations': self.organization.pk},
query_params={'email': self.registrar_user.email})
self.assertIn(b"is already a registrar user", resp.content)
self.assertFalse(self.registrar_user.organizations.exists())
### VOLUNTARILY LEAVING ORGANIZATIONS ###
def test_org_user_can_leave_org(self):
u = LinkUser.objects.get(email='test_another_library_org_user@example.com')
orgs = u.organizations.all()
# check assumptions
self.assertEqual(len(orgs), 2)
# 404 if tries to leave non-existent org
self.submit_form('user_management_organization_user_leave_organization',
user=u,
data={},
reverse_kwargs={'args': [999]},
require_status_code=404)
# returns to affiliations page if still a member of at least one org
self.submit_form('user_management_organization_user_leave_organization',
user=u,
data={},
reverse_kwargs={'args': [orgs[0].pk]},
success_url=reverse('user_management_settings_affiliations'))
# returns to create/manage page if no longer a member of any orgs
self.submit_form('user_management_organization_user_leave_organization',
user=u,
data={},
reverse_kwargs={'args': [orgs[1].pk]},
success_url=reverse('create_link'))
# 404 if tries to leave an org they are not a member of
self.submit_form('user_management_organization_user_leave_organization',
user=u,
data={},
reverse_kwargs={'args': [orgs[1].pk]},
require_status_code=404)
### REMOVING USERS FROM ORGANIZATIONS ###
# Just try to access the page with remove/deactivate links
def test_registrar_can_edit_org_user(self):
# User from one of registrar's own orgs succeeds
self.log_in_user(self.registrar_user)
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.organization_user.pk]})
# User from another registrar's org fails
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.another_unrelated_organization_user.pk]},
require_status_code=404)
# Repeat with the other registrar, to confirm we're
# getting 404s because of permission reasons, not because the
# test fixtures are broken.
self.log_in_user(self.unrelated_registrar_user)
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.organization_user.pk]},
require_status_code=404)
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.another_unrelated_organization_user.pk]})
def test_org_can_edit_org_user(self):
# User from own org succeeds
org_one_users = ['test_org_user@example.com', 'test_org_rando_user@example.com']
org_two_users = ['test_another_library_org_user@example.com', 'test_another_org_user@example.com']
self.log_in_user(org_one_users[0])
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.pk_from_email(org_one_users[1])]})
# User from another org fails
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.pk_from_email(org_two_users[0])]},
require_status_code=404)
# Repeat in reverse, to confirm we're
# getting 404s because of permission reasons, not because the
# test fixtures are broken.
self.log_in_user(org_two_users[1])
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.pk_from_email(org_one_users[1])]},
require_status_code=404)
# User from another org fails
self.get('user_management_manage_single_organization_user',
reverse_kwargs={'args': [self.pk_from_email(org_two_users[0])]})
# Actually try removing them
def test_can_remove_user_from_organization(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_organization_user_remove',
data={'org': self.organization.pk},
reverse_kwargs={'args': [self.organization_user.pk]},
success_url=reverse('user_management_manage_organization_user'))
self.assertFalse(self.organization_user.organizations.filter(pk=self.organization.pk).exists())
def test_registrar_cannot_remove_unrelated_user_from_organization(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_organization_user_remove',
data={'org': self.unrelated_organization.pk},
reverse_kwargs={'args': [self.unrelated_organization_user.pk]},
require_status_code=404)
def test_org_user_cannot_remove_unrelated_user_from_organization(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_manage_single_organization_user_remove',
data={'org': self.unrelated_organization.pk},
reverse_kwargs={'args': [self.unrelated_organization_user.pk]},
require_status_code=404)
def test_can_remove_self_from_organization(self):
self.log_in_user(self.organization_user)
self.submit_form('user_management_manage_single_organization_user_remove',
data={'org': self.organization.pk},
reverse_kwargs={'args': [self.organization_user.pk]},
success_url=reverse('create_link'))
self.assertFalse(self.organization_user.organizations.filter(pk=self.organization.pk).exists())
### ADDING NEW USERS TO REGISTRARS AS SPONSORED USERS ###
def test_admin_user_can_add_new_sponsored_user_to_registrar(self):
address = 'doesnotexist@example.com'
self.log_in_user(self.admin_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address},
success_url=reverse('user_management_manage_sponsored_user'))
# Check that everything is set up correctly (we'll do this once, here, and not repeat in other tests)
user = LinkUser.objects.get(email=address, sponsoring_registrars=self.registrar)
sponsorship = user.sponsorships.first()
sponsored_folder = sponsorship.folders.get()
self.assertEqual(sponsorship.status, 'active')
self.assertEqual(sponsored_folder.parent, user.sponsored_root_folder)
self.assertFalse(sponsored_folder.read_only)
# Try to add the same person again; should fail
response = self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address}).content
self.assertIn(bytes("Select a valid choice. That choice is not one of the available choices", 'utf-8'), response)
def test_registrar_user_can_add_new_sponsored_user_to_registrar(self):
address = 'doesnotexist@example.com'
self.log_in_user(self.registrar_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address},
success_url=reverse('user_management_manage_sponsored_user'),
success_query=LinkUser.objects.filter(email=address,
sponsoring_registrars=self.registrar).exists())
# Try to add the same person again; should fail
response = self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address}).content
self.assertIn(bytes("{} is already sponsored by your registrar.".format(address), 'utf-8'), response)
def test_registrar_user_cannot_add_sponsored_user_to_inaccessible_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.unrelated_registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
error_keys=['sponsoring_registrars'])
self.assertFalse(LinkUser.objects.filter(email='doesnotexist@example.com',
sponsoring_registrars=self.unrelated_registrar).exists())
### ADDING EXISTING USERS TO REGISTRARS AS SPONSORED USERS ###
def test_admin_user_can_add_sponsorship_to_existing_user(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_sponsored_user'),
success_query=LinkUser.objects.filter(pk=self.regular_user.pk, sponsoring_registrars=self.registrar))
def test_registrar_user_can_add_sponsorship_to_existing_user(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.registrar.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_sponsored_user'),
success_query=LinkUser.objects.filter(pk=self.regular_user.pk, sponsoring_registrars=self.registrar))
def test_registrar_user_cannot_add_sponsorship_for_other_registrar_to_existing_user(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_sponsored_user_add_user',
data={'a-sponsoring_registrars': self.unrelated_registrar.pk},
query_params={'email': self.regular_user.email},
error_keys=['sponsoring_registrars'])
self.assertFalse(LinkUser.objects.filter(pk=self.regular_user.pk, sponsoring_registrars=self.unrelated_registrar).exists())
### TOGGLING THE STATUS OF SPONSORSHIPS ###
def test_admin_user_can_deactivate_active_sponsorship(self):
sponsorship = Sponsorship.objects.get(user=self.sponsored_user, registrar=self.registrar, status='active')
self.assertTrue(all(not folder.read_only for folder in sponsorship.folders))
self.log_in_user(self.admin_user)
self.submit_form('user_management_manage_single_sponsored_user_remove',
reverse_kwargs={'args': [self.sponsored_user.id, self.registrar.id]},
success_url=reverse('user_management_manage_single_sponsored_user', args=[self.sponsored_user.id]))
sponsorship.refresh_from_db()
self.assertEqual(sponsorship.status, 'inactive')
self.assertTrue(all(folder.read_only for folder in sponsorship.folders))
def test_admin_user_can_reactivate_inactive_sponsorship(self):
sponsorship = Sponsorship.objects.get(user=self.inactive_sponsored_user, registrar=self.registrar, status='inactive')
self.assertTrue(all(folder.read_only for folder in sponsorship.folders))
self.log_in_user(self.admin_user)
self.submit_form('user_management_manage_single_sponsored_user_readd',
reverse_kwargs={'args': [self.inactive_sponsored_user.id, self.registrar.id]},
success_url=reverse('user_management_manage_single_sponsored_user', args=[self.inactive_sponsored_user.id]))
sponsorship.refresh_from_db()
self.assertEqual(sponsorship.status, 'active')
self.assertTrue(all(not folder.read_only for folder in sponsorship.folders))
def test_registrar_user_can_deactivate_active_sponsorship(self):
sponsorship = Sponsorship.objects.get(user=self.sponsored_user, registrar=self.registrar, status='active')
self.assertTrue(all(not folder.read_only for folder in sponsorship.folders))
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_sponsored_user_remove',
reverse_kwargs={'args': [self.sponsored_user.id, self.registrar.id]},
success_url=reverse('user_management_manage_single_sponsored_user', args=[self.sponsored_user.id]))
sponsorship.refresh_from_db()
self.assertEqual(sponsorship.status, 'inactive')
self.assertTrue(all(folder.read_only for folder in sponsorship.folders))
def test_registrar_user_cannot_deactivate_active_sponsorship_for_other_registrar(self):
self.assertTrue(self.unrelated_registrar in self.another_sponsored_user.sponsoring_registrars.all())
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_sponsored_user_remove',
reverse_kwargs={'args': [self.another_sponsored_user.id, self.unrelated_registrar.id]},
require_status_code=404)
def test_registrar_user_can_reactivate_inactive_sponsorship(self):
sponsorship = Sponsorship.objects.get(user=self.inactive_sponsored_user, registrar=self.registrar, status='inactive')
self.assertTrue(all(folder.read_only for folder in sponsorship.folders))
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_sponsored_user_readd',
reverse_kwargs={'args': [self.inactive_sponsored_user.id, self.registrar.id]},
success_url=reverse('user_management_manage_single_sponsored_user', args=[self.inactive_sponsored_user.id]))
sponsorship.refresh_from_db()
self.assertEqual(sponsorship.status, 'active')
self.assertTrue(all(not folder.read_only for folder in sponsorship.folders))
def test_registrar_user_cannot_reactivate_inactive_sponsorship_for_other_registrar(self):
sponsorship = Sponsorship.objects.get(user=self.another_inactive_sponsored_user, registrar=self.unrelated_registrar, status='inactive')
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_sponsored_user_readd',
reverse_kwargs={'args': [self.another_inactive_sponsored_user.id, self.unrelated_registrar.id]},
require_status_code=404)
sponsorship.refresh_from_db()
self.assertEqual(sponsorship.status, 'inactive')
### ADDING NEW USERS TO REGISTRARS AS REGISTRAR USERS) ###
def test_admin_user_can_add_new_user_to_registrar(self):
address = 'doesnotexist@example.com'
self.log_in_user(self.admin_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address},
success_url=reverse('user_management_manage_registrar_user'),
success_query=LinkUser.objects.filter(email=address,
registrar=self.registrar).exists())
def test_registrar_user_can_add_new_user_to_registrar(self):
address = 'doesnotexist@example.com'
self.log_in_user(self.registrar_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address},
success_url=reverse('user_management_manage_registrar_user'),
success_query=LinkUser.objects.filter(email=address,
registrar=self.registrar).exists())
# Try to add the same person again; should fail
response = self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': address},
query_params={'email': address}).content
self.assertIn(bytes("{} is already a registrar user for your registrar.".format(address), 'utf-8'), response)
def test_registrar_user_cannot_add_new_user_to_inaccessible_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.unrelated_registrar.pk,
'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
error_keys=['registrar'])
self.assertFalse(LinkUser.objects.filter(email='doesnotexist@example.com',
registrar=self.unrelated_registrar).exists())
### ADDING EXISTING USERS TO REGISTRARS ###
def test_admin_user_can_add_existing_user_to_registrar(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_registrar_user'),
success_query=LinkUser.objects.filter(pk=self.regular_user.pk, registrar=self.registrar))
def test_registrar_user_can_add_existing_user_to_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_registrar_user'),
success_query=LinkUser.objects.filter(pk=self.regular_user.pk, registrar=self.registrar))
def test_registrar_user_can_upgrade_org_user_to_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.organization_user.email},
success_url=reverse('user_management_manage_registrar_user'),
success_query=LinkUser.objects.filter(pk=self.organization_user.pk, registrar=self.registrar))
self.assertFalse(LinkUser.objects.filter(pk=self.organization_user.pk, organizations=self.organization).exists())
def test_registrar_user_cannot_upgrade_unrelated_org_user_to_registrar(self):
self.log_in_user(self.registrar_user)
resp = self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.unrelated_organization_user.email})
self.assertIn(b"belongs to organizations that are not controlled by your registrar", resp.content)
self.assertFalse(LinkUser.objects.filter(pk=self.unrelated_organization_user.pk, registrar=self.registrar).exists())
def test_registrar_user_cannot_add_existing_user_to_inaccessible_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.unrelated_registrar.pk},
query_params={'email': self.regular_user.email},
error_keys=['registrar'])
self.assertFalse(LinkUser.objects.filter(pk=self.regular_user.pk, registrar=self.unrelated_registrar).exists())
def test_cannot_add_admin_user_to_registrar(self):
self.log_in_user(self.registrar_user)
resp = self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.admin_user.email})
self.assertIn(b"is an admin user", resp.content)
self.assertFalse(LinkUser.objects.filter(pk=self.admin_user.pk, registrar=self.registrar).exists())
def test_cannot_add_registrar_user_to_registrar(self):
self.log_in_user(self.registrar_user)
resp = self.submit_form('user_management_registrar_user_add_user',
data={'a-registrar': self.registrar.pk},
query_params={'email': self.unrelated_registrar_user.email})
self.assertIn(b"is already a member of another registrar", resp.content)
self.assertFalse(LinkUser.objects.filter(pk=self.unrelated_registrar_user.pk, registrar=self.registrar).exists())
### REMOVING REGISTRAR USERS FROM REGISTRARS ###
def test_can_remove_user_from_registrar(self):
self.log_in_user(self.registrar_user)
self.regular_user.registrar = self.registrar
self.regular_user.save()
self.submit_form('user_management_manage_single_registrar_user_remove',
reverse_kwargs={'args': [self.regular_user.pk]},
success_url=reverse('user_management_manage_registrar_user'))
self.assertFalse(LinkUser.objects.filter(pk=self.regular_user.pk, registrar=self.registrar).exists())
def test_registrar_cannot_remove_unrelated_user_from_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_registrar_user_remove',
reverse_kwargs={'args': [self.unrelated_registrar_user.pk]},
require_status_code=404)
def test_can_remove_self_from_registrar(self):
self.log_in_user(self.registrar_user)
self.submit_form('user_management_manage_single_registrar_user_remove',
reverse_kwargs={'args': [self.registrar_user.pk]},
success_url=reverse('create_link'))
self.assertFalse(LinkUser.objects.filter(pk=self.registrar_user.pk, registrar=self.registrar).exists())
### ADDING NEW USERS AS ADMINS ###
def test_admin_user_can_add_new_user_as_admin(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_admin_user_add_user',
data={'a-first_name': 'First',
'a-last_name': 'Last',
'a-e-address': 'doesnotexist@example.com'},
query_params={'email': 'doesnotexist@example.com'},
success_url=reverse('user_management_manage_admin_user'),
success_query=LinkUser.objects.filter(email='doesnotexist@example.com',
is_staff=True).exists())
### ADDING EXISTING USERS AS ADMINS ###
def test_admin_user_can_add_existing_user_as_admin(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_admin_user_add_user',
query_params={'email': self.regular_user.email},
success_url=reverse('user_management_manage_admin_user'),
success_query=LinkUser.objects.filter(pk=self.regular_user.pk, is_staff=True))
### REMOVING USERS AS ADMINS ###
def test_can_remove_user_from_admin(self):
self.log_in_user(self.admin_user)
self.regular_user.is_staff = True
self.regular_user.save()
self.submit_form('user_management_manage_single_admin_user_remove',
reverse_kwargs={'args': [self.regular_user.pk]},
success_url=reverse('user_management_manage_admin_user'))
self.assertFalse(LinkUser.objects.filter(pk=self.regular_user.pk, is_staff=True).exists())
def test_can_remove_self_from_admin(self):
self.log_in_user(self.admin_user)
self.submit_form('user_management_manage_single_admin_user_remove',
reverse_kwargs={'args': [self.admin_user.pk]},
success_url=reverse('create_link'))
self.assertFalse(LinkUser.objects.filter(pk=self.admin_user.pk, is_staff=True).exists())
### SETTINGS ###
def test_user_can_change_own_settings(self):
self.submit_form('user_management_settings_profile',
user=self.admin_user,
data={
'a-first_name': 'Newfirst',
'a-last_name': 'Newlast',
'a-e-address': 'test_admin_user@example.com'
},
success_url=reverse('user_management_settings_profile'),
success_query=LinkUser.objects.filter(first_name='Newfirst'))
def test_user_can_request_deletion_once(self):
deletion_url = reverse('user_management_delete_account')
self.assertNotIn('Requested account deletion', self.regular_user.notes)
response1 = self.get('user_management_settings_profile',
user=self.regular_user).content
self.assertIn(bytes('<form method="post" action="{}"'.format(deletion_url), 'utf-8'), response1)
response2 = self.post('user_management_delete_account',
user=self.regular_user,
request_kwargs={"follow": True}).content
self.assertNotIn(bytes('<form method="post" action="{}"'.format(deletion_url), 'utf-8'), response2)
self.assertIn(b'Deletion Request Received', response2)
self.regular_user.refresh_from_db()
self.assertIn('Requested account deletion', self.regular_user.notes)
self.assertEqual(len(mail.outbox),1)
message = mail.outbox[0]
self.assertEqual(message.subject, 'Perma.cc account deletion request')
def test_edit_org_privacy(self):
'''
Can an authorized user change the privacy setting of an org?
'''
# Toggle as an org user
response = self.get('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_org_user@example.com').content
self.assertIn(b"Your Perma Links are currently <strong>Public</strong> by default.", response)
self.submit_form('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_org_user@example.com',
data={},
success_url=reverse('user_management_settings_affiliations'))
response = self.get('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_org_user@example.com').content
self.assertIn(b"Your Perma Links are currently <strong>Private</strong> by default.", response)
# Toggle as a registrar user
self.submit_form('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_registrar_user@example.com',
data={},
success_url=reverse('user_management_manage_organization'))
response = self.get('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_registrar_user@example.com').content
self.assertIn(b"Your Perma Links are currently <strong>Public</strong> by default.", response)
# Toggle as a staff user
self.submit_form('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_admin_user@example.com',
data={},
success_url=reverse('user_management_manage_organization'))
response = self.get('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[1]},
user='test_admin_user@example.com').content
self.assertIn(b"Your Perma Links are currently <strong>Private</strong> by default.", response)
# As staff, try to access non-existent org
self.get('user_management_settings_organizations_change_privacy', reverse_kwargs={'args':[99999]},
user='test_admin_user@example.com',
require_status_code=404)
# Subscription, Individuals (except registrar users)
def test_nonpaying_user_cannot_see_usage_plan_page(self):
u = LinkUser.objects.get(email='test_nonpaying_user@example.com')
assert not u.can_view_usage_plan()
self.get('user_management_settings_usage_plan',
user=u,
require_status_code=403)
def test_regular_user_can_see_usage_plan_page(self):
u = LinkUser.objects.get(email='test_user@example.com')
assert u.can_view_usage_plan()
self.get('user_management_settings_usage_plan',
user=u,
require_status_code=200)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_no_purchase_history_section_if_no_one_time_purchases(self, get_purchase_history, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
get_subscription.return_value = None
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
self.assertNotIn(b'Purchase History', r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_purchase_history_present_if_one_time_purchases(self, get_purchase_history, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
get_subscription.return_value = None
get_purchase_history.return_value = {
'purchases': [
{'link_quantity': 10, 'date': GENESIS},
{'link_quantity': 3, 'date': GENESIS}
],
'total_links': 13
}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
self.assertIn(b'Purchase History', r.content)
self.assertIn(b'10 Links', r.content)
self.assertIn(b'3 Links', r.content)
self.assertIn(b'13 Links', r.content)
self.assertIn(b'January 1, 1970', r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_subscribe_form_if_no_standing_subscription(self, get_purchase_history, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
get_subscription.return_value = None
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
individual_tier_count = len(settings.TIERS['Individual'])
bonus_package_count = len(settings.BONUS_PACKAGES)
self.assertIn(b'Get More Personal Links', r.content)
self.assertIn(b'Purchase a personal subscription', r.content)
self.assertIn(b'<form class="purchase-form', r.content, bonus_package_count)
self.assertIn(b'<form class="upgrade-form', r.content, individual_tier_count)
self.assertIn(b'<input type="hidden" name="encrypted_data"', r.content, individual_tier_count + bonus_package_count)
self.assertIn(prepped.return_value, r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_update_button_cancel_button_and_subscription_info_present_if_standing_subscription(self, get_purchase_history, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_current_monthly_subscription()
get_subscription.return_value = subscription
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
self.assertIn(b'Rate', r.content)
self.assertIn(b'Paid Through', r.content)
self.assertIn(bytes(subscription['status'].lower(), 'utf-8'), r.content)
self.assertIn(b'Modify Subscription', r.content)
self.assertContains(r, '<input type="hidden" name="account_type"', 2)
self.assertIn(b'Cancel Subscription', r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_help_present_if_subscription_on_hold(self, get_purchase_history, get_subscription):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_on_hold_monthly_subscription()
get_subscription.return_value = subscription
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
r = self.get('user_management_settings_usage_plan',
user=u)
self.assertIn(b'problem with your credit card', r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_cancellation_info_present_if_cancellation_requested(self, get_purchase_history, get_subscription):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_cancellation_requested_subscription()
get_subscription.return_value = subscription
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
r = self.get('user_management_settings_usage_plan',
user=u)
bonus_package_count = len(settings.BONUS_PACKAGES)
self.assertIn(b'Get More Personal Links', r.content)
self.assertIn(b'<input type="hidden" name="encrypted_data"', r.content, bonus_package_count)
self.assertIn(b'received the request to cancel', r.content)
get_subscription.assert_called_once_with(u)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_apology_page_displayed_if_perma_payments_is_down(self, get_subscription):
u = LinkUser.objects.get(email='test_user@example.com')
get_subscription.side_effect = PermaPaymentsCommunicationException
r = self.get('user_management_settings_usage_plan',
user=u)
self.assertNotIn(b'<input type="hidden" name="encrypted_data"', r.content)
self.assertIn(b'is currently unavailable', r.content)
get_subscription.assert_called_once_with(u)
def test_unauthorized_user_cannot_see_cancellation_page(self):
u = LinkUser.objects.get(email='test_nonpaying_user@example.com')
assert not u.can_view_usage_plan()
self.post('user_management_settings_subscription_cancel',
user=u,
require_status_code=403)
def test_authorized_user_cant_use_get_for_cancellation_page(self):
u = LinkUser.objects.get(email='test_user@example.com')
assert u.can_view_usage_plan()
self.get('user_management_settings_subscription_cancel',
user=u,
require_status_code=405)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_authorized_user_cancellation_confirm_form(self, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
assert u.can_view_usage_plan()
subscription = spoof_current_monthly_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_cancel',
user=u,
data={'account_type':'Individual'})
self.assertIn(b'<input type="hidden" name="encrypted_data"', r.content)
self.assertIn(prepped.return_value, r.content)
self.assertIn(b'Are you sure you want to cancel', r.content)
get_subscription.assert_called_once_with(u)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_update_page_if_no_standing_subscription(self, get_subscription):
u = LinkUser.objects.get(email='test_user@example.com')
get_subscription.return_value = None
self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'},
require_status_code=403)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_update_page_if_standing_subscription(self, get_subscription, prepped, prepped_v):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_current_monthly_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
prepped_v.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'})
# Should be able to up/downgrade to all monthly individual tiers, except the current tier
available_tiers = len([tier for tier in settings.TIERS['Individual'] if tier['period'] == 'monthly']) - 1
self.assertContains(r, 'Update Credit Card Information')
self.assertContains(r, '<input type="hidden" name="encrypted_data"', 1)
self.assertContains(r, 'Change Plan')
self.assertNotContains(r, 'Cancel Scheduled Downgrade')
self.assertContains(r, '<input required type="radio" name="encrypted_data"', available_tiers)
self.assertContains(r, prepped.return_value, available_tiers + 1)
get_subscription.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_update_page_if_downgrade_scheduled(self, get_subscription, prepped, prepped_v):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_current_monthly_subscription_with_scheduled_downgrade()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
prepped_v.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'})
self.assertContains(r, 'Update Credit Card Information')
self.assertContains(r, 'Cancel Scheduled Downgrade')
self.assertContains(r, '<input type="hidden" name="encrypted_data"', 2)
self.assertNotContains(r, '<input required type="radio" name="encrypted_data"')
self.assertContains(r, prepped.return_value, 2)
get_subscription.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_update_page_if_subscription_on_hold(self, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_on_hold_monthly_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'})
self.assertContains(r, 'Update Credit Card Information')
self.assertContains(r, '<input type="hidden" name="encrypted_data"', 1)
self.assertContains(r, prepped.return_value, 1)
self.assertNotContains(r, 'Change Plan')
get_subscription.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_update_page_if_cancellation_requested(self, get_subscription, prepped):
u = LinkUser.objects.get(email='test_user@example.com')
subscription = spoof_cancellation_requested_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'})
self.assertContains(r, 'Update Credit Card Information')
self.assertContains(r, '<input type="hidden" name="encrypted_data"', 1)
self.assertContains(r, prepped.return_value, 1)
self.assertNotContains(r, 'Change Plan')
get_subscription.assert_called_once_with(u)
# Subscription, Registrar Users
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_registrar_user_nonpaying_registrar(self, get_purchase_history, get_subscription_u, get_subscription_r, prepped):
u = LinkUser.objects.get(email='test_registrar_user@example.com')
get_subscription_u.return_value = None
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
# Individual tiers should be available; no registrar section should be present
individual_tier_count = len(settings.TIERS['Individual'])
bonus_package_count = len(settings.BONUS_PACKAGES)
self.assertIn(b'Get More Personal Links', r.content)
self.assertIn(b'Purchase a personal subscription', r.content)
self.assertNotIn(b'Purchase a subscription for Test Firm', r.content)
self.assertContains(r, '<form class="purchase-form', bonus_package_count)
self.assertContains(r, '<form class="upgrade-form', individual_tier_count)
self.assertContains(r, '<input type="hidden" name="encrypted_data"', individual_tier_count + bonus_package_count)
self.assertContains(r, prepped.return_value, individual_tier_count + bonus_package_count)
get_subscription_u.assert_called_once_with(u)
self.assertEqual(get_subscription_r.call_count, 0)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_allpaying_registrar_user_sees_both_subscribe_forms(self, get_purchase_history, get_subscription_u, get_subscription_r, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
get_subscription_u.return_value = None
get_subscription_r.return_value = None
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
# all tiers should be offered, both individual and registrar-level
tier_count = len(settings.TIERS['Individual']) + len(settings.TIERS['Registrar'])
bonus_package_count = len(settings.BONUS_PACKAGES)
self.assertIn(b'Get More Personal Links', r.content)
self.assertIn(b'Purchase a personal subscription', r.content)
self.assertIn(b'Purchase a subscription for Test Firm', r.content)
self.assertContains(r, '<form class="purchase-form', bonus_package_count)
self.assertContains(r, '<form class="upgrade-form', tier_count)
self.assertContains(r, '<input type="hidden" name="encrypted_data"', tier_count + bonus_package_count)
self.assertContains(r, prepped.return_value, tier_count + bonus_package_count)
get_subscription_u.assert_called_once_with(u)
get_subscription_r.assert_called_once_with(u.registrar)
get_purchase_history.assert_called_once_with(u)
@patch('perma.models.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_purchase_history', autospec=True)
def test_allpaying_registrar_user_sees_subscriptions_independently(self, get_purchase_history, get_subscription_u, get_subscription_r, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
get_subscription_u.return_value = None
subscription = spoof_current_monthly_subscription()
get_subscription_r.return_value = subscription
get_purchase_history.return_value = {'purchases': [], 'total_links': 0}
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.get('user_management_settings_usage_plan',
user=u)
# Individual tiers should be available; the registrar's subscription should be present
individual_tier_count = len(settings.TIERS['Individual'])
bonus_package_count = len(settings.BONUS_PACKAGES)
self.assertIn(b'Get More Personal Links', r.content)
self.assertIn(b'Purchase a personal subscription', r.content)
self.assertNotIn(b'Purchase a subscription for Test Firm', r.content)
self.assertContains(r, '<form class="purchase-form', bonus_package_count)
self.assertContains(r, '<form class="upgrade-form', individual_tier_count)
self.assertContains(r, '<input type="hidden" name="encrypted_data"', individual_tier_count + bonus_package_count)
self.assertContains(r, prepped.return_value, individual_tier_count+ bonus_package_count)
self.assertIn(b'Rate', r.content)
self.assertIn(b'Paid Through', r.content)
self.assertIn(bytes(subscription['status'].lower(), 'utf-8'), r.content)
self.assertIn(b'Modify Subscription', r.content)
self.assertContains(r, '<input type="hidden" name="account_type"', 2)
self.assertIn(b'Cancel Subscription', r.content)
get_subscription_u.assert_called_once_with(u)
get_subscription_r.assert_called_once_with(u.registrar)
get_purchase_history.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_allpaying_registrar_user_personal_cancellation_confirm_form(self, get_subscription_u, get_subscription_r, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
assert u.can_view_usage_plan()
subscription = spoof_current_monthly_subscription()
get_subscription_u.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_cancel',
user=u,
data={'account_type':'Individual'})
self.assertIn(b'<input type="hidden" name="encrypted_data"', r.content)
self.assertIn(prepped.return_value, r.content)
self.assertIn(b'Are you sure you want to cancel', r.content)
self.assertNotIn(b'Test Firm', r.content)
self.assertIn(b'personal', r.content)
get_subscription_u.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_allpaying_registrar_user_institutional_cancellation_confirm_form(self, get_subscription_u, get_subscription_r, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
assert u.can_view_usage_plan()
subscription = spoof_current_monthly_subscription()
get_subscription_r.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_cancel',
user=u,
data={'account_type':'Registrar'})
self.assertIn(b'<input type="hidden" name="encrypted_data"', r.content)
self.assertIn(prepped.return_value, r.content)
self.assertIn(b'Are you sure you want to cancel', r.content)
self.assertIn(b'Test Firm', r.content)
self.assertNotIn(b'Personal', r.content)
get_subscription_r.assert_called_once_with(u.registrar)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.LinkUser.get_subscription', autospec=True)
def test_allpaying_registrar_user_personal_update_form(self, get_subscription, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
assert u.can_view_usage_plan()
subscription = spoof_current_monthly_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Individual'})
self.assertNotIn(b'Test Firm', r.content)
self.assertIn(b'Personal', r.content)
get_subscription.assert_called_once_with(u)
@patch('perma.views.user_management.prep_for_perma_payments', autospec=True)
@patch('perma.models.Registrar.get_subscription', autospec=True)
def test_allpaying_registrar_user_institutional_update_form(self, get_subscription, prepped):
u = LinkUser.objects.get(email='registrar_user@firm.com')
assert u.can_view_usage_plan()
subscription = spoof_current_monthly_subscription()
get_subscription.return_value = subscription
prepped.return_value = bytes(str(sentinel.prepped), 'utf-8')
r = self.post('user_management_settings_subscription_update',
user=u,
data={'account_type':'Registrar'})
self.assertIn(b'Test Firm', r.content)
self.assertNotIn(b'personal', r.content)
get_subscription.assert_called_once_with(u.registrar)
# Tools
def test_api_key(self):
response = self.get('user_management_settings_tools',
user='test_another_library_org_user@example.com').content
self.assertNotIn(b'id="id_api_key"', response)
self.submit_form('api_key_create',
user='test_another_library_org_user@example.com',
data={},
success_url=reverse('user_management_settings_tools'))
response = self.get('user_management_settings_tools',
user='test_another_library_org_user@example.com').content
soup = BeautifulSoup(response, 'html.parser')
key = soup.find('input', {'id': 'id_api_key'})
val = key.get('value', '')
self.assertTrue(val)
# do it again, and make sure the key changes
self.submit_form('api_key_create',
user='test_another_library_org_user@example.com',
data={},
success_url=reverse('user_management_settings_tools'))
response = self.get('user_management_settings_tools',
user='test_another_library_org_user@example.com').content
soup = BeautifulSoup(response, 'html.parser')
key = soup.find('input', {'id': 'id_api_key'})
new_val = key.get('value', '')
self.assertTrue(new_val)
self.assertFalse(val == new_val)
# Affiliations
def test_affiliations(self):
'''
Does the expected information show up on the affliations page?
(Tries not to be overly picky about the page design and markup.)
'''
# As an org user
response = self.get('user_management_settings_affiliations',
user='multi_registrar_org_user@example.com').content
soup = BeautifulSoup(response, 'html.parser')
registrars = soup.select('h4 a')
self.assertEqual(len(registrars), 2)
for registrar in registrars:
self.assertTrue(registrar.text.strip())
orgs = soup.select('.settings-block p')
self.assertEqual(len(orgs), 4)
for org in orgs:
self.assertTrue(org.text.strip())
# As a registrar user
response = self.get('user_management_settings_affiliations',
user='test_registrar_user@example.com').content
soup = BeautifulSoup(response, 'html.parser')
registrars = soup.select('h4')
self.assertEqual(len(registrars), 1)
for registrar in registrars:
self.assertTrue(registrar.text.strip())
settings = soup.select('dt')
self.assertEqual(len(settings), 2)
for setting in settings:
self.assertTrue(org.text.strip())
# As a pending registrar user
response = self.get('user_management_settings_affiliations',
user='test_requested_registrar_account@example.com').content
self.assertIn(b'Pending Registrar', response)
self.assertIn(b'Thank you for requesting an account for your library. Perma.cc will review your request as soon as possible.', response)
soup = BeautifulSoup(response, 'html.parser')
registrars = soup.select('.sponsor-name')
self.assertEqual(len(registrars), 1)
for registrar in registrars:
self.assertTrue(registrar.text.strip())
settings = soup.select('dt')
self.assertEqual(len(settings), 2)
for setting in settings:
self.assertTrue(org.text.strip())
###
### SIGNUP
###
### Libraries ###
def new_lib(self):
rand = random()
return { 'email': u'library{}@university.org'.format(rand),
'name': u'University Library {}'.format(rand),
'website': u'http://website{}.org'.format(rand),
'address': u'{} Main St., Boston MA 02144'.format(rand)}
def new_lib_user(self):
rand = random()
return { 'email': u'user{}@university.org'.format(rand),
'first': u'Joe',
'last': u'Yacobówski' }
def check_library_labels(self, soup):
name_label = soup.find('label', {'for': 'id_b-name'})
self.assertEqual(name_label.text, "Library name")
email_label = soup.find('label', {'for': 'id_b-email'})
self.assertEqual(email_label.text, "Library email")
website_label = soup.find('label', {'for': 'id_b-website'})
self.assertEqual(website_label.text, "Library website")
def check_lib_user_labels(self, soup):
email_label = soup.find('label', {'for': 'id_a-e-address'})
self.assertEqual(email_label.text, "Your email")
def check_lib_email(self, message, new_lib, user):
our_address = settings.DEFAULT_FROM_EMAIL
self.assertIn(new_lib['name'], message.body)
self.assertIn(new_lib['email'], message.body)
self.assertIn(user['email'], message.body)
id = Registrar.objects.get(email=new_lib['email']).id
approve_url = "http://testserver{}".format(reverse('user_management_approve_pending_registrar', args=[id]))
self.assertIn(approve_url, message.body)
self.assertEqual(message.subject, "Perma.cc new library registrar account request")
self.assertEqual(message.from_email, our_address)
self.assertEqual(message.recipients(), [our_address])
self.assertDictEqual(message.extra_headers, {'Reply-To': user['email']})
def test_new_library_render(self):
'''
Does the library signup form display as expected?
'''
# NOT LOGGED IN
# Registrar and user forms are displayed,
# inputs are blank, and labels are customized as expected
response = self.get('libraries').content
soup = BeautifulSoup(response, 'html.parser')
self.check_library_labels(soup)
self.check_lib_user_labels(soup)
inputs = soup.select('input')
self.assertEqual(len(inputs), 9)
for input in inputs:
if input['name'] in ['csrfmiddlewaretoken', 'telephone']:
self.assertTrue(input.get('value', ''))
else:
self.assertFalse(input.get('value', ''))
# If request_data is present in session, registrar form is prepopulated,
# and labels are still customized as expected
session = self.client.session
new_lib = self.new_lib()
new_lib_user = self.new_lib_user()
session['request_data'] = { u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'],
u'b-address': new_lib['address'],
u'a-e-address': new_lib_user['email'],
u'a-first_name': new_lib_user['first'],
u'a-last_name': new_lib_user['last'],
u'csrfmiddlewaretoken': u'11YY3S2DgOw2DHoWVEbBArnBMdEA2svu' }
session.save()
response = self.get('libraries').content
soup = BeautifulSoup(response, 'html.parser')
self.check_library_labels(soup)
self.check_lib_user_labels(soup)
inputs = soup.select('input')
self.assertEqual(len(inputs), 9)
for input in inputs:
if input['name'] in ['csrfmiddlewaretoken', 'telephone']:
self.assertTrue(input.get('value', ''))
elif input['name'][:2] == "b-":
self.assertTrue(input.get('value', ''))
else:
self.assertFalse(input.get('value', ''))
# If there's an unsuccessful submission, field labels are still as expected.
response = self.post('libraries').content
soup = BeautifulSoup(response, 'html.parser')
self.check_library_labels(soup)
self.check_lib_user_labels(soup)
# LOGGED IN
# Registrar form is displayed, but user form is not,
# inputs are blank, and labels are still customized as expected
response = self.get('libraries', user="test_user@example.com").content
soup = BeautifulSoup(response, 'html.parser')
self.check_library_labels(soup)
inputs = soup.select('input')
self.assertEqual(len(inputs), 6) # 6 because csrf is here and in the logout form
for input in inputs:
self.assertIn(input['name'],['csrfmiddlewaretoken', 'b-name', 'b-email', 'b-website', 'b-address'])
if input['name'] == 'csrfmiddlewaretoken':
self.assertTrue(input.get('value', ''))
else:
self.assertFalse(input.get('value', ''))
def test_new_library_submit_success(self):
'''
Does the library signup form submit as expected? Success cases.
'''
expected_emails_sent = 0
# Not logged in, submit all fields sans first and last name
new_lib = self.new_lib()
new_lib_user = self.new_lib_user()
self.submit_form('libraries',
data = { u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'],
u'a-e-address': new_lib_user['email'] },
success_url=reverse('register_library_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_lib_email(mail.outbox[expected_emails_sent - 2], new_lib, new_lib_user)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_lib_user['email'])
# Not logged in, submit all fields including first and last name
new_lib = self.new_lib()
new_lib_user = self.new_lib_user()
self.submit_form('libraries',
data = { u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'],
u'a-e-address': new_lib_user['email'],
u'a-first_name': new_lib_user['first'],
u'a-last_name': new_lib_user['last']},
success_url=reverse('register_library_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_lib_email(mail.outbox[expected_emails_sent - 2], new_lib, new_lib_user)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_lib_user['email'])
# Logged in
new_lib = self.new_lib()
existing_lib_user = { 'email': 'test_user@example.com'}
self.submit_form('libraries',
data = { u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'] },
success_url=reverse('user_management_settings_affiliations'),
user=existing_lib_user['email'])
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_lib_email(mail.outbox[expected_emails_sent - 1], new_lib, existing_lib_user)
def test_new_library_form_honeypot(self):
new_lib = self.new_lib()
new_lib_user = self.new_lib_user()
self.submit_form('libraries',
data = { u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'],
u'a-e-address': new_lib_user['email'],
u'a-first_name': new_lib_user['first'],
u'a-last_name': new_lib_user['last'],
u'a-telephone': "I'm a bot."},
success_url=reverse('register_library_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(Registrar.objects.filter(name=new_lib['name']).exists())
def test_new_library_submit_failure(self):
'''
Does the library signup form submit as expected? Failures.
'''
new_lib = self.new_lib()
existing_lib_user = { 'email': 'test_user@example.com'}
# Not logged in, blank submission reports correct fields required
# ('email' catches both registrar and user email errors, unavoidably,
# so test with just that missing separately)
self.submit_form('libraries',
data = {},
form_keys = ['registrar_form', 'user_form'],
error_keys = ['website', 'name', 'email'])
self.assertEqual(len(mail.outbox), 0)
# (checking user email missing separately)
self.submit_form('libraries',
data = {u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name']},
form_keys = ['registrar_form', 'user_form'],
error_keys = ['email'])
self.assertEqual(len(mail.outbox), 0)
# Not logged in, user appears to have already registered
data = {u'b-email': new_lib['email'],
u'b-website': new_lib['website'],
u'b-name': new_lib['name'],
u'a-e-address': existing_lib_user['email']}
self.submit_form('libraries',
data = data,
form_keys = ['registrar_form', 'user_form'],
success_url = '/login?next=/libraries/')
self.assertDictEqual(self.client.session['request_data'], data)
self.assertEqual(len(mail.outbox), 0)
# Not logged in, registrar apepars to exist already
# (actually, this doesn't currently fail)
# Logged in, blank submission reports all fields required
self.submit_form('libraries',
data = {},
user = existing_lib_user['email'],
error_keys = ['website', 'name', 'email'])
self.assertEqual(len(mail.outbox), 0)
# Logged in, registrar appears to exist already
# (actually, this doesn't currently fail)
### Courts ###
def new_court(self):
rand = random()
return { 'requested_account_note': u'Court {}'.format(rand) }
def new_court_user(self):
rand = random()
return { 'email': u'user{}@university.org'.format(rand),
'first': u'Joe',
'last': u'Yacobówski' }
def check_court_email(self, message, court_email):
our_address = settings.DEFAULT_FROM_EMAIL
# Doesn't check email contents yet; too many variations possible presently
self.assertEqual(message.subject, "Perma.cc new library court account information request")
self.assertEqual(message.from_email, our_address)
self.assertEqual(message.recipients(), [our_address])
self.assertDictEqual(message.extra_headers, {'Reply-To': court_email})
def test_new_court_success(self):
'''
Does the court signup form submit as expected? Success cases.
'''
new_court = self.new_court()
new_user = self.new_court_user()
existing_user = { 'email': 'test_user@example.com'}
another_existing_user = { 'email': 'another_library_user@example.com'}
expected_emails_sent = 0
# NOT LOGGED IN
# Existing user's email address, no court info
# (currently succeeds, should probably fail; see issue 1746)
self.submit_form('sign_up_courts',
data = { 'e-address': existing_user['email']},
success_url = reverse('court_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_court_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
# Existing user's email address + court info
self.submit_form('sign_up_courts',
data = { 'e-address': existing_user['email'],
'requested_account_note': new_court['requested_account_note']},
success_url = reverse('court_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_court_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
# New user email address, don't create account
self.submit_form('sign_up_courts',
data = { 'e-address': new_user['email'],
'requested_account_note': new_court['requested_account_note']},
success_url = reverse('court_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_court_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# New user email address, create account
self.submit_form('sign_up_courts',
data = { 'e-address': new_user['email'],
'requested_account_note': new_court['requested_account_note'],
'create_account': True },
success_url = reverse('register_email_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 2], new_user['email'])
self.check_court_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# LOGGED IN
# New user email address
# (This succeeds and creates a new account; see issue 1749)
new_user = self.new_court_user()
self.submit_form('sign_up_courts',
data = { 'e-address': new_user['email'],
'requested_account_note': new_court['requested_account_note'],
'create_account': True },
user = existing_user['email'],
success_url = reverse('register_email_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 2], new_user['email'])
self.check_court_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# Existing user's email address, not that of the user logged in.
# (This is odd; see issue 1749)
self.submit_form('sign_up_courts',
data = { 'e-address': existing_user['email'],
'requested_account_note': new_court['requested_account_note'],
'create_account': True },
user = another_existing_user['email'],
success_url = reverse('court_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_court_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
def test_new_court_form_honeypot(self):
new_court = self.new_court()
new_user = self.new_court_user()
self.submit_form('sign_up_courts',
data = { 'e-address': new_user['email'],
'requested_account_note': new_court['requested_account_note'],
'create_account': True,
'telephone': "I'm a bot." },
success_url = reverse('register_email_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(LinkUser.objects.filter(email=new_user['email']).exists())
def test_new_court_failure(self):
'''
Does the court signup form submit as expected? Failure cases.
'''
# Not logged in, blank submission reports correct fields required
self.submit_form('sign_up_courts',
data = {},
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# Logged in, blank submission reports same fields required
# (This is odd; see issue 1749)
self.submit_form('sign_up_courts',
data = {},
user = 'test_user@example.com',
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
### Firms ###
def new_firm(self):
rand = random()
return {'requested_account_note': u'Firm {}'.format(rand)}
def new_firm_user(self):
rand = random()
return {'email': u'user{}@university.org'.format(rand),
'first': u'Joe',
'last': u'Yacobówski'}
def check_firm_email(self, message, firm_email):
our_address = settings.DEFAULT_FROM_EMAIL
# Doesn't check email contents yet; too many variations possible presently
self.assertEqual(message.subject, "Perma.cc new law firm account information request")
self.assertEqual(message.from_email, our_address)
self.assertEqual(message.recipients(), [our_address])
self.assertDictEqual(message.extra_headers, {'Reply-To': firm_email})
def test_new_firm_success(self):
'''
Does the firm signup form submit as expected? Success cases.
'''
new_firm = self.new_firm()
new_user = self.new_firm_user()
existing_user = {'email': 'test_user@example.com'}
another_existing_user = {'email': 'another_library_user@example.com'}
expected_emails_sent = 0
# NOT LOGGED IN
# Existing user's email address, no court info
# (currently succeeds, should probably fail; see issue 1746)
self.submit_form('sign_up_firm',
data={'e-address': existing_user['email']},
success_url=reverse('firm_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_firm_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
# Existing user's email address + firm info
self.submit_form('sign_up_firm',
data={'e-address': existing_user['email'],
'requested_account_note': new_firm['requested_account_note']},
success_url=reverse('firm_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_firm_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
# New user email address, don't create account
self.submit_form('sign_up_firm',
data={'e-address': new_user['email'],
'requested_account_note': new_firm['requested_account_note']},
success_url=reverse('firm_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_firm_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# New user email address, create account
self.submit_form('sign_up_firm',
data={'e-address': new_user['email'],
'requested_account_note': new_firm['requested_account_note'],
'create_account': True},
success_url=reverse('register_email_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 2], new_user['email'])
self.check_firm_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# LOGGED IN
# New user email address
# (This succeeds and creates a new account; see issue 1749)
new_user = self.new_firm_user()
self.submit_form('sign_up_firm',
data={'e-address': new_user['email'],
'requested_account_note': new_firm['requested_account_note'],
'create_account': True},
user=existing_user['email'],
success_url=reverse('register_email_instructions'))
expected_emails_sent += 2
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 2], new_user['email'])
self.check_firm_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# Existing user's email address, not that of the user logged in.
# (This is odd; see issue 1749)
self.submit_form('sign_up_firm',
data={'e-address': existing_user['email'],
'requested_account_note': new_firm['requested_account_note'],
'create_account': True},
user=another_existing_user['email'],
success_url=reverse('firm_request_response'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_firm_email(mail.outbox[expected_emails_sent - 1], existing_user['email'])
def test_new_firm_form_honeypot(self):
new_firm = self.new_firm()
new_user = self.new_firm_user()
self.submit_form('sign_up_firm',
data = { 'e-address': new_user['email'],
'requested_account_note': new_firm['requested_account_note'],
'create_account': True,
'telephone': "I'm a bot." },
success_url = reverse('register_email_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(LinkUser.objects.filter(email=new_user['email']).exists())
def test_new_firm_failure(self):
'''
Does the firm signup form submit as expected? Failure cases.
'''
# Not logged in, blank submission reports correct fields required
self.submit_form('sign_up_firm',
data={},
error_keys=['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# Logged in, blank submission reports same fields required
# (This is odd; see issue 1749)
self.submit_form('sign_up_firm',
data={},
user='test_user@example.com',
error_keys=['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
### Journals ###
def new_journal(self):
rand = random()
return { 'requested_account_note': u'Journal {}'.format(rand)}
def new_journal_user(self):
rand = random()
return { 'email': u'user{}@university.org'.format(rand),
'first': u'Joe',
'last': u'Yacobówski' }
def test_new_journal_success(self):
'''
Does the journal signup form submit as expected? Success cases.
'''
new_journal = self.new_journal()
new_user = self.new_journal_user()
existing_user = {'email': 'test_user@example.com'}
expected_emails_sent = 0
# NOT LOGGED IN
# New user email address + journal info
self.submit_form('sign_up_journals',
data = { 'e-address': new_user['email'],
'requested_account_note': new_journal['requested_account_note']},
success_url = reverse('register_email_instructions'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# LOGGED IN
# New user email address + journal info
# (This succeeds and creates a new account; see issue 1749)
new_user = self.new_journal_user()
self.submit_form('sign_up_journals',
data = { 'e-address': new_user['email'],
'requested_account_note': new_journal['requested_account_note']},
user = existing_user['email'],
success_url = reverse('register_email_instructions'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
def test_new_journal_form_honeypot(self):
new_journal = self.new_journal()
new_user = self.new_journal_user()
self.submit_form('sign_up_journals',
data = { 'e-address': new_user['email'],
'requested_account_note': new_journal['requested_account_note'],
'telephone': "I'm a bot." },
success_url = reverse('register_email_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(LinkUser.objects.filter(email=new_user['email']).exists())
def test_new_journal_failure(self):
'''
Does the journal signup form submit as expected? Failure cases.
'''
# NOT LOGGED IN
# Blank submission reports correct fields required
self.submit_form('sign_up_journals',
data = {},
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# If email address already belongs to an account, validation fails
self.submit_form('sign_up_journals',
data = { 'e-address': 'test_user@example.com',
'requested_account_note': 'Here'},
error_keys = ['email'])
self.assertEqual(len(mail.outbox), 0)
# LOGGED IN
# (This is odd; see issue 1749)
# Blank submission reports correct fields required
self.submit_form('sign_up_journals',
data = {},
user = 'test_user@example.com',
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# If email address already belongs to an account, validation fails
self.submit_form('sign_up_journals',
data = { 'e-address': 'test_user@example.com',
'requested_account_note': 'Here'},
user = 'test_user@example.com',
error_keys = ['email'])
self.assertEqual(len(mail.outbox), 0)
### Faculty ###
def new_faculty_user(self):
rand = random()
return { 'email': u'user{}@university.org'.format(rand),
'first': u'Joe',
'last': u'Yacobówski',
'requested_account_note': u'Journal {}'.format(rand) }
def test_new_faculty_success(self):
'''
Does the faculty signup form submit as expected? Success cases.
'''
new_user = self.new_faculty_user()
existing_user = {'email': 'test_user@example.com'}
expected_emails_sent = 0
# NOT LOGGED IN
# New user email address + journal info
self.submit_form('sign_up_faculty',
data = { 'e-address': new_user['email'],
'requested_account_note': new_user['requested_account_note']},
success_url = reverse('register_email_instructions'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
# LOGGED IN
# New user email address + journal info
# (This succeeds and creates a new account; see issue 1749)
new_user = self.new_faculty_user()
self.submit_form('sign_up_faculty',
data = { 'e-address': new_user['email'],
'requested_account_note': new_user['requested_account_note']},
user = existing_user['email'],
success_url = reverse('register_email_instructions'))
expected_emails_sent += 1
self.assertEqual(len(mail.outbox), expected_emails_sent)
self.check_new_activation_email(mail.outbox[expected_emails_sent - 1], new_user['email'])
def test_new_faculty_form_honeypot(self):
new_user = self.new_faculty_user()
self.submit_form('sign_up_faculty',
data = { 'e-address': new_user['email'],
'requested_account_note': new_user['requested_account_note'],
'telephone': "I'm a bot." },
success_url = reverse('register_email_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(LinkUser.objects.filter(email=new_user['email']).exists())
def test_new_faculty_failure(self):
'''
Does the faculty signup form submit as expected? Failure cases.
'''
# NOT LOGGED IN
# Blank submission reports correct fields required
self.submit_form('sign_up_faculty',
data = {},
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# If email address already belongs to an account, validation fails
self.submit_form('sign_up_faculty',
data = { 'e-address': 'test_user@example.com',
'requested_account_note': 'Here'},
error_keys = ['email'])
self.assertEqual(len(mail.outbox), 0)
# LOGGED IN
# (This is odd; see issue 1749)
# Blank submission reports correct fields required
self.submit_form('sign_up_faculty',
data = {},
user = 'test_user@example.com',
error_keys = ['email', 'requested_account_note'])
self.assertEqual(len(mail.outbox), 0)
# If email address already belongs to an account, validation fails
self.submit_form('sign_up_faculty',
data = { 'e-address': 'test_user@example.com',
'requested_account_note': 'Here'},
user = 'test_user@example.com',
error_keys = ['email'])
self.assertEqual(len(mail.outbox), 0)
### Individual Users ###
def check_new_activation_email(self, message, user_email):
self.assertEqual(message.subject, "A Perma.cc account has been created for you")
self.assertEqual(message.from_email, settings.DEFAULT_FROM_EMAIL)
self.assertEqual(message.recipients(), [user_email])
activation_url = next(line for line in message.body.rstrip().split("\n") if line.startswith('http'))
return activation_url
def test_account_creation_views(self):
# user registration
new_user_email = "new_email@test.com"
self.submit_form('sign_up', {'e-address': new_user_email, 'first_name': 'Test', 'last_name': 'Test'},
success_url=reverse('register_email_instructions'),
success_query=LinkUser.objects.filter(email=new_user_email))
# email sent
self.assertEqual(len(mail.outbox), 1)
message = mail.outbox[0]
activation_url = self.check_new_activation_email(message, new_user_email)
# the new user is created, but is unactivated
user = LinkUser.objects.get(email=new_user_email)
self.assertFalse(user.is_active)
self.assertFalse(user.is_confirmed)
# if you tamper with the code, it is rejected
response = self.client.get(activation_url[:-1]+'wrong/')
self.assertContains(response, 'This activation/reset link is invalid')
# reg confirm - non-matching passwords
response = self.client.get(activation_url, follow=True)
post_url = response.redirect_chain[0][0]
self.assertTemplateUsed(response, 'registration/password_reset_confirm.html')
response = self.client.post(post_url, {'new_password1': 'Anewpass1', 'new_password2': 'Anewpass2'}, follow=True)
self.assertNotContains(response, 'Your password has been set')
self.assertContains(response, "The two password fields didn't match")
# reg confirm - correct
response = self.client.post(post_url, {'new_password1': 'Anewpass1', 'new_password2': 'Anewpass1'}, follow=True)
self.assertContains(response, 'Your password has been set')
# Doesn't work twice.
response = self.client.post(post_url, {'new_password1': 'Anotherpass1', 'new_password2': 'Anotherpass1'}, follow=True)
self.assertContains(response, 'This activation/reset link is invalid')
# the new user is now activated and can log in
user.refresh_from_db()
self.assertTrue(user.is_active)
self.assertTrue(user.is_confirmed)
response = self.client.post(reverse('user_management_limited_login'), {'username': new_user_email, 'password': 'Anewpass1'}, follow=True)
self.assertContains(response, 'Enter any URL to preserve it forever')
def test_signup_with_existing_email_rejected(self):
self.submit_form('sign_up',
{'e-address': self.registrar_user.email, 'first_name': 'Test', 'last_name': 'Test'},
error_keys=['email'])
def test_new_user_form_honeypot(self):
new_user_email = "new_email@test.com"
self.submit_form('sign_up',
data = { 'e-address': new_user_email,
'telephone': "I'm a bot." },
success_url = reverse('register_email_instructions'))
self.assertEqual(len(mail.outbox), 0)
self.assertFalse(LinkUser.objects.filter(email=new_user_email).exists())
def test_get_new_activation_code(self):
self.submit_form('user_management_not_active',
user = 'unactivated_faculty_user@example.com',
data = {},
success_url=reverse('user_management_limited_login'))
self.assertEqual(len(mail.outbox), 1)
self.check_new_activation_email(mail.outbox[0], 'unactivated_faculty_user@example.com')
### RESENDING ACTIVATION EMAILS ###
def check_activation_resent(self, user, other_user):
self.get('user_management_resend_activation',
reverse_kwargs={'args':[LinkUser.objects.get(email=other_user).id]},
user = user)
self.assertEqual(len(mail.outbox), 1)
self.check_new_activation_email(mail.outbox[0], other_user)
def check_activation_not_resent(self, user, other_user):
self.get('user_management_resend_activation',
reverse_kwargs={'args':[LinkUser.objects.get(email=other_user).id]},
user = user,
require_status_code = 403)
self.assertEqual(len(mail.outbox), 0)
# Registrar Users
def test_registrar_can_resend_activation_to_org_user(self):
self.check_activation_resent('test_registrar_user@example.com','test_org_user@example.com')
def test_registrar_can_resend_activation_to_registrar_user(self):
self.check_activation_resent('another_library_user@example.com','unactivated_registrar_user@example.com')
def test_registrar_cannot_resend_activation_to_unrelated_org_user(self):
self.check_activation_not_resent('test_registrar_user@example.com','test_yet_another_library_org_user@example.com')
def test_registrar_cannot_resend_activation_to_regular_user(self):
self.check_activation_not_resent('test_registrar_user@example.com','test_user@example.com')
def test_registrar_cannot_resend_activation_to_unrelated_registrar_user(self):
self.check_activation_not_resent('test_registrar_user@example.com','another_library_user@example.com')
# Org Users
def test_org_user_can_resend_activation_to_org_user(self):
self.check_activation_resent('test_org_user@example.com','multi_registrar_org_user@example.com')
def test_org_user_cannot_resend_activation_to_unrelated_org_user(self):
self.check_activation_not_resent('test_org_user@example.com','test_yet_another_library_org_user@example.com')
def test_org_user_cannot_resend_activation_to_regular_user(self):
self.check_activation_not_resent('test_org_user@example.com','test_user@example.com')
def test_org_user_cannot_resend_activation_to_registrar_user(self):
self.check_activation_not_resent('test_org_user@example.com','test_registrar_user@example.com')
# Admin Users
def test_admin_can_resend_activation_to_regular_user(self):
self.check_activation_resent('test_admin_user@example.com','test_user@example.com')
def test_admin_can_resend_activation_to_org_user(self):
self.check_activation_resent('test_admin_user@example.com','test_org_user@example.com')
def test_admin_can_resend_activation_to_registrar_user(self):
self.check_activation_resent('test_admin_user@example.com','test_registrar_user@example.com')
### ADMIN STATS ###
def test_admin_stats(self):
self.log_in_user(self.admin_user)
self.get('user_management_stats', reverse_kwargs={'args':['days']})
self.get('user_management_stats', reverse_kwargs={'args':['celery']})
self.get('user_management_stats', reverse_kwargs={'args':['random']})
self.get('user_management_stats', reverse_kwargs={'args':['emails']})
self.get('user_management_stats', reverse_kwargs={'args':['job_queue']})
| 52.376704
| 151
| 0.627098
| 15,146
| 134,451
| 5.283045
| 0.040671
| 0.038317
| 0.020821
| 0.019683
| 0.882387
| 0.855906
| 0.830124
| 0.808841
| 0.784258
| 0.752853
| 0
| 0.005393
| 0.266268
| 134,451
| 2,566
| 152
| 52.397116
| 0.805719
| 0.064194
| 0
| 0.714432
| 0
| 0.000512
| 0.222411
| 0.128768
| 0
| 0
| 0
| 0
| 0.188843
| 1
| 0.08086
| false
| 0.004094
| 0.006141
| 0.002559
| 0.095189
| 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
|
0394f77471c4056c8b696b84bdfb2549f73dd5ac
| 106
|
py
|
Python
|
modron/views/tests/conftest.py
|
WardLT/play-by-post-helper
|
26df681f2a28510f88e552be628910e4e5fe57bb
|
[
"MIT"
] | null | null | null |
modron/views/tests/conftest.py
|
WardLT/play-by-post-helper
|
26df681f2a28510f88e552be628910e4e5fe57bb
|
[
"MIT"
] | 13
|
2020-04-08T02:56:58.000Z
|
2020-10-04T21:52:43.000Z
|
modron/views/tests/conftest.py
|
WardLT/play-by-post-helper
|
26df681f2a28510f88e552be628910e4e5fe57bb
|
[
"MIT"
] | null | null | null |
from pytest import fixture
from modron import create_app
@fixture()
def app():
return create_app()
| 11.777778
| 29
| 0.735849
| 15
| 106
| 5.066667
| 0.6
| 0.236842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188679
| 106
| 8
| 30
| 13.25
| 0.883721
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0.2
| 0.8
| 0
| 1
| 0
| 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
| 1
| 1
| 0
|
0
| 7
|
03badf85ff69f1b1a527f0a652db2b4adb5f60d4
| 118
|
py
|
Python
|
torch_tools/data/datasets/util/__init__.py
|
gregunz/TorchTools
|
19a33f2e4cd38f86b74bd732949516df66f9e24f
|
[
"MIT"
] | null | null | null |
torch_tools/data/datasets/util/__init__.py
|
gregunz/TorchTools
|
19a33f2e4cd38f86b74bd732949516df66f9e24f
|
[
"MIT"
] | null | null | null |
torch_tools/data/datasets/util/__init__.py
|
gregunz/TorchTools
|
19a33f2e4cd38f86b74bd732949516df66f9e24f
|
[
"MIT"
] | null | null | null |
from .compute_mean_std import compute_mean_std
from .dataset_to_h5 import dataset_to_h5_file
from .split import split
| 29.5
| 46
| 0.872881
| 21
| 118
| 4.47619
| 0.47619
| 0.234043
| 0.297872
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018868
| 0.101695
| 118
| 3
| 47
| 39.333333
| 0.867925
| 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
|
03c3cf8a0e59b6b392fbc3f75c4c22ce5dafaf56
| 24,363
|
py
|
Python
|
openapi_client/api/route_pattern_api.py
|
hypostulate/mbta-api-client
|
f18903b6269c523c733a31574ff4579349fed3f8
|
[
"MIT"
] | null | null | null |
openapi_client/api/route_pattern_api.py
|
hypostulate/mbta-api-client
|
f18903b6269c523c733a31574ff4579349fed3f8
|
[
"MIT"
] | null | null | null |
openapi_client/api/route_pattern_api.py
|
hypostulate/mbta-api-client
|
f18903b6269c523c733a31574ff4579349fed3f8
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
MBTA
MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501
The version of the OpenAPI document: 3.0
Contact: developer@mbta.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from openapi_client.api_client import ApiClient
from openapi_client.exceptions import (
ApiTypeError,
ApiValueError
)
class RoutePatternApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
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 api_web_route_pattern_controller_index(self, **kwargs): # noqa: E501
"""api_web_route_pattern_controller_index # noqa: E501
List of route patterns. Route patterns are used to describe the subsets of a route, representing different possible patterns of where trips may serve. For example, a bus route may have multiple branches, and each branch may be modeled as a separate route pattern per direction. Hierarchically, the route pattern level may be considered to be larger than the trip level and smaller than the route level. For most MBTA modes, a route pattern will typically represent a unique set of stops that may be served on a route-trip combination. Seasonal schedule changes may result in trips within a route pattern having different routings. In simple changes, such a single bus stop removed or added between one schedule rating and the next (for example, between the Summer and Fall schedules), trips will be maintained on the same route_pattern_id. If the changes are significant, a new route_pattern_id may be introduced. For Commuter Rail, express or skip-stop trips use the same route pattern as local trips. Some branches do have multiple route patterns when the train takes a different path. For example, `CR-Providence` has two route patterns per direction, one for the Wickford Junction branch and the other for the Stoughton branch. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_web_route_pattern_controller_index(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int page_offset: Offset (0-based) of first element in the page
:param int page_limit: Max number of elements to return
:param str sort: Results can be [sorted](http://jsonapi.org/format/#fetching-sorting) by the id or any `/data/{index}/attributes` key. Assumes ascending; may be prefixed with '-' for descending | JSON pointer | Direction | `sort` | |--------------|-----------|------------| | `/data/{index}/attributes/direction_id` | ascending | `direction_id` | | `/data/{index}/attributes/direction_id` | descending | `-direction_id` | | `/data/{index}/attributes/name` | ascending | `name` | | `/data/{index}/attributes/name` | descending | `-name` | | `/data/{index}/attributes/sort_order` | ascending | `sort_order` | | `/data/{index}/attributes/sort_order` | descending | `-sort_order` | | `/data/{index}/attributes/time_desc` | ascending | `time_desc` | | `/data/{index}/attributes/time_desc` | descending | `-time_desc` | | `/data/{index}/attributes/typicality` | ascending | `typicality` | | `/data/{index}/attributes/typicality` | descending | `-typicality` |
:param str include: Relationships to include. * `route` * `representative_trip` The value of the include parameter **MUST** be a comma-separated (U+002C COMMA, \",\") list of relationship paths. A relationship path is a dot-separated (U+002E FULL-STOP, \".\") list of relationship names. [JSONAPI \"include\" behavior](http://jsonapi.org/format/#fetching-includes) | include | Description | |-|-| | `route` | The route that this pattern belongs to. | | `representative_trip` | A trip that can be considered a canonical trip for the route pattern. This trip can be used to deduce a pattern's canonical set of stops and shape. |
:param str filter_id: Filter by multiple IDs. **MUST** be a comma-separated (U+002C COMMA, \",\") list.
:param str filter_route: Filter by `/data/{index}/relationships/route/data/id`. Multiple `/data/{index}/relationships/route/data/id` **MUST** be a comma-separated (U+002C COMMA, \",\") list.
:param str filter_direction_id: Filter by direction of travel along the route. The meaning of `direction_id` varies based on the route. You can programmatically get the direction names from `/routes` `/data/{index}/attributes/direction_names` or `/routes/{id}` `/data/attributes/direction_names`.
:param str filter_stop: Filter by `/data/{index}/relationships/stop/data/id`. Multiple `/data/{index}/relationships/stop/data/id` **MUST** be a comma-separated (U+002C COMMA, \",\") list.
: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: RoutePattern
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.api_web_route_pattern_controller_index_with_http_info(**kwargs) # noqa: E501
def api_web_route_pattern_controller_index_with_http_info(self, **kwargs): # noqa: E501
"""api_web_route_pattern_controller_index # noqa: E501
List of route patterns. Route patterns are used to describe the subsets of a route, representing different possible patterns of where trips may serve. For example, a bus route may have multiple branches, and each branch may be modeled as a separate route pattern per direction. Hierarchically, the route pattern level may be considered to be larger than the trip level and smaller than the route level. For most MBTA modes, a route pattern will typically represent a unique set of stops that may be served on a route-trip combination. Seasonal schedule changes may result in trips within a route pattern having different routings. In simple changes, such a single bus stop removed or added between one schedule rating and the next (for example, between the Summer and Fall schedules), trips will be maintained on the same route_pattern_id. If the changes are significant, a new route_pattern_id may be introduced. For Commuter Rail, express or skip-stop trips use the same route pattern as local trips. Some branches do have multiple route patterns when the train takes a different path. For example, `CR-Providence` has two route patterns per direction, one for the Wickford Junction branch and the other for the Stoughton branch. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_web_route_pattern_controller_index_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int page_offset: Offset (0-based) of first element in the page
:param int page_limit: Max number of elements to return
:param str sort: Results can be [sorted](http://jsonapi.org/format/#fetching-sorting) by the id or any `/data/{index}/attributes` key. Assumes ascending; may be prefixed with '-' for descending | JSON pointer | Direction | `sort` | |--------------|-----------|------------| | `/data/{index}/attributes/direction_id` | ascending | `direction_id` | | `/data/{index}/attributes/direction_id` | descending | `-direction_id` | | `/data/{index}/attributes/name` | ascending | `name` | | `/data/{index}/attributes/name` | descending | `-name` | | `/data/{index}/attributes/sort_order` | ascending | `sort_order` | | `/data/{index}/attributes/sort_order` | descending | `-sort_order` | | `/data/{index}/attributes/time_desc` | ascending | `time_desc` | | `/data/{index}/attributes/time_desc` | descending | `-time_desc` | | `/data/{index}/attributes/typicality` | ascending | `typicality` | | `/data/{index}/attributes/typicality` | descending | `-typicality` |
:param str include: Relationships to include. * `route` * `representative_trip` The value of the include parameter **MUST** be a comma-separated (U+002C COMMA, \",\") list of relationship paths. A relationship path is a dot-separated (U+002E FULL-STOP, \".\") list of relationship names. [JSONAPI \"include\" behavior](http://jsonapi.org/format/#fetching-includes) | include | Description | |-|-| | `route` | The route that this pattern belongs to. | | `representative_trip` | A trip that can be considered a canonical trip for the route pattern. This trip can be used to deduce a pattern's canonical set of stops and shape. |
:param str filter_id: Filter by multiple IDs. **MUST** be a comma-separated (U+002C COMMA, \",\") list.
:param str filter_route: Filter by `/data/{index}/relationships/route/data/id`. Multiple `/data/{index}/relationships/route/data/id` **MUST** be a comma-separated (U+002C COMMA, \",\") list.
:param str filter_direction_id: Filter by direction of travel along the route. The meaning of `direction_id` varies based on the route. You can programmatically get the direction names from `/routes` `/data/{index}/attributes/direction_names` or `/routes/{id}` `/data/attributes/direction_names`.
:param str filter_stop: Filter by `/data/{index}/relationships/stop/data/id`. Multiple `/data/{index}/relationships/stop/data/id` **MUST** be a comma-separated (U+002C COMMA, \",\") list.
: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(RoutePattern, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_offset', 'page_limit', 'sort', 'include', 'filter_id', 'filter_route', 'filter_direction_id', 'filter_stop'] # 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 api_web_route_pattern_controller_index" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
if self.api_client.client_side_validation and 'page_offset' in local_var_params and local_var_params['page_offset'] < 0: # noqa: E501
raise ApiValueError("Invalid value for parameter `page_offset` when calling `api_web_route_pattern_controller_index`, must be a value greater than or equal to `0`") # noqa: E501
if self.api_client.client_side_validation and 'page_limit' in local_var_params and local_var_params['page_limit'] < 1: # noqa: E501
raise ApiValueError("Invalid value for parameter `page_limit` when calling `api_web_route_pattern_controller_index`, must be a value greater than or equal to `1`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'page_offset' in local_var_params and local_var_params['page_offset'] is not None: # noqa: E501
query_params.append(('page[offset]', local_var_params['page_offset'])) # noqa: E501
if 'page_limit' in local_var_params and local_var_params['page_limit'] is not None: # noqa: E501
query_params.append(('page[limit]', local_var_params['page_limit'])) # noqa: E501
if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
query_params.append(('sort', local_var_params['sort'])) # noqa: E501
if 'include' in local_var_params and local_var_params['include'] is not None: # noqa: E501
query_params.append(('include', local_var_params['include'])) # noqa: E501
if 'filter_id' in local_var_params and local_var_params['filter_id'] is not None: # noqa: E501
query_params.append(('filter[id]', local_var_params['filter_id'])) # noqa: E501
if 'filter_route' in local_var_params and local_var_params['filter_route'] is not None: # noqa: E501
query_params.append(('filter[route]', local_var_params['filter_route'])) # noqa: E501
if 'filter_direction_id' in local_var_params and local_var_params['filter_direction_id'] is not None: # noqa: E501
query_params.append(('filter[direction_id]', local_var_params['filter_direction_id'])) # noqa: E501
if 'filter_stop' in local_var_params and local_var_params['filter_stop'] is not None: # noqa: E501
query_params.append(('filter[stop]', local_var_params['filter_stop'])) # 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/vnd.api+json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key_in_header', 'api_key_in_query'] # noqa: E501
return self.api_client.call_api(
'/route_patterns', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RoutePattern', # 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 api_web_route_pattern_controller_show(self, id, **kwargs): # noqa: E501
"""api_web_route_pattern_controller_show # noqa: E501
Show a particular route_pattern by the route's id. Route patterns are used to describe the subsets of a route, representing different possible patterns of where trips may serve. For example, a bus route may have multiple branches, and each branch may be modeled as a separate route pattern per direction. Hierarchically, the route pattern level may be considered to be larger than the trip level and smaller than the route level. For most MBTA modes, a route pattern will typically represent a unique set of stops that may be served on a route-trip combination. Seasonal schedule changes may result in trips within a route pattern having different routings. In simple changes, such a single bus stop removed or added between one schedule rating and the next (for example, between the Summer and Fall schedules), trips will be maintained on the same route_pattern_id. If the changes are significant, a new route_pattern_id may be introduced. For Commuter Rail, express or skip-stop trips use the same route pattern as local trips. Some branches do have multiple route patterns when the train takes a different path. For example, `CR-Providence` has two route patterns per direction, one for the Wickford Junction branch and the other for the Stoughton branch. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_web_route_pattern_controller_show(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: Unique identifier for route_pattern (required)
:param str include: Relationships to include. * `route` * `representative_trip` The value of the include parameter **MUST** be a comma-separated (U+002C COMMA, \",\") list of relationship paths. A relationship path is a dot-separated (U+002E FULL-STOP, \".\") list of relationship names. [JSONAPI \"include\" behavior](http://jsonapi.org/format/#fetching-includes) | include | Description | |-|-| | `route` | The route that this pattern belongs to. | | `representative_trip` | A trip that can be considered a canonical trip for the route pattern. This trip can be used to deduce a pattern's canonical set of stops and shape. |
: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: RoutePattern
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.api_web_route_pattern_controller_show_with_http_info(id, **kwargs) # noqa: E501
def api_web_route_pattern_controller_show_with_http_info(self, id, **kwargs): # noqa: E501
"""api_web_route_pattern_controller_show # noqa: E501
Show a particular route_pattern by the route's id. Route patterns are used to describe the subsets of a route, representing different possible patterns of where trips may serve. For example, a bus route may have multiple branches, and each branch may be modeled as a separate route pattern per direction. Hierarchically, the route pattern level may be considered to be larger than the trip level and smaller than the route level. For most MBTA modes, a route pattern will typically represent a unique set of stops that may be served on a route-trip combination. Seasonal schedule changes may result in trips within a route pattern having different routings. In simple changes, such a single bus stop removed or added between one schedule rating and the next (for example, between the Summer and Fall schedules), trips will be maintained on the same route_pattern_id. If the changes are significant, a new route_pattern_id may be introduced. For Commuter Rail, express or skip-stop trips use the same route pattern as local trips. Some branches do have multiple route patterns when the train takes a different path. For example, `CR-Providence` has two route patterns per direction, one for the Wickford Junction branch and the other for the Stoughton branch. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_web_route_pattern_controller_show_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str id: Unique identifier for route_pattern (required)
:param str include: Relationships to include. * `route` * `representative_trip` The value of the include parameter **MUST** be a comma-separated (U+002C COMMA, \",\") list of relationship paths. A relationship path is a dot-separated (U+002E FULL-STOP, \".\") list of relationship names. [JSONAPI \"include\" behavior](http://jsonapi.org/format/#fetching-includes) | include | Description | |-|-| | `route` | The route that this pattern belongs to. | | `representative_trip` | A trip that can be considered a canonical trip for the route pattern. This trip can be used to deduce a pattern's canonical set of stops and shape. |
: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(RoutePattern, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['id', 'include'] # 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 api_web_route_pattern_controller_show" % 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 `api_web_route_pattern_controller_show`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in local_var_params:
path_params['id'] = local_var_params['id'] # noqa: E501
query_params = []
if 'include' in local_var_params and local_var_params['include'] is not None: # noqa: E501
query_params.append(('include', local_var_params['include'])) # 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/vnd.api+json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key_in_header', 'api_key_in_query'] # noqa: E501
return self.api_client.call_api(
'/route_patterns/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RoutePattern', # 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)
| 84.888502
| 1,285
| 0.684768
| 3,261
| 24,363
| 4.950322
| 0.099663
| 0.040885
| 0.04423
| 0.021186
| 0.93731
| 0.926098
| 0.919222
| 0.914142
| 0.90516
| 0.869851
| 0
| 0.011306
| 0.226737
| 24,363
| 286
| 1,286
| 85.185315
| 0.845586
| 0.669335
| 0
| 0.603175
| 0
| 0.015873
| 0.218423
| 0.052477
| 0
| 0
| 0
| 0
| 0
| 1
| 0.039683
| false
| 0
| 0.039683
| 0
| 0.119048
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
03d67a1ed9680a88a4ab2c70d5089fcd6ba5b75e
| 858
|
py
|
Python
|
gcloud/storage/test_exceptions.py
|
olala7846/gcloud-python
|
f33e557f94f304b38049b5f9b5082ed58dcf295a
|
[
"Apache-2.0"
] | null | null | null |
gcloud/storage/test_exceptions.py
|
olala7846/gcloud-python
|
f33e557f94f304b38049b5f9b5082ed58dcf295a
|
[
"Apache-2.0"
] | null | null | null |
gcloud/storage/test_exceptions.py
|
olala7846/gcloud-python
|
f33e557f94f304b38049b5f9b5082ed58dcf295a
|
[
"Apache-2.0"
] | null | null | null |
import unittest2
class TestConnectionError(unittest2.TestCase):
def _getTargetClass(self):
from gcloud.storage.exceptions import ConnectionError
return ConnectionError
def _makeOne(self, *args, **kw):
return self._getTargetClass()(*args, **kw)
def test_no_headers(self):
e = self._makeOne({}, '')
self.assertEqual(str(e), '{}')
self.assertEqual(e.message, '{}')
class TestNotFoundError(unittest2.TestCase):
def _getTargetClass(self):
from gcloud.storage.exceptions import NotFoundError
return NotFoundError
def _makeOne(self, *args, **kw):
return self._getTargetClass()(*args, **kw)
def test_no_headers(self):
e = self._makeOne({})
self.assertEqual(str(e), '')
self.assertEqual(e.message, 'Request returned a 404. Headers: {}')
| 26.8125
| 74
| 0.649184
| 89
| 858
| 6.123596
| 0.337079
| 0.080734
| 0.073395
| 0.124771
| 0.715596
| 0.715596
| 0.715596
| 0.715596
| 0.715596
| 0.715596
| 0
| 0.008982
| 0.221445
| 858
| 31
| 75
| 27.677419
| 0.806886
| 0
| 0
| 0.380952
| 0
| 0
| 0.045455
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.095238
| 0.714286
| 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
| 0
| 1
| 0
|
0
| 7
|
03e1adf46b9c556d5760bc7c2993e77ad3ce3dee
| 174
|
py
|
Python
|
project/views.py
|
NASAKZ07/MainProject
|
e5d1e6f0ce64965acc21b6eb12e8abf15ccb7be1
|
[
"Apache-2.0"
] | null | null | null |
project/views.py
|
NASAKZ07/MainProject
|
e5d1e6f0ce64965acc21b6eb12e8abf15ccb7be1
|
[
"Apache-2.0"
] | null | null | null |
project/views.py
|
NASAKZ07/MainProject
|
e5d1e6f0ce64965acc21b6eb12e8abf15ccb7be1
|
[
"Apache-2.0"
] | null | null | null |
from django.shortcuts import render
def signIn(request):
return render(request, 'MyApp/signIn.html')
def signUp(request):
return render(request, 'MyApp/signUp.html')
| 29
| 47
| 0.752874
| 23
| 174
| 5.695652
| 0.521739
| 0.198473
| 0.290076
| 0.396947
| 0.473282
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126437
| 174
| 6
| 48
| 29
| 0.861842
| 0
| 0
| 0
| 0
| 0
| 0.194286
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 1
| 0
| 1
| 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
| 0
| 1
| 1
| 0
|
0
| 7
|
03efa7634aae20dd156b56aab959737118892ae3
| 357
|
py
|
Python
|
epab/linters/_dead_fixtures.py
|
132nd-etcher/epab
|
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
|
[
"MIT"
] | 2
|
2018-12-13T06:49:10.000Z
|
2018-12-13T07:37:49.000Z
|
epab/linters/_dead_fixtures.py
|
etcher-be/epab
|
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
|
[
"MIT"
] | 109
|
2018-08-22T04:25:56.000Z
|
2019-10-17T05:10:21.000Z
|
epab/linters/_dead_fixtures.py
|
etcher-be/epab
|
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
|
[
"MIT"
] | 1
|
2018-02-25T05:53:18.000Z
|
2018-02-25T05:53:18.000Z
|
# coding=utf-8
"""
Flake8 linter
"""
import click
import elib_run
import epab.utils
@epab.utils.run_once
def _pytest_dead_fixtures():
elib_run.run(f'pytest test --dead-fixtures --dup-fixtures', mute=True)
@click.command()
def pytest_dead_fixtures():
"""
Runs Flake8 (http://flake8.pycqa.org/en/latest/)
"""
_pytest_dead_fixtures()
| 15.521739
| 74
| 0.694678
| 50
| 357
| 4.74
| 0.56
| 0.202532
| 0.227848
| 0.177215
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013245
| 0.154062
| 357
| 22
| 75
| 16.227273
| 0.771523
| 0.212885
| 0
| 0
| 0
| 0
| 0.162791
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| true
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ff1b8255892f8b8887d81ee5619a60c59ef5fec0
| 6,458
|
py
|
Python
|
mockvpython.py
|
jonschull/Lyte
|
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
|
[
"MIT"
] | 1
|
2018-06-07T17:54:27.000Z
|
2018-06-07T17:54:27.000Z
|
mockvpython.py
|
jonschull/Lyte
|
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
|
[
"MIT"
] | 1
|
2018-06-28T05:08:57.000Z
|
2018-06-28T05:08:57.000Z
|
mockvpython.py
|
jonschull/Lyte
|
e9ba2bb1b07c9398b81a6f591898d2474d1a4609
|
[
"MIT"
] | null | null | null |
def BaseHTTPRequestHandler(*args, **kwargs): pass
def Camera(*args, **kwargs): pass
def GSprint(*args, **kwargs): pass
def GSversion(*args, **kwargs): pass
def GW(*args, **kwargs): pass
def GlowWidget(*args, **kwargs): pass
def HTTPServer(*args, **kwargs): pass
def INTERACT_PERIOD(*args, **kwargs): pass
def MAX_RENDERS(*args, **kwargs): pass
def MIN_RENDERS(*args, **kwargs): pass
def MISC(*args, **kwargs): pass
def Mouse(*args, **kwargs): pass
def RackOutline(*args, **kwargs): pass
def RateKeeper(*args, **kwargs): pass
def ToothOutline(*args, **kwargs): pass
def USER_FRACTION(*args, **kwargs): pass
def WSserver(*args, **kwargs): pass
def WebSocketServerFactory(*args, **kwargs): pass
def WebSocketServerProtocol(*args, **kwargs): pass
def absolute_import(*args, **kwargs): pass
def acos(*args, **kwargs): pass
def acosh(*args, **kwargs): pass
def addpos(*args, **kwargs): pass
def adjust_axis(*args, **kwargs): pass
def adjust_up(*args, **kwargs): pass
def arange(*args, **kwargs): pass
def arrow(*args, **kwargs): pass
def asin(*args, **kwargs): pass
def asinh(*args, **kwargs): pass
def asyncio(*args, **kwargs): pass
def atan(*args, **kwargs): pass
def atan2(*args, **kwargs): pass
def atanh(*args, **kwargs): pass
def attach_arrow(*args, **kwargs): pass
def attach_trail(*args, **kwargs): pass
def baseObj(*args, **kwargs): pass
def box(*args, **kwargs): pass
def bumpmaps(*args, **kwargs): pass
def button(*args, **kwargs): pass
def canvas(*args, **kwargs): pass
def ceil(*args, **kwargs): pass
def checkbox(*args, **kwargs): pass
def clock(*args, **kwargs): pass
def color(*args, **kwargs): pass
def colorsys(*args, **kwargs): pass
def combin(*args, **kwargs): pass
def comp(*args, **kwargs): pass
def compound(*args, **kwargs): pass
def cone(*args, **kwargs): pass
def controls(*args, **kwargs): pass
def convert(*args, **kwargs): pass
def copy(*args, **kwargs): pass
def copysign(*args, **kwargs): pass
def cos(*args, **kwargs): pass
def cosh(*args, **kwargs): pass
def cross(*args, **kwargs): pass
def curve(*args, **kwargs): pass
def curveMethods(*args, **kwargs): pass
def cylinder(*args, **kwargs): pass
def cyvector(*args, **kwargs): pass
def degrees(*args, **kwargs): pass
def diff_angle(*args, **kwargs): pass
def distant_light(*args, **kwargs): pass
def division(*args, **kwargs): pass
def dot(*args, **kwargs): pass
def e(*args, **kwargs): pass
def ellipsoid(*args, **kwargs): pass
def erf(*args, **kwargs): pass
def erfc(*args, **kwargs): pass
def event_return(*args, **kwargs): pass
def exp(*args, **kwargs): pass
def expm1(*args, **kwargs): pass
def extrusion(*args, **kwargs): pass
def fabs(*args, **kwargs): pass
def faces(*args, **kwargs): pass
def factorial(*args, **kwargs): pass
def fd(*args, **kwargs): pass
def find_free_port(*args, **kwargs): pass
def floor(*args, **kwargs): pass
def fmod(*args, **kwargs): pass
def frame(*args, **kwargs): pass
def frexp(*args, **kwargs): pass
def fsum(*args, **kwargs): pass
def gamma(*args, **kwargs): pass
def gcd(*args, **kwargs): pass
def gcurve(*args, **kwargs): pass
def gdots(*args, **kwargs): pass
def ghbars(*args, **kwargs): pass
def glowcomm(*args, **kwargs): pass
def gobj(*args, **kwargs): pass
def graph(*args, **kwargs): pass
def gs_version(*args, **kwargs): pass
def gvbars(*args, **kwargs): pass
def hat(*args, **kwargs): pass
def helix(*args, **kwargs): pass
def httpserving(*args, **kwargs): pass
def hypot(*args, **kwargs): pass
def inf(*args, **kwargs): pass
def inspect(*args, **kwargs): pass
def isclose(*args, **kwargs): pass
def isfinite(*args, **kwargs): pass
def isinf(*args, **kwargs): pass
def isnan(*args, **kwargs): pass
def js(*args, **kwargs): pass
def json(*args, **kwargs): pass
def label(*args, **kwargs): pass
def ldexp(*args, **kwargs): pass
def lgamma(*args, **kwargs): pass
def list_to_vec(*args, **kwargs): pass
def local_light(*args, **kwargs): pass
def log(*args, **kwargs): pass
def log10(*args, **kwargs): pass
def log1p(*args, **kwargs): pass
def log2(*args, **kwargs): pass
def long(*args, **kwargs): pass
def mag(*args, **kwargs): pass
def mag2(*args, **kwargs): pass
def menu(*args, **kwargs): pass
def meta_canvas(*args, **kwargs): pass
def modf(*args, **kwargs): pass
def nan(*args, **kwargs): pass
def no_notebook(*args, **kwargs): pass
def norm(*args, **kwargs): pass
def npdefault(*args, **kwargs): pass
def object_rotate(*args, **kwargs): pass
def os(*args, **kwargs): pass
def path_object(*args, **kwargs): pass
def paths(*args, **kwargs): pass
def pi(*args, **kwargs): pass
def platform(*args, **kwargs): pass
def points(*args, **kwargs): pass
def pow(*args, **kwargs): pass
def print_anchor(*args, **kwargs): pass
def print_function(*args, **kwargs): pass
def print_to_string(*args, **kwargs): pass
def proj(*args, **kwargs): pass
def pyramid(*args, **kwargs): pass
def quad(*args, **kwargs): pass
def radians(*args, **kwargs): pass
def radio(*args, **kwargs): pass
def random(*args, **kwargs): pass
def rate(*args, **kwargs): pass
def rate_control(*args, **kwargs): pass
def ring(*args, **kwargs): pass
def rotate(*args, **kwargs): pass
def rotatecp(*args, **kwargs): pass
def roundc(*args, **kwargs): pass
def scalecp(*args, **kwargs): pass
def scene(*args, **kwargs): pass
def serveHTTP(*args, **kwargs): pass
def shape_object(*args, **kwargs): pass
def shapes(*args, **kwargs): pass
def shapespaths(*args, **kwargs): pass
def signature(*args, **kwargs): pass
def simulateDelay(*args, **kwargs): pass
def sin(*args, **kwargs): pass
def sinh(*args, **kwargs): pass
def sleep(*args, **kwargs): pass
def slider(*args, **kwargs): pass
def socket(*args, **kwargs): pass
def sphere(*args, **kwargs): pass
def sqrt(*args, **kwargs): pass
def standardAttributes(*args, **kwargs): pass
def sys(*args, **kwargs): pass
def tan(*args, **kwargs): pass
def tanh(*args, **kwargs): pass
def tau(*args, **kwargs): pass
def text(*args, **kwargs): pass
def textures(*args, **kwargs): pass
def threading(*args, **kwargs): pass
def time(*args, **kwargs): pass
def triangle(*args, **kwargs): pass
def trunc(*args, **kwargs): pass
def v(*args, **kwargs): pass
def vec(*args, **kwargs): pass
def vector(*args, **kwargs): pass
def version(*args, **kwargs): pass
def vertex(*args, **kwargs): pass
def vpython(*args, **kwargs): pass
def websocketserving(*args, **kwargs): pass
def wtext(*args, **kwargs): pass
color.black = color.blue = color.cyan = color.gray = color.green = color.magenta = color.orange = color.red = color.white = color.yellow = 0
| 35.289617
| 140
| 0.685352
| 954
| 6,458
| 4.610063
| 0.219078
| 0.411551
| 0.576171
| 0.695771
| 0.12392
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0014
| 0.115361
| 6,458
| 182
| 141
| 35.483516
| 0.768423
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.994505
| true
| 0.994505
| 0.005495
| 0
| 1
| 0.021978
| 0
| 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
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
20a1bd721eac10e1fcc16dac2b5d16063f295650
| 285
|
py
|
Python
|
models/__init__.py
|
zhhiyuan/wide_attack
|
448df3dd3aad2ca9a514960e8403bf7e8d8eed3a
|
[
"MIT"
] | 2
|
2020-05-13T06:51:02.000Z
|
2020-05-13T11:33:34.000Z
|
models/__init__.py
|
zhhiyuan/wide_attack
|
448df3dd3aad2ca9a514960e8403bf7e8d8eed3a
|
[
"MIT"
] | null | null | null |
models/__init__.py
|
zhhiyuan/wide_attack
|
448df3dd3aad2ca9a514960e8403bf7e8d8eed3a
|
[
"MIT"
] | null | null | null |
from models.shufflenet_v2 import ShuffleNetV2
from models.shufflenet_v2_x2 import ShuffleNetV2_x2
from models.shufflenet_v2_x4 import ShuffleNetV2_x4
from models.mobilenet import MobileNetV2
from models.mobilenet_x2 import MobileNetV2_x2
from models.mobilenet_x4 import MobileNetV2_x4
| 40.714286
| 51
| 0.894737
| 41
| 285
| 5.95122
| 0.243902
| 0.245902
| 0.245902
| 0.270492
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065134
| 0.084211
| 285
| 6
| 52
| 47.5
| 0.869732
| 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
|
20a2056b8f49c96712f5594b72edce10460fcafa
| 287
|
py
|
Python
|
src/aiohttp_openapi/__init__.py
|
clayman083/aiohttp-openapi
|
e7371ff526f98699b983798383305b2d46fd07a5
|
[
"MIT"
] | null | null | null |
src/aiohttp_openapi/__init__.py
|
clayman083/aiohttp-openapi
|
e7371ff526f98699b983798383305b2d46fd07a5
|
[
"MIT"
] | 1
|
2020-09-22T17:45:53.000Z
|
2020-09-22T17:45:53.000Z
|
src/aiohttp_openapi/__init__.py
|
clayman083/aiohttp-openapi
|
e7371ff526f98699b983798383305b2d46fd07a5
|
[
"MIT"
] | null | null | null |
from .openapi import (
JSONResponse,
Parameter,
ParameterIn,
register_operation,
RequestBody,
Response,
setup,
)
__all__ = (
"JSONResponse",
"Parameter",
"ParameterIn",
"register_operation",
"RequestBody",
"Response",
"setup",
)
| 13.666667
| 25
| 0.599303
| 20
| 287
| 8.3
| 0.6
| 0.253012
| 0.385542
| 0.481928
| 0.879518
| 0.879518
| 0.879518
| 0.879518
| 0
| 0
| 0
| 0
| 0.28223
| 287
| 20
| 26
| 14.35
| 0.805825
| 0
| 0
| 0
| 0
| 0
| 0.25784
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.055556
| 0
| 0.055556
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 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
|
20a4b8cf31df62db22007f5d9465ea1d4f40acf6
| 5,964
|
py
|
Python
|
mushroom/algorithms/actor_critic/stochastic_actor_critic.py
|
doroK/mushroom
|
47e5b1d09b65da585c1b19a6cc7f0366849d7863
|
[
"MIT"
] | null | null | null |
mushroom/algorithms/actor_critic/stochastic_actor_critic.py
|
doroK/mushroom
|
47e5b1d09b65da585c1b19a6cc7f0366849d7863
|
[
"MIT"
] | null | null | null |
mushroom/algorithms/actor_critic/stochastic_actor_critic.py
|
doroK/mushroom
|
47e5b1d09b65da585c1b19a6cc7f0366849d7863
|
[
"MIT"
] | null | null | null |
import numpy as np
from mushroom.algorithms.agent import Agent
from mushroom.approximators import Regressor
from mushroom.approximators.parametric import LinearApproximator
class SAC(Agent):
"""
Stochastic Actor critic in the episodic setting as presented in:
"Model-Free Reinforcement Learning with Continuous Action in Practice".
Degris T. et al.. 2012.
"""
def __init__(self, policy, mdp_info, alpha_theta, alpha_v, lambda_par=.9,
value_function_features=None, policy_features=None):
"""
Constructor.
Args:
policy (ParametricPolicy): a differentiable stochastic policy;
mdp_info: information about the MDP;
alpha_theta (Parameter): learning rate for policy update;
alpha_v (Parameter): learning rate for the value function;
lambda_par (float, 0.9): trace decay parameter;
value_function_features (Features, None): features used by the value
function approximator;
policy_features (Features, None): features used by the policy.
"""
self._psi = value_function_features
self._alpha_theta = alpha_theta
self._alpha_v = alpha_v
self._lambda = lambda_par
super().__init__(policy, mdp_info, policy_features)
if self._psi is not None:
input_shape = (self._psi.size,)
else:
input_shape = mdp_info.observation_space.shape
self._V = Regressor(LinearApproximator, input_shape=input_shape,
output_shape=(1,))
self._e_v = np.zeros(self._V.weights_size)
self._e_theta = np.zeros(self.policy.weights_size)
def episode_start(self):
self._e_v = np.zeros(self._V.weights_size)
self._e_theta = np.zeros(self.policy.weights_size)
super().episode_start()
def fit(self, dataset):
for step in dataset:
s, a, r, ss, absorbing, _ = step
s_phi = self.phi(s) if self.phi is not None else s
s_psi = self._psi(s) if self._psi is not None else s
ss_psi = self._psi(ss) if self._psi is not None else ss
v_next = self._V(ss_psi) if not absorbing else 0
# Compute TD error
delta = r + self.mdp_info.gamma * v_next - self._V(s_psi)
# Update traces
self._e_v = self.mdp_info.gamma * self._lambda * self._e_v + s_psi
self._e_theta = self.mdp_info.gamma * self._lambda * \
self._e_theta + self.policy.diff_log(s_phi, a)
# Update value function
delta_v = self._alpha_v(s, a) * delta * self._e_v
v_new = self._V.get_weights() + delta_v
self._V.set_weights(v_new)
# Update policy
delta_theta = self._alpha_theta(s, a) * delta * self._e_theta
theta_new = self.policy.get_weights() + delta_theta
self.policy.set_weights(theta_new)
class SAC_AVG(Agent):
"""
Stochastic Actor critic in the average reward setting as presented in:
"Model-Free Reinforcement Learning with Continuous Action in Practice".
Degris T. et al.. 2012.
"""
def __init__(self, policy, mdp_info, alpha_theta, alpha_v, alpha_r,
lambda_par=.9, value_function_features=None,
policy_features=None):
"""
Constructor.
Args:
policy (ParametricPolicy): a differentiable stochastic policy;
mdp_info: information about the MDP;
alpha_theta (Parameter): learning rate for policy update;
alpha_v (Parameter): learning rate for the value function;
alpha_r (Parameter): learning rate for the reward trace;
lambda_par (float, 0.9): trace decay parameter;
value_function_features (Features, None): features used by the
value function approximator;
policy_features (Features, None): features used by the policy.
"""
self._psi = value_function_features
self._alpha_theta = alpha_theta
self._alpha_v = alpha_v
self._alpha_r = alpha_r
self._lambda = lambda_par
super().__init__(policy, mdp_info, policy_features)
if self._psi is not None:
input_shape = (self._psi.size,)
else:
input_shape = mdp_info.observation_space.shape
self._V = Regressor(LinearApproximator, input_shape=input_shape,
output_shape=(1,))
self._e_v = np.zeros(self._V.weights_size)
self._e_theta = np.zeros(self.policy.weights_size)
self._r_bar = 0
def episode_start(self):
self._e_v = np.zeros(self._V.weights_size)
self._e_theta = np.zeros(self.policy.weights_size)
super().episode_start()
def fit(self, dataset):
for step in dataset:
s, a, r, ss, absorbing, _ = step
s_phi = self.phi(s) if self.phi is not None else s
s_psi = self._psi(s) if self._psi is not None else s
ss_psi = self._psi(ss) if self._psi is not None else ss
v_next = self._V(ss_psi) if not absorbing else 0
# Compute TD error
delta = r - self._r_bar + v_next - self._V(s_psi)
# Update traces
self._r_bar += self._alpha_r() * delta
self._e_v = self._lambda * self._e_v + s_psi
self._e_theta = self._lambda * self._e_theta + \
self.policy.diff_log(s_phi, a)
# Update value function
delta_v = self._alpha_v(s, a) * delta * self._e_v
v_new = self._V.get_weights() + delta_v
self._V.set_weights(v_new)
# Update policy
delta_theta = self._alpha_theta(s, a) * delta * self._e_theta
theta_new = self.policy.get_weights() + delta_theta
self.policy.set_weights(theta_new)
| 35.712575
| 80
| 0.611838
| 791
| 5,964
| 4.313527
| 0.140329
| 0.029308
| 0.017585
| 0.019343
| 0.91823
| 0.910317
| 0.892145
| 0.892145
| 0.883939
| 0.866354
| 0
| 0.004571
| 0.302985
| 5,964
| 166
| 81
| 35.927711
| 0.816214
| 0.247317
| 0
| 0.731707
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.073171
| false
| 0
| 0.04878
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
20e4ae3bca26c144cc01e9544c0b3fc1430cbe02
| 13,787
|
py
|
Python
|
src/abaqus/Section/ConnectorSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | 7
|
2022-01-21T09:15:45.000Z
|
2022-02-15T09:31:58.000Z
|
src/abaqus/Section/ConnectorSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | null | null | null |
src/abaqus/Section/ConnectorSection.py
|
Haiiliin/PyAbaqus
|
f20db6ebea19b73059fe875a53be370253381078
|
[
"MIT"
] | null | null | null |
from abaqusConstants import *
from .Section import Section
from ..Connector.ConnectorBehaviorOptionArray import ConnectorBehaviorOptionArray
class ConnectorSection(Section):
"""A ConnectorSection object describes the connection type and the behavior of a connector.
The ConnectorSection object is derived from the Section object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import section
mdb.models[name].sections[name]
import odbSection
session.odbs[name].sections[name]
The corresponding analysis keywords are:
- CONNECTOR SECTION
- CONNECTOR BEHAVIOR
- CONNECTOR CONSTITUTIVE REFERENCE
"""
def __init__(self, name: str, assembledType: SymbolicConstant = NONE,
rotationalType: SymbolicConstant = NONE, translationalType: SymbolicConstant = NONE,
integration: SymbolicConstant = UNSPECIFIED, u1ReferenceLength: float = None,
u2ReferenceLength: float = None, u3ReferenceLength: float = None,
ur1ReferenceAngle: float = None, ur2ReferenceAngle: float = None,
ur3ReferenceAngle: float = None, massPerLength: float = None,
contactAngle: float = None, materialFlowFactor: float = 1, regularize: Boolean = ON,
defaultTolerance: Boolean = ON, regularization: float = 0,
extrapolation: SymbolicConstant = CONSTANT,
behaviorOptions: ConnectorBehaviorOptionArray = None):
"""This method creates a ConnectorSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ConnectorSection
session.odbs[name].ConnectorSection
Parameters
----------
name
A String specifying the repository key.
assembledType
A SymbolicConstant specifying the assembled connection type. Possible values
are:NONEBEAMBUSHINGCVJOINTCYLINDRICALHINGEPLANARRETRACTORSLIPRINGTRANSLATORUJOINTWELDThe
default value is NONE.You cannot include the *assembledType* argument if
*translationalType* or *rotationalType* are given a value other than NONE. At least one
of the arguments *assembledType*, *translationalType*, or *rotationalType* must be given
a value other than NONE.
rotationalType
A SymbolicConstant specifying the basic rotational connection type. Possible values
are:NONEALIGNCARDANCONSTANT_VELOCITYEULERFLEXION_TORSIONFLOW_CONVERTERPROJECTION_FLEXION_TORSIONREVOLUTEROTATIONROTATION_ACCELEROMETERUNIVERSALThe
default value is NONE.You cannot include the *rotationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
translationalType
A SymbolicConstant specifying the basic translational connection type. Possible values
are:NONEACCELEROMETERAXIALCARTESIANJOINLINKPROJECTION_CARTESIANRADIAL_THRUSTSLIDE_PLANESLOTThe
default value is NONE.You cannot include the *translationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
integration
A SymbolicConstant specifying the time integration scheme to use for analysis. This
argument is applicable only to an Abaqus/Explicit analysis. Possible values are
UNSPECIFIED, IMPLICIT, and EXPLICIT. The default value is UNSPECIFIED.
u1ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the first component of relative motion. The default value is None.
u2ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the second component of relative motion. The default value is None.
u3ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the third component of relative motion. The default value is None.
ur1ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fourth component of relative motion. The default value is None.
ur2ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fifth component of relative motion. The default value is None.
ur3ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the sixth component of relative motion. The default value is None.
massPerLength
None or a Float specifying the mass per unit reference length of belt material. This
argument is applicable only when *assembledType*=SLIPRING, and must be specified in that
case. The default value is None.
contactAngle
None or a Float specifying the contact angle made by the belt wrapping around node b.
This argument is applicable only to an Abaqus/Explicit analysis, and only when
*assembledType*=SLIPRING. The default value is None.
materialFlowFactor
A Float specifying the scaling factor for material flow at node b. This argument is
applicable only when *assembledType*=RETRACTOR or *rotationalType*=FLOW_CONVERTER. The
default value is 1.0.
regularize
A Boolean specifying whether or not all tabular data associated with the
*behaviorOptions* will be regularized. This argument is applicable only for an
Abaqus/Explicit analysis. The default value is ON.
defaultTolerance
A Boolean specifying whether or not the default regularization tolerance will be used
for all tabular data associated with the *behaviorOptions*. This argument is applicable
only for an Abaqus/Explicit analysis and only if *regularize*=ON. The default value is
ON.
regularization
A Float specifying the regularization increment to be used for all tabular data
associated with the *behaviorOptions*. This argument is applicable only for an
Abaqus/Explicit analysis and only if *regularize*=ON and *defaultTolerance*=OFF. The
default value is 0.03.
extrapolation
A SymbolicConstant specifying the extrapolation technique to be used for all tabular
data associated with the *behaviorOptions*. Possible values are CONSTANT and LINEAR. The
default value is CONSTANT.
behaviorOptions
A ConnectorBehaviorOptionArray object.
Returns
-------
A ConnectorSection object.
Raises
------
InvalidNameError
RangeError
"""
super().__init__()
pass
def setValues(self, assembledType: SymbolicConstant = NONE, rotationalType: SymbolicConstant = NONE,
translationalType: SymbolicConstant = NONE, integration: SymbolicConstant = UNSPECIFIED,
u1ReferenceLength: float = None, u2ReferenceLength: float = None,
u3ReferenceLength: float = None, ur1ReferenceAngle: float = None,
ur2ReferenceAngle: float = None, ur3ReferenceAngle: float = None,
massPerLength: float = None, contactAngle: float = None, materialFlowFactor: float = 1,
regularize: Boolean = ON, defaultTolerance: Boolean = ON, regularization: float = 0,
extrapolation: SymbolicConstant = CONSTANT,
behaviorOptions: ConnectorBehaviorOptionArray = None):
"""This method modifies the ConnectorSection object.
Parameters
----------
assembledType
A SymbolicConstant specifying the assembled connection type. Possible values
are:NONEBEAMBUSHINGCVJOINTCYLINDRICALHINGEPLANARRETRACTORSLIPRINGTRANSLATORUJOINTWELDThe
default value is NONE.You cannot include the *assembledType* argument if
*translationalType* or *rotationalType* are given a value other than NONE. At least one
of the arguments *assembledType*, *translationalType*, or *rotationalType* must be given
a value other than NONE.
rotationalType
A SymbolicConstant specifying the basic rotational connection type. Possible values
are:NONEALIGNCARDANCONSTANT_VELOCITYEULERFLEXION_TORSIONFLOW_CONVERTERPROJECTION_FLEXION_TORSIONREVOLUTEROTATIONROTATION_ACCELEROMETERUNIVERSALThe
default value is NONE.You cannot include the *rotationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
translationalType
A SymbolicConstant specifying the basic translational connection type. Possible values
are:NONEACCELEROMETERAXIALCARTESIANJOINLINKPROJECTION_CARTESIANRADIAL_THRUSTSLIDE_PLANESLOTThe
default value is NONE.You cannot include the *translationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
integration
A SymbolicConstant specifying the time integration scheme to use for analysis. This
argument is applicable only to an Abaqus/Explicit analysis. Possible values are
UNSPECIFIED, IMPLICIT, and EXPLICIT. The default value is UNSPECIFIED.
u1ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the first component of relative motion. The default value is None.
u2ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the second component of relative motion. The default value is None.
u3ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the third component of relative motion. The default value is None.
ur1ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fourth component of relative motion. The default value is None.
ur2ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fifth component of relative motion. The default value is None.
ur3ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the sixth component of relative motion. The default value is None.
massPerLength
None or a Float specifying the mass per unit reference length of belt material. This
argument is applicable only when *assembledType*=SLIPRING, and must be specified in that
case. The default value is None.
contactAngle
None or a Float specifying the contact angle made by the belt wrapping around node b.
This argument is applicable only to an Abaqus/Explicit analysis, and only when
*assembledType*=SLIPRING. The default value is None.
materialFlowFactor
A Float specifying the scaling factor for material flow at node b. This argument is
applicable only when *assembledType*=RETRACTOR or *rotationalType*=FLOW_CONVERTER. The
default value is 1.0.
regularize
A Boolean specifying whether or not all tabular data associated with the
*behaviorOptions* will be regularized. This argument is applicable only for an
Abaqus/Explicit analysis. The default value is ON.
defaultTolerance
A Boolean specifying whether or not the default regularization tolerance will be used
for all tabular data associated with the *behaviorOptions*. This argument is applicable
only for an Abaqus/Explicit analysis and only if *regularize*=ON. The default value is
ON.
regularization
A Float specifying the regularization increment to be used for all tabular data
associated with the *behaviorOptions*. This argument is applicable only for an
Abaqus/Explicit analysis and only if *regularize*=ON and *defaultTolerance*=OFF. The
default value is 0.03.
extrapolation
A SymbolicConstant specifying the extrapolation technique to be used for all tabular
data associated with the *behaviorOptions*. Possible values are CONSTANT and LINEAR. The
default value is CONSTANT.
behaviorOptions
A ConnectorBehaviorOptionArray object.
Raises
------
RangeError
"""
pass
| 58.419492
| 159
| 0.682309
| 1,445
| 13,787
| 6.490657
| 0.127336
| 0.043501
| 0.050752
| 0.050752
| 0.914596
| 0.914596
| 0.914596
| 0.908199
| 0.908199
| 0.908199
| 0
| 0.003836
| 0.281425
| 13,787
| 235
| 160
| 58.668085
| 0.942869
| 0.754769
| 0
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.076923
| false
| 0.076923
| 0.115385
| 0
| 0.230769
| 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
|
afd9aa30e6e64a31c93ee314e01391af5d4bbe2e
| 23,468
|
py
|
Python
|
sdk/python/pulumi_gcp/identityplatform/inbound_saml_config.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 121
|
2018-06-18T19:16:42.000Z
|
2022-03-31T06:06:48.000Z
|
sdk/python/pulumi_gcp/identityplatform/inbound_saml_config.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 492
|
2018-06-22T19:41:03.000Z
|
2022-03-31T15:33:53.000Z
|
sdk/python/pulumi_gcp/identityplatform/inbound_saml_config.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 43
|
2018-06-19T01:43:13.000Z
|
2022-03-23T22:43:37.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['InboundSamlConfigArgs', 'InboundSamlConfig']
@pulumi.input_type
class InboundSamlConfigArgs:
def __init__(__self__, *,
display_name: pulumi.Input[str],
idp_config: pulumi.Input['InboundSamlConfigIdpConfigArgs'],
sp_config: pulumi.Input['InboundSamlConfigSpConfigArgs'],
enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a InboundSamlConfig resource.
:param pulumi.Input[str] display_name: Human friendly display name.
:param pulumi.Input['InboundSamlConfigIdpConfigArgs'] idp_config: SAML IdP configuration when the project acts as the relying party
Structure is documented below.
:param pulumi.Input['InboundSamlConfigSpConfigArgs'] sp_config: SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
:param pulumi.Input[bool] enabled: If this config allows users to sign in with the provider.
:param pulumi.Input[str] name: The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
pulumi.set(__self__, "display_name", display_name)
pulumi.set(__self__, "idp_config", idp_config)
pulumi.set(__self__, "sp_config", sp_config)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if name is not None:
pulumi.set(__self__, "name", name)
if project is not None:
pulumi.set(__self__, "project", project)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> pulumi.Input[str]:
"""
Human friendly display name.
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: pulumi.Input[str]):
pulumi.set(self, "display_name", value)
@property
@pulumi.getter(name="idpConfig")
def idp_config(self) -> pulumi.Input['InboundSamlConfigIdpConfigArgs']:
"""
SAML IdP configuration when the project acts as the relying party
Structure is documented below.
"""
return pulumi.get(self, "idp_config")
@idp_config.setter
def idp_config(self, value: pulumi.Input['InboundSamlConfigIdpConfigArgs']):
pulumi.set(self, "idp_config", value)
@property
@pulumi.getter(name="spConfig")
def sp_config(self) -> pulumi.Input['InboundSamlConfigSpConfigArgs']:
"""
SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
return pulumi.get(self, "sp_config")
@sp_config.setter
def sp_config(self, value: pulumi.Input['InboundSamlConfigSpConfigArgs']):
pulumi.set(self, "sp_config", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
If this config allows users to sign in with the provider.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@pulumi.input_type
class _InboundSamlConfigState:
def __init__(__self__, *,
display_name: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
idp_config: Optional[pulumi.Input['InboundSamlConfigIdpConfigArgs']] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
sp_config: Optional[pulumi.Input['InboundSamlConfigSpConfigArgs']] = None):
"""
Input properties used for looking up and filtering InboundSamlConfig resources.
:param pulumi.Input[str] display_name: Human friendly display name.
:param pulumi.Input[bool] enabled: If this config allows users to sign in with the provider.
:param pulumi.Input['InboundSamlConfigIdpConfigArgs'] idp_config: SAML IdP configuration when the project acts as the relying party
Structure is documented below.
:param pulumi.Input[str] name: The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input['InboundSamlConfigSpConfigArgs'] sp_config: SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
if display_name is not None:
pulumi.set(__self__, "display_name", display_name)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if idp_config is not None:
pulumi.set(__self__, "idp_config", idp_config)
if name is not None:
pulumi.set(__self__, "name", name)
if project is not None:
pulumi.set(__self__, "project", project)
if sp_config is not None:
pulumi.set(__self__, "sp_config", sp_config)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> Optional[pulumi.Input[str]]:
"""
Human friendly display name.
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "display_name", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
If this config allows users to sign in with the provider.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="idpConfig")
def idp_config(self) -> Optional[pulumi.Input['InboundSamlConfigIdpConfigArgs']]:
"""
SAML IdP configuration when the project acts as the relying party
Structure is documented below.
"""
return pulumi.get(self, "idp_config")
@idp_config.setter
def idp_config(self, value: Optional[pulumi.Input['InboundSamlConfigIdpConfigArgs']]):
pulumi.set(self, "idp_config", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter(name="spConfig")
def sp_config(self) -> Optional[pulumi.Input['InboundSamlConfigSpConfigArgs']]:
"""
SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
return pulumi.get(self, "sp_config")
@sp_config.setter
def sp_config(self, value: Optional[pulumi.Input['InboundSamlConfigSpConfigArgs']]):
pulumi.set(self, "sp_config", value)
class InboundSamlConfig(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
display_name: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
idp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigIdpConfigArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
sp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigSpConfigArgs']]] = None,
__props__=None):
"""
Inbound SAML configuration for a Identity Toolkit project.
You must enable the
[Google Identity Platform](https://console.cloud.google.com/marketplace/details/google-cloud-platform/customer-identity) in
the marketplace prior to using this resource.
## Example Usage
### Identity Platform Inbound Saml Config Basic
```python
import pulumi
import pulumi_gcp as gcp
saml_config = gcp.identityplatform.InboundSamlConfig("samlConfig",
display_name="Display Name",
idp_config=gcp.identityplatform.InboundSamlConfigIdpConfigArgs(
idp_entity_id="tf-idp",
sign_request=True,
sso_url="https://example.com",
idp_certificates=[gcp.identityplatform.InboundSamlConfigIdpConfigIdpCertificateArgs(
x509_certificate=(lambda path: open(path).read())("test-fixtures/rsa_cert.pem"),
)],
),
sp_config=gcp.identityplatform.InboundSamlConfigSpConfigArgs(
sp_entity_id="tf-sp",
callback_uri="https://example.com",
))
```
## Import
InboundSamlConfig can be imported using any of these accepted formats
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default projects/{{project}}/inboundSamlConfigs/{{name}}
```
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default {{name}}
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] display_name: Human friendly display name.
:param pulumi.Input[bool] enabled: If this config allows users to sign in with the provider.
:param pulumi.Input[pulumi.InputType['InboundSamlConfigIdpConfigArgs']] idp_config: SAML IdP configuration when the project acts as the relying party
Structure is documented below.
:param pulumi.Input[str] name: The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[pulumi.InputType['InboundSamlConfigSpConfigArgs']] sp_config: SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: InboundSamlConfigArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Inbound SAML configuration for a Identity Toolkit project.
You must enable the
[Google Identity Platform](https://console.cloud.google.com/marketplace/details/google-cloud-platform/customer-identity) in
the marketplace prior to using this resource.
## Example Usage
### Identity Platform Inbound Saml Config Basic
```python
import pulumi
import pulumi_gcp as gcp
saml_config = gcp.identityplatform.InboundSamlConfig("samlConfig",
display_name="Display Name",
idp_config=gcp.identityplatform.InboundSamlConfigIdpConfigArgs(
idp_entity_id="tf-idp",
sign_request=True,
sso_url="https://example.com",
idp_certificates=[gcp.identityplatform.InboundSamlConfigIdpConfigIdpCertificateArgs(
x509_certificate=(lambda path: open(path).read())("test-fixtures/rsa_cert.pem"),
)],
),
sp_config=gcp.identityplatform.InboundSamlConfigSpConfigArgs(
sp_entity_id="tf-sp",
callback_uri="https://example.com",
))
```
## Import
InboundSamlConfig can be imported using any of these accepted formats
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default projects/{{project}}/inboundSamlConfigs/{{name}}
```
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:identityplatform/inboundSamlConfig:InboundSamlConfig default {{name}}
```
:param str resource_name: The name of the resource.
:param InboundSamlConfigArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(InboundSamlConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
display_name: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
idp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigIdpConfigArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
sp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigSpConfigArgs']]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = InboundSamlConfigArgs.__new__(InboundSamlConfigArgs)
if display_name is None and not opts.urn:
raise TypeError("Missing required property 'display_name'")
__props__.__dict__["display_name"] = display_name
__props__.__dict__["enabled"] = enabled
if idp_config is None and not opts.urn:
raise TypeError("Missing required property 'idp_config'")
__props__.__dict__["idp_config"] = idp_config
__props__.__dict__["name"] = name
__props__.__dict__["project"] = project
if sp_config is None and not opts.urn:
raise TypeError("Missing required property 'sp_config'")
__props__.__dict__["sp_config"] = sp_config
super(InboundSamlConfig, __self__).__init__(
'gcp:identityplatform/inboundSamlConfig:InboundSamlConfig',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
display_name: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
idp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigIdpConfigArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
sp_config: Optional[pulumi.Input[pulumi.InputType['InboundSamlConfigSpConfigArgs']]] = None) -> 'InboundSamlConfig':
"""
Get an existing InboundSamlConfig resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] display_name: Human friendly display name.
:param pulumi.Input[bool] enabled: If this config allows users to sign in with the provider.
:param pulumi.Input[pulumi.InputType['InboundSamlConfigIdpConfigArgs']] idp_config: SAML IdP configuration when the project acts as the relying party
Structure is documented below.
:param pulumi.Input[str] name: The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[pulumi.InputType['InboundSamlConfigSpConfigArgs']] sp_config: SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _InboundSamlConfigState.__new__(_InboundSamlConfigState)
__props__.__dict__["display_name"] = display_name
__props__.__dict__["enabled"] = enabled
__props__.__dict__["idp_config"] = idp_config
__props__.__dict__["name"] = name
__props__.__dict__["project"] = project
__props__.__dict__["sp_config"] = sp_config
return InboundSamlConfig(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="displayName")
def display_name(self) -> pulumi.Output[str]:
"""
Human friendly display name.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter
def enabled(self) -> pulumi.Output[Optional[bool]]:
"""
If this config allows users to sign in with the provider.
"""
return pulumi.get(self, "enabled")
@property
@pulumi.getter(name="idpConfig")
def idp_config(self) -> pulumi.Output['outputs.InboundSamlConfigIdpConfig']:
"""
SAML IdP configuration when the project acts as the relying party
Structure is documented below.
"""
return pulumi.get(self, "idp_config")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def project(self) -> pulumi.Output[str]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter(name="spConfig")
def sp_config(self) -> pulumi.Output['outputs.InboundSamlConfigSpConfig']:
"""
SAML SP (Service Provider) configuration when the project acts as the relying party to receive
and accept an authentication assertion issued by a SAML identity provider.
Structure is documented below.
"""
return pulumi.get(self, "sp_config")
| 45.48062
| 184
| 0.65242
| 2,624
| 23,468
| 5.676448
| 0.089177
| 0.060557
| 0.057402
| 0.035448
| 0.868009
| 0.851628
| 0.836925
| 0.815979
| 0.812555
| 0.80047
| 0
| 0.000803
| 0.257372
| 23,468
| 515
| 185
| 45.568932
| 0.853856
| 0.449122
| 0
| 0.682203
| 1
| 0
| 0.133855
| 0.059995
| 0
| 0
| 0
| 0
| 0
| 1
| 0.15678
| false
| 0.004237
| 0.029661
| 0
| 0.279661
| 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
|
afde2a5e63cb03d72f91a398c111bb2408d20327
| 8,775
|
py
|
Python
|
tests/homework2/task2/test_cache.py
|
GirZ0n/SPBU-Homework-4
|
1637f774c5d330c465bf2d2c4e729e4daa936756
|
[
"Unlicense"
] | null | null | null |
tests/homework2/task2/test_cache.py
|
GirZ0n/SPBU-Homework-4
|
1637f774c5d330c465bf2d2c4e729e4daa936756
|
[
"Unlicense"
] | 2
|
2021-03-01T13:58:56.000Z
|
2021-04-05T16:50:45.000Z
|
tests/homework2/task2/test_cache.py
|
GirZ0n/SPBU-Homework-4
|
1637f774c5d330c465bf2d2c4e729e4daa936756
|
[
"Unlicense"
] | 1
|
2021-03-04T19:08:21.000Z
|
2021-03-04T19:08:21.000Z
|
from collections import OrderedDict
from typing import Dict
from unittest import TestCase
from homework.homework2.task2.cache import cache_decorator
SIZE_MUST_BE_NON_NEGATIVE = "Size must be a non-negative number."
def is_empty(dic: Dict) -> bool:
return len(dic) == 0
def check_message(context, expected_message: str) -> bool:
return expected_message in str(context.exception)
class CacheFunctionWithOneArgumentTestCase(TestCase):
def test_negative_size_cache(self):
with self.assertRaises(ValueError) as context:
@cache_decorator(size=-162)
def fib(n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n - 1) + fib(n - 2)
self.assertTrue(check_message(context, SIZE_MUST_BE_NON_NEGATIVE))
def test_zero_size_cache(self):
@cache_decorator
def fib(n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n - 1) + fib(n - 2)
fib(5)
fib(6)
fib(7)
self.assertTrue(is_empty(fib._cache))
def test_positive_size_cache(self):
@cache_decorator(size=10)
def fib(n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n - 1) + fib(n - 2)
fib(10)
fib(9)
fib(8)
self.assertEqual(
fib._cache,
OrderedDict(
[
((2,), 1),
((1,), 1),
((3,), 2),
((4,), 3),
((5,), 5),
((6,), 8),
((7,), 13),
((8,), 21),
((9,), 34),
((10,), 55),
]
),
)
def test_cache_size_is_smaller_than_function_needs(self):
@cache_decorator(size=5)
def fib(n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n - 1) + fib(n - 2)
fib(10)
fib(9)
fib(8)
self.assertEqual(fib._cache, OrderedDict([((6,), 8), ((7,), 13), ((8,), 21), ((9,), 34), ((10,), 55)]))
class CacheFunctionWithArgsTestCase(TestCase):
def test_negative_size_cache(self):
with self.assertRaises(ValueError) as context:
@cache_decorator(size=-444)
def sum_of_squares(*args: int) -> int:
return sum(x ** 2 for x in args)
self.assertTrue(check_message(context, SIZE_MUST_BE_NON_NEGATIVE))
def test_zero_size_cache(self):
@cache_decorator
def sum_of_squares(*args: int) -> int:
return sum(x ** 2 for x in args)
sum_of_squares(3, 4, 5)
sum_of_squares(6, 7, 8)
sum_of_squares(9, 10, 11)
self.assertTrue(is_empty(sum_of_squares._cache))
def test_positive_size_cache(self):
@cache_decorator(size=10)
def sum_of_squares(*args: int) -> int:
return sum(x ** 2 for x in args)
sum_of_squares(3, 4, 5)
sum_of_squares(3, 5, 4)
sum_of_squares(4, 3, 5)
sum_of_squares(4, 5, 3)
sum_of_squares(5, 3, 4)
sum_of_squares(5, 4, 3)
sum_of_squares(3, 4, 5)
sum_of_squares(3, 5, 4)
sum_of_squares(4, 3, 5)
sum_of_squares(4, 5, 3)
sum_of_squares(5, 3, 4)
sum_of_squares(5, 4, 3)
self.assertEqual(
sum_of_squares._cache,
OrderedDict(
[((3, 4, 5), 50), ((3, 5, 4), 50), ((4, 3, 5), 50), ((4, 5, 3), 50), ((5, 3, 4), 50), ((5, 4, 3), 50)]
),
)
def test_cache_size_is_smaller_than_function_needs(self):
@cache_decorator(size=3)
def sum_of_squares(*args: int) -> int:
return sum(x ** 2 for x in args)
sum_of_squares(3, 4, 5)
sum_of_squares(3, 5, 4)
sum_of_squares(4, 3, 5)
sum_of_squares(4, 5, 3)
sum_of_squares(5, 3, 4)
sum_of_squares(5, 4, 3)
self.assertEqual(sum_of_squares._cache, OrderedDict([((4, 5, 3), 50), ((5, 3, 4), 50), ((5, 4, 3), 50)]))
class CacheFunctionWithOneKeywordArgument(TestCase):
def test_negative_size_cache(self):
with self.assertRaises(ValueError) as context:
@cache_decorator(size=-34)
def fib(*, n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n=n - 1) + fib(n=n - 2)
self.assertTrue(check_message(context, SIZE_MUST_BE_NON_NEGATIVE))
def test_zero_size_cache(self):
@cache_decorator
def fib(*, n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n=n - 1) + fib(n=n - 2)
fib(n=10)
fib(n=9)
fib(n=8)
self.assertTrue(is_empty(fib._cache))
def test_positive_size_cache(self):
@cache_decorator(size=10)
def fib(*, n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n=n - 1) + fib(n=n - 2)
fib(n=10)
fib(n=9)
fib(n=8)
self.assertEqual(
fib._cache,
OrderedDict(
[
((("n", 2),), 1),
((("n", 1),), 1),
((("n", 3),), 2),
((("n", 4),), 3),
((("n", 5),), 5),
((("n", 6),), 8),
((("n", 7),), 13),
((("n", 8),), 21),
((("n", 9),), 34),
((("n", 10),), 55),
]
),
)
def test_cache_size_is_smaller_than_function_needs(self):
@cache_decorator(size=5)
def fib(*, n: int) -> int:
if n == 1 or n == 2:
return 1
return fib(n=n - 1) + fib(n=n - 2)
fib(n=10)
fib(n=9)
fib(n=8)
self.assertEqual(
fib._cache,
OrderedDict(
[((("n", 6),), 8), ((("n", 7),), 13), ((("n", 8),), 21), ((("n", 9),), 34), ((("n", 10),), 55)]
),
)
class CacheFunctionWithKwargsTestCase(TestCase):
def test_negative_size_cache(self):
with self.assertRaises(ValueError) as context:
@cache_decorator(size=-289)
def sum_of_squares(**kwargs: int) -> int:
return sum(x ** 2 for _, x in kwargs.items())
self.assertTrue(check_message(context, SIZE_MUST_BE_NON_NEGATIVE))
def test_zero_size_cache(self):
@cache_decorator
def sum_of_squares(**kwargs: int) -> int:
return sum(x ** 2 for _, x in kwargs.items())
sum_of_squares(a=3, b=4, c=5)
sum_of_squares(a=6, b=7, c=8)
sum_of_squares(a=9, b=10, c=11)
self.assertTrue(is_empty(sum_of_squares._cache))
def test_positive_size_cache(self):
@cache_decorator(size=10)
def sum_of_squares(**kwargs: int) -> int:
return sum(x ** 2 for _, x in kwargs.items())
sum_of_squares(a=3, b=4, c=5)
sum_of_squares(a=3, b=5, c=4)
sum_of_squares(a=4, b=3, c=5)
sum_of_squares(a=4, b=5, c=3)
sum_of_squares(a=5, b=3, c=4)
sum_of_squares(a=5, b=4, c=3)
sum_of_squares(a=3, b=4, c=5)
sum_of_squares(a=3, b=5, c=4)
sum_of_squares(a=4, b=3, c=5)
sum_of_squares(a=4, b=5, c=3)
sum_of_squares(a=5, b=3, c=4)
sum_of_squares(a=5, b=4, c=3)
self.assertEqual(
sum_of_squares._cache,
OrderedDict(
[
((("a", 3), ("b", 4), ("c", 5)), 50),
((("a", 3), ("b", 5), ("c", 4)), 50),
((("a", 4), ("b", 3), ("c", 5)), 50),
((("a", 4), ("b", 5), ("c", 3)), 50),
((("a", 5), ("b", 3), ("c", 4)), 50),
((("a", 5), ("b", 4), ("c", 3)), 50),
]
),
)
def test_cache_size_is_smaller_than_function_needs(self):
@cache_decorator(size=3)
def sum_of_squares(**kwargs: int) -> int:
return sum(x ** 2 for _, x in kwargs.items())
sum_of_squares(a=3, b=4, c=5)
sum_of_squares(a=3, b=5, c=4)
sum_of_squares(a=4, b=3, c=5)
sum_of_squares(a=4, b=5, c=3)
sum_of_squares(a=5, b=3, c=4)
sum_of_squares(a=5, b=4, c=3)
self.assertEqual(
sum_of_squares._cache,
OrderedDict(
[
((("a", 4), ("b", 5), ("c", 3)), 50),
((("a", 5), ("b", 3), ("c", 4)), 50),
((("a", 5), ("b", 4), ("c", 3)), 50),
]
),
)
| 29.745763
| 118
| 0.466553
| 1,203
| 8,775
| 3.202826
| 0.07315
| 0.072671
| 0.17441
| 0.070854
| 0.861407
| 0.855956
| 0.851544
| 0.851544
| 0.851544
| 0.851544
| 0
| 0.072392
| 0.375043
| 8,775
| 294
| 119
| 29.846939
| 0.630197
| 0
| 0
| 0.724576
| 0
| 0
| 0.008775
| 0
| 0
| 0
| 0
| 0
| 0.084746
| 1
| 0.144068
| false
| 0
| 0.016949
| 0.042373
| 0.288136
| 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
|
afef28d49b336c79def26311c05b645b3a40811f
| 120,195
|
py
|
Python
|
pyboto3/transcribeservice.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 91
|
2016-12-31T11:38:37.000Z
|
2021-09-16T19:33:23.000Z
|
pyboto3/transcribeservice.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 7
|
2017-01-02T18:54:23.000Z
|
2020-08-11T13:54:02.000Z
|
pyboto3/transcribeservice.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 26
|
2016-12-31T13:11:00.000Z
|
2022-03-03T21:01:12.000Z
|
'''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
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.
'''
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
"""
pass
def create_medical_vocabulary(VocabularyName=None, LanguageCode=None, VocabularyFileUri=None):
"""
Creates a new custom vocabulary that you can use to change how Amazon Transcribe Medical transcribes your audio file.
See also: AWS API Documentation
Exceptions
:example: response = client.create_medical_vocabulary(
VocabularyName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
VocabularyFileUri='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the custom vocabulary. This case-sensitive name must be unique within an AWS account. If you try to create a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code used for the entries within your custom vocabulary. The language code of your custom vocabulary must match the language code of your transcription job. US English (en-US) is the only language code available for Amazon Transcribe Medical.\n
:type VocabularyFileUri: string
:param VocabularyFileUri: [REQUIRED]\nThe Amazon S3 location of the text file you use to define your custom vocabulary. The URI must be in the same AWS region as the API endpoint you\'re calling. Enter information about your VocabularyFileUri in the following format:\n\nhttps://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>\nThis is an example of a vocabulary file uri location in Amazon S3:\n\nhttps://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\nFor more information about custom vocabularies, see Medical Custom Vocabularies .\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string'
}
Response Structure
(dict) --
VocabularyName (string) --
The name of the vocabulary. The name must be unique within an AWS account. It is also case-sensitive.
LanguageCode (string) --
The language code you chose to describe the entries in your custom vocabulary. US English (en-US) is the only valid language code for Amazon Transcribe Medical.
VocabularyState (string) --
The processing state of your custom vocabulary in Amazon Transcribe Medical. If the state is READY you can use the vocabulary in a StartMedicalTranscriptionJob request.
LastModifiedTime (datetime) --
The date and time you created the vocabulary.
FailureReason (string) --
If the VocabularyState field is FAILED , this field contains information about why the job failed.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string'
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
"""
pass
def create_vocabulary(VocabularyName=None, LanguageCode=None, Phrases=None, VocabularyFileUri=None):
"""
Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
See also: AWS API Documentation
Exceptions
:example: response = client.create_vocabulary(
VocabularyName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
Phrases=[
'string',
],
VocabularyFileUri='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive. If you try to create a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code of the vocabulary entries.\n
:type Phrases: list
:param Phrases: An array of strings that contains the vocabulary entries.\n\n(string) --\n\n
:type VocabularyFileUri: string
:param VocabularyFileUri: The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\nFor more information about custom vocabularies, see Custom Vocabularies .\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string'
}
Response Structure
(dict) --
VocabularyName (string) --
The name of the vocabulary.
LanguageCode (string) --
The language code of the vocabulary entries.
VocabularyState (string) --
The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.
LastModifiedTime (datetime) --
The date and time that the vocabulary was created.
FailureReason (string) --
If the VocabularyState field is FAILED , this field contains information about why the job failed.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string'
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
"""
pass
def create_vocabulary_filter(VocabularyFilterName=None, LanguageCode=None, Words=None, VocabularyFilterFileUri=None):
"""
Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.
See also: AWS API Documentation
Exceptions
:example: response = client.create_vocabulary_filter(
VocabularyFilterName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
Words=[
'string',
],
VocabularyFilterFileUri='string'
)
:type VocabularyFilterName: string
:param VocabularyFilterName: [REQUIRED]\nThe vocabulary filter name. The name must be unique within the account that contains it.If you try to create a vocabulary filter with the same name as a previous vocabulary filter you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code of the words in the vocabulary filter. All words in the filter must be in the same language. The vocabulary filter can only be used with transcription jobs in the specified language.\n
:type Words: list
:param Words: The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies .\nIf you provide a list of words in the Words parameter, you can\'t use the VocabularyFilterFileUri parameter.\n\n(string) --\n\n
:type VocabularyFilterFileUri: string
:param VocabularyFilterFileUri: The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies .\nThe specified file must be less than 50 KB of UTF-8 characters.\nIf you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can\'t use the Words parameter.\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
}
Response Structure
(dict) --
VocabularyFilterName (string) --
The name of the vocabulary filter.
LanguageCode (string) --
The language code of the words in the collection.
LastModifiedTime (datetime) --
The date and time that the vocabulary filter was modified.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
:return: {
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
"""
pass
def delete_medical_transcription_job(MedicalTranscriptionJobName=None):
"""
Deletes a transcription job generated by Amazon Transcribe Medical and any related information.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_medical_transcription_job(
MedicalTranscriptionJobName='string'
)
:type MedicalTranscriptionJobName: string
:param MedicalTranscriptionJobName: [REQUIRED]\nThe name you provide to the DeleteMedicalTranscriptionJob object to delete a transcription job.\n
"""
pass
def delete_medical_vocabulary(VocabularyName=None):
"""
Deletes a vocabulary from Amazon Transcribe Medical.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_medical_vocabulary(
VocabularyName='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary you are choosing to delete.\n
"""
pass
def delete_transcription_job(TranscriptionJobName=None):
"""
Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_transcription_job(
TranscriptionJobName='string'
)
:type TranscriptionJobName: string
:param TranscriptionJobName: [REQUIRED]\nThe name of the transcription job to be deleted.\n
"""
pass
def delete_vocabulary(VocabularyName=None):
"""
Deletes a vocabulary from Amazon Transcribe.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_vocabulary(
VocabularyName='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary to delete.\n
"""
pass
def delete_vocabulary_filter(VocabularyFilterName=None):
"""
Removes a vocabulary filter.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_vocabulary_filter(
VocabularyFilterName='string'
)
:type VocabularyFilterName: string
:param VocabularyFilterName: [REQUIRED]\nThe name of the vocabulary filter to remove.\n
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to\nClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model.
"""
pass
def get_medical_transcription_job(MedicalTranscriptionJobName=None):
"""
Returns information about a transcription job from Amazon Transcribe Medical. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED , the job is finished. You find the results of the completed job in the TranscriptFileUri field.
See also: AWS API Documentation
Exceptions
:example: response = client.get_medical_transcription_job(
MedicalTranscriptionJobName='string'
)
:type MedicalTranscriptionJobName: string
:param MedicalTranscriptionJobName: [REQUIRED]\nThe name of the medical transcription job.\n
:rtype: dict
ReturnsResponse Syntax{
'MedicalTranscriptionJob': {
'MedicalTranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyName': 'string'
},
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
}
}
Response Structure
(dict) --
MedicalTranscriptionJob (dict) --An object that contains the results of the medical transcription job.
MedicalTranscriptionJobName (string) --The name for a given medical transcription job.
TranscriptionJobStatus (string) --The completion status of a medical transcription job.
LanguageCode (string) --The language code for the language spoken in the source audio file. US English (en-US) is the only supported language for medical transcriptions. Any other value you enter for language code results in a BadRequestException error.
MediaSampleRateHertz (integer) --The sample rate, in Hertz, of the source audio containing medical information.
If you don\'t specify the sample rate, Amazon Transcribe Medical determines it for you. If you choose to specify the sample rate, it must match the rate detected by Amazon Transcribe Medical. In most cases, you should leave the MediaSampleHertz blank and let Amazon Transcribe Medical determine the sample rate.
MediaFormat (string) --The format of the input media file.
Media (dict) --Describes the input media file in a transcription request.
MediaFileUri (string) --The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .
Transcript (dict) --An object that contains the MedicalTranscript . The MedicalTranscript contains the TranscriptFileUri .
TranscriptFileUri (string) --The S3 object location of the medical transcript.
Use this URI to access the medical transcript. This URI points to the S3 bucket you created to store the medical transcript.
StartTime (datetime) --A timestamp that shows when the job started processing.
CreationTime (datetime) --A timestamp that shows when the job was created.
CompletionTime (datetime) --A timestamp that shows when the job was completed.
FailureReason (string) --If the TranscriptionJobStatus field is FAILED , this field contains information about why the job failed.
The FailureReason field contains one of the following values:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than what Amazon Transcribe Medical can process. For more information, see Guidlines and Quotas in the Amazon Transcribe Medical Guide
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe Medical is configured to process. To request additional channels, see Amazon Transcribe Medical Endpoints and Quotas in the Amazon Web Services General Reference
Settings (dict) --Object that contains object.
ShowSpeakerLabels (boolean) --Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recongition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels in the MaxSpeakerLabels field.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
MaxSpeakerLabels (integer) --The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.
ChannelIdentification (boolean) --Instructs Amazon Transcribe Medical to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe Medical also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of item. The alternative transcriptions also come with confidence scores provided by Amazon Transcribe Medical.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException
ShowAlternatives (boolean) --Determines whether alternative transcripts are generated along with the transcript that has the highest confidence. If you set ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.
MaxAlternatives (integer) --The maximum number of alternatives that you tell the service to return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.
VocabularyName (string) --The name of the vocabulary to use when processing a medical transcription job.
Specialty (string) --The medical specialty of any clinicians providing a dictation or having a conversation. PRIMARYCARE is the only available setting for this object. This specialty enables you to generate transcriptions for the following medical fields:
Family Medicine
Type (string) --The type of speech in the transcription job. CONVERSATION is generally used for patient-physician dialogues. DICTATION is the setting for physicians speaking their notes after seeing a patient. For more information, see how-it-works-med
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
:return: {
'MedicalTranscriptionJob': {
'MedicalTranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyName': 'string'
},
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
}
}
:returns:
Family Medicine
"""
pass
def get_medical_vocabulary(VocabularyName=None):
"""
Retrieve information about a medical vocabulary.
See also: AWS API Documentation
Exceptions
:example: response = client.get_medical_vocabulary(
VocabularyName='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary you are trying to get information about. The value you enter for this request is case-sensitive.\n
:rtype: dict
ReturnsResponse Syntax{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'DownloadUri': 'string'
}
Response Structure
(dict) --
VocabularyName (string) --The valid name that Amazon Transcribe Medical returns.
LanguageCode (string) --The valid language code returned for your vocabulary entries.
VocabularyState (string) --The processing state of the vocabulary.
LastModifiedTime (datetime) --The date and time the vocabulary was last modified with a text file different from what was previously used.
FailureReason (string) --If the VocabularyState is FAILED , this field contains information about why the job failed.
DownloadUri (string) --The Amazon S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. You can download your vocabulary from the URI for a limited time.
Exceptions
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.BadRequestException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'DownloadUri': 'string'
}
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
ReturnsA paginator object.
"""
pass
def get_transcription_job(TranscriptionJobName=None):
"""
Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED , the job is finished and you can find the results at the location specified in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri .
See also: AWS API Documentation
Exceptions
:example: response = client.get_transcription_job(
TranscriptionJobName='string'
)
:type TranscriptionJobName: string
:param TranscriptionJobName: [REQUIRED]\nThe name of the job.\n
:rtype: dict
ReturnsResponse Syntax{
'TranscriptionJob': {
'TranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string',
'RedactedTranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'VocabularyName': 'string',
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyFilterName': 'string',
'VocabularyFilterMethod': 'remove'|'mask'
},
'JobExecutionSettings': {
'AllowDeferredExecution': True|False,
'DataAccessRoleArn': 'string'
},
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
}
}
Response Structure
(dict) --
TranscriptionJob (dict) --An object that contains the results of the transcription job.
TranscriptionJobName (string) --The name of the transcription job.
TranscriptionJobStatus (string) --The status of the transcription job.
LanguageCode (string) --The language code for the input speech.
MediaSampleRateHertz (integer) --The sample rate, in Hertz, of the audio track in the input media file.
MediaFormat (string) --The format of the input media file.
Media (dict) --An object that describes the input media for the transcription job.
MediaFileUri (string) --The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .
Transcript (dict) --An object that describes the output of the transcription job.
TranscriptFileUri (string) --The S3 object location of the the transcript.
Use this URI to access the transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
RedactedTranscriptFileUri (string) --The S3 object location of the redacted transcript.
Use this URI to access the redacated transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
StartTime (datetime) --A timestamp that shows with the job was started processing.
CreationTime (datetime) --A timestamp that shows when the job was created.
CompletionTime (datetime) --A timestamp that shows when the job was completed.
FailureReason (string) --If the TranscriptionJobStatus field is FAILED , this field contains information about why the job failed.
The FailureReason field can contain one of the following values:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure that the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than Amazon Transcribe can process. For more information, see Limits in the Amazon Transcribe Developer Guide .
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe is configured to process. To request additional channels, see Amazon Transcribe Limits in the Amazon Web Services General Reference .
Settings (dict) --Optional settings for the transcription job. Use these settings to turn on speaker recognition, to set the maximum number of speakers that should be identified and to specify a custom vocabulary to use when processing the transcription job.
VocabularyName (string) --The name of a vocabulary to use when processing the transcription job.
ShowSpeakerLabels (boolean) --Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recognition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels MaxSpeakerLabels field.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
MaxSpeakerLabels (integer) --The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.
ChannelIdentification (boolean) --Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
ShowAlternatives (boolean) --Determines whether the transcription contains alternative transcriptions. If you set the ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.
MaxAlternatives (integer) --The number of alternative transcriptions that the service should return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.
VocabularyFilterName (string) --The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
VocabularyFilterMethod (string) --Set to mask to remove filtered text from the transcript and replace it with three asterisks ("***") as placeholder text. Set to remove to remove filtered text from the transcript without using placeholder text.
JobExecutionSettings (dict) --Provides information about how a transcription job is executed.
AllowDeferredExecution (boolean) --Indicates whether a job should be queued by Amazon Transcribe when the concurrent execution limit is exceeded. When the AllowDeferredExecution field is true, jobs are queued and executed when the number of executing jobs falls below the concurrent execution limit. If the field is false, Amazon Transcribe returns a LimitExceededException exception.
If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
DataAccessRoleArn (string) --The Amazon Resource Name (ARN) of a role that has access to the S3 bucket that contains the input files. Amazon Transcribe assumes this role to read queued media files. If you have specified an output S3 bucket for the transcription results, this role should have access to the output bucket as well.
If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
ContentRedaction (dict) --An object that describes content redaction settings for the transcription job.
RedactionType (string) --Request parameter that defines the entities to be redacted. The only accepted value is PII .
RedactionOutput (string) --The output transcript file stored in either the default S3 bucket or in a bucket you specify.
When you choose redacted Amazon Transcribe outputs only the redacted transcript.
When you choose redacted_and_unredacted Amazon Transcribe outputs both the redacted and unredacted transcripts.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
:return: {
'TranscriptionJob': {
'TranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string',
'RedactedTranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'VocabularyName': 'string',
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyFilterName': 'string',
'VocabularyFilterMethod': 'remove'|'mask'
},
'JobExecutionSettings': {
'AllowDeferredExecution': True|False,
'DataAccessRoleArn': 'string'
},
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
}
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
"""
pass
def get_vocabulary(VocabularyName=None):
"""
Gets information about a vocabulary.
See also: AWS API Documentation
Exceptions
:example: response = client.get_vocabulary(
VocabularyName='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary to return information about. The name is case-sensitive.\n
:rtype: dict
ReturnsResponse Syntax{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'DownloadUri': 'string'
}
Response Structure
(dict) --
VocabularyName (string) --The name of the vocabulary to return.
LanguageCode (string) --The language code of the vocabulary entries.
VocabularyState (string) --The processing state of the vocabulary.
LastModifiedTime (datetime) --The date and time that the vocabulary was last modified.
FailureReason (string) --If the VocabularyState field is FAILED , this field contains information about why the job failed.
DownloadUri (string) --The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is available for a limited time.
Exceptions
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.BadRequestException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'VocabularyState': 'PENDING'|'READY'|'FAILED',
'LastModifiedTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'DownloadUri': 'string'
}
"""
pass
def get_vocabulary_filter(VocabularyFilterName=None):
"""
Returns information about a vocabulary filter.
See also: AWS API Documentation
Exceptions
:example: response = client.get_vocabulary_filter(
VocabularyFilterName='string'
)
:type VocabularyFilterName: string
:param VocabularyFilterName: [REQUIRED]\nThe name of the vocabulary filter for which to return information.\n
:rtype: dict
ReturnsResponse Syntax{
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'DownloadUri': 'string'
}
Response Structure
(dict) --
VocabularyFilterName (string) --The name of the vocabulary filter.
LanguageCode (string) --The language code of the words in the vocabulary filter.
LastModifiedTime (datetime) --The date and time that the contents of the vocabulary filter were updated.
DownloadUri (string) --The URI of the list of words in the vocabulary filter. You can use this URI to get the list of words.
Exceptions
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.BadRequestException
:return: {
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'DownloadUri': 'string'
}
"""
pass
def get_waiter(waiter_name=None):
"""
Returns an object that can wait for some condition.
:type waiter_name: str
:param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters.
:rtype: botocore.waiter.Waiter
"""
pass
def list_medical_transcription_jobs(Status=None, JobNameContains=None, NextToken=None, MaxResults=None):
"""
Lists medical transcription jobs with a specified status or substring that matches their names.
See also: AWS API Documentation
Exceptions
:example: response = client.list_medical_transcription_jobs(
Status='QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
JobNameContains='string',
NextToken='string',
MaxResults=123
)
:type Status: string
:param Status: When specified, returns only medical transcription jobs with the specified status. Jobs are ordered by creation date, with the newest jobs returned first. If you don\'t specify a status, Amazon Transcribe Medical returns all transcription jobs ordered by creation date.
:type JobNameContains: string
:param JobNameContains: When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.
:type NextToken: string
:param NextToken: If you a receive a truncated result in the previous request of ListMedicalTranscriptionJobs , include NextToken to fetch the next set of jobs.
:type MaxResults: integer
:param MaxResults: The maximum number of medical transcription jobs to return in the response. IF there are fewer results in the list, this response contains only the actual results.
:rtype: dict
ReturnsResponse Syntax
{
'Status': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'NextToken': 'string',
'MedicalTranscriptionJobSummaries': [
{
'MedicalTranscriptionJobName': 'string',
'CreationTime': datetime(2015, 1, 1),
'StartTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'FailureReason': 'string',
'OutputLocationType': 'CUSTOMER_BUCKET'|'SERVICE_BUCKET',
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
},
]
}
Response Structure
(dict) --
Status (string) --
The requested status of the medical transcription jobs returned.
NextToken (string) --
The ListMedicalTranscriptionJobs operation returns a page of jobs at a time. The maximum size of the page is set by the MaxResults parameter. If the number of jobs exceeds what can fit on a page, Amazon Transcribe Medical returns the NextPage token. Include the token in the next request to the ListMedicalTranscriptionJobs operation to return in the next page of jobs.
MedicalTranscriptionJobSummaries (list) --
A list of objects containing summary information for a transcription job.
(dict) --
Provides summary information about a transcription job.
MedicalTranscriptionJobName (string) --
The name of a medical transcription job.
CreationTime (datetime) --
A timestamp that shows when the medical transcription job was created.
StartTime (datetime) --
A timestamp that shows when the job began processing.
CompletionTime (datetime) --
A timestamp that shows when the job was completed.
LanguageCode (string) --
The language of the transcript in the source audio file.
TranscriptionJobStatus (string) --
The status of the medical transcription job.
FailureReason (string) --
If the TranscriptionJobStatus field is FAILED , a description of the error.
OutputLocationType (string) --
Indicates the location of the transcription job\'s output.
The CUSTOMER_BUCKET is the S3 location provided in the OutputBucketName field when the
Specialty (string) --
The medical specialty of the transcription job. Primary care is the only valid value.
Type (string) --
The speech of the clinician in the input audio.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
:return: {
'Status': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'NextToken': 'string',
'MedicalTranscriptionJobSummaries': [
{
'MedicalTranscriptionJobName': 'string',
'CreationTime': datetime(2015, 1, 1),
'StartTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'FailureReason': 'string',
'OutputLocationType': 'CUSTOMER_BUCKET'|'SERVICE_BUCKET',
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
},
]
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
"""
pass
def list_medical_vocabularies(NextToken=None, MaxResults=None, StateEquals=None, NameContains=None):
"""
Returns a list of vocabularies that match the specified criteria. You get the entire list of vocabularies if you don\'t enter a value in any of the request parameters.
See also: AWS API Documentation
Exceptions
:example: response = client.list_medical_vocabularies(
NextToken='string',
MaxResults=123,
StateEquals='PENDING'|'READY'|'FAILED',
NameContains='string'
)
:type NextToken: string
:param NextToken: If the result of your previous request to ListMedicalVocabularies was truncated, include the NextToken to fetch the next set of jobs.
:type MaxResults: integer
:param MaxResults: The maximum number of vocabularies to return in the response.
:type StateEquals: string
:param StateEquals: When specified, only returns vocabularies with the VocabularyState equal to the specified vocabulary state.
:type NameContains: string
:param NameContains: Returns vocabularies in the list whose name contains the specified string. The search is case-insensitive, ListMedicalVocabularies returns both 'vocabularyname' and 'VocabularyName' in the response list.
:rtype: dict
ReturnsResponse Syntax
{
'Status': 'PENDING'|'READY'|'FAILED',
'NextToken': 'string',
'Vocabularies': [
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
},
]
}
Response Structure
(dict) --
Status (string) --
The requested vocabulary state.
NextToken (string) --
The ListMedicalVocabularies operation returns a page of vocabularies at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe Medical returns the NextPage token. Include the token in the next request to the ListMedicalVocabularies operation to return the next page of jobs.
Vocabularies (list) --
A list of objects that describe the vocabularies that match the search criteria in the request.
(dict) --
Provides information about a custom vocabulary.
VocabularyName (string) --
The name of the vocabulary.
LanguageCode (string) --
The language code of the vocabulary entries.
LastModifiedTime (datetime) --
The date and time that the vocabulary was last modified.
VocabularyState (string) --
The processing state of the vocabulary. If the state is READY you can use the vocabulary in a StartTranscriptionJob request.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
:return: {
'Status': 'PENDING'|'READY'|'FAILED',
'NextToken': 'string',
'Vocabularies': [
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
},
]
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
"""
pass
def list_transcription_jobs(Status=None, JobNameContains=None, NextToken=None, MaxResults=None):
"""
Lists transcription jobs with the specified status.
See also: AWS API Documentation
Exceptions
:example: response = client.list_transcription_jobs(
Status='QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
JobNameContains='string',
NextToken='string',
MaxResults=123
)
:type Status: string
:param Status: When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, with the newest jobs returned first. If you don\xe2\x80\x99t specify a status, Amazon Transcribe returns all transcription jobs ordered by creation date.
:type JobNameContains: string
:param JobNameContains: When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.
:type NextToken: string
:param NextToken: If the result of the previous request to ListTranscriptionJobs was truncated, include the NextToken to fetch the next set of jobs.
:type MaxResults: integer
:param MaxResults: The maximum number of jobs to return in the response. If there are fewer results in the list, this response contains only the actual results.
:rtype: dict
ReturnsResponse Syntax
{
'Status': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'NextToken': 'string',
'TranscriptionJobSummaries': [
{
'TranscriptionJobName': 'string',
'CreationTime': datetime(2015, 1, 1),
'StartTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'FailureReason': 'string',
'OutputLocationType': 'CUSTOMER_BUCKET'|'SERVICE_BUCKET',
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
},
]
}
Response Structure
(dict) --
Status (string) --
The requested status of the jobs returned.
NextToken (string) --
The ListTranscriptionJobs operation returns a page of jobs at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListTranscriptionJobs operation to return in the next page of jobs.
TranscriptionJobSummaries (list) --
A list of objects containing summary information for a transcription job.
(dict) --
Provides a summary of information about a transcription job.
TranscriptionJobName (string) --
The name of the transcription job.
CreationTime (datetime) --
A timestamp that shows when the job was created.
StartTime (datetime) --
A timestamp that shows when the job started processing.
CompletionTime (datetime) --
A timestamp that shows when the job was completed.
LanguageCode (string) --
The language code for the input speech.
TranscriptionJobStatus (string) --
The status of the transcription job. When the status is COMPLETED , use the GetTranscriptionJob operation to get the results of the transcription.
FailureReason (string) --
If the TranscriptionJobStatus field is FAILED , a description of the error.
OutputLocationType (string) --
Indicates the location of the output of the transcription job.
If the value is CUSTOMER_BUCKET then the location is the S3 bucket specified in the outputBucketName field when the transcription job was started with the StartTranscriptionJob operation.
If the value is SERVICE_BUCKET then the output is stored by Amazon Transcribe and can be retrieved using the URI in the GetTranscriptionJob response\'s TranscriptFileUri field.
ContentRedaction (dict) --
The content redaction settings of the transcription job.
RedactionType (string) --
Request parameter that defines the entities to be redacted. The only accepted value is PII .
RedactionOutput (string) --
The output transcript file stored in either the default S3 bucket or in a bucket you specify.
When you choose redacted Amazon Transcribe outputs only the redacted transcript.
When you choose redacted_and_unredacted Amazon Transcribe outputs both the redacted and unredacted transcripts.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
:return: {
'Status': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'NextToken': 'string',
'TranscriptionJobSummaries': [
{
'TranscriptionJobName': 'string',
'CreationTime': datetime(2015, 1, 1),
'StartTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'FailureReason': 'string',
'OutputLocationType': 'CUSTOMER_BUCKET'|'SERVICE_BUCKET',
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
},
]
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
"""
pass
def list_vocabularies(NextToken=None, MaxResults=None, StateEquals=None, NameContains=None):
"""
Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.
See also: AWS API Documentation
Exceptions
:example: response = client.list_vocabularies(
NextToken='string',
MaxResults=123,
StateEquals='PENDING'|'READY'|'FAILED',
NameContains='string'
)
:type NextToken: string
:param NextToken: If the result of the previous request to ListVocabularies was truncated, include the NextToken to fetch the next set of jobs.
:type MaxResults: integer
:param MaxResults: The maximum number of vocabularies to return in the response. If there are fewer results in the list, this response contains only the actual results.
:type StateEquals: string
:param StateEquals: When specified, only returns vocabularies with the VocabularyState field equal to the specified state.
:type NameContains: string
:param NameContains: When specified, the vocabularies returned in the list are limited to vocabularies whose name contains the specified string. The search is case-insensitive, ListVocabularies returns both 'vocabularyname' and 'VocabularyName' in the response list.
:rtype: dict
ReturnsResponse Syntax
{
'Status': 'PENDING'|'READY'|'FAILED',
'NextToken': 'string',
'Vocabularies': [
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
},
]
}
Response Structure
(dict) --
Status (string) --
The requested vocabulary state.
NextToken (string) --
The ListVocabularies operation returns a page of vocabularies at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListVocabularies operation to return in the next page of jobs.
Vocabularies (list) --
A list of objects that describe the vocabularies that match the search criteria in the request.
(dict) --
Provides information about a custom vocabulary.
VocabularyName (string) --
The name of the vocabulary.
LanguageCode (string) --
The language code of the vocabulary entries.
LastModifiedTime (datetime) --
The date and time that the vocabulary was last modified.
VocabularyState (string) --
The processing state of the vocabulary. If the state is READY you can use the vocabulary in a StartTranscriptionJob request.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
:return: {
'Status': 'PENDING'|'READY'|'FAILED',
'NextToken': 'string',
'Vocabularies': [
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
},
]
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
"""
pass
def list_vocabulary_filters(NextToken=None, MaxResults=None, NameContains=None):
"""
Gets information about vocabulary filters.
See also: AWS API Documentation
Exceptions
:example: response = client.list_vocabulary_filters(
NextToken='string',
MaxResults=123,
NameContains='string'
)
:type NextToken: string
:param NextToken: If the result of the previous request to ListVocabularyFilters was truncated, include the NextToken to fetch the next set of collections.
:type MaxResults: integer
:param MaxResults: The maximum number of filters to return in the response. If there are fewer results in the list, this response contains only the actual results.
:type NameContains: string
:param NameContains: Filters the response so that it only contains vocabulary filters whose name contains the specified string.
:rtype: dict
ReturnsResponse Syntax
{
'NextToken': 'string',
'VocabularyFilters': [
{
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
NextToken (string) --
The ListVocabularyFilters operation returns a page of collections at a time. The maximum size of the page is set by the MaxResults parameter. If there are more jobs in the list than the page size, Amazon Transcribe returns the NextPage token. Include the token in the next request to the ListVocabularyFilters operation to return in the next page of jobs.
VocabularyFilters (list) --
The list of vocabulary filters. It contains at most MaxResults number of filters. If there are more filters, call the ListVocabularyFilters operation again with the NextToken parameter in the request set to the value of the NextToken field in the response.
(dict) --
Provides information about a vocabulary filter.
VocabularyFilterName (string) --
The name of the vocabulary filter. The name must be unique in the account that holds the filter.
LanguageCode (string) --
The language code of the words in the vocabulary filter.
LastModifiedTime (datetime) --
The date and time that the vocabulary was last updated.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
:return: {
'NextToken': 'string',
'VocabularyFilters': [
{
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
},
]
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
"""
pass
def start_medical_transcription_job(MedicalTranscriptionJobName=None, LanguageCode=None, MediaSampleRateHertz=None, MediaFormat=None, Media=None, OutputBucketName=None, OutputEncryptionKMSKeyId=None, Settings=None, Specialty=None, Type=None):
"""
Start a batch job to transcribe medical speech to text.
See also: AWS API Documentation
Exceptions
:example: response = client.start_medical_transcription_job(
MedicalTranscriptionJobName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
MediaSampleRateHertz=123,
MediaFormat='mp3'|'mp4'|'wav'|'flac',
Media={
'MediaFileUri': 'string'
},
OutputBucketName='string',
OutputEncryptionKMSKeyId='string',
Settings={
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyName': 'string'
},
Specialty='PRIMARYCARE',
Type='CONVERSATION'|'DICTATION'
)
:type MedicalTranscriptionJobName: string
:param MedicalTranscriptionJobName: [REQUIRED]\nThe name of the medical transcription job. You can\'t use the strings '.' or '..' by themselves as the job name. The name must also be unique within an AWS account. If you try to create a medical transcription job with the same name as a previous medical transcription job you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code for the language spoken in the input media file. US English (en-US) is the valid value for medical transcription jobs. Any other value you enter for language code results in a BadRequestException error.\n
:type MediaSampleRateHertz: integer
:param MediaSampleRateHertz: The sample rate, in Hertz, of the audio track in the input media file.\nIf you do not specify the media sample rate, Amazon Transcribe Medical determines the sample rate. If you specify the sample rate, it must match the rate detected by Amazon Transcribe Medical. In most cases, you should leave the MediaSampleRateHertz field blank and let Amazon Transcribe Medical determine the sample rate.\n
:type MediaFormat: string
:param MediaFormat: The audio format of the input media file.
:type Media: dict
:param Media: [REQUIRED]\nDescribes the input media file in a transcription request.\n\nMediaFileUri (string) --The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:\nFor example:\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\n\n\n
:type OutputBucketName: string
:param OutputBucketName: [REQUIRED]\nThe Amazon S3 location where the transcription is stored.\nYou must set OutputBucketName for Amazon Transcribe Medical to store the transcription results. Your transcript appears in the S3 location you specify. When you call the GetMedicalTranscriptionJob , the operation returns this location in the TranscriptFileUri field. The S3 bucket must have permissions that allow Amazon Transcribe Medical to put files in the bucket. For more information, see Permissions Required for IAM User Roles .\nYou can specify an AWS Key Management Service (KMS) key to encrypt the output of your transcription using the OutputEncryptionKMSKeyId parameter. If you don\'t specify a KMS key, Amazon Transcribe Medical uses the default Amazon S3 key for server-side encryption of transcripts that are placed in your S3 bucket.\n
:type OutputEncryptionKMSKeyId: string
:param OutputEncryptionKMSKeyId: The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used to encrypt the output of the transcription job. The user calling the StartMedicalTranscriptionJob operation must have permission to use the specified KMS key.\nYou use either of the following to identify a KMS key in the current account:\n\nKMS Key ID: '1234abcd-12ab-34cd-56ef-1234567890ab'\nKMS Key Alias: 'alias/ExampleAlias'\n\nYou can use either of the following to identify a KMS key in the current account or another account:\n\nAmazon Resource Name (ARN) of a KMS key in the current account or another account: 'arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab'\nARN of a KMS Key Alias: 'arn:aws:kms:region:account ID:alias/ExampleAlias'\n\nIf you don\'t specify an encryption key, the output of the medical transcription job is encrypted with the default Amazon S3 key (SSE-S3).\nIf you specify a KMS key to encrypt your output, you must also specify an output location in the OutputBucketName parameter.\n
:type Settings: dict
:param Settings: Optional settings for the medical transcription job.\n\nShowSpeakerLabels (boolean) --Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recongition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels in the MaxSpeakerLabels field.\nYou can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .\n\nMaxSpeakerLabels (integer) --The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.\n\nChannelIdentification (boolean) --Instructs Amazon Transcribe Medical to process each audio channel separately and then merge the transcription output of each channel into a single transcription.\nAmazon Transcribe Medical also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of item. The alternative transcriptions also come with confidence scores provided by Amazon Transcribe Medical.\nYou can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException\n\nShowAlternatives (boolean) --Determines whether alternative transcripts are generated along with the transcript that has the highest confidence. If you set ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.\n\nMaxAlternatives (integer) --The maximum number of alternatives that you tell the service to return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.\n\nVocabularyName (string) --The name of the vocabulary to use when processing a medical transcription job.\n\n\n
:type Specialty: string
:param Specialty: [REQUIRED]\nThe medical specialty of any clinician speaking in the input media.\n
:type Type: string
:param Type: [REQUIRED]\nThe type of speech in the input audio. CONVERSATION refers to conversations between two or more speakers, e.g., a conversations between doctors and patients. DICTATION refers to single-speaker dictated speech, e.g., for clinical notes.\n
:rtype: dict
ReturnsResponse Syntax
{
'MedicalTranscriptionJob': {
'MedicalTranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyName': 'string'
},
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
}
}
Response Structure
(dict) --
MedicalTranscriptionJob (dict) --
A batch job submitted to transcribe medical speech to text.
MedicalTranscriptionJobName (string) --
The name for a given medical transcription job.
TranscriptionJobStatus (string) --
The completion status of a medical transcription job.
LanguageCode (string) --
The language code for the language spoken in the source audio file. US English (en-US) is the only supported language for medical transcriptions. Any other value you enter for language code results in a BadRequestException error.
MediaSampleRateHertz (integer) --
The sample rate, in Hertz, of the source audio containing medical information.
If you don\'t specify the sample rate, Amazon Transcribe Medical determines it for you. If you choose to specify the sample rate, it must match the rate detected by Amazon Transcribe Medical. In most cases, you should leave the MediaSampleHertz blank and let Amazon Transcribe Medical determine the sample rate.
MediaFormat (string) --
The format of the input media file.
Media (dict) --
Describes the input media file in a transcription request.
MediaFileUri (string) --
The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .
Transcript (dict) --
An object that contains the MedicalTranscript . The MedicalTranscript contains the TranscriptFileUri .
TranscriptFileUri (string) --
The S3 object location of the medical transcript.
Use this URI to access the medical transcript. This URI points to the S3 bucket you created to store the medical transcript.
StartTime (datetime) --
A timestamp that shows when the job started processing.
CreationTime (datetime) --
A timestamp that shows when the job was created.
CompletionTime (datetime) --
A timestamp that shows when the job was completed.
FailureReason (string) --
If the TranscriptionJobStatus field is FAILED , this field contains information about why the job failed.
The FailureReason field contains one of the following values:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than what Amazon Transcribe Medical can process. For more information, see Guidlines and Quotas in the Amazon Transcribe Medical Guide
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe Medical is configured to process. To request additional channels, see Amazon Transcribe Medical Endpoints and Quotas in the Amazon Web Services General Reference
Settings (dict) --
Object that contains object.
ShowSpeakerLabels (boolean) --
Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recongition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels in the MaxSpeakerLabels field.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
MaxSpeakerLabels (integer) --
The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.
ChannelIdentification (boolean) --
Instructs Amazon Transcribe Medical to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe Medical also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of item. The alternative transcriptions also come with confidence scores provided by Amazon Transcribe Medical.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException
ShowAlternatives (boolean) --
Determines whether alternative transcripts are generated along with the transcript that has the highest confidence. If you set ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.
MaxAlternatives (integer) --
The maximum number of alternatives that you tell the service to return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.
VocabularyName (string) --
The name of the vocabulary to use when processing a medical transcription job.
Specialty (string) --
The medical specialty of any clinicians providing a dictation or having a conversation. PRIMARYCARE is the only available setting for this object. This specialty enables you to generate transcriptions for the following medical fields:
Family Medicine
Type (string) --
The type of speech in the transcription job. CONVERSATION is generally used for patient-physician dialogues. DICTATION is the setting for physicians speaking their notes after seeing a patient. For more information, see how-it-works-med
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
:return: {
'MedicalTranscriptionJob': {
'MedicalTranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyName': 'string'
},
'Specialty': 'PRIMARYCARE',
'Type': 'CONVERSATION'|'DICTATION'
}
}
:returns:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than what Amazon Transcribe Medical can process. For more information, see Guidlines and Quotas in the Amazon Transcribe Medical Guide
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe Medical is configured to process. To request additional channels, see Amazon Transcribe Medical Endpoints and Quotas in the Amazon Web Services General Reference
"""
pass
def start_transcription_job(TranscriptionJobName=None, LanguageCode=None, MediaSampleRateHertz=None, MediaFormat=None, Media=None, OutputBucketName=None, OutputEncryptionKMSKeyId=None, Settings=None, JobExecutionSettings=None, ContentRedaction=None):
"""
Starts an asynchronous job to transcribe speech to text.
See also: AWS API Documentation
Exceptions
:example: response = client.start_transcription_job(
TranscriptionJobName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
MediaSampleRateHertz=123,
MediaFormat='mp3'|'mp4'|'wav'|'flac',
Media={
'MediaFileUri': 'string'
},
OutputBucketName='string',
OutputEncryptionKMSKeyId='string',
Settings={
'VocabularyName': 'string',
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyFilterName': 'string',
'VocabularyFilterMethod': 'remove'|'mask'
},
JobExecutionSettings={
'AllowDeferredExecution': True|False,
'DataAccessRoleArn': 'string'
},
ContentRedaction={
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
)
:type TranscriptionJobName: string
:param TranscriptionJobName: [REQUIRED]\nThe name of the job. Note that you can\'t use the strings '.' or '..' by themselves as the job name. The name must also be unique within an AWS account. If you try to create a transcription job with the same name as a previous transcription job you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code for the language used in the input media file.\n
:type MediaSampleRateHertz: integer
:param MediaSampleRateHertz: The sample rate, in Hertz, of the audio track in the input media file.\nIf you do not specify the media sample rate, Amazon Transcribe determines the sample rate. If you specify the sample rate, it must match the sample rate detected by Amazon Transcribe. In most cases, you should leave the MediaSampleRateHertz field blank and let Amazon Transcribe determine the sample rate.\n
:type MediaFormat: string
:param MediaFormat: The format of the input media file.
:type Media: dict
:param Media: [REQUIRED]\nAn object that describes the input media for a transcription job.\n\nMediaFileUri (string) --The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:\nFor example:\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\n\n\n
:type OutputBucketName: string
:param OutputBucketName: The location where the transcription is stored.\nIf you set the OutputBucketName , Amazon Transcribe puts the transcript in the specified S3 bucket. When you call the GetTranscriptionJob operation, the operation returns this location in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri . If you enable content redaction and choose to output an unredacted transcript, that transcript\'s location still appears in the TranscriptFileUri . The S3 bucket must have permissions that allow Amazon Transcribe to put files in the bucket. For more information, see Permissions Required for IAM User Roles .\nYou can specify an AWS Key Management Service (KMS) key to encrypt the output of your transcription using the OutputEncryptionKMSKeyId parameter. If you don\'t specify a KMS key, Amazon Transcribe uses the default Amazon S3 key for server-side encryption of transcripts that are placed in your S3 bucket.\nIf you don\'t set the OutputBucketName , Amazon Transcribe generates a pre-signed URL, a shareable URL that provides secure access to your transcription, and returns it in the TranscriptFileUri field. Use this URL to download the transcription.\n
:type OutputEncryptionKMSKeyId: string
:param OutputEncryptionKMSKeyId: The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key used to encrypt the output of the transcription job. The user calling the StartTranscriptionJob operation must have permission to use the specified KMS key.\nYou can use either of the following to identify a KMS key in the current account:\n\nKMS Key ID: '1234abcd-12ab-34cd-56ef-1234567890ab'\nKMS Key Alias: 'alias/ExampleAlias'\n\nYou can use either of the following to identify a KMS key in the current account or another account:\n\nAmazon Resource Name (ARN) of a KMS Key: 'arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab'\nARN of a KMS Key Alias: 'arn:aws:kms:region:account ID:alias/ExampleAlias'\n\nIf you don\'t specify an encryption key, the output of the transcription job is encrypted with the default Amazon S3 key (SSE-S3).\nIf you specify a KMS key to encrypt your output, you must also specify an output location in the OutputBucketName parameter.\n
:type Settings: dict
:param Settings: A Settings object that provides optional settings for a transcription job.\n\nVocabularyName (string) --The name of a vocabulary to use when processing the transcription job.\n\nShowSpeakerLabels (boolean) --Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recognition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels MaxSpeakerLabels field.\nYou can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .\n\nMaxSpeakerLabels (integer) --The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.\n\nChannelIdentification (boolean) --Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.\nAmazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.\nYou can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .\n\nShowAlternatives (boolean) --Determines whether the transcription contains alternative transcriptions. If you set the ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.\n\nMaxAlternatives (integer) --The number of alternative transcriptions that the service should return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.\n\nVocabularyFilterName (string) --The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.\n\nVocabularyFilterMethod (string) --Set to mask to remove filtered text from the transcript and replace it with three asterisks ('***') as placeholder text. Set to remove to remove filtered text from the transcript without using placeholder text.\n\n\n
:type JobExecutionSettings: dict
:param JobExecutionSettings: Provides information about how a transcription job is executed. Use this field to indicate that the job can be queued for deferred execution if the concurrency limit is reached and there are no slots available to immediately run the job.\n\nAllowDeferredExecution (boolean) --Indicates whether a job should be queued by Amazon Transcribe when the concurrent execution limit is exceeded. When the AllowDeferredExecution field is true, jobs are queued and executed when the number of executing jobs falls below the concurrent execution limit. If the field is false, Amazon Transcribe returns a LimitExceededException exception.\nIf you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.\n\nDataAccessRoleArn (string) --The Amazon Resource Name (ARN) of a role that has access to the S3 bucket that contains the input files. Amazon Transcribe assumes this role to read queued media files. If you have specified an output S3 bucket for the transcription results, this role should have access to the output bucket as well.\nIf you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.\n\n\n
:type ContentRedaction: dict
:param ContentRedaction: An object that contains the request parameters for content redaction.\n\nRedactionType (string) -- [REQUIRED]Request parameter that defines the entities to be redacted. The only accepted value is PII .\n\nRedactionOutput (string) -- [REQUIRED]The output transcript file stored in either the default S3 bucket or in a bucket you specify.\nWhen you choose redacted Amazon Transcribe outputs only the redacted transcript.\nWhen you choose redacted_and_unredacted Amazon Transcribe outputs both the redacted and unredacted transcripts.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{
'TranscriptionJob': {
'TranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string',
'RedactedTranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'VocabularyName': 'string',
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyFilterName': 'string',
'VocabularyFilterMethod': 'remove'|'mask'
},
'JobExecutionSettings': {
'AllowDeferredExecution': True|False,
'DataAccessRoleArn': 'string'
},
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
}
}
Response Structure
(dict) --
TranscriptionJob (dict) --
An object containing details of the asynchronous transcription job.
TranscriptionJobName (string) --
The name of the transcription job.
TranscriptionJobStatus (string) --
The status of the transcription job.
LanguageCode (string) --
The language code for the input speech.
MediaSampleRateHertz (integer) --
The sample rate, in Hertz, of the audio track in the input media file.
MediaFormat (string) --
The format of the input media file.
Media (dict) --
An object that describes the input media for the transcription job.
MediaFileUri (string) --
The S3 object location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .
Transcript (dict) --
An object that describes the output of the transcription job.
TranscriptFileUri (string) --
The S3 object location of the the transcript.
Use this URI to access the transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
RedactedTranscriptFileUri (string) --
The S3 object location of the redacted transcript.
Use this URI to access the redacated transcript. If you specified an S3 bucket in the OutputBucketName field when you created the job, this is the URI of that bucket. If you chose to store the transcript in Amazon Transcribe, this is a shareable URL that provides secure access to that location.
StartTime (datetime) --
A timestamp that shows with the job was started processing.
CreationTime (datetime) --
A timestamp that shows when the job was created.
CompletionTime (datetime) --
A timestamp that shows when the job was completed.
FailureReason (string) --
If the TranscriptionJobStatus field is FAILED , this field contains information about why the job failed.
The FailureReason field can contain one of the following values:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure that the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than Amazon Transcribe can process. For more information, see Limits in the Amazon Transcribe Developer Guide .
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe is configured to process. To request additional channels, see Amazon Transcribe Limits in the Amazon Web Services General Reference .
Settings (dict) --
Optional settings for the transcription job. Use these settings to turn on speaker recognition, to set the maximum number of speakers that should be identified and to specify a custom vocabulary to use when processing the transcription job.
VocabularyName (string) --
The name of a vocabulary to use when processing the transcription job.
ShowSpeakerLabels (boolean) --
Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recognition labels individual speakers in the audio file. If you set the ShowSpeakerLabels field to true, you must also set the maximum number of speaker labels MaxSpeakerLabels field.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
MaxSpeakerLabels (integer) --
The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this number, multiple speakers are identified as a single speaker. If you specify the MaxSpeakerLabels field, you must set the ShowSpeakerLabels field to true.
ChannelIdentification (boolean) --
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can\'t set both ShowSpeakerLabels and ChannelIdentification in the same request. If you set both, your request returns a BadRequestException .
ShowAlternatives (boolean) --
Determines whether the transcription contains alternative transcriptions. If you set the ShowAlternatives field to true, you must also set the maximum number of alternatives to return in the MaxAlternatives field.
MaxAlternatives (integer) --
The number of alternative transcriptions that the service should return. If you specify the MaxAlternatives field, you must set the ShowAlternatives field to true.
VocabularyFilterName (string) --
The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
VocabularyFilterMethod (string) --
Set to mask to remove filtered text from the transcript and replace it with three asterisks ("***") as placeholder text. Set to remove to remove filtered text from the transcript without using placeholder text.
JobExecutionSettings (dict) --
Provides information about how a transcription job is executed.
AllowDeferredExecution (boolean) --
Indicates whether a job should be queued by Amazon Transcribe when the concurrent execution limit is exceeded. When the AllowDeferredExecution field is true, jobs are queued and executed when the number of executing jobs falls below the concurrent execution limit. If the field is false, Amazon Transcribe returns a LimitExceededException exception.
If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
DataAccessRoleArn (string) --
The Amazon Resource Name (ARN) of a role that has access to the S3 bucket that contains the input files. Amazon Transcribe assumes this role to read queued media files. If you have specified an output S3 bucket for the transcription results, this role should have access to the output bucket as well.
If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn field.
ContentRedaction (dict) --
An object that describes content redaction settings for the transcription job.
RedactionType (string) --
Request parameter that defines the entities to be redacted. The only accepted value is PII .
RedactionOutput (string) --
The output transcript file stored in either the default S3 bucket or in a bucket you specify.
When you choose redacted Amazon Transcribe outputs only the redacted transcript.
When you choose redacted_and_unredacted Amazon Transcribe outputs both the redacted and unredacted transcripts.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.ConflictException
:return: {
'TranscriptionJob': {
'TranscriptionJobName': 'string',
'TranscriptionJobStatus': 'QUEUED'|'IN_PROGRESS'|'FAILED'|'COMPLETED',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'MediaSampleRateHertz': 123,
'MediaFormat': 'mp3'|'mp4'|'wav'|'flac',
'Media': {
'MediaFileUri': 'string'
},
'Transcript': {
'TranscriptFileUri': 'string',
'RedactedTranscriptFileUri': 'string'
},
'StartTime': datetime(2015, 1, 1),
'CreationTime': datetime(2015, 1, 1),
'CompletionTime': datetime(2015, 1, 1),
'FailureReason': 'string',
'Settings': {
'VocabularyName': 'string',
'ShowSpeakerLabels': True|False,
'MaxSpeakerLabels': 123,
'ChannelIdentification': True|False,
'ShowAlternatives': True|False,
'MaxAlternatives': 123,
'VocabularyFilterName': 'string',
'VocabularyFilterMethod': 'remove'|'mask'
},
'JobExecutionSettings': {
'AllowDeferredExecution': True|False,
'DataAccessRoleArn': 'string'
},
'ContentRedaction': {
'RedactionType': 'PII',
'RedactionOutput': 'redacted'|'redacted_and_unredacted'
}
}
}
:returns:
Unsupported media format - The media format specified in the MediaFormat field of the request isn\'t valid. See the description of the MediaFormat field for a list of valid values.
The media format provided does not match the detected media format - The media format of the audio file doesn\'t match the format specified in the MediaFormat field in the request. Check the media format of your media file and make sure that the two values match.
Invalid sample rate for audio file - The sample rate specified in the MediaSampleRateHertz of the request isn\'t valid. The sample rate must be between 8000 and 48000 Hertz.
The sample rate provided does not match the detected sample rate - The sample rate in the audio file doesn\'t match the sample rate specified in the MediaSampleRateHertz field in the request. Check the sample rate of your media file and make sure that the two values match.
Invalid file size: file size too large - The size of your audio file is larger than Amazon Transcribe can process. For more information, see Limits in the Amazon Transcribe Developer Guide .
Invalid number of channels: number of channels too large - Your audio contains more channels than Amazon Transcribe is configured to process. To request additional channels, see Amazon Transcribe Limits in the Amazon Web Services General Reference .
"""
pass
def update_medical_vocabulary(VocabularyName=None, LanguageCode=None, VocabularyFileUri=None):
"""
Updates an existing vocabulary with new values in a different text file. The UpdateMedicalVocabulary operation overwrites all of the existing information with the values that you provide in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.update_medical_vocabulary(
VocabularyName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
VocabularyFileUri='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary to update. The name is case-sensitive. If you try to update a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code of the entries in the updated vocabulary. US English (en-US) is the only valid language code in Amazon Transcribe Medical.\n
:type VocabularyFileUri: string
:param VocabularyFileUri: The Amazon S3 location of the text file containing the definition of the custom vocabulary. The URI must be in the same AWS region as the API endpoint you are calling. You can see the fields you need to enter for you Amazon S3 location in the example URI here:\n\nhttps://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>\nFor example:\n\nhttps://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\nFor more information about custom vocabularies in Amazon Transcribe Medical, see Medical Custom Vocabularies .\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
}
Response Structure
(dict) --
VocabularyName (string) --
The name of the updated vocabulary.
LanguageCode (string) --
The language code for the text file used to update the custom vocabulary. US English (en-US) is the only language supported in Amazon Transcribe Medical.
LastModifiedTime (datetime) --
The date and time the vocabulary was updated.
VocabularyState (string) --
The processing state of the update to the vocabulary. When the VocabularyState field is READY the vocabulary is ready to be used in a StartMedicalTranscriptionJob request.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.ConflictException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.ConflictException
"""
pass
def update_vocabulary(VocabularyName=None, LanguageCode=None, Phrases=None, VocabularyFileUri=None):
"""
Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.update_vocabulary(
VocabularyName='string',
LanguageCode='en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
Phrases=[
'string',
],
VocabularyFileUri='string'
)
:type VocabularyName: string
:param VocabularyName: [REQUIRED]\nThe name of the vocabulary to update. The name is case-sensitive. If you try to update a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.\n
:type LanguageCode: string
:param LanguageCode: [REQUIRED]\nThe language code of the vocabulary entries.\n
:type Phrases: list
:param Phrases: An array of strings containing the vocabulary entries.\n\n(string) --\n\n
:type VocabularyFileUri: string
:param VocabularyFileUri: The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is\nFor example:\nFor more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide .\nFor more information about custom vocabularies, see Custom Vocabularies .\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
}
Response Structure
(dict) --
VocabularyName (string) --
The name of the vocabulary that was updated.
LanguageCode (string) --
The language code of the vocabulary entries.
LastModifiedTime (datetime) --
The date and time that the vocabulary was updated.
VocabularyState (string) --
The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.ConflictException
:return: {
'VocabularyName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1),
'VocabularyState': 'PENDING'|'READY'|'FAILED'
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
TranscribeService.Client.exceptions.ConflictException
"""
pass
def update_vocabulary_filter(VocabularyFilterName=None, Words=None, VocabularyFilterFileUri=None):
"""
Updates a vocabulary filter with a new list of filtered words.
See also: AWS API Documentation
Exceptions
:example: response = client.update_vocabulary_filter(
VocabularyFilterName='string',
Words=[
'string',
],
VocabularyFilterFileUri='string'
)
:type VocabularyFilterName: string
:param VocabularyFilterName: [REQUIRED]\nThe name of the vocabulary filter to update. If you try to update a vocabulary filter with the same name as a previous vocabulary filter you will receive a ConflictException error.\n
:type Words: list
:param Words: The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies .\nIf you provide a list of words in the Words parameter, you can\'t use the VocabularyFilterFileUri parameter.\n\n(string) --\n\n
:type VocabularyFilterFileUri: string
:param VocabularyFilterFileUri: The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies .\nThe specified file must be less than 50 KB of UTF-8 characters.\nIf you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can\'t use the Words parameter.\n
:rtype: dict
ReturnsResponse Syntax
{
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
}
Response Structure
(dict) --
VocabularyFilterName (string) --
The name of the updated vocabulary filter.
LanguageCode (string) --
The language code of the words in the vocabulary filter.
LastModifiedTime (datetime) --
The date and time that the vocabulary filter was updated.
Exceptions
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
:return: {
'VocabularyFilterName': 'string',
'LanguageCode': 'en-US'|'es-US'|'en-AU'|'fr-CA'|'en-GB'|'de-DE'|'pt-BR'|'fr-FR'|'it-IT'|'ko-KR'|'es-ES'|'en-IN'|'hi-IN'|'ar-SA'|'ru-RU'|'zh-CN'|'nl-NL'|'id-ID'|'ta-IN'|'fa-IR'|'en-IE'|'en-AB'|'en-WL'|'pt-PT'|'te-IN'|'tr-TR'|'de-CH'|'he-IL'|'ms-MY'|'ja-JP'|'ar-AE',
'LastModifiedTime': datetime(2015, 1, 1)
}
:returns:
TranscribeService.Client.exceptions.BadRequestException
TranscribeService.Client.exceptions.LimitExceededException
TranscribeService.Client.exceptions.InternalFailureException
TranscribeService.Client.exceptions.NotFoundException
"""
pass
| 49.483326
| 2,471
| 0.718707
| 16,011
| 120,195
| 5.385048
| 0.045843
| 0.012584
| 0.043633
| 0.009743
| 0.908258
| 0.892855
| 0.88411
| 0.879761
| 0.875771
| 0.864045
| 0
| 0.007264
| 0.178793
| 120,195
| 2,428
| 2,472
| 49.503707
| 0.866248
| 0.973268
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 10
|
b30af23aa83d23411f23316305b33fe6b4970e8c
| 29,808
|
py
|
Python
|
xpanse/api/services/v1/services.py
|
PaloAltoNetworks/cortex-xpanse-python-sdk
|
532d3fdb031a0e5943cc492222299f94ad93d030
|
[
"0BSD"
] | 3
|
2021-09-02T16:05:04.000Z
|
2021-09-10T01:10:48.000Z
|
xpanse/api/services/v1/services.py
|
PaloAltoNetworks/cortex-xpanse-python-sdk
|
532d3fdb031a0e5943cc492222299f94ad93d030
|
[
"0BSD"
] | 7
|
2021-08-31T17:43:33.000Z
|
2021-12-01T00:36:48.000Z
|
xpanse/api/services/v1/services.py
|
PaloAltoNetworks/cortex-xpanse-python-sdk
|
532d3fdb031a0e5943cc492222299f94ad93d030
|
[
"0BSD"
] | null | null | null |
from typing import Any, Dict, List
from xpanse.const import V1_PREFIX
from xpanse.endpoint import ExEndpoint
from xpanse.iterator import ExResultIterator
class ServicesEndpoint(ExEndpoint):
"""
Part of the Services V1 API.
See: https://api.expander.expanse.co/api/v1/docs/
"""
def list(self, **kwargs: Any) -> ExResultIterator:
"""
This endpoint will return a paginated list of services.
Args:
limit (int, optional):
Returns at most this many results in a single api call.
Default is 100, max is 10000.
pageToken (str, optional):
Page token for pagination.
queryId (str, optional):
ID of previously stored query.
providerId (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerId_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
providerName (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerName_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
businessUnitId (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitId_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
businessUnitName (str, optional):
Comma-separated string; Returns only results whose Business Unit's name falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitName_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's Name are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
tagId (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag id should be used here rather than the tag name.
Cannot be used with tagId_neq or tagName_neq.
tagId_neq (str, optional):
Comma-separated string; Returns any assets with a tagId other than the provided set.
The tag id should be used here rather than the tag name.
Cannot be used with tagId or tagName.
tagName (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag name should be used here rather than the tag id.
Cannot be used with tagId_neq or tagName_neq.
tagName_neq (str, optional):
Comma-separated string; Returns any assets with a tagName other than the provided set.
The tag name should be used here rather than the tag id.
Cannot be used with tagId or tagName.
classificationId (str, optional):
Comma-separated string; Returns records with the specified service classifications.
Cannot be used with classificationId_neq.
classificationId_neq (str, optional):
Comma-separated string; Returns records with service classification other than the ones specified.
Cannot be used with classificationId.
ipSearch (str, optional):
Search for records with ip values in the specified subnets.
Cannot be used with ipSearch_neq.
ipSearch_neq (str, optional):
Search for records with ip values not in the specified subnets.
Cannot be used with ipSearch.
domainSearch (str, optional):
Comma-separated string; Search for given domain values via substring match.
Cannot be used with domainSearch_neq.
domainSearch_neq (str, optional):
Comma-separated string; Search for results with domains that do not match (by substring) these values.
Cannot be used with domainSearch.
contentSearch (str, optional):
Search for assets via content match.
countryCode (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country in the provided set.
Cannot be used with countryCode_neq.
countryCode_neq (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country other than in the provided set.
Cannot be used with countryCode.
activityStatus (str, optional):
Comma-separated string; Returns only results whose activity status matches one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus_neq.
activityStatus_neq (str, optional):
Comma-separated string; Returns only results whose activity status not matching one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus.
discoveryType (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType_neq.
discoveryType_neq (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType.
portNumber (str, optional):
Comma separated string; Returns assets located on the specified port.
Cannot be used with portNumber_neq.
portNumber_neq (str, optional):
Comma separated string; Returns assets located on a port other than the specified port(s).
Cannot be used with portNumber.
include (str, optional):
Comma-separated string; Include the provided fields as part of the serialized result.
Values can include (allClassificationDetails, latestClassificationDetails)
cloudManagementStatus (str, optional):
Comma-separated string; Returns only results whose cloud management status matches one of the given values.
Cannot be used with cloudManagementStatus_neq.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
cloudManagementStatus_neq (str, optional):
Comma-separated string; Returns only services whose cloud management status is other than given value(s).
Cannot be used with cloudManagementStatus.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
hostingEnvironment (str, optional):
Comma-separated string; Returns only services whose hosting environment matches one of the given value(s).
Cannot be used with hostingEnvironment!.
Allowed values are 'OnPrem', 'Cloud'.
hostingEnvironment_neg (str, optional):
Comma-separated string; Returns only services whose hosting environment is other than the given value(s).
Cannot be used with hostingEnvironment.
Allowed values are 'OnPrem', 'Cloud'.
sort (str, optional):
Sort by specified properties.
Returns:
:obj:`ExResultIterator`:
An iterator containing all of the services results. Results can be iterated
or called by page using `<iterator>.next()`.
Examples:
>>> # Return all services dumped to a list:
>>> bus = client.services.v1.services.list().dump()
"""
return ExResultIterator(self._api, f"{V1_PREFIX}/services/services", kwargs)
def count(self, **kwargs: Any) -> Dict[str, Any]:
"""
This endpoint will return a paginated list of services.
Args:
limit (int, optional):
Returns at most this many results in a single api call.
Default is 100, max is 10000.
pageToken (str, optional):
Page token for pagination.
queryId (str, optional):
ID of previously stored query.
providerId (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerId_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
providerName (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerName_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
businessUnitId (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitId_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
businessUnitName (str, optional):
Comma-separated string; Returns only results whose Business Unit's name falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitName_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's Name are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
tagId (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag id should be used here rather than the tag name.
Cannot be used with tagId_neq or tagName_neq.
tagId_neq (str, optional):
Comma-separated string; Returns any assets with a tagId other than the provided set.
The tag id should be used here rather than the tag name.
Cannot be used with tagId or tagName.
tagName (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag name should be used here rather than the tag id.
Cannot be used with tagId_neq or tagName_neq.
tagName_neq (str, optional):
Comma-separated string; Returns any assets with a tagName other than the provided set.
The tag name should be used here rather than the tag id.
Cannot be used with tagId or tagName.
assigneeUsername (str, optional):
Comma-separated string; Returns only results whose assignee's username matches one of the given usernames.
Use "Unassigned" to fetch issues that are not assigned to any user.
classificationId (str, optional):
Comma-separated string; Returns records with the specified service classifications.
Cannot be used with classificationId_neq.
classificationId_neq (str, optional):
Comma-separated string; Returns records with service classification other than the ones specified.
Cannot be used with classificationId.
ipSearch (str, optional):
Search for records with ip values in the specified subnets.
Cannot be used with ipSearch_neq.
ipSearch_neq (str, optional):
Search for records with ip values not in the specified subnets.
Cannot be used with ipSearch.
domainSearch (str, optional):
Comma-separated string; Search for given domain values via substring match.
Cannot be used with domainSearch_neq.
domainSearch_neq (str, optional):
Comma-separated string; Search for results with domains that do not match (by substring) these values.
Cannot be used with domainSearch.
contentSearch (str, optional):
Search for assets via content match.
countryCode (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country in the provided set.
Cannot be used with countryCode_neq.
countryCode_neq (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country other than in the provided set.
Cannot be used with countryCode.
activityStatus (str, optional):
Comma-separated string; Returns only results whose activity status matches one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus_neq.
activityStatus_neq (str, optional):
Comma-separated string; Returns only results whose activity status not matching one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus.
discoveryType (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType_neq.
discoveryType_neq (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType.
portNumber (str, optional):
Comma separated string; Returns assets located on the specified port.
Cannot be used with portNumber_neq.
portNumber_neq (str, optional):
Comma separated string; Returns assets located on a port other than the specified port(s).
Cannot be used with portNumber.
cloudManagementStatus (str, optional):
Comma-separated string; Returns only results whose cloud management status matches one of the given values.
Cannot be used with cloudManagementStatus_neq.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
cloudManagementStatus_neq (str, optional):
Comma-separated string; Returns only services whose cloud management status is other than given value(s).
Cannot be used with cloudManagementStatus.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
hostingEnvironment (str, optional):
Comma-separated string; Returns only services whose hosting environment matches one of the given value(s).
Cannot be used with hostingEnvironment!.
Allowed values are 'OnPrem', 'Cloud'.
hostingEnvironment_neg (str, optional):
Comma-separated string; Returns only services whose hosting environment is other than the given value(s).
Cannot be used with hostingEnvironment.
Allowed values are 'OnPrem', 'Cloud'.
Returns:
:obj:`dict`:
An dictionary containing services count information
Examples:
>>> # Return the count of all services
>>> count = client.services.v1.services.count()
"""
return self._api.get(
f"{V1_PREFIX}/services/services/count", params=kwargs
).json()
def get(self, id: str, **kwargs: Any) -> Dict[str, Any]:
"""
Returns the details for a given Service. Arguments should be passed as keyword args using
the names below.
Args:
id (str):
ID of the requested service.
Returns:
:obj:`dict`:
A dictionary containing all of the details about the service.
Examples:
>>> # Return service.
>>> service = client.services.services.get(<id>)
"""
return self._api.get(
f"{V1_PREFIX}/services/services/{id}", params=kwargs
).json()
def csv(self, file: str, **kwargs: Any) -> bool:
"""
This endpoint will export a filtered list of services to csv.
Args:
file (str):
The name of the returned CSV file.
limit (int, optional):
Returns at most this many results in a single api call.
Default is 100, max is 10000.
pageToken (str, optional):
Page token for pagination.
queryId (str, optional):
ID of previously stored query.
providerId (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerId_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
providerName (str, optional):
Comma-separated string; Returns only results that were found on the given providers.
If not set, results will include anything regardless of provider status.
Cannot be used with providerName_neq or providerId_neq.
providerName_neq (str, optional):
Comma-separated string; Returns only results that were found on providers other than the given ones.
Cannot be used with providerName or providerId.
businessUnitId (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitId_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's ID are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
businessUnitName (str, optional):
Comma-separated string; Returns only results whose Business Unit's name falls in the provided list.
NOTE: If omitted, API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId_neq or businessUnitName_neq.
businessUnitName_neq (str, optional):
Comma-separated string; Returns only results whose Business Unit's Name are other than the provided list.
NOTE: If omitted, the API will return results for all Business Units the user has permissions to view.
Cannot be used with businessUnitId or businessUnitName.
tagId (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag id should be used here rather than the tag name.
Cannot be used with tagId_neq or tagName_neq.
tagId_neq (str, optional):
Comma-separated string; Returns any assets with a tagId other than the provided set.
The tag id should be used here rather than the tag name.
Cannot be used with tagId or tagName.
tagName (str, optional):
Comma-separated string; Returns only results that are associated with the provided tags.
The tag name should be used here rather than the tag id.
Cannot be used with tagId_neq or tagName_neq.
tagName_neq (str, optional):
Comma-separated string; Returns any assets with a tagName other than the provided set.
The tag name should be used here rather than the tag id.
Cannot be used with tagId or tagName.
assigneeUsername (str, optional):
Comma-separated string; Returns only results whose assignee's username matches one of the given usernames.
Use "Unassigned" to fetch issues that are not assigned to any user.
classificationId (str, optional):
Comma-separated string; Returns records with the specified service classifications.
Cannot be used with classificationId_neq.
classificationId_neq (str, optional):
Comma-separated string; Returns records with service classification other than the ones specified.
Cannot be used with classificationId.
ipSearch (str, optional):
Search for records with ip values in the specified subnets.
Cannot be used with ipSearch_neq.
ipSearch_neq (str, optional):
Search for records with ip values not in the specified subnets.
Cannot be used with ipSearch.
domainSearch (str, optional):
Comma-separated string; Search for given domain values via substring match.
Cannot be used with domainSearch_neq.
domainSearch_neq (str, optional):
Comma-separated string; Search for results with domains that do not match (by substring) these values.
Cannot be used with domainSearch.
contentSearch (str, optional):
Search for assets via content match.
countryCode (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country in the provided set.
Cannot be used with countryCode_neq.
countryCode_neq (str, optional):
Comma-separated string of ISO-3166 two character country codes;
Returns any assets with an IP located in a country other than in the provided set.
Cannot be used with countryCode.
activityStatus (str, optional):
Comma-separated string; Returns only results whose activity status matches one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus_neq.
activityStatus_neq (str, optional):
Comma-separated string; Returns only results whose activity status not matching one of the given values.
Allowed values are `Active` and `Inactive`.
Cannot be used with activityStatus.
discoveryType (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType_neq.
discoveryType_neq (str, optional):
Describes the way a service was discovered (ColocatedOnIp, DirectlyDiscovered).
Cannot be used with discoveryType.
portNumber (str, optional):
Comma separated string; Returns assets located on the specified port.
Cannot be used with portNumber_neq.
portNumber_neq (str, optional):
Comma separated string; Returns assets located on a port other than the specified port(s).
Cannot be used with portNumber.
cloudManagementStatus (str, optional):
Comma-separated string; Returns only results whose cloud management status matches one of the given values.
Cannot be used with cloudManagementStatus_neq.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
cloudManagementStatus_neq (str, optional):
Comma-separated string; Returns only services whose cloud management status is other than given value(s).
Cannot be used with cloudManagementStatus.
Allowed values are `NotApplicable`, `ManagedCloud`, `UnmanagedCloud`.
hostingEnvironment (str, optional):
Comma-separated string; Returns only services whose hosting environment matches one of the given value(s).
Cannot be used with hostingEnvironment!.
Allowed values are 'OnPrem', 'Cloud'.
hostingEnvironment_neg (str, optional):
Comma-separated string; Returns only services whose hosting environment is other than the given value(s).
Cannot be used with hostingEnvironment.
Allowed values are 'OnPrem', 'Cloud'.
sort (str, optional):
Sort by specified properties.
Returns:
:obj:`boolean`:
`True` if the download was successful, otherwise `False`.
Examples:
>>> # Download a csv of all services
>>> client.services.services.csv(file="services.csv")
"""
kwargs["filename"] = file
return self._api.csv(
path=f"{V1_PREFIX}/services/services/csv", file_=file, **kwargs
)
def updates(self, **kwargs: Any) -> ExResultIterator:
"""
This endpoint will return a paginated list of services updates.
Args:
limit (int, optional):
Returns at most this many results in a single api call.
Default is 100, max is 10000.
pageToken (str, optional):
Page token for pagination.
include (str, optional):
Comma-separated string; Include the provided fields as part of the serialized result.
`service` is the only allowed value and can be provided to include the service object in the update response.
createdAfter (str, optional):
Returns only results created after the provided timestamp (YYYY-MM-DDTHH:MM:SSZ).
createdBefore (str, optional):
Returns only results created before the provided timestamp (YYYY-MM-DDTHH:MM:SSZ).
Returns:
:obj:`ExResultIterator`:
An iterator containing all of the service update results. Results can be iterated
or called by page using `<iterator>.next()`.
Examples:
>>> # Return all services updates between two dates:
>>> for res in client.services.v1.services.updates(createdAfter="2020-12-20T00:00:00Z", createdBefore="2020-12-21T00:00:00Z")
... for service_update in res:
... print(service_update)
"""
return ExResultIterator(self._api, f"{V1_PREFIX}/services/updates", kwargs)
| 61.459794
| 137
| 0.631508
| 3,437
| 29,808
| 5.442246
| 0.07652
| 0.063512
| 0.057739
| 0.076985
| 0.924566
| 0.92077
| 0.916921
| 0.916921
| 0.908153
| 0.89853
| 0
| 0.004683
| 0.319478
| 29,808
| 484
| 138
| 61.586777
| 0.917427
| 0.846786
| 0
| 0.181818
| 0
| 0
| 0.155784
| 0.148321
| 0
| 0
| 0
| 0
| 0
| 1
| 0.227273
| false
| 0
| 0.181818
| 0
| 0.681818
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
2fcc26ce4b4e07f2525b092c89bb0670e266d18c
| 10,387
|
py
|
Python
|
tests/fixtures/translated_scc.py
|
vpaul-dev/pycaption-github-release-notes
|
d265389807f76330196093e5231d2bf5c699619d
|
[
"Apache-2.0"
] | 183
|
2015-01-26T00:28:48.000Z
|
2022-03-29T19:51:55.000Z
|
tests/fixtures/translated_scc.py
|
vpaul-dev/pycaption-github-release-notes
|
d265389807f76330196093e5231d2bf5c699619d
|
[
"Apache-2.0"
] | 132
|
2015-01-06T08:11:11.000Z
|
2022-03-31T19:30:57.000Z
|
tests/fixtures/translated_scc.py
|
vpaul-dev/pycaption-github-release-notes
|
d265389807f76330196093e5231d2bf5c699619d
|
[
"Apache-2.0"
] | 150
|
2015-01-16T18:03:59.000Z
|
2022-03-16T01:11:10.000Z
|
import pytest
@pytest.fixture(scope="session")
def sample_translated_scc_success():
return """Scenarist_SCC V1.0
00:00:09:05 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [( ] [cl] [oc] [k ] [ti] [ck] [in] [g ] [)] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:12:08 [Erase Displayed Memory] [Erase Displayed Memory]
00:00:13:18 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 13, column 00, with plain white text.] [row 13, column 00, with plain white text.] [MA] [N:] [row 14, column 00, with plain white text.] [row 14, column 00, with plain white text.] [Wh] [en] [ w] [e ] [th] [in] [k] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [of] [ "] [E ] [eq] [ua] [ls] [ m] [ c] [-s] [qu] [ar] [ed] [",] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:16:03 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [we] [ h] [av] [e ] [th] [is] [ v] [is] [io] [n ] [of] [ E] [in] [st] [ei] [n] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:17:20 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 14, column 00, with plain white text.] [row 14, column 00, with plain white text.] [as] [ a] [n ] [ol] [d,] [ w] [ri] [nk] [ly] [ m] [an] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [wi] [th] [ w] [hi] [te] [ h] [ai] [r.] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:19:13 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 13, column 00, with plain white text.] [row 13, column 00, with plain white text.] [MA] [N ] [2:] [row 14, column 00, with plain white text.] [row 14, column 00, with plain white text.] [E ] [eq] [ua] [ls] [ m] [ c] [-s] [qu] [ar] [ed] [ i] [s] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [no] [t ] [ab] [ou] [t ] [an] [ o] [ld] [ E] [in] [st] [ei] [n.] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:25:16 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 13, column 00, with plain white text.] [row 13, column 00, with plain white text.] [MA] [N ] [2:] [row 14, column 00, with plain white text.] [row 14, column 00, with plain white text.] [It] ['s] [ a] [ll] [ a] [bo] [ut] [ a] [n ] [et] [er] [na] [l] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [Ei] [ns] [te] [in] [.] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:31:15 [Erase Non-displayed Memory] [Erase Non-displayed Memory] [Resume Caption Loading] [Resume Caption Loading] [row 15, column 00, with plain white text.] [row 15, column 00, with plain white text.] [<L] [AU] [GH] [IN] [G ] [& ] [WH] [OO] [PS] [!>] [Erase Displayed Memory] [Erase Displayed Memory] [End Of Caption] [End Of Caption]
00:00:36:04 [Erase Displayed Memory] [Erase Displayed Memory]
"""
@pytest.fixture(scope="session")
def sample_translated_scc_no_brackets():
return """Scenarist_SCC V1.0
00:00:09:05 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 15, column 00, with plain white text. row 15, column 00, with plain white text. ( cl oc k ti ck in g ) Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:12:08 Erase Displayed Memory Erase Displayed Memory
00:00:13:18 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 13, column 00, with plain white text. row 13, column 00, with plain white text. MA N: row 14, column 00, with plain white text. row 14, column 00, with plain white text. Wh en w e th in k row 15, column 00, with plain white text. row 15, column 00, with plain white text. of " E eq ua ls m c -s qu ar ed ", Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:16:03 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 15, column 00, with plain white text. row 15, column 00, with plain white text. we h av e th is v is io n of E in st ei n Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:17:20 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 14, column 00, with plain white text. row 14, column 00, with plain white text. as a n ol d, w ri nk ly m an row 15, column 00, with plain white text. row 15, column 00, with plain white text. wi th w hi te h ai r. Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:19:13 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 13, column 00, with plain white text. row 13, column 00, with plain white text. MA N 2: row 14, column 00, with plain white text. row 14, column 00, with plain white text. E eq ua ls m c -s qu ar ed i s row 15, column 00, with plain white text. row 15, column 00, with plain white text. no t ab ou t an o ld E in st ei n. Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:25:16 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 13, column 00, with plain white text. row 13, column 00, with plain white text. MA N 2: row 14, column 00, with plain white text. row 14, column 00, with plain white text. It 's a ll a bo ut a n et er na l row 15, column 00, with plain white text. row 15, column 00, with plain white text. Ei ns te in . Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:31:15 Erase Non-displayed Memory Erase Non-displayed Memory Resume Caption Loading Resume Caption Loading row 15, column 00, with plain white text. row 15, column 00, with plain white text. <L AU GH IN G & WH OO PS !> Erase Displayed Memory Erase Displayed Memory End Of Caption End Of Caption
00:00:36:04 Erase Displayed Memory Erase Displayed Memory
"""
@pytest.fixture(scope="session")
def sample_translated_scc_commands_not_found():
return """Scenarist_SCC V1.0
00:04:36;06 942x 942x 942x 942x [row 01, column 12, with plain white text.] [MA] 13b0 525x c8cx ba8x
"""
@pytest.fixture(scope="session")
def sample_translated_scc_custom_brackets():
return """Scenarist_SCC V1.0
00:00:09:05 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {( } {cl} {oc} {k } {ti} {ck} {in} {g } {)} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:12:08 {Erase Displayed Memory} {Erase Displayed Memory}
00:00:13:18 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 13, column 00, with plain white text.} {row 13, column 00, with plain white text.} {MA} {N:} {row 14, column 00, with plain white text.} {row 14, column 00, with plain white text.} {Wh} {en} { w} {e } {th} {in} {k} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {of} { "} {E } {eq} {ua} {ls} { m} { c} {-s} {qu} {ar} {ed} {",} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:16:03 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {we} { h} {av} {e } {th} {is} { v} {is} {io} {n } {of} { E} {in} {st} {ei} {n} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:17:20 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 14, column 00, with plain white text.} {row 14, column 00, with plain white text.} {as} { a} {n } {ol} {d,} { w} {ri} {nk} {ly} { m} {an} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {wi} {th} { w} {hi} {te} { h} {ai} {r.} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:19:13 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 13, column 00, with plain white text.} {row 13, column 00, with plain white text.} {MA} {N } {2:} {row 14, column 00, with plain white text.} {row 14, column 00, with plain white text.} {E } {eq} {ua} {ls} { m} { c} {-s} {qu} {ar} {ed} { i} {s} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {no} {t } {ab} {ou} {t } {an} { o} {ld} { E} {in} {st} {ei} {n.} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:25:16 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 13, column 00, with plain white text.} {row 13, column 00, with plain white text.} {MA} {N } {2:} {row 14, column 00, with plain white text.} {row 14, column 00, with plain white text.} {It} {'s} { a} {ll} { a} {bo} {ut} { a} {n } {et} {er} {na} {l} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {Ei} {ns} {te} {in} {.} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:31:15 {Erase Non-displayed Memory} {Erase Non-displayed Memory} {Resume Caption Loading} {Resume Caption Loading} {row 15, column 00, with plain white text.} {row 15, column 00, with plain white text.} {<L} {AU} {GH} {IN} {G } {& } {WH} {OO} {PS} {!>} {Erase Displayed Memory} {Erase Displayed Memory} {End Of Caption} {End Of Caption}
00:00:36:04 {Erase Displayed Memory} {Erase Displayed Memory}
"""
| 123.654762
| 606
| 0.69327
| 1,799
| 10,387
| 3.991662
| 0.068927
| 0.200529
| 0.165715
| 0.213062
| 0.98691
| 0.984125
| 0.980922
| 0.980922
| 0.967832
| 0.967832
| 0
| 0.069835
| 0.175604
| 10,387
| 84
| 607
| 123.654762
| 0.768773
| 0
| 0
| 0.266667
| 0
| 0.488889
| 0.964478
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088889
| true
| 0
| 0.022222
| 0.088889
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
2fd9cea9540b21755f8ca170fca8da7d86677ff4
| 40,542
|
py
|
Python
|
capstoneproject/firstnw/models/research/object_detection/framecrop.py
|
dongrami0425/Python_OpenCV-Study
|
c7faee4f63720659280c3222ba5abfe27740d1f4
|
[
"MIT"
] | null | null | null |
capstoneproject/firstnw/models/research/object_detection/framecrop.py
|
dongrami0425/Python_OpenCV-Study
|
c7faee4f63720659280c3222ba5abfe27740d1f4
|
[
"MIT"
] | null | null | null |
capstoneproject/firstnw/models/research/object_detection/framecrop.py
|
dongrami0425/Python_OpenCV-Study
|
c7faee4f63720659280c3222ba5abfe27740d1f4
|
[
"MIT"
] | null | null | null |
import os
from PIL import Image
# -----------------------------------------------------------------------------------------------------------
# 현재 위치 불러와서 이미지 파일 경로 저장
cwd = os.getcwd()
file = cwd + '/image2.jpg'
print('현재 폴더 위치:', cwd)
img = Image.open(file)
# 높이 너비 저장
# height, width = img.shape[0:2]
full_width, full_height = img.size
x_min, x_max, y_min, y_max = 0.0, full_width, 0.0, full_height
# object_width, object_height = object_size
obeject_y_min, obeject_x_min, obeject_y_max, obeject_x_max = \
125.64113295078278, 340.59024143218994, 332.0577321052551, 582.3780236244202
object_width = float(obeject_x_max - obeject_x_min)
object_height = float(obeject_y_max - obeject_y_min)
print("전체 사이즈: (%d, %d)" % (full_width, full_height))
origin_pix_ratio = (object_height * object_width) / (full_width * full_height)
print("원본 이미지와 피사체의 비율 :", origin_pix_ratio)
# print("원하는 피사체의 (x, y) 중심좌표를 입력하라: ex) 40 200")
# x_coordinate, y_coordinate = input().split()
# #강아지 사진 전체 사진 크기: 738 x 415, 강아지의 중심좌표: (412,245)
# x_coordinate = int(x_coordinate)
# y_coordinate = int(y_coordinate)
x_coordinate = float(479.5)
y_coordinate = float(229.0)
print("피사체 중심좌표: (%f, %f)" % (x_coordinate, y_coordinate))
tar_point = [float(x_coordinate), float(y_coordinate)]
# full_size = [width, height]
def D3_rectangle43_frame(width, height, x, y, z, k):
object_width, object_height = z, k
tar_point = [x, y]
bar_1 = 0.0
bar_2 = 0.0
for i in range(70000):
if object_width > object_height:
bar_1 = bar_1 + 0.2
bar_2 = bar_2 + 0.15
else:
bar_1 = bar_1 + 0.15
bar_2 = bar_2 + 0.2
if tar_point[0] < round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (2 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (2 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] <= round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = tar_point[1] - (2 * bar_2)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_2)
frame_ymin = tar_point[1] - (2 * bar_1)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio <= 0.82 and pix_ratio > 0.8:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 3분할 프레임: 비율 0.82')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle43_frame_082.jpg')
continue
if pix_ratio <= 0.56 and pix_ratio > 0.54:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 3분할 프레임: 비율 0.56')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle43_frame_056.jpg')
continue
if pix_ratio <= 0.1:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 3분할 프레임: 비율 0.1')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle43_frame_01.jpg')
break
def D3_rectangle169_frame(width, height, x, y, z, k):
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
for i in range(70000):
if width > height:
bar_1 = bar_1 + 0.2
bar_2 = bar_2 + 0.1125
else:
bar_1 = bar_1 + 0.1125
bar_2 = bar_2 + 0.2
if tar_point[0] < round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (2 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (2 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] <= round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = tar_point[1] - (2 * bar_2)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = tar_point[1] - (2 * bar_2)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio <= 0.82 and pix_ratio > 0.8:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 3분할 프레임: 비율 0.82')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle169_frame_082.jpg')
continue
if pix_ratio <= 0.56 and pix_ratio > 0.54:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 3분할 프레임: 비율 0.56')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle169_frame_056.jpg')
continue
if pix_ratio <= 0.15:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 3분할 프레임: 비율 0.1')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/D3_rectangle169_frame_01.jpg')
break
def center_rectangle43_frame(width, height, x, y, z, k):
object_width, object_height = z, k
tar_point = [x, y]
bar_1 = 0.0
bar_2 = 0.0
for i in range(70000):
if width > height:
bar_1 = bar_1 + 0.2
bar_2 = bar_2 + 0.15
else:
bar_1 = bar_1 + 0.15
bar_2 = bar_2 + 0.2
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio == 0.82:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 center 프레임: 비율 0.82')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle43_frame.jpg')
continue
if pix_ratio == 0.56:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 center 프레임: 비율 0.56')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle43_frame.jpg')
continue
if pix_ratio == 0.1:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('4:3 직사각형 center 프레임: 비율 0.1')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle43_frame.jpg')
break
def center_rectangle169_frame(width, height, x, y, z, k):
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
for i in range(70000):
if width > height:
bar_1 = bar_1 + 0.2
bar_2 = bar_2 + 0.1125
else:
bar_1 = bar_1 + 0.2
bar_2 = bar_2 + 0.1125
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = tar_point[1] - (1 * bar_2)
frame_ymax = tar_point[1] + (1 * bar_2)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio == 0.82:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 center 프레임: 비율 0.82')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle169_frame.jpg')
continue
if pix_ratio == 0.56:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 center 프레임: 비율 0.56')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle169_frame.jpg')
continue
if pix_ratio == 0.1:
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('16:9 직사각형 center 프레임: 비율 0.1')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/cent_rectangle169_frame.jpg')
break
def oversize_btobject_Divison3_frame(width, height, x, y, z, k, a, b, c, d):
x_min, x_max, y_min, y_max = a, b, c, d
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
if width > height : #원본사진 가로형----------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 세로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 * object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 가로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < (width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 * object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > (width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 * object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif height > width : #원본사진이 세로형--------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 세로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 가로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max:
frame_ymax = tar_point[1] + (0.5 * object_height)
else:
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.9 * y_max) <= obeject_y_max <= y_max:
frame_ymax = tar_point[1] + (0.5 * object_height)
else:
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('예외사진 3분할 프레임')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/oversize_btobject_divison3_frame.jpg')
def oversize_btobject_center_frame(width, height, x, y, z, k, a, b, c, d):
x_min, x_max, y_min, y_max = a, b, c, d
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
if width > height : #원본사진 가로형----------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 세로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 * object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 가로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < (width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > (width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 * object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif height > width : #원본사진이 세로형--------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 세로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max :
frame_ymax = tar_point[1] + (0.5 * object_height)
else :
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 가로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max:
frame_ymax = tar_point[1] + (0.5 * object_height)
else:
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): #세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
frame_ymin = y_min
if (0.90 * y_max) <= obeject_y_max <= y_max:
frame_ymax = tar_point[1] + (0.5 * object_height)
else:
frame_ymax = tar_point[1] + (0.55 + object_height)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('예외사진 3분할 프레임')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/oversize_btobject_center_frame.jpg')
def oversize_topobject_Divison3_frame(width, height, x, y, z, k, a, b, c, d):
x_min, x_max, y_min, y_max = a, b, c, d
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
if width > height: # 원본사진 가로형----------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 세로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min :
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 가로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif height > width: # 원본사진이 세로형--------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 세로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (2 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (2 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 가로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('예외사진 3분할 프레임')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/oversize_topobject_divison3_frame.jpg')
def oversize_topobject_center_frame(width, height, x, y, z, k, a, b, c, d):
x_min, x_max, y_min, y_max = a, b, c, d
object_width, object_height = z, k
tar_point = [x, y]
bar_1, bar_2 = 0.0, 0.0
if width > height: # 원본사진 가로형----------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 세로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 가로형입니다')
print('피사체가 가로형입니다')
for i in range(70000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif height > width: # 원본사진이 세로형--------------------------------------------------------------
if object_height > object_width: # 피사체 : 세로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 세로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
elif object_height < object_width: # 피사체 : 가로 직사각형
print('원본사진이 세로형입니다')
print('피사체가 가로형입니다')
for i in range(10000):
bar_1 = bar_1 + 0.1
if tar_point[0] < round(width / 2): # 세로 중심축 왼쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2): # 세로 중심축 오른쪽
frame_xmin = tar_point[0] - (1 * bar_1)
frame_xmax = tar_point[0] + (1 * bar_1)
if (0.1 * y_min) <= obeject_y_min <= y_min:
frame_ymin = tar_point[1] - (0.5 * object_height)
else:
frame_ymin = tar_point[1] - (0.55 * object_height)
frame_ymax = y_max
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
if frame[0] <= 0 or frame[1] >= width:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('예외사진 3분할 프레임')
print(area)
cropped_image = img.crop(area)
# output = cropped_image.resize((640, 640))
cropped_image.save('resultimage/oversize_topobject_center_frame.jpg')
# -------------------------------------------------------------------------------------------------------------------run
if object_width >= (0.4 * full_width) or object_height >= (0.4 * full_height): #원본사진에 비해 피사체의 크기가 작은경우
if tar_point[1] > (y_max / 2) : # 피사체가 아래에있는 경우
print('피사체가 사진의 아래쪽에 배치되어있습니다.')
oversize_btobject_Divison3_frame(full_width, full_height, tar_point[0], tar_point[1], \
object_width, object_height, x_min, x_max, y_min, y_max)
oversize_btobject_center_frame(full_width, full_height, tar_point[0], tar_point[1], \
object_width, object_height, x_min, x_max, y_min, y_max)
print('입력한 사진에 대한 적절한 크롭을 완료 및 제시하였다. 사용자는 사진을 선택하시오.')
elif tar_point[1] < (y_max / 2) : #피사체가 위에 있는 경우
print('피사체가 사진의 위쪽에 배치되어있습니다.')
oversize_topobject_Divison3_frame(full_width, full_height, tar_point[0], tar_point[1], \
object_width, object_height, x_min, x_max, y_min, y_max)
oversize_topobject_center_frame(full_width, full_height, tar_point[0], tar_point[1], \
object_width, object_height, x_min, x_max, y_min, y_max)
print('입력한 사진에 대한 적절한 크롭을 완료 및 제시하였다. 사용자는 사진을 선택하시오.')
else: #원본사진에 비해 피사체의 크기가 작은 경우
D3_rectangle43_frame(full_width, full_height, tar_point[0], tar_point[1], object_width, object_height)
D3_rectangle169_frame(full_width, full_height, tar_point[0], tar_point[1], object_width, object_height)
center_rectangle43_frame(full_width, full_height, tar_point[0], tar_point[1], object_width, object_height)
center_rectangle169_frame(full_width, full_height, tar_point[0], tar_point[1], object_width, object_height)
print('입력한 사진에 대한 적절한 크롭을 완료 및 제시하였다. 사용자는 사진을 선택하시오')
#-----------------------------------------------------------------------------------------------------------------------
"""
def D3_square_frame (width, height, x, y, z, k) :
object_width, object_height = z, k
tar_point = [x, y]
bar = 10
for i in range(738):
bar = bar + 1
if tar_point[0] < round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (1 * bar)
frame_xmax = tar_point[0] + (2 * bar)
frame_ymin = tar_point[1] - (1 * bar)
frame_ymax = tar_point[1] + (2 * bar)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] <= round(height / 2):
frame_xmin = tar_point[0] - (2 * bar)
frame_xmax = tar_point[0] + (1 * bar)
frame_ymin = tar_point[1] - (1 * bar)
frame_ymax = tar_point[1] + (2 * bar)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] <= round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (1 * bar)
frame_xmax = tar_point[0] + (2 * bar)
frame_ymin = tar_point[1] - (2 * bar)
frame_ymax = tar_point[1] + (1 * bar)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
elif tar_point[0] > round(width / 2) and tar_point[1] > round(height / 2):
frame_xmin = tar_point[0] - (2 * bar)
frame_xmax = tar_point[0] + (1 * bar)
frame_ymin = tar_point[1] - (2 * bar)
frame_ymax = tar_point[1] + (1 * bar)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio >= 0.09 and pix_ratio <= 0.13:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print('640x640 정사각형 3분할 프레임')
print(area)
cropped_image = img.crop(area)
output = cropped_image.resize((640, 640))
output.save('resultimage/square_frame.jpg')
"""
"""
def center_square_frame (width, height, x, y, z, k) :
object_width, object_height = z, k
tar_point = [x, y]
bar = 10
for i in range(738) :
bar = bar + 1
frame_xmin = tar_point[0] - (1 * bar)
frame_xmax = tar_point[0] + (1 * bar)
frame_ymin = tar_point[1] - (1 * bar)
frame_ymax = tar_point[1] + (1 * bar)
frame = [frame_xmin, frame_xmax, frame_ymin, frame_ymax]
pix_ratio = (object_height * object_width) / ((frame_xmax - frame_xmin) * (frame_ymax - frame_ymin))
if pix_ratio >= 0.09 and pix_ratio <= 0.13:
break
area = (frame_xmin, frame_ymin, frame_xmax, frame_ymax)
print(' 640x640 정사각형 center 프레임')
print(area)
cropped_image = img.crop(area)
output = cropped_image.resize((640, 640))
output.save('resultimage/center_square_frame.jpg')
"""
| 37.748603
| 120
| 0.502097
| 5,351
| 40,542
| 3.516352
| 0.034947
| 0.116071
| 0.069834
| 0.037202
| 0.939785
| 0.933567
| 0.93192
| 0.928837
| 0.926499
| 0.926499
| 0
| 0.061458
| 0.371097
| 40,542
| 1,074
| 121
| 37.748603
| 0.676511
| 0.063169
| 0
| 0.898529
| 0
| 0
| 0.047184
| 0.018919
| 0
| 0
| 0
| 0
| 0
| 1
| 0.011765
| false
| 0
| 0.002941
| 0
| 0.014706
| 0.107353
| 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
|
2fe0cc59cda7a9360d8ddd6092709da1b5857054
| 9,932
|
py
|
Python
|
src/genie/libs/parser/iosxr/tests/ShowIsisDatabaseDetail/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 204
|
2018-06-27T00:55:27.000Z
|
2022-03-06T21:12:18.000Z
|
src/genie/libs/parser/iosxr/tests/ShowIsisDatabaseDetail/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 468
|
2018-06-19T00:33:18.000Z
|
2022-03-31T23:23:35.000Z
|
src/genie/libs/parser/iosxr/tests/ShowIsisDatabaseDetail/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 309
|
2019-01-16T20:21:07.000Z
|
2022-03-30T12:56:41.000Z
|
expected_output = {
"instance": {
"isp": {
"level": {
1: {
"lspid": {
"router-5.00-00": {
"lsp": {
"seq_num": "0x00000003",
"checksum": "0x8074460",
"local_router": False,
"holdtime": 457,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"area_address": "49",
"nlpid": ["0xcc"],
"hostname": "router-5",
"ip_address": "172.16.186.5",
"ip_neighbor": {
"172.16.115.0/24": {
"ip_prefix": "172.16.115.0",
"prefix_length": "24",
"metric": 0,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
},
"is_neighbor": {
"router-11.00": {
"metric": 10},
"router-11.01": {
"metric": 10},
},
},
"router-11.00-00": {
"lsp": {
"seq_num": "0x0000000b",
"checksum": "0x8074460",
"local_router": True,
"holdtime": 1161,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"area_address": "49",
"nlpid": ["0xcc"],
"hostname": "router-11",
"ip_address": "172.16.196.11",
"ip_neighbor": {
"172.16.76.0/24": {
"ip_prefix": "172.16.76.0",
"prefix_length": "24",
"metric": 0,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
},
"is_neighbor": {
"router-11.01": {
"metric": 10},
"router-5.00": {
"metric": 10},
},
},
"router-11.01-00": {
"lsp": {
"seq_num": "0x00000001",
"checksum": "0x80770ec",
"local_router": True,
"holdtime": 457,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"is_neighbor": {
"router-11.00": {
"metric": 0},
"router-5.00": {
"metric": 0},
},
},
},
"total_lsp_count": 3,
"local_lsp_count": 2,
},
2: {
"lspid": {
"router-5.00-00": {
"lsp": {
"seq_num": "0x00000005",
"checksum": "0x807997c",
"local_router": False,
"holdtime": 457,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"area_address": "49",
"nlpid": ["0xcc"],
"hostname": "router-5",
"ip_address": "172.16.166.5",
"ip_neighbor": {
"172.16.115.0/24": {
"ip_prefix": "172.16.115.0",
"prefix_length": "24",
"metric": 0,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.94.0/24": {
"ip_prefix": "172.16.94.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.21.0/24": {
"ip_prefix": "172.16.21.0",
"prefix_length": "24",
"metric": 10,
},
},
"is_neighbor": {
"router-11.00": {
"metric": 10},
"router-11.01": {
"metric": 10},
},
},
"router-11.00-00": {
"lsp": {
"seq_num": "0x0000000d",
"checksum": "0x807997c",
"local_router": True,
"holdtime": 1184,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"area_address": "49",
"nlpid": ["0xcc"],
"hostname": "router-11",
"ip_address": "172.28.111.111",
"ip_neighbor": {
"172.16.21.0/24": {
"ip_prefix": "172.16.21.0",
"prefix_length": "24",
"metric": 0,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.166.0/24": {
"ip_prefix": "172.16.166.0",
"prefix_length": "24",
"metric": 10,
},
"172.16.115.0/24": {
"ip_prefix": "172.16.115.0",
"prefix_length": "24",
"metric": 10,
},
},
"is_neighbor": {
"router-11.01": {
"metric": 10},
"router-5.00": {
"metric": 10},
},
},
"router-gsr11.01-00": {
"lsp": {
"seq_num": "0x00000001",
"checksum": "0x80770ec",
"local_router": True,
"holdtime": 457,
"attach_bit": 0,
"p_bit": 0,
"overload_bit": 0,
},
"is_neighbor": {
"router-11.00": {
"metric": 0},
"router-5.00": {
"metric": 0},
},
},
},
"total_lsp_count": 3,
"local_lsp_count": 2,
},
}
}
}
}
| 45.351598
| 64
| 0.20288
| 529
| 9,932
| 3.648393
| 0.124764
| 0.080311
| 0.062176
| 0.079793
| 0.868912
| 0.868912
| 0.851295
| 0.851295
| 0.813472
| 0.813472
| 0
| 0.201043
| 0.690999
| 9,932
| 218
| 65
| 45.559633
| 0.427827
| 0
| 0
| 0.694444
| 0
| 0
| 0.205639
| 0
| 0
| 0
| 0.013092
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 9
|
ff544bb5ee8ad49f6875a9ecb40064c870dd539e
| 133
|
py
|
Python
|
proxssi/groups/__init__.py
|
tristandeleu/pytorch-structured-sparsity
|
d414838a7236eb776d160eeea49afb13d329b627
|
[
"MIT"
] | 8
|
2021-02-10T07:05:45.000Z
|
2021-09-13T13:49:16.000Z
|
proxssi/groups/__init__.py
|
tristandeleu/pytorch-structured-sparsity
|
d414838a7236eb776d160eeea49afb13d329b627
|
[
"MIT"
] | 1
|
2021-04-08T06:36:52.000Z
|
2021-04-08T06:36:52.000Z
|
proxssi/groups/__init__.py
|
tristandeleu/pytorch-structured-sparsity
|
d414838a7236eb776d160eeea49afb13d329b627
|
[
"MIT"
] | null | null | null |
from proxssi.groups.bert import bert_groups
from proxssi.groups.vgg import vgg_groups
from proxssi.groups.resnet import resnet_groups
| 44.333333
| 47
| 0.87218
| 21
| 133
| 5.380952
| 0.333333
| 0.292035
| 0.451327
| 0.40708
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082707
| 133
| 3
| 47
| 44.333333
| 0.92623
| 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
|
448a0cd26641538cdd9e321d487c8c268a669710
| 161,507
|
py
|
Python
|
build/source/pcraster_python/operations.py
|
openearth/hydro-model-builder-generator-wflow
|
6f689859d0a9a307324db3dbe3f03c51884a42a8
|
[
"MIT"
] | null | null | null |
build/source/pcraster_python/operations.py
|
openearth/hydro-model-builder-generator-wflow
|
6f689859d0a9a307324db3dbe3f03c51884a42a8
|
[
"MIT"
] | 2
|
2018-07-05T14:36:18.000Z
|
2020-03-19T21:16:37.000Z
|
build/source/pcraster_python/operations.py
|
openearth/hydro-model-generator-wflow
|
6f689859d0a9a307324db3dbe3f03c51884a42a8
|
[
"MIT"
] | null | null | null |
# Don't edit: generated by OperationsToWrappers.xsl
import pcraster._pcraster as _pcraster
def ifthen(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_IFTHEN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ifthen: %s" % (str(exception)))
def ifthenelse(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_IFTHENELSE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ifthenelse: %s" % (str(exception)))
def pcrne(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_NE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrne: %s" % (str(exception)))
def pcreq(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_EQ)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcreq: %s" % (str(exception)))
def pcrgt(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_GT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrgt: %s" % (str(exception)))
def pcrge(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_GE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrge: %s" % (str(exception)))
def pcrlt(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrlt: %s" % (str(exception)))
def pcrle(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrle: %s" % (str(exception)))
def min(arg1, *arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MIN)
results = []
for i in range(len(arg2)):
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 2)
arg1 = _pcraster._rte().releasePopField()
results.append(arg1)
return results[0]
except RuntimeError as exception:
raise RuntimeError("min: %s" % (str(exception)))
def max(arg1, *arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAX)
results = []
for i in range(len(arg2)):
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 2)
arg1 = _pcraster._rte().releasePopField()
results.append(arg1)
return results[0]
except RuntimeError as exception:
raise RuntimeError("max: %s" % (str(exception)))
def cover(arg1, *arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_COVER)
results = []
for i in range(len(arg2)):
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 2)
arg1 = _pcraster._rte().releasePopField()
results.append(arg1)
return results[0]
except RuntimeError as exception:
raise RuntimeError("cover: %s" % (str(exception)))
def timeinput(arg1):
try:
arg1 = _pcraster.DataStorageId(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUT)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinput: %s" % (str(exception)))
def timeinputsparse(arg1):
try:
arg1 = _pcraster.DataStorageId(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTSPARSE)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputsparse: %s" % (str(exception)))
def timeinputmodulo(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTMODULO)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputmodulo: %s" % (str(exception)))
def lookupmapstack(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPMAPSTACK)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupmapstack: %s" % (str(exception)))
def spreadmax(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREADMAX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spreadmax: %s" % (str(exception)))
def spreadmaxzone(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREADMAXZONE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spreadmaxzone: %s" % (str(exception)))
def spread(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREAD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spread: %s" % (str(exception)))
def spreadzone(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREADZONE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spreadzone: %s" % (str(exception)))
def spreadldd(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREADLDD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spreadldd: %s" % (str(exception)))
def spreadlddzone(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPREADLDDZONE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spreadlddzone: %s" % (str(exception)))
def dynamicwaveq(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
if isinstance(arg9, str):
arg9 = _pcraster.readmap(arg9)
elif isinstance(arg9, int) or isinstance(arg9, float):
arg9 = _pcraster.newNonSpatialField(arg9)
if isinstance(arg10, str):
arg10 = _pcraster.readmap(arg10)
elif isinstance(arg10, int) or isinstance(arg10, float):
arg10 = _pcraster.newNonSpatialField(arg10)
if isinstance(arg11, str):
arg11 = _pcraster.readmap(arg11)
elif isinstance(arg11, int) or isinstance(arg11, float):
arg11 = _pcraster.newNonSpatialField(arg11)
if isinstance(arg12, str):
arg12 = _pcraster.readmap(arg12)
elif isinstance(arg12, int) or isinstance(arg12, float):
arg12 = _pcraster.newNonSpatialField(arg12)
if isinstance(arg13, str):
arg13 = _pcraster.readmap(arg13)
elif isinstance(arg13, int) or isinstance(arg13, float):
arg13 = _pcraster.newNonSpatialField(arg13)
if isinstance(arg14, str):
arg14 = _pcraster.readmap(arg14)
elif isinstance(arg14, int) or isinstance(arg14, float):
arg14 = _pcraster.newNonSpatialField(arg14)
if isinstance(arg15, str):
arg15 = _pcraster.readmap(arg15)
elif isinstance(arg15, int) or isinstance(arg15, float):
arg15 = _pcraster.newNonSpatialField(arg15)
if isinstance(arg16, str):
arg16 = _pcraster.readmap(arg16)
elif isinstance(arg16, int) or isinstance(arg16, float):
arg16 = _pcraster.newNonSpatialField(arg16)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DYNAMICWAVEQ)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().pushField(arg9)
_pcraster._rte().pushField(arg10)
_pcraster._rte().pushField(arg11)
_pcraster._rte().pushField(arg12)
_pcraster._rte().pushField(arg13)
_pcraster._rte().pushField(arg14)
_pcraster._rte().pushField(arg15)
_pcraster._rte().pushField(arg16)
_pcraster._rte().checkAndExec(operator, 16)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("dynamicwaveq: %s" % (str(exception)))
def dynamicwaveh(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
if isinstance(arg9, str):
arg9 = _pcraster.readmap(arg9)
elif isinstance(arg9, int) or isinstance(arg9, float):
arg9 = _pcraster.newNonSpatialField(arg9)
if isinstance(arg10, str):
arg10 = _pcraster.readmap(arg10)
elif isinstance(arg10, int) or isinstance(arg10, float):
arg10 = _pcraster.newNonSpatialField(arg10)
if isinstance(arg11, str):
arg11 = _pcraster.readmap(arg11)
elif isinstance(arg11, int) or isinstance(arg11, float):
arg11 = _pcraster.newNonSpatialField(arg11)
if isinstance(arg12, str):
arg12 = _pcraster.readmap(arg12)
elif isinstance(arg12, int) or isinstance(arg12, float):
arg12 = _pcraster.newNonSpatialField(arg12)
if isinstance(arg13, str):
arg13 = _pcraster.readmap(arg13)
elif isinstance(arg13, int) or isinstance(arg13, float):
arg13 = _pcraster.newNonSpatialField(arg13)
if isinstance(arg14, str):
arg14 = _pcraster.readmap(arg14)
elif isinstance(arg14, int) or isinstance(arg14, float):
arg14 = _pcraster.newNonSpatialField(arg14)
if isinstance(arg15, str):
arg15 = _pcraster.readmap(arg15)
elif isinstance(arg15, int) or isinstance(arg15, float):
arg15 = _pcraster.newNonSpatialField(arg15)
if isinstance(arg16, str):
arg16 = _pcraster.readmap(arg16)
elif isinstance(arg16, int) or isinstance(arg16, float):
arg16 = _pcraster.newNonSpatialField(arg16)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DYNAMICWAVEH)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().pushField(arg9)
_pcraster._rte().pushField(arg10)
_pcraster._rte().pushField(arg11)
_pcraster._rte().pushField(arg12)
_pcraster._rte().pushField(arg13)
_pcraster._rte().pushField(arg14)
_pcraster._rte().pushField(arg15)
_pcraster._rte().pushField(arg16)
_pcraster._rte().checkAndExec(operator, 16)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("dynamicwaveh: %s" % (str(exception)))
def order(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ORDER)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("order: %s" % (str(exception)))
def areaorder(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAORDER)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areaorder: %s" % (str(exception)))
def argorder(*arg1):
try:
arg1 = list(arg1)
for i in range(len(arg1)):
if isinstance(arg1[i], str):
arg1[i] = _pcraster.readmap(arg1[i])
elif isinstance(arg1[i], int) or isinstance(arg1[i], float):
arg1[i] = _pcraster.newNonSpatialField(arg1[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDER)
results = []
for i in range(len(arg1)):
_pcraster._rte().pushField(arg1[i])
_pcraster._rte().checkAndExec(operator, len(arg1))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorder: %s" % (str(exception)))
def argorderwithid(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDERWITHID)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorderwithid: %s" % (str(exception)))
def argorderarealimited(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDERAREALIMITED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorderarealimited: %s" % (str(exception)))
def argorderwithidarealimited(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDERWITHIDAREALIMITED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorderwithidarealimited: %s" % (str(exception)))
def argorderaddarealimited(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDERADDAREALIMITED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorderaddarealimited: %s" % (str(exception)))
def argorderwithidaddarealimited(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ARGORDERWITHIDADDAREALIMITED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("argorderwithidaddarealimited: %s" % (str(exception)))
def windowminimum(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWMINIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowminimum: %s" % (str(exception)))
def brenner(arg1, arg2, arg3, arg4, arg5, arg6):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_BRENNER)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().checkAndExec(operator, 6)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("brenner: %s" % (str(exception)))
def windowmaximum(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWMAXIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowmaximum: %s" % (str(exception)))
def windowdiversity(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWDIVERSITY)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowdiversity: %s" % (str(exception)))
def areadiversity(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREADIVERSITY)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areadiversity: %s" % (str(exception)))
def areamajority(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAMAJORITY)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areamajority: %s" % (str(exception)))
def windowmajority(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWMAJORITY)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowmajority: %s" % (str(exception)))
def pcrmul(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MUL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrmul: %s" % (str(exception)))
def pcrfdiv(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_FDIV)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrfdiv: %s" % (str(exception)))
def pcrpow(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_POW)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrpow: %s" % (str(exception)))
def pcrmod(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MOD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrmod: %s" % (str(exception)))
def pcridiv(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_IDIV)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcridiv: %s" % (str(exception)))
def pcruadd(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_UADD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcruadd: %s" % (str(exception)))
def pcrumin(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_UMIN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrumin: %s" % (str(exception)))
def pcrbadd(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_BADD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrbadd: %s" % (str(exception)))
def pcrbmin(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_BMIN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrbmin: %s" % (str(exception)))
def timeinputscalar(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTSCALAR)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputscalar: %s" % (str(exception)))
def timeinputdirectional(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTDIRECTIONAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputdirectional: %s" % (str(exception)))
def timeinputboolean(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTBOOLEAN)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputboolean: %s" % (str(exception)))
def timeinputldd(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTLDD)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputldd: %s" % (str(exception)))
def timeinputnominal(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTNOMINAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputnominal: %s" % (str(exception)))
def timeinputordinal(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMEINPUTORDINAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeinputordinal: %s" % (str(exception)))
def lookupnominal(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPNOMINAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupnominal: %s" % (str(exception)))
def lookupboolean(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPBOOLEAN)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupboolean: %s" % (str(exception)))
def lookupordinal(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPORDINAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupordinal: %s" % (str(exception)))
def lookupscalar(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPSCALAR)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupscalar: %s" % (str(exception)))
def lookuplinear(arg1, arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPLINEAR)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookuplinear: %s" % (str(exception)))
def lookupdirectional(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPDIRECTIONAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupdirectional: %s" % (str(exception)))
def lookupldd(arg1, *arg2):
try:
arg1 = _pcraster.DataStorageId(arg1)
arg2 = list(arg2)
for i in range(len(arg2)):
if isinstance(arg2[i], str):
arg2[i] = _pcraster.readmap(arg2[i])
elif isinstance(arg2[i], int) or isinstance(arg2[i], float):
arg2[i] = _pcraster.newNonSpatialField(arg2[i])
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPLDD)
results = []
_pcraster._rte().pushDataStorageId(arg1)
for i in range(len(arg2)):
_pcraster._rte().pushField(arg2[i])
_pcraster._rte().checkAndExec(operator, 1 + len(arg2))
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupldd: %s" % (str(exception)))
def indexnominal(arg1):
raise RuntimeError("The indexnominal operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indexboolean(arg1):
raise RuntimeError("The indexboolean operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indexordinal(arg1):
raise RuntimeError("The indexordinal operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indexscalar(arg1):
raise RuntimeError("The indexscalar operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indexdirectional(arg1):
raise RuntimeError("The indexdirectional operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indexldd(arg1):
raise RuntimeError("The indexldd operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def indextable(arg1):
raise RuntimeError("The indextable operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def index(arg1):
raise RuntimeError("The index operation is not implemented. Only operations with map, table or timeseries arguments are currenly supported")
def ldd(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDD)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ldd: %s" % (str(exception)))
def directional(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DIRECTIONAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("directional: %s" % (str(exception)))
def scalar(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SCALAR)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("scalar: %s" % (str(exception)))
def boolean(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_BOOLEAN_)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("boolean: %s" % (str(exception)))
def nominal(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_NOMINAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("nominal: %s" % (str(exception)))
def ordinal(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ORDINAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ordinal: %s" % (str(exception)))
def pcrand(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AND_)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrand: %s" % (str(exception)))
def pcror(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_OR_)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcror: %s" % (str(exception)))
def pcrxor(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_XOR_)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrxor: %s" % (str(exception)))
def pcrnot(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_NOT_)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pcrnot: %s" % (str(exception)))
def sin(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SIN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("sin: %s" % (str(exception)))
def cos(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_COS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("cos: %s" % (str(exception)))
def tan(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TAN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("tan: %s" % (str(exception)))
def asin(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ASIN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("asin: %s" % (str(exception)))
def acos(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACOS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("acos: %s" % (str(exception)))
def atan(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ATAN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("atan: %s" % (str(exception)))
def abs(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ABS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("abs: %s" % (str(exception)))
def exp(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_EXP)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("exp: %s" % (str(exception)))
def fac(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_FAC)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("fac: %s" % (str(exception)))
def rounddown(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ROUNDDOWN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("rounddown: %s" % (str(exception)))
def ln(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ln: %s" % (str(exception)))
def log10(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOG10)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("log10: %s" % (str(exception)))
def roundup(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ROUNDUP)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("roundup: %s" % (str(exception)))
def roundoff(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ROUNDOFF)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("roundoff: %s" % (str(exception)))
def sqrt(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SQRT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("sqrt: %s" % (str(exception)))
def sqr(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SQR)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("sqr: %s" % (str(exception)))
def normal(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_NORMAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("normal: %s" % (str(exception)))
def uniform(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_UNIFORM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("uniform: %s" % (str(exception)))
def xcoordinate(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_XCOORDINATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("xcoordinate: %s" % (str(exception)))
def ycoordinate(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_YCOORDINATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ycoordinate: %s" % (str(exception)))
def uniqueid(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_UNIQUEID)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("uniqueid: %s" % (str(exception)))
def move(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MOVE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("move: %s" % (str(exception)))
def shift(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SHIFT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("shift: %s" % (str(exception)))
def shift0(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SHIFT0)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("shift0: %s" % (str(exception)))
def celllength():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_CELLLENGTH)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("celllength: %s" % (str(exception)))
def cellarea():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_CELLAREA)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("cellarea: %s" % (str(exception)))
def time():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIME)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("time: %s" % (str(exception)))
def timeslice():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TIMESLICE)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("timeslice: %s" % (str(exception)))
def mapnormal():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPNORMAL)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapnormal: %s" % (str(exception)))
def mapuniform():
try:
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPUNIFORM)
results = []
_pcraster._rte().checkAndExec(operator, 0)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapuniform: %s" % (str(exception)))
def succ(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SUCC)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("succ: %s" % (str(exception)))
def pred(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_PRED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pred: %s" % (str(exception)))
def pit(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_PIT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("pit: %s" % (str(exception)))
def nodirection(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_NODIRECTION)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("nodirection: %s" % (str(exception)))
def mapminimum(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPMINIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapminimum: %s" % (str(exception)))
def mapmaximum(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPMAXIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapmaximum: %s" % (str(exception)))
def defined(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DEFINED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("defined: %s" % (str(exception)))
def maparea(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPAREA)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("maparea: %s" % (str(exception)))
def spatial(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SPATIAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("spatial: %s" % (str(exception)))
def accustate(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accustate: %s" % (str(exception)))
def accuflux(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accuflux: %s" % (str(exception)))
def muskingum(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
if isinstance(arg9, str):
arg9 = _pcraster.readmap(arg9)
elif isinstance(arg9, int) or isinstance(arg9, float):
arg9 = _pcraster.newNonSpatialField(arg9)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MUSKINGUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().pushField(arg9)
_pcraster._rte().checkAndExec(operator, 9)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("muskingum: %s" % (str(exception)))
def dynwavestate(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
if isinstance(arg9, str):
arg9 = _pcraster.readmap(arg9)
elif isinstance(arg9, int) or isinstance(arg9, float):
arg9 = _pcraster.newNonSpatialField(arg9)
if isinstance(arg10, str):
arg10 = _pcraster.readmap(arg10)
elif isinstance(arg10, int) or isinstance(arg10, float):
arg10 = _pcraster.newNonSpatialField(arg10)
if isinstance(arg11, str):
arg11 = _pcraster.readmap(arg11)
elif isinstance(arg11, int) or isinstance(arg11, float):
arg11 = _pcraster.newNonSpatialField(arg11)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DYNWAVESTATE)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().pushField(arg9)
_pcraster._rte().pushField(arg10)
_pcraster._rte().pushField(arg11)
_pcraster._rte().checkAndExec(operator, 11)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("dynwavestate: %s" % (str(exception)))
def dynwaveflux(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
if isinstance(arg9, str):
arg9 = _pcraster.readmap(arg9)
elif isinstance(arg9, int) or isinstance(arg9, float):
arg9 = _pcraster.newNonSpatialField(arg9)
if isinstance(arg10, str):
arg10 = _pcraster.readmap(arg10)
elif isinstance(arg10, int) or isinstance(arg10, float):
arg10 = _pcraster.newNonSpatialField(arg10)
if isinstance(arg11, str):
arg11 = _pcraster.readmap(arg11)
elif isinstance(arg11, int) or isinstance(arg11, float):
arg11 = _pcraster.newNonSpatialField(arg11)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DYNWAVEFLUX)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().pushField(arg9)
_pcraster._rte().pushField(arg10)
_pcraster._rte().pushField(arg11)
_pcraster._rte().checkAndExec(operator, 11)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("dynwaveflux: %s" % (str(exception)))
def lookupstate(arg1, arg2, arg3, arg4, arg5):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPSTATE)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookupstate: %s" % (str(exception)))
def lookuppotential(arg1, arg2, arg3, arg4, arg5):
try:
arg1 = _pcraster.DataStorageId(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LOOKUPPOTENTIAL)
results = []
_pcraster._rte().pushDataStorageId(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lookuppotential: %s" % (str(exception)))
def accucapacitystate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUCAPACITYSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accucapacitystate: %s" % (str(exception)))
def accucapacityflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUCAPACITYFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accucapacityflux: %s" % (str(exception)))
def accuthresholdstate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTHRESHOLDSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accuthresholdstate: %s" % (str(exception)))
def accuthresholdflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTHRESHOLDFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accuthresholdflux: %s" % (str(exception)))
def accufractionstate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUFRACTIONSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accufractionstate: %s" % (str(exception)))
def accufractionflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUFRACTIONFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accufractionflux: %s" % (str(exception)))
def accutriggerstate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRIGGERSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutriggerstate: %s" % (str(exception)))
def accutriggerflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRIGGERFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutriggerflux: %s" % (str(exception)))
def accutraveltimestate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRAVELTIMESTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutraveltimestate: %s" % (str(exception)))
def accutraveltimeflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRAVELTIMEFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutraveltimeflux: %s" % (str(exception)))
def accutraveltimefractionremoved(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRAVELTIMEFRACTIONREMOVED)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutraveltimefractionremoved: %s" % (str(exception)))
def accutraveltimefractionstate(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRAVELTIMEFRACTIONSTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutraveltimefractionstate: %s" % (str(exception)))
def accutraveltimefractionflux(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ACCUTRAVELTIMEFRACTIONFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("accutraveltimefractionflux: %s" % (str(exception)))
def diffusestate(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DIFFUSESTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("diffusestate: %s" % (str(exception)))
def diffuseflux(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DIFFUSEFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("diffuseflux: %s" % (str(exception)))
def kinwavestate(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_KINWAVESTATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().checkAndExec(operator, 8)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("kinwavestate: %s" % (str(exception)))
def kinwaveflux(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_KINWAVEFLUX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().checkAndExec(operator, 8)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("kinwaveflux: %s" % (str(exception)))
def kinematic(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
if isinstance(arg8, str):
arg8 = _pcraster.readmap(arg8)
elif isinstance(arg8, int) or isinstance(arg8, float):
arg8 = _pcraster.newNonSpatialField(arg8)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_KINEMATIC)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().pushField(arg8)
_pcraster._rte().checkAndExec(operator, 8)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("kinematic: %s" % (str(exception)))
def timeoutput(arg1, arg2):
raise RuntimeError("The timeoutput operation is not implemented. Only operations with map results are currenly supported")
def maptotal(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPTOTAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("maptotal: %s" % (str(exception)))
def mapand(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPAND)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapand: %s" % (str(exception)))
def mapor(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MAPOR)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("mapor: %s" % (str(exception)))
def areaarea(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAAREA)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areaarea: %s" % (str(exception)))
def clump(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_CLUMP)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("clump: %s" % (str(exception)))
def drain(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DRAIN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("drain: %s" % (str(exception)))
def path(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_PATH)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("path: %s" % (str(exception)))
def aspect(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ASPECT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("aspect: %s" % (str(exception)))
def slope(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SLOPE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("slope: %s" % (str(exception)))
def window4total(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOW4TOTAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("window4total: %s" % (str(exception)))
def profcurv(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_PROFCURV)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("profcurv: %s" % (str(exception)))
def plancurv(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_PLANCURV)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("plancurv: %s" % (str(exception)))
def view(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_VIEW)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("view: %s" % (str(exception)))
def extentofview(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_EXTENTOFVIEW)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("extentofview: %s" % (str(exception)))
def inversedistance(arg1, arg2, arg3, arg4, arg5):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_INVERSEDISTANCE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("inversedistance: %s" % (str(exception)))
def catchment(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_CATCHMENT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("catchment: %s" % (str(exception)))
def subcatchment(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SUBCATCHMENT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("subcatchment: %s" % (str(exception)))
def windowaverage(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWAVERAGE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowaverage: %s" % (str(exception)))
def markwhilesumle(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MARKWHILESUMLE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("markwhilesumle: %s" % (str(exception)))
def markwhilesumge(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_MARKWHILESUMGE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("markwhilesumge: %s" % (str(exception)))
def ellipseaverage(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_ELLIPSEAVERAGE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ellipseaverage: %s" % (str(exception)))
def influencesimplegauss(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_INFLUENCESIMPLEGAUSS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("influencesimplegauss: %s" % (str(exception)))
def distributesimplegauss(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DISTRIBUTESIMPLEGAUSS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("distributesimplegauss: %s" % (str(exception)))
def ibngauss(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_IBNGAUSS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ibngauss: %s" % (str(exception)))
def horizontan(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_HORIZONTAN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("horizontan: %s" % (str(exception)))
def catchmenttotal(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_CATCHMENTTOTAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("catchmenttotal: %s" % (str(exception)))
def areamaximum(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAMAXIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areamaximum: %s" % (str(exception)))
def areaminimum(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAMINIMUM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areaminimum: %s" % (str(exception)))
def areaaverage(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAAVERAGE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areaaverage: %s" % (str(exception)))
def areatotal(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREATOTAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areatotal: %s" % (str(exception)))
def areauniform(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREAUNIFORM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areauniform: %s" % (str(exception)))
def areanormal(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_AREANORMAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("areanormal: %s" % (str(exception)))
def windowtotal(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWTOTAL)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowtotal: %s" % (str(exception)))
def windowhighpass(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_WINDOWHIGHPASS)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("windowhighpass: %s" % (str(exception)))
def ldddist(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDDIST)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("ldddist: %s" % (str(exception)))
def upstream(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_UPSTREAM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("upstream: %s" % (str(exception)))
def streamorder(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_STREAMORDER)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("streamorder: %s" % (str(exception)))
def transient(arg1, arg2, arg3, arg4, arg5, arg6, arg7):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
if isinstance(arg6, str):
arg6 = _pcraster.readmap(arg6)
elif isinstance(arg6, int) or isinstance(arg6, float):
arg6 = _pcraster.newNonSpatialField(arg6)
if isinstance(arg7, str):
arg7 = _pcraster.readmap(arg7)
elif isinstance(arg7, int) or isinstance(arg7, float):
arg7 = _pcraster.newNonSpatialField(arg7)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_TRANSIENT)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().pushField(arg6)
_pcraster._rte().pushField(arg7)
_pcraster._rte().checkAndExec(operator, 7)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("transient: %s" % (str(exception)))
def downstream(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DOWNSTREAM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("downstream: %s" % (str(exception)))
def downstreamdist(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DOWNSTREAMDIST)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("downstreamdist: %s" % (str(exception)))
def lddmask(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDMASK)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddmask: %s" % (str(exception)))
def lddrepair(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDREPAIR)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddrepair: %s" % (str(exception)))
def slopelength(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SLOPELENGTH)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("slopelength: %s" % (str(exception)))
def lddcreate(arg1, arg2, arg3, arg4, arg5):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDCREATE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddcreate: %s" % (str(exception)))
def lddcreatedem(arg1, arg2, arg3, arg4, arg5):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDCREATEDEM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddcreatedem: %s" % (str(exception)))
def lddcreatend(arg1, arg2, arg3, arg4, arg5):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDCREATEND)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddcreatend: %s" % (str(exception)))
def lddcreatenddem(arg1, arg2, arg3, arg4, arg5):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
if isinstance(arg5, str):
arg5 = _pcraster.readmap(arg5)
elif isinstance(arg5, int) or isinstance(arg5, float):
arg5 = _pcraster.newNonSpatialField(arg5)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LDDCREATENDDEM)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().pushField(arg5)
_pcraster._rte().checkAndExec(operator, 5)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lddcreatenddem: %s" % (str(exception)))
def riksfraction(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_RIKSFRACTION)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("riksfraction: %s" % (str(exception)))
def squarefraction(arg1, arg2, arg3):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_SQUAREFRACTION)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().checkAndExec(operator, 3)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("squarefraction: %s" % (str(exception)))
def gradx(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_GRADX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("gradx: %s" % (str(exception)))
def grady(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_GRADY)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("grady: %s" % (str(exception)))
def divergence(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DIVERGENCE)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("divergence: %s" % (str(exception)))
def diver(arg1, arg2, arg3, arg4):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
if isinstance(arg3, str):
arg3 = _pcraster.readmap(arg3)
elif isinstance(arg3, int) or isinstance(arg3, float):
arg3 = _pcraster.newNonSpatialField(arg3)
if isinstance(arg4, str):
arg4 = _pcraster.readmap(arg4)
elif isinstance(arg4, int) or isinstance(arg4, float):
arg4 = _pcraster.newNonSpatialField(arg4)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_DIVER)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().pushField(arg3)
_pcraster._rte().pushField(arg4)
_pcraster._rte().checkAndExec(operator, 4)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("diver: %s" % (str(exception)))
def lax(arg1, arg2):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
if isinstance(arg2, str):
arg2 = _pcraster.readmap(arg2)
elif isinstance(arg2, int) or isinstance(arg2, float):
arg2 = _pcraster.newNonSpatialField(arg2)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LAX)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().pushField(arg2)
_pcraster._rte().checkAndExec(operator, 2)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("lax: %s" % (str(exception)))
def laplacian(arg1):
try:
if isinstance(arg1, str):
arg1 = _pcraster.readmap(arg1)
elif isinstance(arg1, int) or isinstance(arg1, float):
arg1 = _pcraster.newNonSpatialField(arg1)
operator = _pcraster._major2op(_pcraster.MAJOR_CODE.OP_LAPLACIAN)
results = []
_pcraster._rte().pushField(arg1)
_pcraster._rte().checkAndExec(operator, 1)
results.append(_pcraster._rte().releasePopField())
return results[0]
except RuntimeError as exception:
raise RuntimeError("laplacian: %s" % (str(exception)))
| 40.753722
| 153
| 0.703344
| 18,086
| 161,507
| 6.087139
| 0.016809
| 0.08313
| 0.058996
| 0.054936
| 0.914962
| 0.914671
| 0.914026
| 0.9126
| 0.909276
| 0.908949
| 0
| 0.035882
| 0.173801
| 161,507
| 3,962
| 154
| 40.764008
| 0.789166
| 0.000303
| 0
| 0.849495
| 1
| 0
| 0.02309
| 0.001406
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05
| false
| 0.000758
| 0.000253
| 0
| 0.09798
| 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
|
9252721e0e34f6bb936b1a09190a426bca046739
| 56,732
|
py
|
Python
|
clu/phontools/features.py
|
clu-ling/clu-phontools
|
304510150c6f9a4b0e1372bc9275630b7f976aeb
|
[
"Apache-2.0"
] | null | null | null |
clu/phontools/features.py
|
clu-ling/clu-phontools
|
304510150c6f9a4b0e1372bc9275630b7f976aeb
|
[
"Apache-2.0"
] | 3
|
2021-06-15T23:32:30.000Z
|
2021-09-01T18:49:20.000Z
|
clu/phontools/features.py
|
clu-ling/clu-phontools
|
304510150c6f9a4b0e1372bc9275630b7f976aeb
|
[
"Apache-2.0"
] | 1
|
2021-06-18T05:48:29.000Z
|
2021-06-18T05:48:29.000Z
|
from __future__ import unicode_literals
class LanguageFeatures(object):
def __init__(
self, consonant_matrix, vowel_matrix, salience, C_skip, C_sub, C_exp, C_vwl
):
self.consonant_matrix = consonant_matrix
self.vowel_matrix = vowel_matrix
self.salience = salience
self.C_skip = C_skip
self.C_sub = C_sub
self.C_exp = C_exp
self.C_vwl = C_vwl
# combine both feature matrices
self.feature_matrix = consonant_matrix + vowel_matrix
# ensure features are valid
self.sanity_check()
def sanity_check(self):
# ensure C_* take values in an acceptable range
# ensure all feature values are accounted for in salience dict
pass
# class EnglishFeatures(LanguageFeatures):
# def __init__(self, C_skip, C_sub, C_exp, C_vwl):
# # Default values for maximum similarity scores (Kondrak 2002: 54)
# self.C_skip = 10 # Indels
# self.C_sub = 35 # Substitutions
# self.C_exp = 45 # Expansions/compressions
# self.C_vwl = 5 # Vowel/consonant relative weight (decreased from 10)
# === Constants ===
inf = float("inf")
# Default values for maximum similarity scores (Kondrak 2002: 54)
C_skip = 10 # Indels
C_sub = 35 # Substitutions
C_exp = 45 # Expansions/compressions
C_vwl = 5 # Vowel/consonant relative weight (decreased from 10)
consonants = [
"N",
"R",
"b",
"c",
"d",
"f",
"g",
"h",
"j",
"k",
"l",
"m",
"n",
"p",
"q",
"r",
"s",
"t",
"v",
"x",
"z",
"ç",
"ð",
"ħ",
"ŋ",
"ɖ",
"ɟ",
"ɢ",
"ɣ",
"ɦ",
"ɬ",
"ɮ",
"ɰ",
"ɱ",
"ɲ",
"ɳ",
"ɴ",
"ɸ",
"ɹ",
"ɻ",
"ɽ",
"ɾ",
"ʀ",
"ʁ",
"ʂ",
"ʃ",
"ʈ",
"ʋ",
"ʒ",
"ʔ",
"ʕ",
"ʙ",
"ʝ",
"β",
"θ",
"χ",
"ʐ",
"w",
"ɜ",
"ɡ",
"LB",
]
# consonants in the original aline (NLTK)
# consonants = [
# "B", "N", "R", "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n",
# "p", "q", "r", "s", "t", "v", "x", "z", "ç", "ð", "ħ", "ŋ", "ɖ", "ɟ",
# "ɢ", "ɣ", "ɦ", "ɬ", "ɮ", "ɰ", "ɱ", "ɲ", "ɳ", "ɴ", "ɸ", "ɹ", "ɻ", "ɽ",
# "ɾ", "ʀ", "ʁ", "ʂ", "ʃ", "ʈ", "ʋ","ʐ", "ʒ", "ʔ", "ʕ", "ʙ", "ʝ", "β",
# "θ", "χ", "ʐ", "w",
# ]
# Relevant features for comparing consonants and vowels
R_c = [
"aspirated",
"lateral",
"manner",
"nasal",
"place",
"retroflex",
"syllabic",
"voice",
]
# 'high' taken out of R_v because same as manner
R_v = [
"back",
"lateral",
"long",
"manner",
"nasal",
"place",
"retroflex",
"round",
"syllabic",
"voice",
]
# Flattened feature matrix (Kondrak 2002: 56)
similarity_matrix = {
# place
"bilabial": 1.0,
"labiodental": 0.95,
"dental": 0.9,
"alveolar": 0.85,
"retroflex": 0.8,
"palato-alveolar": 0.75,
"palatal": 0.7,
"velar": 0.6,
"uvular": 0.5,
"pharyngeal": 0.3,
"glottal": 0.1,
"labiovelar": 1.0,
"vowel": -1.0, # added 'vowel'
# manner
"stop": 1.0,
"affricate": 0.9,
"fricative": 0.85, # increased fricative from 0.8
"trill": 0.7,
"tap": 0.65,
"approximant": 0.6,
# high
#'high': 0.4, 'mid': 0.2,
"high": 1.0,
"mid": 0.5,
"low": 0.0,
"vowel2": 0.5, # added vowel
# back
"front": 1.0,
"central": 0.5,
"back": 0.0,
# binary features
"plus": 1.0,
"minus": 0.0,
# lexical boundary
"lexical": 0.0,
}
# Relative weights of phonetic features (Kondrak 2002: 55)
# TODO: convert to defaultdict with 0 as default value?
salience = {
"syllabic": 5,
"place": 40,
"manner": 50,
"voice": 5, # decreased from 10
"nasal": 20, # increased from 10
"retroflex": 10,
"lateral": 10,
"aspirated": 5,
"long": 0, # decreased from 1
"high": 3, # decreased from 5
"back": 2, # decreased from 5
"round": 2, # decreased from 5
"boundary": 0,
}
# (Kondrak 2002: 59-60)
feature_matrix = {
# Consonants
"tʃ": {
"place": "palato-alveolar",
"manner": "affricate",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"dʒ": {
"place": "palato-alveolar",
"manner": "affricate",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"p": {
"place": "bilabial",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"b": {
"place": "bilabial",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"t": {
"place": "alveolar",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"d": {
"place": "alveolar",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʈ": {
"place": "retroflex",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ɖ": {
"place": "retroflex",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"c": {
"place": "palatal",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɟ": {
"place": "palatal",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"k": {
"place": "velar",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"g": {
"place": "velar",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
# need to be verified
"ɡ": {
"place": "velar",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"q": {
"place": "uvular",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɢ": {
"place": "uvular",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʔ": {
"place": "glottal",
"manner": "stop",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"m": {
"place": "bilabial",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɱ": {
"place": "labiodental",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"n": {
"place": "alveolar",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɳ": {
"place": "retroflex",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ɲ": {
"place": "palatal",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ŋ": {
"place": "velar",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɴ": {
"place": "uvular",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"N": {
"place": "uvular",
"manner": "stop",
"syllabic": "minus",
"voice": "plus",
"nasal": "plus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʙ": {
"place": "bilabial",
"manner": "trill",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"r": {
"place": "alveolar",
"manner": "trill",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ʀ": {
"place": "uvular",
"manner": "trill",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"R": {
"place": "uvular",
"manner": "trill",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɾ": {
"place": "alveolar",
"manner": "tap",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɽ": {
"place": "retroflex",
"manner": "tap",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ɸ": {
"place": "bilabial",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"β": {
"place": "bilabial",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"f": {
"place": "labiodental",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"v": {
"place": "labiodental",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"θ": {
"place": "dental",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ð": {
"place": "dental",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"s": {
"place": "alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"z": {
"place": "alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʃ": {
"place": "palato-alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʒ": {
"place": "palato-alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʂ": {
"place": "retroflex",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ʐ": {
"place": "retroflex",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"ç": {
"place": "palatal",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʝ": {
"place": "palatal",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"x": {
"place": "velar",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɣ": {
"place": "velar",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"χ": {
"place": "uvular",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʁ": {
"place": "uvular",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ħ": {
"place": "pharyngeal",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ʕ": {
"place": "pharyngeal",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"h": {
"place": "glottal",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɦ": {
"place": "glottal",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɬ": {
"place": "alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "minus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "plus",
"aspirated": "minus",
},
"ɮ": {
"place": "alveolar",
"manner": "fricative",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "plus",
"aspirated": "minus",
},
"ʋ": {
"place": "labiodental",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɹ": {
"place": "alveolar",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɻ": {
"place": "retroflex",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "plus",
"lateral": "minus",
"aspirated": "minus",
},
"j": {
"place": "palatal",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"ɰ": {
"place": "velar",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
"l": {
"place": "alveolar",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "plus",
"aspirated": "minus",
},
"w": {
"place": "labiovelar",
"manner": "approximant",
"syllabic": "minus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"aspirated": "minus",
},
# Vowels w/ stress
# FIXME: correct features and values for stress
"ɑ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"ɑ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"ɑ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"ɑ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɪ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɪ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɪ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɪ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"i": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"i1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"i2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"i3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"y": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"y1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"y2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"y3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"e": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"e1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"e2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"e3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"E": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"E1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"E2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"E3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ø": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ø1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ø2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ø3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɛ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɛ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɛ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɛ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"œ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"œ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"œ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"œ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "front",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"æ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"æ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"æ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"æ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"a": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"a1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"a2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"a3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"A": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"A1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"A2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"A3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɨ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɨ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɨ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɨ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ʉ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʉ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʉ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʉ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "central",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ə": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ə1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ə2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ə3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "central",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"u": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"u1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"u2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"u3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"U": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"U1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"U2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"U3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"o": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"o1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"o2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"o3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"O": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"O1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"O2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"O3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɔ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"ɔ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"ɔ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
"ɔ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "plus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɒ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɒ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɒ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ɒ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "low",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"I": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"I1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"I2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
"I3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "front",
"round": "minus",
"long": "plus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ʌ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ʌ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ʌ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
"ʌ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "mid",
"back": "back",
"round": "minus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ʊ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʊ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʊ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ʊ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: correct features and values for stress
"ɜ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɜ1": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɜ2": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɜ3": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# Diphthongs
"aɪ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɑɪ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɑi": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɔɪ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"aʊ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
"ɑʊ": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
},
# FIXME: are these all needed?
"LB": {
"place": "vowel",
"manner": "vowel2",
"syllabic": "plus",
"voice": "plus",
"nasal": "minus",
"retroflex": "minus",
"lateral": "minus",
"high": "high",
"back": "back",
"round": "plus",
"long": "minus",
"aspirated": "minus",
"boundary": "lexical",
}
# 'LB': {
# 'boundary': 'lexical','aspirated': 'minus',
# }
}
| 24.172135
| 83
| 0.404481
| 4,451
| 56,732
| 5.143339
| 0.06785
| 0.10335
| 0.132792
| 0.178308
| 0.912462
| 0.910016
| 0.908706
| 0.893898
| 0.887695
| 0.871533
| 0
| 0.009274
| 0.374674
| 56,732
| 2,346
| 84
| 24.182438
| 0.636036
| 0.05177
| 0
| 0.788776
| 0
| 0
| 0.378335
| 0
| 0
| 0
| 0
| 0.000426
| 0
| 1
| 0.000884
| false
| 0.000442
| 0.000442
| 0
| 0.001768
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
|
92641b83c7dbdf74cccdb74e76a8a11a425f2936
| 2,589
|
py
|
Python
|
src/models/backbones/pytorch_backbone.py
|
dongzhuoyao/embedding-propagation
|
1f14947bbd8be8a9950e7c4093fbfed0536809b9
|
[
"Apache-2.0"
] | null | null | null |
src/models/backbones/pytorch_backbone.py
|
dongzhuoyao/embedding-propagation
|
1f14947bbd8be8a9950e7c4093fbfed0536809b9
|
[
"Apache-2.0"
] | null | null | null |
src/models/backbones/pytorch_backbone.py
|
dongzhuoyao/embedding-propagation
|
1f14947bbd8be8a9950e7c4093fbfed0536809b9
|
[
"Apache-2.0"
] | null | null | null |
import torchvision.models as models
import torch
class resnet50(torch.nn.Module):
def __init__(self, dropout):
super().__init__()
resnet50 = models.resnet50(pretrained=False)
modules = list(resnet50.children())[:-1]
self._resnet50 = torch.nn.Sequential(*modules)
self.output_size = 2048
def add_classifier(self, no, name="classifier", modalities=None):
setattr(self, name, torch.nn.Linear(self.output_size, no))
def forward(self, x, *args, **kwargs):
*dim, c, h, w = x.size()
x = x.view(-1, c, h, w)
x = self._resnet50(x)
return x.view(*dim, self.output_size)
class resnet101(torch.nn.Module):
def __init__(self, dropout):
super().__init__()
resnet = models.resnet101(pretrained=False)
modules = list(resnet.children())[:-1]
self._model = torch.nn.Sequential(*modules)
self.output_size = 2048
def add_classifier(self, no, name="classifier", modalities=None):
setattr(self, name, torch.nn.Linear(self.output_size, no))
def forward(self, x, *args, **kwargs):
*dim, c, h, w = x.size()
x = x.view(-1, c, h, w)
x = self._model(x)
return x.view(*dim, self.output_size)
class densenet121(torch.nn.Module):
def __init__(self, dropout):
super().__init__()
resnet = models.densenet121(pretrained=False)
modules = list(resnet.children())[:-1]
self._model = torch.nn.Sequential(*modules)
self.output_size = 1024
def add_classifier(self, no, name="classifier", modalities=None):
setattr(self, name, torch.nn.Linear(self.output_size, no))
def forward(self, x, *args, **kwargs):
*dim, c, h, w = x.size()
x = x.view(-1, c, h, w)
x = self._model(x)
x = torch.mean(x,dim=[2,3])
return x.view(*dim, self.output_size)
class wrn50_2(torch.nn.Module):
def __init__(self, dropout):
super().__init__()
resnet = models.wide_resnet50_2(pretrained=False)
modules = list(resnet.children())[:-1]
self._model = torch.nn.Sequential(*modules)
self.output_size = 2048
def add_classifier(self, no, name="classifier", modalities=None):
setattr(self, name, torch.nn.Linear(self.output_size, no))
def forward(self, x, *args, **kwargs):
*dim, c, h, w = x.size()
x = x.view(-1, c, h, w)
x = self._model(x)
x = torch.mean(x, dim=[2, 3])
return x.view(*dim, self.output_size)
| 34.52
| 73
| 0.590962
| 344
| 2,589
| 4.276163
| 0.151163
| 0.057104
| 0.114208
| 0.021754
| 0.861999
| 0.861999
| 0.861999
| 0.861999
| 0.8586
| 0.78586
| 0
| 0.030193
| 0.258015
| 2,589
| 74
| 74
| 34.986486
| 0.735554
| 0
| 0
| 0.766667
| 0
| 0
| 0.01545
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.033333
| 0
| 0.366667
| 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
|
a61c0d660bcaee719aa20a5c32047d90394e32e2
| 22,377
|
py
|
Python
|
carbondesign/tests/test_tooltip_html.py
|
dozymoe/django-carbondesign
|
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
|
[
"MIT"
] | null | null | null |
carbondesign/tests/test_tooltip_html.py
|
dozymoe/django-carbondesign
|
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
|
[
"MIT"
] | null | null | null |
carbondesign/tests/test_tooltip_html.py
|
dozymoe/django-carbondesign
|
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
|
[
"MIT"
] | null | null | null |
# pylint:disable=missing-module-docstring,missing-class-docstring,missing-function-docstring,line-too-long
from .base import compare_template, SimpleTestCase
class TooltipHtmlTest(SimpleTestCase):
maxDiff = None
def test_default(self):
template = """
{% load carbondesign %}
{% InteractiveTooltip id="example-ubxquesph4" label="Tooltip label" %}
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
{% Slot 'footer' %}
{% Link href="#" %}Learn More{% endLink %}
{% Button type="button" small=True %}Create{% endButton %}
{% endSlot %}
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 16 16">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
{% endSlot %}
{% endInteractiveTooltip %}
"""
expected = """
<div id="label-example-ubxquesph4" class="bx--tooltip__label">
Tooltip label
<button aria-expanded="false" aria-labelledby="label-example-ubxquesph4"
data-tooltip-trigger data-tooltip-target="#example-ubxquesph4"
class="bx--tooltip__trigger" aria-controls="example-ubxquesph4">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
</button>
</div>
<div id="example-ubxquesph4" aria-hidden="true" data-floating-menu-direction="bottom"
class="bx--tooltip">
<span class="bx--tooltip__caret"></span>
<div class="bx--tooltip__content" tabindex="-1" role="dialog"
aria-describedby="body-example-ubxquesph4" aria-labelledby="label-example-ubxquesph4">
<p id="body-example-ubxquesph4">
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
</p>
<div class="bx--tooltip__footer">
<a class="bx--link" href="#">Learn More</a>
<button class="bx--btn bx--btn--primary bx--btn--sm" type="button">
Create
</button>
</div>
</div>
<span tabindex="0"></span>
</div>
"""
rendered = compare_template(template, expected)
self.assertEqual(*rendered)
def test_richtext(self):
template = """
{% load carbondesign %}
{% InteractiveTooltip id="example-hb4qi35jz3c" label="Tooltip label" %}
{% Slot 'heading' %}
Heading within a Tooltip
{% endSlot %}
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 16 16">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
{% endSlot %}
{% endInteractiveTooltip %}
"""
expected = """
<div id="label-example-hb4qi35jz3c" class="bx--tooltip__label">
Tooltip label
<button aria-expanded="false" aria-labelledby="label-example-hb4qi35jz3c"
data-tooltip-trigger data-tooltip-target="#example-hb4qi35jz3c"
class="bx--tooltip__trigger" aria-controls="example-hb4qi35jz3c">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
</button>
</div>
<div id="example-hb4qi35jz3c" aria-hidden="true" data-floating-menu-direction="bottom"
class="bx--tooltip">
<span class="bx--tooltip__caret"></span>
<div class="bx--tooltip__content" tabindex="-1" role="dialog"
aria-describedby="body-example-hb4qi35jz3c" aria-labelledby="heading-example-hb4qi35jz3c">
<h4 id="heading-example-hb4qi35jz3c" class="bx--tooltip__heading">
Heading within a Tooltip
</h4>
<p id="body-example-hb4qi35jz3c">
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
</p>
</div>
<span tabindex="0"></span>
</div>
"""
rendered = compare_template(template, expected)
self.assertEqual(*rendered)
def test_nolabel(self):
template = """
{% load carbondesign %}
{% InteractiveTooltip mode="nolabel" id="example-dqozgv7kk49" label="Tooltip label" %}
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
{% Slot 'footer' %}
{% Link href="#" %}Learn More{% endLink %}
{% Button type="button" small=True %}Create{% endButton %}
{% endSlot %}
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 16 16">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
{% endSlot %}
{% endInteractiveTooltip %}
"""
expected = """
<div id="label-example-dqozgv7kk49" class="bx--tooltip__label">
Tooltip label
<div tabindex="0" aria-expanded="false" aria-labelledby="label-example-dqozgv7kk49"
data-tooltip-trigger data-tooltip-target="#example-dqozgv7kk49"
role="button" class="bx--tooltip__trigger" aria-controls="example-dqozgv7kk49">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"/>
<path d="M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"/>
</svg>
</div>
</div>
<div id="example-dqozgv7kk49" aria-hidden="true" data-floating-menu-direction="bottom"
class="bx--tooltip">
<span class="bx--tooltip__caret"></span>
<div class="bx--tooltip__content" tabindex="-1" role="dialog"
aria-describedby="body-example-dqozgv7kk49" aria-label="Tooltip label">
<p id="body-example-dqozgv7kk49">
This is some tooltip text. This box shows the maximum amount of text that
should appear inside. If more room is needed please use a modal instead.
</p>
<div class="bx--tooltip__footer">
<a class="bx--link" href="#">Learn More</a>
<button class="bx--btn bx--btn--primary bx--btn--sm" type="button">
Create
</button>
</div>
</div>
<span tabindex="0"></span>
</div>
"""
rendered = compare_template(template, expected)
self.assertEqual(*rendered)
def test_definition(self):
template = """
{% load carbondesign %}
{% DefinitionTooltip id="example-start" label="Definition Tooltip (start aligned)" position="bottom" align="start" %}
Brief description of the dotted, underlined word above.
{% endDefinitionTooltip %}
<br>
{% DefinitionTooltip id="example-center" label="Definition Tooltip (center aligned)" position="bottom" align="center" %}
Brief description of the dotted, underlined word above.
{% endDefinitionTooltip %}
<br>
{% DefinitionTooltip id="example-end" label="Definition Tooltip (end aligned)" position="bottom" align="end" %}
Brief description of the dotted, underlined word above.
{% endDefinitionTooltip %}
"""
expected = """
<div class="bx--tooltip--definition bx--tooltip--a11y" data-tooltip-definition>
<button aria-describedby="example-start"
class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--align-start bx--tooltip--bottom">
Definition Tooltip (start aligned)
</button>
<div class="bx--assistive-text" id="example-start" role="tooltip">
Brief description of the dotted, underlined word above.
</div>
</div>
<br>
<div class="bx--tooltip--definition bx--tooltip--a11y" data-tooltip-definition>
<button aria-describedby="example-center"
class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--align-center bx--tooltip--bottom">
Definition Tooltip (center aligned)
</button>
<div class="bx--assistive-text" id="example-center" role="tooltip">
Brief description of the dotted, underlined word above.
</div>
</div>
<br>
<div class="bx--tooltip--definition bx--tooltip--a11y" data-tooltip-definition>
<button aria-describedby="example-end"
class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--align-end bx--tooltip--bottom">
Definition Tooltip (end aligned)
</button>
<div class="bx--assistive-text" id="example-end" role="tooltip">
Brief description of the dotted, underlined word above.
</div>
</div>
"""
rendered = compare_template(template, expected)
self.assertEqual(*rendered)
def test_icon(self):
template = """
{% load carbondesign %}
<p>start</p>
<br>
{% IconTooltip mode="icon" position="left" align="start" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="top" align="start" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="bottom" align="start" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="right" align="start" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
<br>
<br>
<p>center</p>
<br>
{% IconTooltip mode="icon" position="left" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="top" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="bottom" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="right" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
<br>
<br>
<p>end</p>
<br>
{% IconTooltip mode="icon" position="left" align="end" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="top" align="end" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="bottom" align="end" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
{% IconTooltip mode="icon" position="right" align="end" %}
Filter
{% Slot 'icon' %}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
viewBox="0 0 32 32">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
{% endSlot %}
{% endIconTooltip %}
"""
expected = """
<p>start</p>
<br>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-start bx--tooltip--left"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-start bx--tooltip--top"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-start bx--tooltip--bottom"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-start bx--tooltip--right"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<br>
<br>
<p>center</p>
<br>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--left"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--top"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--bottom"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--right"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<br>
<br>
<p>end</p>
<br>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-end bx--tooltip--left"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-end bx--tooltip--top"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-end bx--tooltip--bottom"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
<button class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--align-end bx--tooltip--right"
data-tooltip-icon>
<span class="bx--assistive-text">
Filter
</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 32 32" focusable="false" preserveAspectRatio="xMidYMid meet" fill="currentColor" style="width:16px;height:16px" aria-hidden="true">
<path d="M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"/>
</svg>
</button>
"""
rendered = compare_template(template, expected)
self.assertEqual(*rendered)
| 46.91195
| 211
| 0.6605
| 4,030
| 22,377
| 3.648387
| 0.05062
| 0.023669
| 0.029382
| 0.039176
| 0.934231
| 0.914235
| 0.910903
| 0.878868
| 0.870027
| 0.856356
| 0
| 0.186841
| 0.126514
| 22,377
| 476
| 212
| 47.010504
| 0.565384
| 0.004648
| 0
| 0.834452
| 0
| 0.199105
| 0.955952
| 0.399488
| 0
| 0
| 0
| 0
| 0.011186
| 1
| 0.011186
| false
| 0
| 0.002237
| 0
| 0.017897
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a62bb7eac214548539de22bc4a92595ac530e346
| 44
|
py
|
Python
|
tensorsim/__init__.py
|
leighton/tensorsim
|
8bed5e2971d1c9991fff2add1258c884614c6b0f
|
[
"Apache-2.0"
] | null | null | null |
tensorsim/__init__.py
|
leighton/tensorsim
|
8bed5e2971d1c9991fff2add1258c884614c6b0f
|
[
"Apache-2.0"
] | null | null | null |
tensorsim/__init__.py
|
leighton/tensorsim
|
8bed5e2971d1c9991fff2add1258c884614c6b0f
|
[
"Apache-2.0"
] | 1
|
2022-01-12T17:38:19.000Z
|
2022-01-12T17:38:19.000Z
|
from . import integrate
from . import utils
| 14.666667
| 23
| 0.772727
| 6
| 44
| 5.666667
| 0.666667
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 44
| 2
| 24
| 22
| 0.944444
| 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
|
a63d0172c77d02e74c82806f3a562a482586070e
| 40
|
py
|
Python
|
97.py
|
adelacvg/PE
|
0345335a3f959342625be03ae36a21bbad45f273
|
[
"MIT"
] | 3
|
2018-11-12T07:32:42.000Z
|
2021-07-27T04:40:41.000Z
|
97.py
|
adelacvg/PE
|
0345335a3f959342625be03ae36a21bbad45f273
|
[
"MIT"
] | null | null | null |
97.py
|
adelacvg/PE
|
0345335a3f959342625be03ae36a21bbad45f273
|
[
"MIT"
] | null | null | null |
print(str(28433*(2**7830457)+1)[-10::])
| 20
| 39
| 0.6
| 7
| 40
| 3.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.410256
| 0.025
| 40
| 1
| 40
| 40
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
a663732b1a5e08a0efd3f5b8b801d5b8ba8407db
| 1,173
|
py
|
Python
|
cacreader/swig-4.0.2/Examples/contract/simple_cxx/runme3.py
|
kyletanyag/LL-Smartcard
|
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
|
[
"BSD-3-Clause"
] | 1,031
|
2015-01-02T14:08:47.000Z
|
2022-03-29T02:25:27.000Z
|
cacreader/swig-4.0.2/Examples/contract/simple_cxx/runme3.py
|
kyletanyag/LL-Smartcard
|
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
|
[
"BSD-3-Clause"
] | 240
|
2015-01-11T04:27:19.000Z
|
2022-03-30T00:35:57.000Z
|
cacreader/swig-4.0.2/Examples/contract/simple_cxx/runme3.py
|
kyletanyag/LL-Smartcard
|
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
|
[
"BSD-3-Clause"
] | 224
|
2015-01-05T06:13:54.000Z
|
2022-02-25T14:39:51.000Z
|
import example
# Create the Circle object
r = 2;
print " Creating circle (radium: %d) :" % r
c = example.Circle(r)
# Set the location of the object
c.x = 20
c.y = 30
print " Here is its current position:"
print " Circle = (%f, %f)" % (c.x,c.y)
# ----- Call some methods -----
print "\n Here are some properties of the Circle:"
print " area = ", c.area()
print " perimeter = ", c.perimeter()
dx = 1;
dy = 1;
print " Moving with (%d, %d)..." % (dx, dy)
c.move(dx, dy)
del c
print "==================================="
# test move function */
r = 2;
print " Creating circle (radium: %d) :" % r
c = example.Circle(r)
# Set the location of the object
c.x = 20
c.y = 30
print " Here is its current position:"
print " Circle = (%f, %f)" % (c.x,c.y)
# ----- Call some methods -----
print "\n Here are some properties of the Circle:"
print " area = ", c.area()
print " perimeter = ", c.perimeter()
# no error for Circle's pre-assertion
dx = 1;
dy = -1;
print " Moving with (%d, %d)..." % (dx, dy)
c.move(dx, dy)
# error with Shape's pre-assertion
dx = -1;
dy = 1;
print " Moving with (%d, %d)..." % (dx, dy)
c.move(dx, dy)
| 20.224138
| 51
| 0.554987
| 186
| 1,173
| 3.5
| 0.268817
| 0.036866
| 0.023041
| 0.02765
| 0.863287
| 0.863287
| 0.863287
| 0.863287
| 0.863287
| 0.863287
| 0
| 0.017857
| 0.236147
| 1,173
| 57
| 52
| 20.578947
| 0.708705
| 0.202046
| 0
| 0.857143
| 0
| 0
| 0.468177
| 0.037756
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.028571
| null | null | 0.457143
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
a69e0939a864076b11b05ae615da1ac5bbd47ec0
| 6,630
|
py
|
Python
|
setup.py
|
jfblg/Tracktime-UZE
|
f43666ac62d6e6450d0fb7082b5e68bae360547f
|
[
"MIT"
] | 1
|
2017-04-27T08:56:58.000Z
|
2017-04-27T08:56:58.000Z
|
setup.py
|
jfblg/Tracktime
|
f6fdb8b47250c87ae74f4b77d065d2b763f1cd47
|
[
"MIT"
] | null | null | null |
setup.py
|
jfblg/Tracktime
|
f6fdb8b47250c87ae74f4b77d065d2b763f1cd47
|
[
"MIT"
] | null | null | null |
from distutils.core import setup
setup(
name='Tracktime',
version='0.1',
packages=['src.models.participants', 'venv.lib.python3.5.distutils', 'venv.lib.python3.5.encodings',
'venv.lib.python3.5.importlib', 'venv.lib.python3.5.collections', 'venv.lib.python3.5.site-packages.pip',
'venv.lib.python3.5.site-packages.pip.req', 'venv.lib.python3.5.site-packages.pip.vcs',
'venv.lib.python3.5.site-packages.pip.utils', 'venv.lib.python3.5.site-packages.pip.compat',
'venv.lib.python3.5.site-packages.pip.models', 'venv.lib.python3.5.site-packages.pip._vendor',
'venv.lib.python3.5.site-packages.pip._vendor.distlib',
'venv.lib.python3.5.site-packages.pip._vendor.distlib._backport',
'venv.lib.python3.5.site-packages.pip._vendor.colorama',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.trie',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.filters',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.serializer',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.treewalkers',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.treeadapters',
'venv.lib.python3.5.site-packages.pip._vendor.html5lib.treebuilders',
'venv.lib.python3.5.site-packages.pip._vendor.lockfile',
'venv.lib.python3.5.site-packages.pip._vendor.progress',
'venv.lib.python3.5.site-packages.pip._vendor.requests',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.chardet',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.urllib3',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.urllib3.util',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.urllib3.contrib',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.urllib3.packages',
'venv.lib.python3.5.site-packages.pip._vendor.requests.packages.urllib3.packages.ssl_match_hostname',
'venv.lib.python3.5.site-packages.pip._vendor.packaging',
'venv.lib.python3.5.site-packages.pip._vendor._markerlib',
'venv.lib.python3.5.site-packages.pip._vendor.cachecontrol',
'venv.lib.python3.5.site-packages.pip._vendor.cachecontrol.caches',
'venv.lib.python3.5.site-packages.pip._vendor.pkg_resources',
'venv.lib.python3.5.site-packages.pip.commands', 'venv.lib.python3.5.site-packages.pip.operations',
'venv.lib.python3.5.site-packages.xlrd', 'venv.lib.python3.5.site-packages.click',
'venv.lib.python3.5.site-packages.flask', 'venv.lib.python3.5.site-packages.flask.ext',
'venv.lib.python3.5.site-packages.wheel', 'venv.lib.python3.5.site-packages.wheel.test',
'venv.lib.python3.5.site-packages.wheel.test.simple.dist.simpledist',
'venv.lib.python3.5.site-packages.wheel.test.complex-dist.complexdist',
'venv.lib.python3.5.site-packages.wheel.tool', 'venv.lib.python3.5.site-packages.wheel.signatures',
'venv.lib.python3.5.site-packages.jinja2', 'venv.lib.python3.5.site-packages.wtforms',
'venv.lib.python3.5.site-packages.wtforms.ext', 'venv.lib.python3.5.site-packages.wtforms.ext.csrf',
'venv.lib.python3.5.site-packages.wtforms.ext.i18n',
'venv.lib.python3.5.site-packages.wtforms.ext.django',
'venv.lib.python3.5.site-packages.wtforms.ext.django.templatetags',
'venv.lib.python3.5.site-packages.wtforms.ext.dateutil',
'venv.lib.python3.5.site-packages.wtforms.ext.appengine',
'venv.lib.python3.5.site-packages.wtforms.ext.sqlalchemy',
'venv.lib.python3.5.site-packages.wtforms.csrf', 'venv.lib.python3.5.site-packages.wtforms.fields',
'venv.lib.python3.5.site-packages.wtforms.widgets', 'venv.lib.python3.5.site-packages.werkzeug',
'venv.lib.python3.5.site-packages.werkzeug.debug', 'venv.lib.python3.5.site-packages.werkzeug.contrib',
'venv.lib.python3.5.site-packages.flask_wtf', 'venv.lib.python3.5.site-packages.flask_wtf.recaptcha',
'venv.lib.python3.5.site-packages._markerlib', 'venv.lib.python3.5.site-packages.markupsafe',
'venv.lib.python3.5.site-packages.setuptools', 'venv.lib.python3.5.site-packages.setuptools.command',
'venv.lib.python3.5.site-packages.sqlalchemy', 'venv.lib.python3.5.site-packages.sqlalchemy.ext',
'venv.lib.python3.5.site-packages.sqlalchemy.ext.declarative',
'venv.lib.python3.5.site-packages.sqlalchemy.orm', 'venv.lib.python3.5.site-packages.sqlalchemy.sql',
'venv.lib.python3.5.site-packages.sqlalchemy.util', 'venv.lib.python3.5.site-packages.sqlalchemy.event',
'venv.lib.python3.5.site-packages.sqlalchemy.engine',
'venv.lib.python3.5.site-packages.sqlalchemy.testing',
'venv.lib.python3.5.site-packages.sqlalchemy.testing.suite',
'venv.lib.python3.5.site-packages.sqlalchemy.testing.plugin',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.mssql',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.mysql',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.oracle',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.sqlite',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.sybase',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.firebird',
'venv.lib.python3.5.site-packages.sqlalchemy.dialects.postgresql',
'venv.lib.python3.5.site-packages.sqlalchemy.databases',
'venv.lib.python3.5.site-packages.sqlalchemy.connectors',
'venv.lib.python3.5.site-packages.pkg_resources',
'venv.lib.python3.5.site-packages.pkg_resources._vendor',
'venv.lib.python3.5.site-packages.pkg_resources._vendor.packaging',
'venv.lib.python3.5.site-packages.flask_sqlalchemy'],
url='',
license='MIT',
author='ferojanus',
author_email='inbox.jfblg@gmail.com',
description='Flask based web app for time management during an small athletic event.'
)
| 78
| 119
| 0.667722
| 857
| 6,630
| 5.117853
| 0.147025
| 0.151619
| 0.303238
| 0.324897
| 0.833789
| 0.833789
| 0.809166
| 0.573187
| 0.256498
| 0.094619
| 0
| 0.03785
| 0.175113
| 6,630
| 84
| 120
| 78.928571
| 0.764125
| 0
| 0
| 0
| 0
| 0.096386
| 0.764404
| 0.750075
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.024096
| 0
| 0.024096
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a6c2065e01dbce516b8303f7a7389422d3a7ac4d
| 154,597
|
py
|
Python
|
oc_config_validate/oc_config_validate/models/keychain.py
|
JoseIgnacioTamayo/gnxi
|
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
|
[
"Apache-2.0"
] | 1
|
2019-08-06T09:25:43.000Z
|
2019-08-06T09:25:43.000Z
|
oc_config_validate/oc_config_validate/models/keychain.py
|
JoseIgnacioTamayo/gnxi
|
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
|
[
"Apache-2.0"
] | null | null | null |
oc_config_validate/oc_config_validate/models/keychain.py
|
JoseIgnacioTamayo/gnxi
|
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.yangtypes import YANGDynClass
from pyangbind.lib.yangtypes import ReferenceType
from pyangbind.lib.base import PybindBase
from collections import OrderedDict
from decimal import Decimal
from bitarray import bitarray
import six
# PY3 support of some PY2 keywords (needs improved)
if six.PY3:
import builtins as __builtin__
long = int
elif six.PY2:
import __builtin__
class yc_config_openconfig_keychain__keychains_keychain_config(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/config. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This container defines keychain configuration.
"""
__slots__ = ('_path_helper', '_extmethods', '__name','__tolerance',)
_yang_name = 'config'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
self.__tolerance = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'config']
def _get_name(self):
"""
Getter method for name, mapped from YANG variable /keychains/keychain/config/name (string)
YANG Description: Keychain name.
"""
return self.__name
def _set_name(self, v, load=False):
"""
Setter method for name, mapped from YANG variable /keychains/keychain/config/name (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_name() directly.
YANG Description: Keychain name.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """name must be of a type compatible with string""",
'defined-type': "string",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)""",
})
self.__name = t
if hasattr(self, '_set'):
self._set()
def _unset_name(self):
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
def _get_tolerance(self):
"""
Getter method for tolerance, mapped from YANG variable /keychains/keychain/config/tolerance (union)
YANG Description: Tolerance (overlap time) that a receive key should be accepted. May be
expressed as range in seconds, or using the FOREVER value to indicate
that the key does not expire. The default value should be 0, i.e., no
tolerance.
"""
return self.__tolerance
def _set_tolerance(self, v, load=False):
"""
Setter method for tolerance, mapped from YANG variable /keychains/keychain/config/tolerance (union)
If this variable is read-only (config: false) in the
source YANG file, then _set_tolerance is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tolerance() directly.
YANG Description: Tolerance (overlap time) that a receive key should be accepted. May be
expressed as range in seconds, or using the FOREVER value to indicate
that the key does not expire. The default value should be 0, i.e., no
tolerance.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tolerance must be of a type compatible with union""",
'defined-type': "openconfig-keychain:union",
'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=True)""",
})
self.__tolerance = t
if hasattr(self, '_set'):
self._set()
def _unset_tolerance(self):
self.__tolerance = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=True)
name = __builtin__.property(_get_name, _set_name)
tolerance = __builtin__.property(_get_tolerance, _set_tolerance)
_pyangbind_elements = OrderedDict([('name', name), ('tolerance', tolerance), ])
class yc_state_openconfig_keychain__keychains_keychain_state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This container defines keychain state information.
"""
__slots__ = ('_path_helper', '_extmethods', '__name','__tolerance',)
_yang_name = 'state'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
self.__tolerance = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=False)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'state']
def _get_name(self):
"""
Getter method for name, mapped from YANG variable /keychains/keychain/state/name (string)
YANG Description: Keychain name.
"""
return self.__name
def _set_name(self, v, load=False):
"""
Setter method for name, mapped from YANG variable /keychains/keychain/state/name (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_name() directly.
YANG Description: Keychain name.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """name must be of a type compatible with string""",
'defined-type': "string",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)""",
})
self.__name = t
if hasattr(self, '_set'):
self._set()
def _unset_name(self):
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
def _get_tolerance(self):
"""
Getter method for tolerance, mapped from YANG variable /keychains/keychain/state/tolerance (union)
YANG Description: Tolerance (overlap time) that a receive key should be accepted. May be
expressed as range in seconds, or using the FOREVER value to indicate
that the key does not expire. The default value should be 0, i.e., no
tolerance.
"""
return self.__tolerance
def _set_tolerance(self, v, load=False):
"""
Setter method for tolerance, mapped from YANG variable /keychains/keychain/state/tolerance (union)
If this variable is read-only (config: false) in the
source YANG file, then _set_tolerance is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tolerance() directly.
YANG Description: Tolerance (overlap time) that a receive key should be accepted. May be
expressed as range in seconds, or using the FOREVER value to indicate
that the key does not expire. The default value should be 0, i.e., no
tolerance.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tolerance must be of a type compatible with union""",
'defined-type': "openconfig-keychain:union",
'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=False)""",
})
self.__tolerance = t
if hasattr(self, '_set'):
self._set()
def _unset_tolerance(self):
self.__tolerance = YANGDynClass(base=[RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'FOREVER': {}},),RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32),], is_leaf=True, yang_name="tolerance", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='union', is_config=False)
name = __builtin__.property(_get_name)
tolerance = __builtin__.property(_get_tolerance)
_pyangbind_elements = OrderedDict([('name', name), ('tolerance', tolerance), ])
class yc_config_openconfig_keychain__keychains_keychain_keys_key_config(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/config. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This container defines keychain key configuration.
"""
__slots__ = ('_path_helper', '_extmethods', '__key_id','__secret_key','__crypto_algorithm',)
_yang_name = 'config'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__key_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=True)
self.__secret_key = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
self.__crypto_algorithm = YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'config']
def _get_key_id(self):
"""
Getter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/config/key_id (uint64)
YANG Description: Identifier for the key within the keychain.
"""
return self.__key_id
def _set_key_id(self, v, load=False):
"""
Setter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/config/key_id (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_key_id is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_key_id() directly.
YANG Description: Identifier for the key within the keychain.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """key_id must be of a type compatible with uint64""",
'defined-type': "uint64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=True)""",
})
self.__key_id = t
if hasattr(self, '_set'):
self._set()
def _unset_key_id(self):
self.__key_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=True)
def _get_secret_key(self):
"""
Getter method for secret_key, mapped from YANG variable /keychains/keychain/keys/key/config/secret_key (string)
YANG Description: Authentication key supplied as an encrypted value. The system should store and
return the key in encrypted form.
"""
return self.__secret_key
def _set_secret_key(self, v, load=False):
"""
Setter method for secret_key, mapped from YANG variable /keychains/keychain/keys/key/config/secret_key (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_secret_key is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_secret_key() directly.
YANG Description: Authentication key supplied as an encrypted value. The system should store and
return the key in encrypted form.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """secret_key must be of a type compatible with string""",
'defined-type': "string",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)""",
})
self.__secret_key = t
if hasattr(self, '_set'):
self._set()
def _unset_secret_key(self):
self.__secret_key = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=True)
def _get_crypto_algorithm(self):
"""
Getter method for crypto_algorithm, mapped from YANG variable /keychains/keychain/keys/key/config/crypto_algorithm (identityref)
YANG Description: Cryptographic algorithm associated with the key. Note that not all cryptographic
algorithms are available in all contexts (e.g., across different protocols).
"""
return self.__crypto_algorithm
def _set_crypto_algorithm(self, v, load=False):
"""
Setter method for crypto_algorithm, mapped from YANG variable /keychains/keychain/keys/key/config/crypto_algorithm (identityref)
If this variable is read-only (config: false) in the
source YANG file, then _set_crypto_algorithm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_crypto_algorithm() directly.
YANG Description: Cryptographic algorithm associated with the key. Note that not all cryptographic
algorithms are available in all contexts (e.g., across different protocols).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """crypto_algorithm must be of a type compatible with identityref""",
'defined-type': "openconfig-keychain:identityref",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=True)""",
})
self.__crypto_algorithm = t
if hasattr(self, '_set'):
self._set()
def _unset_crypto_algorithm(self):
self.__crypto_algorithm = YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=True)
key_id = __builtin__.property(_get_key_id, _set_key_id)
secret_key = __builtin__.property(_get_secret_key, _set_secret_key)
crypto_algorithm = __builtin__.property(_get_crypto_algorithm, _set_crypto_algorithm)
_pyangbind_elements = OrderedDict([('key_id', key_id), ('secret_key', secret_key), ('crypto_algorithm', crypto_algorithm), ])
class yc_state_openconfig_keychain__keychains_keychain_keys_key_state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This container defines keychain key state.
"""
__slots__ = ('_path_helper', '_extmethods', '__key_id','__secret_key','__crypto_algorithm',)
_yang_name = 'state'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__key_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=False)
self.__secret_key = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
self.__crypto_algorithm = YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=False)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'state']
def _get_key_id(self):
"""
Getter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/state/key_id (uint64)
YANG Description: Identifier for the key within the keychain.
"""
return self.__key_id
def _set_key_id(self, v, load=False):
"""
Setter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/state/key_id (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_key_id is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_key_id() directly.
YANG Description: Identifier for the key within the keychain.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """key_id must be of a type compatible with uint64""",
'defined-type': "uint64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=False)""",
})
self.__key_id = t
if hasattr(self, '_set'):
self._set()
def _unset_key_id(self):
self.__key_id = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='uint64', is_config=False)
def _get_secret_key(self):
"""
Getter method for secret_key, mapped from YANG variable /keychains/keychain/keys/key/state/secret_key (string)
YANG Description: Authentication key supplied as an encrypted value. The system should store and
return the key in encrypted form.
"""
return self.__secret_key
def _set_secret_key(self, v, load=False):
"""
Setter method for secret_key, mapped from YANG variable /keychains/keychain/keys/key/state/secret_key (string)
If this variable is read-only (config: false) in the
source YANG file, then _set_secret_key is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_secret_key() directly.
YANG Description: Authentication key supplied as an encrypted value. The system should store and
return the key in encrypted form.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """secret_key must be of a type compatible with string""",
'defined-type': "string",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)""",
})
self.__secret_key = t
if hasattr(self, '_set'):
self._set()
def _unset_secret_key(self):
self.__secret_key = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="secret-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='string', is_config=False)
def _get_crypto_algorithm(self):
"""
Getter method for crypto_algorithm, mapped from YANG variable /keychains/keychain/keys/key/state/crypto_algorithm (identityref)
YANG Description: Cryptographic algorithm associated with the key. Note that not all cryptographic
algorithms are available in all contexts (e.g., across different protocols).
"""
return self.__crypto_algorithm
def _set_crypto_algorithm(self, v, load=False):
"""
Setter method for crypto_algorithm, mapped from YANG variable /keychains/keychain/keys/key/state/crypto_algorithm (identityref)
If this variable is read-only (config: false) in the
source YANG file, then _set_crypto_algorithm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_crypto_algorithm() directly.
YANG Description: Cryptographic algorithm associated with the key. Note that not all cryptographic
algorithms are available in all contexts (e.g., across different protocols).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """crypto_algorithm must be of a type compatible with identityref""",
'defined-type': "openconfig-keychain:identityref",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=False)""",
})
self.__crypto_algorithm = t
if hasattr(self, '_set'):
self._set()
def _unset_crypto_algorithm(self):
self.__crypto_algorithm = YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:CRYPTO_NONE': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_MD5': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_12': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_20': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_1_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:HMAC_SHA_256': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}, 'oc-keychain-types:AES_28_CMAC_96': {'@module': 'openconfig-keychain-types', '@namespace': 'http://openconfig.net/yang/oc-keychain-types'}},), is_leaf=True, yang_name="crypto-algorithm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='identityref', is_config=False)
key_id = __builtin__.property(_get_key_id)
secret_key = __builtin__.property(_get_secret_key)
crypto_algorithm = __builtin__.property(_get_crypto_algorithm)
_pyangbind_elements = OrderedDict([('key_id', key_id), ('secret_key', secret_key), ('crypto_algorithm', crypto_algorithm), ])
class yc_config_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_config(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/send-lifetime/config. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Configuration data for key send lifetime.
"""
__slots__ = ('_path_helper', '_extmethods', '__start_time','__end_time','__send_and_receive',)
_yang_name = 'config'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
self.__send_and_receive = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'send-lifetime', 'config']
def _get_start_time(self):
"""
Getter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/start_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
return self.__start_time
def _set_start_time(self, v, load=False):
"""
Setter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/start_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_start_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_start_time() directly.
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """start_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)""",
})
self.__start_time = t
if hasattr(self, '_set'):
self._set()
def _unset_start_time(self):
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
def _get_end_time(self):
"""
Getter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/end_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
return self.__end_time
def _set_end_time(self, v, load=False):
"""
Setter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/end_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_end_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_end_time() directly.
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """end_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)""",
})
self.__end_time = t
if hasattr(self, '_set'):
self._set()
def _unset_end_time(self):
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
def _get_send_and_receive(self):
"""
Getter method for send_and_receive, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/send_and_receive (boolean)
YANG Description: When this is set to true (the default value), the specified
send lifetime is also used in the receive direction. When set
to false, the device should use the specified receive-lifetime
for the receive direction (asymmetric mode). If send-and-receive
is false, and the device does not support asymmetric configuration,
the config should be rejected as unsupported.
"""
return self.__send_and_receive
def _set_send_and_receive(self, v, load=False):
"""
Setter method for send_and_receive, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config/send_and_receive (boolean)
If this variable is read-only (config: false) in the
source YANG file, then _set_send_and_receive is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_send_and_receive() directly.
YANG Description: When this is set to true (the default value), the specified
send lifetime is also used in the receive direction. When set
to false, the device should use the specified receive-lifetime
for the receive direction (asymmetric mode). If send-and-receive
is false, and the device does not support asymmetric configuration,
the config should be rejected as unsupported.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """send_and_receive must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=True)""",
})
self.__send_and_receive = t
if hasattr(self, '_set'):
self._set()
def _unset_send_and_receive(self):
self.__send_and_receive = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=True)
start_time = __builtin__.property(_get_start_time, _set_start_time)
end_time = __builtin__.property(_get_end_time, _set_end_time)
send_and_receive = __builtin__.property(_get_send_and_receive, _set_send_and_receive)
_pyangbind_elements = OrderedDict([('start_time', start_time), ('end_time', end_time), ('send_and_receive', send_and_receive), ])
class yc_state_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/send-lifetime/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Operational state data for key send lifetime.
"""
__slots__ = ('_path_helper', '_extmethods', '__start_time','__end_time','__send_and_receive',)
_yang_name = 'state'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
self.__send_and_receive = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=False)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'send-lifetime', 'state']
def _get_start_time(self):
"""
Getter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/start_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
return self.__start_time
def _set_start_time(self, v, load=False):
"""
Setter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/start_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_start_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_start_time() directly.
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """start_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)""",
})
self.__start_time = t
if hasattr(self, '_set'):
self._set()
def _unset_start_time(self):
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
def _get_end_time(self):
"""
Getter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/end_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
return self.__end_time
def _set_end_time(self, v, load=False):
"""
Setter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/end_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_end_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_end_time() directly.
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """end_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)""",
})
self.__end_time = t
if hasattr(self, '_set'):
self._set()
def _unset_end_time(self):
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
def _get_send_and_receive(self):
"""
Getter method for send_and_receive, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/send_and_receive (boolean)
YANG Description: When this is set to true (the default value), the specified
send lifetime is also used in the receive direction. When set
to false, the device should use the specified receive-lifetime
for the receive direction (asymmetric mode). If send-and-receive
is false, and the device does not support asymmetric configuration,
the config should be rejected as unsupported.
"""
return self.__send_and_receive
def _set_send_and_receive(self, v, load=False):
"""
Setter method for send_and_receive, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state/send_and_receive (boolean)
If this variable is read-only (config: false) in the
source YANG file, then _set_send_and_receive is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_send_and_receive() directly.
YANG Description: When this is set to true (the default value), the specified
send lifetime is also used in the receive direction. When set
to false, the device should use the specified receive-lifetime
for the receive direction (asymmetric mode). If send-and-receive
is false, and the device does not support asymmetric configuration,
the config should be rejected as unsupported.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """send_and_receive must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=False)""",
})
self.__send_and_receive = t
if hasattr(self, '_set'):
self._set()
def _unset_send_and_receive(self):
self.__send_and_receive = YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="send-and-receive", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='boolean', is_config=False)
start_time = __builtin__.property(_get_start_time)
end_time = __builtin__.property(_get_end_time)
send_and_receive = __builtin__.property(_get_send_and_receive)
_pyangbind_elements = OrderedDict([('start_time', start_time), ('end_time', end_time), ('send_and_receive', send_and_receive), ])
class yc_send_lifetime_openconfig_keychain__keychains_keychain_keys_key_send_lifetime(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/send-lifetime. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Specifies the lifetime of the key for sending authentication
information to the peer.
"""
__slots__ = ('_path_helper', '_extmethods', '__config','__state',)
_yang_name = 'send-lifetime'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'send-lifetime']
def _get_config(self):
"""
Getter method for config, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config (container)
YANG Description: Configuration data for key send lifetime.
"""
return self.__config
def _set_config(self, v, load=False):
"""
Setter method for config, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_config is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_config() directly.
YANG Description: Configuration data for key send lifetime.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
def _unset_config(self):
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_state(self):
"""
Getter method for state, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state (container)
YANG Description: Operational state data for key send lifetime.
"""
return self.__state
def _set_state(self, v, load=False):
"""
Setter method for state, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime/state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_state() directly.
YANG Description: Operational state data for key send lifetime.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
def _unset_state(self):
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_send_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
config = __builtin__.property(_get_config, _set_config)
state = __builtin__.property(_get_state, _set_state)
_pyangbind_elements = OrderedDict([('config', config), ('state', state), ])
class yc_config_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_config(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/receive-lifetime/config. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Configuration data for key receive lifetime.
"""
__slots__ = ('_path_helper', '_extmethods', '__start_time','__end_time',)
_yang_name = 'config'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'receive-lifetime', 'config']
def _get_start_time(self):
"""
Getter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config/start_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
return self.__start_time
def _set_start_time(self, v, load=False):
"""
Setter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config/start_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_start_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_start_time() directly.
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """start_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)""",
})
self.__start_time = t
if hasattr(self, '_set'):
self._set()
def _unset_start_time(self):
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
def _get_end_time(self):
"""
Getter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config/end_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
return self.__end_time
def _set_end_time(self, v, load=False):
"""
Setter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config/end_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_end_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_end_time() directly.
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """end_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)""",
})
self.__end_time = t
if hasattr(self, '_set'):
self._set()
def _unset_end_time(self):
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=True)
start_time = __builtin__.property(_get_start_time, _set_start_time)
end_time = __builtin__.property(_get_end_time, _set_end_time)
_pyangbind_elements = OrderedDict([('start_time', start_time), ('end_time', end_time), ])
class yc_state_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_state(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/receive-lifetime/state. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Operational state data for key receive lifetime.
"""
__slots__ = ('_path_helper', '_extmethods', '__start_time','__end_time',)
_yang_name = 'state'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'receive-lifetime', 'state']
def _get_start_time(self):
"""
Getter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state/start_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
return self.__start_time
def _set_start_time(self, v, load=False):
"""
Setter method for start_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state/start_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_start_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_start_time() directly.
YANG Description: The time at which the key becomes valid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """start_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)""",
})
self.__start_time = t
if hasattr(self, '_set'):
self._set()
def _unset_start_time(self):
self.__start_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="start-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
def _get_end_time(self):
"""
Getter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state/end_time (oc-types:timeticks64)
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
return self.__end_time
def _set_end_time(self, v, load=False):
"""
Setter method for end_time, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state/end_time (oc-types:timeticks64)
If this variable is read-only (config: false) in the
source YANG file, then _set_end_time is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_end_time() directly.
YANG Description: The time at which the key becomes invalid for use.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).
Leaving this value unset, or setting it to 0, indicates that
the key remains valid forever (no end time).
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """end_time must be of a type compatible with oc-types:timeticks64""",
'defined-type': "oc-types:timeticks64",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)""",
})
self.__end_time = t
if hasattr(self, '_set'):
self._set()
def _unset_end_time(self):
self.__end_time = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="end-time", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='oc-types:timeticks64', is_config=False)
start_time = __builtin__.property(_get_start_time)
end_time = __builtin__.property(_get_end_time)
_pyangbind_elements = OrderedDict([('start_time', start_time), ('end_time', end_time), ])
class yc_receive_lifetime_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key/receive-lifetime. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: Specify the validity lifetime of the key in the receive direction.
Some platforms may only support symmetric send and receive lifetimes,
in which case the receive-lifetime is typically not specified.
"""
__slots__ = ('_path_helper', '_extmethods', '__config','__state',)
_yang_name = 'receive-lifetime'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key', 'receive-lifetime']
def _get_config(self):
"""
Getter method for config, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config (container)
YANG Description: Configuration data for key receive lifetime.
"""
return self.__config
def _set_config(self, v, load=False):
"""
Setter method for config, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_config is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_config() directly.
YANG Description: Configuration data for key receive lifetime.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
def _unset_config(self):
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_state(self):
"""
Getter method for state, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state (container)
YANG Description: Operational state data for key receive lifetime.
"""
return self.__state
def _set_state(self, v, load=False):
"""
Setter method for state, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime/state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_state() directly.
YANG Description: Operational state data for key receive lifetime.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
def _unset_state(self):
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
config = __builtin__.property(_get_config, _set_config)
state = __builtin__.property(_get_state, _set_state)
_pyangbind_elements = OrderedDict([('config', config), ('state', state), ])
class yc_key_openconfig_keychain__keychains_keychain_keys_key(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys/key. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: List of configured keys for the keychain.
"""
__slots__ = ('_path_helper', '_extmethods', '__key_id','__config','__state','__send_lifetime','__receive_lifetime',)
_yang_name = 'key'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__key_id = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__send_lifetime = YANGDynClass(base=yc_send_lifetime_openconfig_keychain__keychains_keychain_keys_key_send_lifetime, is_container='container', yang_name="send-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__receive_lifetime = YANGDynClass(base=yc_receive_lifetime_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime, is_container='container', yang_name="receive-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys', 'key']
def _get_key_id(self):
"""
Getter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/key_id (leafref)
YANG Description: Reference to key id.
"""
return self.__key_id
def _set_key_id(self, v, load=False):
"""
Setter method for key_id, mapped from YANG variable /keychains/keychain/keys/key/key_id (leafref)
If this variable is read-only (config: false) in the
source YANG file, then _set_key_id is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_key_id() directly.
YANG Description: Reference to key id.
"""
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """key_id must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)""",
})
self.__key_id = t
if hasattr(self, '_set'):
self._set()
def _unset_key_id(self):
self.__key_id = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="key-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
def _get_config(self):
"""
Getter method for config, mapped from YANG variable /keychains/keychain/keys/key/config (container)
YANG Description: This container defines keychain key configuration.
"""
return self.__config
def _set_config(self, v, load=False):
"""
Setter method for config, mapped from YANG variable /keychains/keychain/keys/key/config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_config is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_config() directly.
YANG Description: This container defines keychain key configuration.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_keychain__keychains_keychain_keys_key_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
def _unset_config(self):
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_keys_key_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_state(self):
"""
Getter method for state, mapped from YANG variable /keychains/keychain/keys/key/state (container)
YANG Description: This container defines keychain key state.
"""
return self.__state
def _set_state(self, v, load=False):
"""
Setter method for state, mapped from YANG variable /keychains/keychain/keys/key/state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_state() directly.
YANG Description: This container defines keychain key state.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_keychain__keychains_keychain_keys_key_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
def _unset_state(self):
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_keys_key_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_send_lifetime(self):
"""
Getter method for send_lifetime, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime (container)
YANG Description: Specifies the lifetime of the key for sending authentication
information to the peer.
"""
return self.__send_lifetime
def _set_send_lifetime(self, v, load=False):
"""
Setter method for send_lifetime, mapped from YANG variable /keychains/keychain/keys/key/send_lifetime (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_send_lifetime is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_send_lifetime() directly.
YANG Description: Specifies the lifetime of the key for sending authentication
information to the peer.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_send_lifetime_openconfig_keychain__keychains_keychain_keys_key_send_lifetime, is_container='container', yang_name="send-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """send_lifetime must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_send_lifetime_openconfig_keychain__keychains_keychain_keys_key_send_lifetime, is_container='container', yang_name="send-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__send_lifetime = t
if hasattr(self, '_set'):
self._set()
def _unset_send_lifetime(self):
self.__send_lifetime = YANGDynClass(base=yc_send_lifetime_openconfig_keychain__keychains_keychain_keys_key_send_lifetime, is_container='container', yang_name="send-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_receive_lifetime(self):
"""
Getter method for receive_lifetime, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime (container)
YANG Description: Specify the validity lifetime of the key in the receive direction.
Some platforms may only support symmetric send and receive lifetimes,
in which case the receive-lifetime is typically not specified.
"""
return self.__receive_lifetime
def _set_receive_lifetime(self, v, load=False):
"""
Setter method for receive_lifetime, mapped from YANG variable /keychains/keychain/keys/key/receive_lifetime (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_receive_lifetime is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_receive_lifetime() directly.
YANG Description: Specify the validity lifetime of the key in the receive direction.
Some platforms may only support symmetric send and receive lifetimes,
in which case the receive-lifetime is typically not specified.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_receive_lifetime_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime, is_container='container', yang_name="receive-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """receive_lifetime must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_receive_lifetime_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime, is_container='container', yang_name="receive-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__receive_lifetime = t
if hasattr(self, '_set'):
self._set()
def _unset_receive_lifetime(self):
self.__receive_lifetime = YANGDynClass(base=yc_receive_lifetime_openconfig_keychain__keychains_keychain_keys_key_receive_lifetime, is_container='container', yang_name="receive-lifetime", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
key_id = __builtin__.property(_get_key_id, _set_key_id)
config = __builtin__.property(_get_config, _set_config)
state = __builtin__.property(_get_state, _set_state)
send_lifetime = __builtin__.property(_get_send_lifetime, _set_send_lifetime)
receive_lifetime = __builtin__.property(_get_receive_lifetime, _set_receive_lifetime)
_pyangbind_elements = OrderedDict([('key_id', key_id), ('config', config), ('state', state), ('send_lifetime', send_lifetime), ('receive_lifetime', receive_lifetime), ])
class yc_keys_openconfig_keychain__keychains_keychain_keys(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain/keys. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: list of keys to be stored
"""
__slots__ = ('_path_helper', '_extmethods', '__key',)
_yang_name = 'keys'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__key = YANGDynClass(base=YANGListType("key_id",yc_key_openconfig_keychain__keychains_keychain_keys_key, yang_name="key", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key-id', extensions=None), is_container='list', yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain', 'keys']
def _get_key(self):
"""
Getter method for key, mapped from YANG variable /keychains/keychain/keys/key (list)
YANG Description: List of configured keys for the keychain.
"""
return self.__key
def _set_key(self, v, load=False):
"""
Setter method for key, mapped from YANG variable /keychains/keychain/keys/key (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_key is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_key() directly.
YANG Description: List of configured keys for the keychain.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("key_id",yc_key_openconfig_keychain__keychains_keychain_keys_key, yang_name="key", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key-id', extensions=None), is_container='list', yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """key must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("key_id",yc_key_openconfig_keychain__keychains_keychain_keys_key, yang_name="key", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key-id', extensions=None), is_container='list', yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)""",
})
self.__key = t
if hasattr(self, '_set'):
self._set()
def _unset_key(self):
self.__key = YANGDynClass(base=YANGListType("key_id",yc_key_openconfig_keychain__keychains_keychain_keys_key, yang_name="key", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='key-id', extensions=None), is_container='list', yang_name="key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
key = __builtin__.property(_get_key, _set_key)
_pyangbind_elements = OrderedDict([('key', key), ])
class yc_keychain_openconfig_keychain__keychains_keychain(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains/keychain. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: List of defined keychains.
"""
__slots__ = ('_path_helper', '_extmethods', '__name','__config','__state','__keys',)
_yang_name = 'keychain'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
self.__keys = YANGDynClass(base=yc_keys_openconfig_keychain__keychains_keychain_keys, is_container='container', yang_name="keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains', 'keychain']
def _get_name(self):
"""
Getter method for name, mapped from YANG variable /keychains/keychain/name (leafref)
YANG Description: Reference to configured keychain name
"""
return self.__name
def _set_name(self, v, load=False):
"""
Setter method for name, mapped from YANG variable /keychains/keychain/name (leafref)
If this variable is read-only (config: false) in the
source YANG file, then _set_name is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_name() directly.
YANG Description: Reference to configured keychain name
"""
parent = getattr(self, "_parent", None)
if parent is not None and load is False:
raise AttributeError("Cannot set keys directly when" +
" within an instantiated list")
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """name must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)""",
})
self.__name = t
if hasattr(self, '_set'):
self._set()
def _unset_name(self):
self.__name = YANGDynClass(base=six.text_type, is_leaf=True, yang_name="name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='leafref', is_config=True)
def _get_config(self):
"""
Getter method for config, mapped from YANG variable /keychains/keychain/config (container)
YANG Description: This container defines keychain configuration.
"""
return self.__config
def _set_config(self, v, load=False):
"""
Setter method for config, mapped from YANG variable /keychains/keychain/config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_config is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_config() directly.
YANG Description: This container defines keychain configuration.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_config_openconfig_keychain__keychains_keychain_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
def _unset_config(self):
self.__config = YANGDynClass(base=yc_config_openconfig_keychain__keychains_keychain_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_state(self):
"""
Getter method for state, mapped from YANG variable /keychains/keychain/state (container)
YANG Description: This container defines keychain state information.
"""
return self.__state
def _set_state(self, v, load=False):
"""
Setter method for state, mapped from YANG variable /keychains/keychain/state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_state() directly.
YANG Description: This container defines keychain state information.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_state_openconfig_keychain__keychains_keychain_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
def _unset_state(self):
self.__state = YANGDynClass(base=yc_state_openconfig_keychain__keychains_keychain_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
def _get_keys(self):
"""
Getter method for keys, mapped from YANG variable /keychains/keychain/keys (container)
YANG Description: list of keys to be stored
"""
return self.__keys
def _set_keys(self, v, load=False):
"""
Setter method for keys, mapped from YANG variable /keychains/keychain/keys (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_keys is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_keys() directly.
YANG Description: list of keys to be stored
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_keys_openconfig_keychain__keychains_keychain_keys, is_container='container', yang_name="keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """keys must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_keys_openconfig_keychain__keychains_keychain_keys, is_container='container', yang_name="keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__keys = t
if hasattr(self, '_set'):
self._set()
def _unset_keys(self):
self.__keys = YANGDynClass(base=yc_keys_openconfig_keychain__keychains_keychain_keys, is_container='container', yang_name="keys", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
name = __builtin__.property(_get_name, _set_name)
config = __builtin__.property(_get_config, _set_config)
state = __builtin__.property(_get_state, _set_state)
keys = __builtin__.property(_get_keys, _set_keys)
_pyangbind_elements = OrderedDict([('name', name), ('config', config), ('state', state), ('keys', keys), ])
class yc_keychains_openconfig_keychain__keychains(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /keychains. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This container defines keychains.
"""
__slots__ = ('_path_helper', '_extmethods', '__keychain',)
_yang_name = 'keychains'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__keychain = YANGDynClass(base=YANGListType("name",yc_keychain_openconfig_keychain__keychains_keychain, yang_name="keychain", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="keychain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return ['keychains']
def _get_keychain(self):
"""
Getter method for keychain, mapped from YANG variable /keychains/keychain (list)
YANG Description: List of defined keychains.
"""
return self.__keychain
def _set_keychain(self, v, load=False):
"""
Setter method for keychain, mapped from YANG variable /keychains/keychain (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_keychain is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_keychain() directly.
YANG Description: List of defined keychains.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("name",yc_keychain_openconfig_keychain__keychains_keychain, yang_name="keychain", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="keychain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """keychain must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("name",yc_keychain_openconfig_keychain__keychains_keychain, yang_name="keychain", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="keychain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)""",
})
self.__keychain = t
if hasattr(self, '_set'):
self._set()
def _unset_keychain(self):
self.__keychain = YANGDynClass(base=YANGListType("name",yc_keychain_openconfig_keychain__keychains_keychain, yang_name="keychain", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name="keychain", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='list', is_config=True)
keychain = __builtin__.property(_get_keychain, _set_keychain)
_pyangbind_elements = OrderedDict([('keychain', keychain), ])
class openconfig_keychain(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain - based on the path /openconfig-keychain. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This module describes a YANG model for keychain configuration
and management. These keys can be changed frequently to
increase security in long-lived connections. A keychain can be used
for authenticaion in a number of scenarios, including in routing protocols
(e.g. BGP, IS-IS, OSPF). A keychain provides a solution for storing
a number of different keys, each key string value is associated with a
specific key id, name, the lifetime that the key is valid and an
encryption algorithm.
This model defines a central location for defining named keychains,
which may be then referenced by other models such as routing protocol
management.
"""
__slots__ = ('_path_helper', '_extmethods', '__keychains',)
_yang_name = 'openconfig-keychain'
_yang_namespace = 'http://openconfig.net/yang/oc-keychain'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
self._path_helper = False
self._extmethods = False
self.__keychains = YANGDynClass(base=yc_keychains_openconfig_keychain__keychains, is_container='container', yang_name="keychains", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return []
def _get_keychains(self):
"""
Getter method for keychains, mapped from YANG variable /keychains (container)
YANG Description: This container defines keychains.
"""
return self.__keychains
def _set_keychains(self, v, load=False):
"""
Setter method for keychains, mapped from YANG variable /keychains (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_keychains is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_keychains() directly.
YANG Description: This container defines keychains.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_keychains_openconfig_keychain__keychains, is_container='container', yang_name="keychains", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """keychains must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_keychains_openconfig_keychain__keychains, is_container='container', yang_name="keychains", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)""",
})
self.__keychains = t
if hasattr(self, '_set'):
self._set()
def _unset_keychains(self):
self.__keychains = YANGDynClass(base=yc_keychains_openconfig_keychain__keychains, is_container='container', yang_name="keychains", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/oc-keychain', defining_module='openconfig-keychain', yang_type='container', is_config=True)
keychains = __builtin__.property(_get_keychains, _set_keychains)
_pyangbind_elements = OrderedDict([('keychains', keychains), ])
class openconfig_keychain_types(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module openconfig-keychain-types - based on the path /openconfig-keychain-types. Each member element of
the container is represented as a class variable - with a specific
YANG type.
YANG Description: This module contains general data definitions for use in
keychain-based authentication.
"""
_pyangbind_elements = {}
| 65.451736
| 2,961
| 0.732763
| 20,484
| 154,597
| 5.293497
| 0.016013
| 0.048316
| 0.070828
| 0.07649
| 0.979914
| 0.975376
| 0.97165
| 0.968552
| 0.962622
| 0.95647
| 0
| 0.013374
| 0.135688
| 154,597
| 2,361
| 2,962
| 65.479458
| 0.798122
| 0.214053
| 0
| 0.8593
| 0
| 0.028617
| 0.411844
| 0.127836
| 0
| 0
| 0
| 0
| 0
| 1
| 0.109698
| false
| 0
| 0.011924
| 0
| 0.275835
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a6f4c39c60592bbc279748d671122a3a60d38e76
| 2,317
|
py
|
Python
|
hvad/tests/ordering.py
|
ojii/django-nani
|
e75b3e91738bcddf94264df832a13ac47e979394
|
[
"BSD-3-Clause"
] | 1
|
2015-09-28T10:07:48.000Z
|
2015-09-28T10:07:48.000Z
|
hvad/tests/ordering.py
|
ojii/django-nani
|
e75b3e91738bcddf94264df832a13ac47e979394
|
[
"BSD-3-Clause"
] | null | null | null |
hvad/tests/ordering.py
|
ojii/django-nani
|
e75b3e91738bcddf94264df832a13ac47e979394
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from hvad.test_utils.context_managers import LanguageOverride
from hvad.test_utils.testcase import NaniTestCase
from testproject.app.models import Normal
class OrderingTest(NaniTestCase):
def test_minus_order_by(self):
a = Normal.objects.language('en').create(translated_field = "English",
shared_field="A")
b = Normal.objects.language('en').create(translated_field = "English",
shared_field="B")
qs = Normal.objects.language('en').order_by('-shared_field')
self.assertEqual(qs.count(), 2)
self.assertEqual(qs[0].pk, b.pk)
self.assertEqual(qs[1].pk, a.pk)
def test_order_by(self):
a = Normal.objects.language('en').create(translated_field = "English",
shared_field="A")
b = Normal.objects.language('en').create(translated_field = "English",
shared_field="B")
qs = Normal.objects.language('en').order_by('shared_field')
self.assertEqual(qs.count(), 2)
self.assertEqual(qs[0].pk, a.pk)
self.assertEqual(qs[1].pk, b.pk)
def test_random_order(self):
a = Normal.objects.language('en').create(translated_field = "English",
shared_field="A")
b = Normal.objects.language('en').create(translated_field = "English",
shared_field="B")
qs = Normal.objects.language('en').order_by('?')
self.assertEqual(qs.count(), 2)
pks = [obj.pk for obj in qs]
self.assertTrue(a.pk in pks)
self.assertTrue(b.pk in pks)
def test_reverse(self):
a = Normal.objects.language('en').create(translated_field = "English",
shared_field="A")
b = Normal.objects.language('en').create(translated_field = "English",
shared_field="B")
qs = Normal.objects.language('en').order_by('shared_field').reverse()
self.assertEqual(qs.count(), 2)
self.assertEqual(qs[0].pk, b.pk)
self.assertEqual(qs[1].pk, a.pk)
| 50.369565
| 78
| 0.543375
| 259
| 2,317
| 4.72973
| 0.185328
| 0.127347
| 0.205714
| 0.225306
| 0.758367
| 0.739592
| 0.721633
| 0.721633
| 0.721633
| 0.721633
| 0
| 0.007024
| 0.324126
| 2,317
| 46
| 79
| 50.369565
| 0.775224
| 0.009063
| 0
| 0.585366
| 0
| 0
| 0.054902
| 0
| 0
| 0
| 0
| 0
| 0.292683
| 1
| 0.097561
| false
| 0
| 0.073171
| 0
| 0.195122
| 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
|
5b3eac622a1d052af3d7012c06f13a9e4f4ce93e
| 58
|
py
|
Python
|
BackEnd/src/app/domain/authentication/secretKey.py
|
JeremieBeaudoin/LavalUniversityStockExchange
|
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
|
[
"Apache-2.0"
] | null | null | null |
BackEnd/src/app/domain/authentication/secretKey.py
|
JeremieBeaudoin/LavalUniversityStockExchange
|
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
|
[
"Apache-2.0"
] | null | null | null |
BackEnd/src/app/domain/authentication/secretKey.py
|
JeremieBeaudoin/LavalUniversityStockExchange
|
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
|
[
"Apache-2.0"
] | null | null | null |
secretKey = b'27cb928e49203190795942ae462269cd5c9f2766b'
| 29
| 57
| 0.87931
| 3
| 58
| 17
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.574074
| 0.068966
| 58
| 1
| 58
| 58
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0.719298
| 0.719298
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5bce6ffa5885965cc92bfc0d15069044d39732e1
| 117
|
py
|
Python
|
tests/data/import_from_return_multiple.out.py
|
bmerry/trollius-fixers
|
0ba4eba4ccc9795d0996ba8bd778e5651e0954ce
|
[
"MIT"
] | null | null | null |
tests/data/import_from_return_multiple.out.py
|
bmerry/trollius-fixers
|
0ba4eba4ccc9795d0996ba8bd778e5651e0954ce
|
[
"MIT"
] | null | null | null |
tests/data/import_from_return_multiple.out.py
|
bmerry/trollius-fixers
|
0ba4eba4ccc9795d0996ba8bd778e5651e0954ce
|
[
"MIT"
] | null | null | null |
from asyncio import ensure_future
from asyncio import wait
from asyncio import (
wait_for, ensure_future, wait)
| 19.5
| 34
| 0.794872
| 17
| 117
| 5.294118
| 0.411765
| 0.366667
| 0.566667
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17094
| 117
| 5
| 35
| 23.4
| 0.927835
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 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
|
5be712591b3b600a49479b489356d2bf3b51428e
| 192
|
py
|
Python
|
ipycollections/__init__.py
|
dataflownb/ipycollections-extension
|
8adfe53fcac1a153c0b529750666bb4676c160d7
|
[
"BSD-3-Clause"
] | 2
|
2020-10-14T16:13:07.000Z
|
2021-03-14T00:08:26.000Z
|
ipycollections/__init__.py
|
dataflownb/ipycollections-extension
|
8adfe53fcac1a153c0b529750666bb4676c160d7
|
[
"BSD-3-Clause"
] | null | null | null |
ipycollections/__init__.py
|
dataflownb/ipycollections-extension
|
8adfe53fcac1a153c0b529750666bb4676c160d7
|
[
"BSD-3-Clause"
] | null | null | null |
from ._version import __version__
from .formatter import enable, disable
def load_ipython_extension(ipython):
enable(ipython)
def unload_ipython_extension(ipython):
disable(ipython)
| 24
| 38
| 0.802083
| 23
| 192
| 6.304348
| 0.478261
| 0.22069
| 0.317241
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130208
| 192
| 8
| 39
| 24
| 0.868263
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
751ddf5e538b6db1f7f0c882e5bd75d376fc8a75
| 1,276
|
py
|
Python
|
drbert/data.py
|
DaltonSchutte/DrBertsOffice
|
3ada343d944d72ffeffaead29392141fd6083100
|
[
"MIT"
] | 2
|
2021-04-26T18:58:02.000Z
|
2022-03-23T21:14:08.000Z
|
drbert/data.py
|
DaltonSchutte/DrBertsOffice
|
3ada343d944d72ffeffaead29392141fd6083100
|
[
"MIT"
] | null | null | null |
drbert/data.py
|
DaltonSchutte/DrBertsOffice
|
3ada343d944d72ffeffaead29392141fd6083100
|
[
"MIT"
] | null | null | null |
from torch.utils.data import Dataset
class TaskDataset(Dataset):
"""Custom dataset
Holds inputs that are of the form:
(TEXT)[SEP]subject[SEP]predicate[SEP]object
Experiment expects 0 or 1 as a label
#TODO: make a special dataset class for NER
Attributes
----------
None
Methods
-------
None
"""
def __init__(self, inputs, labels):
self._inputs = inputs
self._labels = labels
def __len__(self):
return len(self._labels)
def __getitem__(self, idx):
item = {k: v[idx].clone().detach() for k, v in self._inputs.items()}
item['labels'] = torch.tensor(self._labels[idx])
return item
from torch.utils.data import Dataset
class NLPDataset(Dataset):
"""Custom dataset
Holds inputs that are of the form:
(TEXT)[SEP]subject[SEP]predicate[SEP]object
Experiment expects 0 or 1 as a label
#TODO: make a special dataset class for NER
Attributes
----------
None
Methods
-------
None
"""
def __init__(self, inputs, labels):
self._inputs = inputs
self._labels = labels
def __len__(self):
return len(self._labels)
def __getitem__(self, idx):
item = {k: v[idx].clone().detach() for k, v in self._inputs.items()}
item['labels'] = torch.tensor(self._labels[idx])
return item
| 21.266667
| 72
| 0.659091
| 178
| 1,276
| 4.533708
| 0.303371
| 0.074349
| 0.034696
| 0.04461
| 0.973978
| 0.973978
| 0.973978
| 0.884758
| 0.884758
| 0.884758
| 0
| 0.003949
| 0.206113
| 1,276
| 59
| 73
| 21.627119
| 0.792695
| 0.351881
| 0
| 0.909091
| 0
| 0
| 0.015584
| 0
| 0
| 0
| 0
| 0.033898
| 0
| 1
| 0.272727
| false
| 0
| 0.090909
| 0.090909
| 0.636364
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 10
|
752296d7dd5b14265adff6ed57bf76d264e33b3e
| 391
|
py
|
Python
|
src/spaceone/secret/error/custom.py
|
choonho/secret
|
dafe7294ba1e2a33104fdfe452b5f29b4c6e5b45
|
[
"Apache-2.0"
] | null | null | null |
src/spaceone/secret/error/custom.py
|
choonho/secret
|
dafe7294ba1e2a33104fdfe452b5f29b4c6e5b45
|
[
"Apache-2.0"
] | null | null | null |
src/spaceone/secret/error/custom.py
|
choonho/secret
|
dafe7294ba1e2a33104fdfe452b5f29b4c6e5b45
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from spaceone.core.error import *
class ERROR_ALREADY_EXIST_SECRET_IN_GROUP(ERROR_BASE):
_message = 'Secret is already exist in group.(secret_group_id = {secret_group_id}, secret_id = {secret_id})'
class ERROR_NOT_EXIST_SECRET_IN_GROUP(ERROR_BASE):
_message = 'Secret is not exist in group.(secret_group_id = {secret_group_id}, secret_id = {secret_id})'
| 32.583333
| 112
| 0.754476
| 60
| 391
| 4.483333
| 0.316667
| 0.178439
| 0.193309
| 0.282528
| 0.713755
| 0.713755
| 0.713755
| 0.713755
| 0.713755
| 0.401487
| 0
| 0.00295
| 0.132992
| 391
| 11
| 113
| 35.545455
| 0.79056
| 0.053708
| 0
| 0
| 0
| 0
| 0.505435
| 0.119565
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 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
| 1
| 0
|
0
| 7
|
75243cf5ad32057e3ae2af591e997e220350d84d
| 1,948
|
py
|
Python
|
03-gaming-xml-to-csv.py
|
mutazag/godzilla-sina
|
81f00c81e568a934d51adb549bd64cb9740dff7a
|
[
"MIT"
] | 2
|
2020-04-21T05:00:30.000Z
|
2020-05-11T10:14:25.000Z
|
03-gaming-xml-to-csv.py
|
mutazag/godzilla-sina
|
81f00c81e568a934d51adb549bd64cb9740dff7a
|
[
"MIT"
] | null | null | null |
03-gaming-xml-to-csv.py
|
mutazag/godzilla-sina
|
81f00c81e568a934d51adb549bd64cb9740dff7a
|
[
"MIT"
] | null | null | null |
# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
from helpers import *
# %%
domain = 'gaming'
domain_entities = raw.get_entities_dict(domain=domain)
# %%
domain_entities['Posts']
# %% [markdown]
# # Process Badges
# %%
ret = raw.convert_xml_to_csv(domain_entities['Badges'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Badges'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Comments
# %%
ret = raw.convert_xml_to_csv(domain_entities['Comments'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Comments'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Post History
# %%
ret = raw.convert_xml_to_csv(domain_entities['PostHistory'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['PostHistory'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Links
# %%
ret = raw.convert_xml_to_csv(domain_entities['PostLinks'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['PostLinks'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Posts
# %%
ret = raw.convert_xml_to_csv(domain_entities['Posts'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Posts'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Tags
# %%
ret = raw.convert_xml_to_csv(domain_entities['Tags'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Tags'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Users
# %%
ret = raw.convert_xml_to_csv(domain_entities['Users'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Users'], keeptext=True)
# %%
ret
# %% [markdown]
# # Process Votes
# %%
ret = raw.convert_xml_to_csv(domain_entities['Votes'], keeptext=False)
# %%
ret
# %%
ret = raw.convert_xml_to_csv(domain_entities['Votes'], keeptext=True)
# %%
| 12.175
| 76
| 0.662218
| 246
| 1,948
| 4.96748
| 0.142276
| 0.206219
| 0.170213
| 0.209493
| 0.828151
| 0.702128
| 0.702128
| 0.702128
| 0.702128
| 0.702128
| 0
| 0
| 0.158111
| 1,948
| 159
| 77
| 12.251572
| 0.745122
| 0.218686
| 0
| 0.428571
| 0
| 0
| 0.080357
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.028571
| 0
| 0.028571
| 0
| 0
| 0
| 0
| null | 1
| 0
| 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
|
75509c6faaa8a17778f3d5196614f15722f1bf4f
| 250,083
|
py
|
Python
|
pyboto3/iam.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
pyboto3/iam.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
pyboto3/iam.py
|
thecraftman/pyboto3
|
653a0db2b00b06708334431da8f169d1f7c7734f
|
[
"MIT"
] | null | null | null |
'''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
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.
'''
def add_client_id_to_open_id_connect_provider(OpenIDConnectProviderArn=None, ClientID=None):
"""
Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.
This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.
See also: AWS API Documentation
Examples
The following add-client-id-to-open-id-connect-provider command adds the client ID my-application-ID to the OIDC provider named server.example.com:
Expected Output:
:example: response = client.add_client_id_to_open_id_connect_provider(
OpenIDConnectProviderArn='string',
ClientID='string'
)
:type OpenIDConnectProviderArn: string
:param OpenIDConnectProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to add the client ID to. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.
:type ClientID: string
:param ClientID: [REQUIRED]
The client ID (also known as audience) to add to the IAM OpenID Connect provider resource.
:return: response = client.add_client_id_to_open_id_connect_provider(
ClientID='my-application-ID',
OpenIDConnectProviderArn='arn:aws:iam::123456789012:oidc-provider/server.example.com',
)
print(response)
"""
pass
def add_role_to_instance_profile(InstanceProfileName=None, RoleName=None):
"""
Adds the specified IAM role to the specified instance profile. An instance profile can contain only one role, and this limit cannot be increased.
For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
See also: AWS API Documentation
Examples
The following command adds the role named S3Access to the instance profile named Webserver:
Expected Output:
:example: response = client.add_role_to_instance_profile(
InstanceProfileName='string',
RoleName='string'
)
:type InstanceProfileName: string
:param InstanceProfileName: [REQUIRED]
The name of the instance profile to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to add.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:return: response = client.add_role_to_instance_profile(
InstanceProfileName='Webserver',
RoleName='S3Access',
)
print(response)
"""
pass
def add_user_to_group(GroupName=None, UserName=None):
"""
Adds the specified user to the specified group.
See also: AWS API Documentation
Examples
The following command adds an IAM user named Bob to the IAM group named Admins:
Expected Output:
:example: response = client.add_user_to_group(
GroupName='string',
UserName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to add.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.add_user_to_group(
GroupName='Admins',
UserName='Bob',
)
print(response)
"""
pass
def attach_group_policy(GroupName=None, PolicyArn=None):
"""
Attaches the specified managed policy to the specified IAM group.
You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy .
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM group named Finance.
Expected Output:
:example: response = client.attach_group_policy(
GroupName='string',
PolicyArn='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name (friendly name, not ARN) of the group to attach the policy to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:return: response = client.attach_group_policy(
GroupName='Finance',
PolicyArn='arn:aws:iam::aws:policy/ReadOnlyAccess',
)
print(response)
"""
pass
def attach_role_policy(RoleName=None, PolicyArn=None):
"""
Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy.
Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy . For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command attaches the AWS managed policy named ReadOnlyAccess to the IAM role named ReadOnlyRole.
Expected Output:
:example: response = client.attach_role_policy(
RoleName='string',
PolicyArn='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name (friendly name, not ARN) of the role to attach the policy to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:return: response = client.attach_role_policy(
PolicyArn='arn:aws:iam::aws:policy/ReadOnlyAccess',
RoleName='ReadOnlyRole',
)
print(response)
"""
pass
def attach_user_policy(UserName=None, PolicyArn=None):
"""
Attaches the specified managed policy to the specified user.
You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy .
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.
Expected Output:
:example: response = client.attach_user_policy(
UserName='string',
PolicyArn='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name (friendly name, not ARN) of the IAM user to attach the policy to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:return: response = client.attach_user_policy(
PolicyArn='arn:aws:iam::aws:policy/AdministratorAccess',
UserName='Alice',
)
print(response)
"""
pass
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator('create_foo').
"""
pass
def change_password(OldPassword=None, NewPassword=None):
"""
Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.
To change the password for a different user, see UpdateLoginProfile . For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command changes the password for the current IAM user.
Expected Output:
:example: response = client.change_password(
OldPassword='string',
NewPassword='string'
)
:type OldPassword: string
:param OldPassword: [REQUIRED]
The IAM user's current password.
:type NewPassword: string
:param NewPassword: [REQUIRED]
The new password. The new password must conform to the AWS account's password policy, if one exists.
The regex pattern used to validate this parameter is a string of characters consisting of almost any printable ASCII character from the space (u0020) through the end of the ASCII character range (u00FF). You can also include the tab (u0009), line feed (u000A), and carriage return (u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
:return: response = client.change_password(
NewPassword=']35d/{pB9Fo9wJ',
OldPassword='3s0K_;xh4~8XXI',
)
print(response)
"""
pass
def create_access_key(UserName=None):
"""
Creates a new AWS secret access key and corresponding AWS access key ID for the specified user. The default status for new keys is Active .
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
For information about limits on the number of keys you can create, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command creates an access key (access key ID and secret access key) for the IAM user named Bob.
Expected Output:
:example: response = client.create_access_key(
UserName='string'
)
:type UserName: string
:param UserName: The name of the IAM user that the new key will belong to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'AccessKey': {
'UserName': 'string',
'AccessKeyId': 'string',
'Status': 'Active'|'Inactive',
'SecretAccessKey': 'string',
'CreateDate': datetime(2015, 1, 1)
}
}
"""
pass
def create_account_alias(AccountAlias=None):
"""
Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command associates the alias examplecorp to your AWS account.
Expected Output:
:example: response = client.create_account_alias(
AccountAlias='string'
)
:type AccountAlias: string
:param AccountAlias: [REQUIRED]
The account alias to create.
This parameter allows (per its regex pattern ) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.
:return: response = client.create_account_alias(
AccountAlias='examplecorp',
)
print(response)
"""
pass
def create_group(Path=None, GroupName=None):
"""
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command creates an IAM group named Admins.
Expected Output:
:example: response = client.create_group(
Path='string',
GroupName='string'
)
:type Path: string
:param Path: The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group to create. Do not include the path in this value.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. The group name must be unique within the account. Group names are not distinguished by case. For example, you cannot create groups named both 'ADMINS' and 'admins'.
:rtype: dict
:return: {
'Group': {
'Path': 'string',
'GroupName': 'string',
'GroupId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1)
}
}
"""
pass
def create_instance_profile(InstanceProfileName=None, Path=None):
"""
Creates a new instance profile. For information about instance profiles, go to About Instance Profiles .
For information about the number of instance profiles you can create, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command creates an instance profile named Webserver that is ready to have a role attached and then be associated with an EC2 instance.
Expected Output:
:example: response = client.create_instance_profile(
InstanceProfileName='string',
Path='string'
)
:type InstanceProfileName: string
:param InstanceProfileName: [REQUIRED]
The name of the instance profile to create.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Path: string
:param Path: The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:rtype: dict
:return: {
'InstanceProfile': {
'Path': 'string',
'InstanceProfileName': 'string',
'InstanceProfileId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
]
}
}
"""
pass
def create_login_profile(UserName=None, Password=None, PasswordResetRequired=None):
"""
Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command changes IAM user Bob's password and sets the flag that required Bob to change the password the next time he signs in.
Expected Output:
:example: response = client.create_login_profile(
UserName='string',
Password='string',
PasswordResetRequired=True|False
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user to create a password for. The user must already exist.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Password: string
:param Password: [REQUIRED]
The new password for the user.
The regex pattern used to validate this parameter is a string of characters consisting of almost any printable ASCII character from the space (u0020) through the end of the ASCII character range (u00FF). You can also include the tab (u0009), line feed (u000A), and carriage return (u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.
:type PasswordResetRequired: boolean
:param PasswordResetRequired: Specifies whether the user is required to set a new password on next sign-in.
:rtype: dict
:return: {
'LoginProfile': {
'UserName': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordResetRequired': True|False
}
}
"""
pass
def create_open_id_connect_provider(Url=None, ClientIDList=None, ThumbprintList=None):
"""
Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC) .
The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.
When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.
See also: AWS API Documentation
Examples
The following example defines a new OIDC provider in IAM with a client ID of my-application-id and pointing at the server with a URL of https://server.example.com.
Expected Output:
:example: response = client.create_open_id_connect_provider(
Url='string',
ClientIDList=[
'string',
],
ThumbprintList=[
'string',
]
)
:type Url: string
:param Url: [REQUIRED]
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 host name, 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.
:type ClientIDList: list
:param ClientIDList: 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.
There is no defined format for a client ID. The CreateOpenIDConnectProviderRequest action accepts client IDs up to 255 characters long.
(string) --
:type ThumbprintList: list
:param ThumbprintList: [REQUIRED]
A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). 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, if the OIDC provider is server.example.com and the provider stores its keys at 'https://keys.server.example.com/openid-connect', the thumbprint string would be the hex-encoded SHA-1 hash value of the certificate used by https://keys.server.example.com.
For more information about obtaining the OIDC provider's thumbprint, see Obtaining the Thumbprint for an OpenID Connect Provider in the IAM User Guide .
(string) --Contains a thumbprint for an identity provider's server certificate.
The identity provider's server certificate thumbprint is the hex-encoded SHA-1 hash value of the self-signed X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.
:rtype: dict
:return: {
'OpenIDConnectProviderArn': 'string'
}
"""
pass
def create_policy(PolicyName=None, Path=None, PolicyDocument=None, Description=None):
"""
Creates a new managed policy for your AWS account.
This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide .
For more information about managed policies in general, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.create_policy(
PolicyName='string',
Path='string',
PolicyDocument='string',
Description='string'
)
:type PolicyName: string
:param PolicyName: [REQUIRED]
The friendly name of the policy.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Path: string
:param Path: The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The JSON policy document that you want to use as the content for the new policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type Description: string
:param Description: A friendly description of the 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.
:rtype: dict
:return: {
'Policy': {
'PolicyName': 'string',
'PolicyId': 'string',
'Arn': 'string',
'Path': 'string',
'DefaultVersionId': 'string',
'AttachmentCount': 123,
'IsAttachable': True|False,
'Description': 'string',
'CreateDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1)
}
}
"""
pass
def create_policy_version(PolicyArn=None, PolicyDocument=None, SetAsDefault=None):
"""
Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.
Optionally, you can set the new version as the policy's default version. The default version is the version that is in effect for the IAM users, groups, and roles to which the policy is attached.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.create_policy_version(
PolicyArn='string',
PolicyDocument='string',
SetAsDefault=True|False
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type SetAsDefault: boolean
:param SetAsDefault: Specifies whether to set this version as the policy's default version.
When this parameter is true , the new policy version becomes the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
:rtype: dict
:return: {
'PolicyVersion': {
'Document': 'string',
'VersionId': 'string',
'IsDefaultVersion': True|False,
'CreateDate': datetime(2015, 1, 1)
}
}
"""
pass
def create_role(Path=None, RoleName=None, AssumeRolePolicyDocument=None, Description=None):
"""
Creates a new role for your AWS account. For more information about roles, go to Working with Roles . For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command creates a role named Test-Role and attaches a trust policy to it that is provided as a URL-encoded JSON string.
Expected Output:
:example: response = client.create_role(
Path='string',
RoleName='string',
AssumeRolePolicyDocument='string',
Description='string'
)
:type Path: string
:param Path: The path to the role. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to create.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Role names are not distinguished by case. For example, you cannot create roles named both 'PRODROLE' and 'prodrole'.
:type AssumeRolePolicyDocument: string
:param AssumeRolePolicyDocument: [REQUIRED]
The trust relationship policy document that grants an entity permission to assume the role.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type Description: string
:param Description: A customer-provided description of the role.
:rtype: dict
:return: {
'Role': {
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
}
}
"""
pass
def create_saml_provider(SAMLMetadataDocument=None, Name=None):
"""
Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.
The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy to enable federated users who sign-in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.
When you create the SAML provider resource, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.
For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console and About SAML 2.0-based Federation in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.create_saml_provider(
SAMLMetadataDocument='string',
Name='string'
)
:type SAMLMetadataDocument: string
:param SAMLMetadataDocument: [REQUIRED]
An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
For more information, see About SAML 2.0-based Federation in the IAM User Guide
:type Name: string
:param Name: [REQUIRED]
The name of the provider to create.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'SAMLProviderArn': 'string'
}
"""
pass
def create_service_linked_role(AWSServiceName=None, Description=None, CustomSuffix=None):
"""
Creates an IAM role that is linked to a specific AWS service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed.
The name of the role is autogenerated by combining the string that you specify for the AWSServiceName parameter with the string that you specify for the CustomSuffix parameter. The resulting name must be unique in your account or the request fails.
To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.
See also: AWS API Documentation
:example: response = client.create_service_linked_role(
AWSServiceName='string',
Description='string',
CustomSuffix='string'
)
:type AWSServiceName: string
:param AWSServiceName: [REQUIRED]
The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com
:type Description: string
:param Description: The description of the role.
:type CustomSuffix: string
:param CustomSuffix: A string that you provide, which is combined with the service name to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.
:rtype: dict
:return: {
'Role': {
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
}
}
"""
pass
def create_service_specific_credential(UserName=None, ServiceName=None):
"""
Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.
You can have a maximum of two sets of service-specific credentials for each supported service per user.
The only supported service at this time is AWS CodeCommit.
You can reset the password to a new service-generated value by calling ResetServiceSpecificCredential .
For more information about service-specific credentials, see Using IAM with AWS CodeCommit: Git Credentials, SSH Keys, and AWS Access Keys in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.create_service_specific_credential(
UserName='string',
ServiceName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type ServiceName: string
:param ServiceName: [REQUIRED]
The name of the AWS service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
:rtype: dict
:return: {
'ServiceSpecificCredential': {
'CreateDate': datetime(2015, 1, 1),
'ServiceName': 'string',
'ServiceUserName': 'string',
'ServicePassword': 'string',
'ServiceSpecificCredentialId': 'string',
'UserName': 'string',
'Status': 'Active'|'Inactive'
}
}
"""
pass
def create_user(Path=None, UserName=None):
"""
Creates a new IAM user for your AWS account.
For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following create-user command creates an IAM user named Bob in the current account.
Expected Output:
:example: response = client.create_user(
Path='string',
UserName='string'
)
:type Path: string
:param Path: The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to create.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-. User names are not distinguished by case. For example, you cannot create users named both 'TESTUSER' and 'testuser'.
:rtype: dict
:return: {
'User': {
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
}
}
:returns:
The user does not have a password
The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014
there is no sign-in data associated with the user
"""
pass
def create_virtual_mfa_device(Path=None, VirtualMFADeviceName=None):
"""
Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide .
For information about limits on the number of MFA devices you can create, see Limitations on Entities in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.create_virtual_mfa_device(
Path='string',
VirtualMFADeviceName='string'
)
:type Path: string
:param Path: The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/).
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type VirtualMFADeviceName: string
:param VirtualMFADeviceName: [REQUIRED]
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'VirtualMFADevice': {
'SerialNumber': 'string',
'Base32StringSeed': b'bytes',
'QRCodePNG': b'bytes',
'User': {
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
},
'EnableDate': datetime(2015, 1, 1)
}
}
:returns:
The user does not have a password
The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014
there is no sign-in data associated with the user
"""
pass
def deactivate_mfa_device(UserName=None, SerialNumber=None):
"""
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.deactivate_mfa_device(
UserName='string',
SerialNumber='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user whose MFA device you want to deactivate.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SerialNumber: string
:param SerialNumber: [REQUIRED]
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
"""
pass
def delete_access_key(UserName=None, AccessKeyId=None):
"""
Deletes the access key pair associated with the specified IAM user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
See also: AWS API Documentation
Examples
The following command deletes one access key (access key ID and secret access key) assigned to the IAM user named Bob.
Expected Output:
:example: response = client.delete_access_key(
UserName='string',
AccessKeyId='string'
)
:type UserName: string
:param UserName: The name of the user whose access key pair you want to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type AccessKeyId: string
:param AccessKeyId: [REQUIRED]
The access key ID for the access key ID and secret access key you want to delete.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:return: response = client.delete_access_key(
AccessKeyId='AKIDPMS9RO4H3FEXAMPLE',
UserName='Bob',
)
print(response)
"""
pass
def delete_account_alias(AccountAlias=None):
"""
Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command removes the alias mycompany from the current AWS account:
Expected Output:
:example: response = client.delete_account_alias(
AccountAlias='string'
)
:type AccountAlias: string
:param AccountAlias: [REQUIRED]
The name of the account alias to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.
:return: response = client.delete_account_alias(
AccountAlias='mycompany',
)
print(response)
"""
pass
def delete_account_password_policy():
"""
Deletes the password policy for the AWS account. There are no parameters.
See also: AWS API Documentation
Examples
The following command removes the password policy from the current AWS account:
Expected Output:
:example: response = client.delete_account_password_policy()
:return: response = client.delete_account_password_policy(
)
print(response)
"""
pass
def delete_group(GroupName=None):
"""
Deletes the specified IAM group. The group must not contain any users or have any attached policies.
See also: AWS API Documentation
:example: response = client.delete_group(
GroupName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the IAM group to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
"""
pass
def delete_group_policy(GroupName=None, PolicyName=None):
"""
Deletes the specified inline policy that is embedded in the specified IAM group.
A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy . For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command deletes the policy named ExamplePolicy from the group named Admins:
Expected Output:
:example: response = client.delete_group_policy(
GroupName='string',
PolicyName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name (friendly name, not ARN) identifying the group that the policy is embedded in.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name identifying the policy document to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_group_policy(
GroupName='Admins',
PolicyName='ExamplePolicy',
)
print(response)
"""
pass
def delete_instance_profile(InstanceProfileName=None):
"""
Deletes the specified instance profile. The instance profile must not have an associated role.
For more information about instance profiles, go to About Instance Profiles .
See also: AWS API Documentation
Examples
The following command deletes the instance profile named ExampleInstanceProfile
Expected Output:
:example: response = client.delete_instance_profile(
InstanceProfileName='string'
)
:type InstanceProfileName: string
:param InstanceProfileName: [REQUIRED]
The name of the instance profile to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_instance_profile(
InstanceProfileName='ExampleInstanceProfile',
)
print(response)
"""
pass
def delete_login_profile(UserName=None):
"""
Deletes the password for the specified IAM user, which terminates the user's ability to access AWS services through the AWS Management Console.
See also: AWS API Documentation
Examples
The following command deletes the password for the IAM user named Bob.
Expected Output:
:example: response = client.delete_login_profile(
UserName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user whose password you want to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_login_profile(
UserName='Bob',
)
print(response)
"""
pass
def delete_open_id_connect_provider(OpenIDConnectProviderArn=None):
"""
Deletes an OpenID Connect identity provider (IdP) resource object in IAM.
Deleting an IAM OIDC provider resource does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a deleted provider fails.
This action is idempotent; it does not fail or return an error if you call the action for a provider that does not exist.
See also: AWS API Documentation
:example: response = client.delete_open_id_connect_provider(
OpenIDConnectProviderArn='string'
)
:type OpenIDConnectProviderArn: string
:param OpenIDConnectProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM OpenID Connect provider resource object to delete. You can get a list of OpenID Connect provider resource ARNs by using the ListOpenIDConnectProviders action.
"""
pass
def delete_policy(PolicyArn=None):
"""
Deletes the specified managed policy.
Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:
For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.delete_policy(
PolicyArn='string'
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to delete.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
"""
pass
def delete_policy_version(PolicyArn=None, VersionId=None):
"""
Deletes the specified version from the specified managed policy.
You cannot delete the default version from a policy using this API. To delete the default version from a policy, use DeletePolicy . To find out which version of a policy is marked as the default version, use ListPolicyVersions .
For information about versions for managed policies, see Versioning for Managed Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.delete_policy_version(
PolicyArn='string',
VersionId='string'
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy from which you want to delete a version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type VersionId: string
:param VersionId: [REQUIRED]
The policy version to delete.
This parameter allows (per its regex pattern ) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
"""
pass
def delete_role(RoleName=None):
"""
Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles .
See also: AWS API Documentation
Examples
The following command removes the role named Test-Role.
Expected Output:
:example: response = client.delete_role(
RoleName='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:return: response = client.delete_role(
RoleName='Test-Role',
)
print(response)
"""
pass
def delete_role_policy(RoleName=None, PolicyName=None):
"""
Deletes the specified inline policy that is embedded in the specified IAM role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy . For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command removes the policy named ExamplePolicy from the role named Test-Role.
Expected Output:
:example: response = client.delete_role_policy(
RoleName='string',
PolicyName='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name (friendly name, not ARN) identifying the role that the policy is embedded in.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the inline policy to delete from the specified IAM role.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_role_policy(
PolicyName='ExamplePolicy',
RoleName='Test-Role',
)
print(response)
"""
pass
def delete_saml_provider(SAMLProviderArn=None):
"""
Deletes a SAML provider resource in IAM.
Deleting the provider resource from IAM does not update any roles that reference the SAML provider resource's ARN as a principal in their trust policies. Any attempt to assume a role that references a non-existent provider resource ARN fails.
See also: AWS API Documentation
:example: response = client.delete_saml_provider(
SAMLProviderArn='string'
)
:type SAMLProviderArn: string
:param SAMLProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the SAML provider to delete.
"""
pass
def delete_server_certificate(ServerCertificateName=None):
"""
Deletes the specified server certificate.
For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.delete_server_certificate(
ServerCertificateName='string'
)
:type ServerCertificateName: string
:param ServerCertificateName: [REQUIRED]
The name of the server certificate you want to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
"""
pass
def delete_service_specific_credential(UserName=None, ServiceSpecificCredentialId=None):
"""
Deletes the specified service-specific credential.
See also: AWS API Documentation
:example: response = client.delete_service_specific_credential(
UserName='string',
ServiceSpecificCredentialId='string'
)
:type UserName: string
:param UserName: The name of the IAM user associated with the service-specific credential. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type ServiceSpecificCredentialId: string
:param ServiceSpecificCredentialId: [REQUIRED]
The unique identifier of the service-specific credential. You can get this value by calling ListServiceSpecificCredentials .
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
"""
pass
def delete_signing_certificate(UserName=None, CertificateId=None):
"""
Deletes a signing certificate associated with the specified IAM user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated IAM users.
See also: AWS API Documentation
Examples
The following command deletes the specified signing certificate for the IAM user named Anika.
Expected Output:
:example: response = client.delete_signing_certificate(
UserName='string',
CertificateId='string'
)
:type UserName: string
:param UserName: The name of the user the signing certificate belongs to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type CertificateId: string
:param CertificateId: [REQUIRED]
The ID of the signing certificate to delete.
The format of this parameter, as described by its regex pattern, is a string of characters that can be upper- or lower-cased letters or digits.
:return: response = client.delete_signing_certificate(
CertificateId='TA7SMP42TDN5Z26OBPJE7EXAMPLE',
UserName='Anika',
)
print(response)
"""
pass
def delete_ssh_public_key(UserName=None, SSHPublicKeyId=None):
"""
Deletes the specified SSH public key.
The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
See also: AWS API Documentation
:example: response = client.delete_ssh_public_key(
UserName='string',
SSHPublicKeyId='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user associated with the SSH public key.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SSHPublicKeyId: string
:param SSHPublicKeyId: [REQUIRED]
The unique identifier for the SSH public key.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
"""
pass
def delete_user(UserName=None):
"""
Deletes the specified IAM user. The user must not belong to any groups or have any access keys, signing certificates, or attached policies.
See also: AWS API Documentation
Examples
The following command removes the IAM user named Bob from the current account.
Expected Output:
:example: response = client.delete_user(
UserName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_user(
UserName='Bob',
)
print(response)
"""
pass
def delete_user_policy(UserName=None, PolicyName=None):
"""
Deletes the specified inline policy that is embedded in the specified IAM user.
A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy . For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
Examples
The following delete-user-policy command removes the specified policy from the IAM user named Juan:
Expected Output:
:example: response = client.delete_user_policy(
UserName='string',
PolicyName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name (friendly name, not ARN) identifying the user that the policy is embedded in.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name identifying the policy document to delete.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.delete_user_policy(
PolicyName='ExamplePolicy',
UserName='Juan',
)
print(response)
"""
pass
def delete_virtual_mfa_device(SerialNumber=None):
"""
Deletes a virtual MFA device.
See also: AWS API Documentation
Examples
The following delete-virtual-mfa-device command removes the specified MFA device from the current AWS account.
Expected Output:
:example: response = client.delete_virtual_mfa_device(
SerialNumber='string'
)
:type SerialNumber: string
:param SerialNumber: [REQUIRED]
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
:return: response = client.delete_virtual_mfa_device(
SerialNumber='arn:aws:iam::123456789012:mfa/ExampleName',
)
print(response)
"""
pass
def detach_group_policy(GroupName=None, PolicyArn=None):
"""
Removes the specified managed policy from the specified IAM group.
A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.detach_group_policy(
GroupName='string',
PolicyArn='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name (friendly name, not ARN) of the IAM group to detach the policy from.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to detach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
"""
pass
def detach_role_policy(RoleName=None, PolicyArn=None):
"""
Removes the specified managed policy from the specified role.
A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.detach_role_policy(
RoleName='string',
PolicyArn='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name (friendly name, not ARN) of the IAM role to detach the policy from.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to detach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
"""
pass
def detach_user_policy(UserName=None, PolicyArn=None):
"""
Removes the specified managed policy from the specified user.
A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.detach_user_policy(
UserName='string',
PolicyArn='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name (friendly name, not ARN) of the IAM user to detach the policy from.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy you want to detach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
"""
pass
def enable_mfa_device(UserName=None, SerialNumber=None, AuthenticationCode1=None, AuthenticationCode2=None):
"""
Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.
See also: AWS API Documentation
:example: response = client.enable_mfa_device(
UserName='string',
SerialNumber='string',
AuthenticationCode1='string',
AuthenticationCode2='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SerialNumber: string
:param SerialNumber: [REQUIRED]
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
:type AuthenticationCode1: string
:param AuthenticationCode1: [REQUIRED]
An authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
Warning
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device .
:type AuthenticationCode2: string
:param AuthenticationCode2: [REQUIRED]
A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
Warning
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device .
"""
pass
def generate_credential_report():
"""
Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.generate_credential_report()
:rtype: dict
:return: {
'State': 'STARTED'|'INPROGRESS'|'COMPLETE',
'Description': 'string'
}
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to
ClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid
for. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By
default, the http method is whatever is used in the method's model.
"""
pass
def get_access_key_last_used(AccessKeyId=None):
"""
Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.
See also: AWS API Documentation
:example: response = client.get_access_key_last_used(
AccessKeyId='string'
)
:type AccessKeyId: string
:param AccessKeyId: [REQUIRED]
The identifier of an access key.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:rtype: dict
:return: {
'UserName': 'string',
'AccessKeyLastUsed': {
'LastUsedDate': datetime(2015, 1, 1),
'ServiceName': 'string',
'Region': 'string'
}
}
:returns:
The user does not have an access key.
An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.
There is no sign-in data associated with the user
"""
pass
def get_account_authorization_details(Filter=None, MaxItems=None, Marker=None):
"""
Retrieves information about all IAM users, groups, roles, and policies in your AWS account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.
You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.get_account_authorization_details(
Filter=[
'User'|'Role'|'Group'|'LocalManagedPolicy'|'AWSManagedPolicy',
],
MaxItems=123,
Marker='string'
)
:type Filter: list
:param Filter: A list of entity types used to filter the results. Only the entities that match the types you specify are included in the output. Use the value LocalManagedPolicy to include customer managed policies.
The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the list must be one of the valid values listed below.
(string) --
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:rtype: dict
:return: {
'UserDetailList': [
{
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'UserPolicyList': [
{
'PolicyName': 'string',
'PolicyDocument': 'string'
},
],
'GroupList': [
'string',
],
'AttachedManagedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
]
},
],
'GroupDetailList': [
{
'Path': 'string',
'GroupName': 'string',
'GroupId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'GroupPolicyList': [
{
'PolicyName': 'string',
'PolicyDocument': 'string'
},
],
'AttachedManagedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
]
},
],
'RoleDetailList': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'InstanceProfileList': [
{
'Path': 'string',
'InstanceProfileName': 'string',
'InstanceProfileId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
]
},
],
'RolePolicyList': [
{
'PolicyName': 'string',
'PolicyDocument': 'string'
},
],
'AttachedManagedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
]
},
],
'Policies': [
{
'PolicyName': 'string',
'PolicyId': 'string',
'Arn': 'string',
'Path': 'string',
'DefaultVersionId': 'string',
'AttachmentCount': 123,
'IsAttachable': True|False,
'Description': 'string',
'CreateDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'PolicyVersionList': [
{
'Document': 'string',
'VersionId': 'string',
'IsDefaultVersion': True|False,
'CreateDate': datetime(2015, 1, 1)
},
]
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def get_account_password_policy():
"""
Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy .
See also: AWS API Documentation
Examples
The following command displays details about the password policy for the current AWS account.
Expected Output:
:example: response = client.get_account_password_policy()
:rtype: dict
:return: {
'PasswordPolicy': {
'MinimumPasswordLength': 123,
'RequireSymbols': True|False,
'RequireNumbers': True|False,
'RequireUppercaseCharacters': True|False,
'RequireLowercaseCharacters': True|False,
'AllowUsersToChangePassword': True|False,
'ExpirePasswords': True|False,
'MaxPasswordAge': 123,
'PasswordReusePrevention': 123,
'HardExpiry': True|False
}
}
"""
pass
def get_account_summary():
"""
Retrieves information about IAM entity usage and IAM quotas in the AWS account.
For information about limitations on IAM entities, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command returns information about the IAM entity quotas and usage in the current AWS account.
Expected Output:
:example: response = client.get_account_summary()
:rtype: dict
:return: {
'SummaryMap': {
'string': 123
}
}
"""
pass
def get_context_keys_for_custom_policy(PolicyInputList=None):
"""
Gets a list of all of the context keys referenced in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy .
Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy to understand what key names and values you must supply when you call SimulateCustomPolicy . Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.
See also: AWS API Documentation
:example: response = client.get_context_keys_for_custom_policy(
PolicyInputList=[
'string',
]
)
:type PolicyInputList: list
:param PolicyInputList: [REQUIRED]
A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
(string) --
:rtype: dict
:return: {
'ContextKeyNames': [
'string',
]
}
:returns:
(string) --
"""
pass
def get_context_keys_for_principal_policy(PolicySourceArn=None, PolicyInputList=None):
"""
Gets a list of all of the context keys referenced in all of the IAM policies attached to the specified IAM entity. The entity can be an IAM user, group, or role. If you specify a user, then the request also includes all of the policies attached to groups that the user is a member of.
You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.
Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand what key names and values you must supply when you call SimulatePrincipalPolicy .
See also: AWS API Documentation
:example: response = client.get_context_keys_for_principal_policy(
PolicySourceArn='string',
PolicyInputList=[
'string',
]
)
:type PolicySourceArn: string
:param PolicySourceArn: [REQUIRED]
The ARN of a user, group, or role whose policies contain the context keys that you want listed. If you specify a user, the list includes context keys that are found in all policies attached to the user as well as to all groups that the user is a member of. If you pick a group or a role, then it includes only those context keys that are found in policies attached to that entity. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type PolicyInputList: list
:param PolicyInputList: An optional list of additional policies for which you want the list of context keys that are referenced.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
(string) --
:rtype: dict
:return: {
'ContextKeyNames': [
'string',
]
}
:returns:
(string) --
"""
pass
def get_credential_report():
"""
Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_credential_report()
:rtype: dict
:return: {
'Content': b'bytes',
'ReportFormat': 'text/csv',
'GeneratedTime': datetime(2015, 1, 1)
}
"""
pass
def get_group(GroupName=None, Marker=None, MaxItems=None):
"""
Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.get_group(
GroupName='string',
Marker='string',
MaxItems=123
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Group': {
'Path': 'string',
'GroupName': 'string',
'GroupId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1)
},
'Users': [
{
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateUser
GetUser
ListUsers
"""
pass
def get_group_policy(GroupName=None, PolicyName=None):
"""
Retrieves the specified inline policy document that is embedded in the specified IAM group.
An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_group_policy(
GroupName='string',
PolicyName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group the policy is associated with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document to get.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'GroupName': 'string',
'PolicyName': 'string',
'PolicyDocument': 'string'
}
"""
pass
def get_instance_profile(InstanceProfileName=None):
"""
Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see About Instance Profiles in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command gets information about the instance profile named ExampleInstanceProfile.
Expected Output:
:example: response = client.get_instance_profile(
InstanceProfileName='string'
)
:type InstanceProfileName: string
:param InstanceProfileName: [REQUIRED]
The name of the instance profile to get information about.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'InstanceProfile': {
'Path': 'string',
'InstanceProfileName': 'string',
'InstanceProfileId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
]
}
}
"""
pass
def get_login_profile(UserName=None):
"""
Retrieves the user name and password-creation date for the specified IAM user. If the user has not been assigned a password, the action returns a 404 (NoSuchEntity ) error.
See also: AWS API Documentation
Examples
The following command gets information about the password for the IAM user named Anika.
Expected Output:
:example: response = client.get_login_profile(
UserName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user whose login profile you want to retrieve.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'LoginProfile': {
'UserName': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordResetRequired': True|False
}
}
"""
pass
def get_open_id_connect_provider(OpenIDConnectProviderArn=None):
"""
Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.
See also: AWS API Documentation
:example: response = client.get_open_id_connect_provider(
OpenIDConnectProviderArn='string'
)
:type OpenIDConnectProviderArn: string
:param OpenIDConnectProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM to get information for. You can get a list of OIDC provider resource ARNs by using the ListOpenIDConnectProviders action.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:rtype: dict
:return: {
'Url': 'string',
'ClientIDList': [
'string',
],
'ThumbprintList': [
'string',
],
'CreateDate': datetime(2015, 1, 1)
}
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
"""
pass
def get_policy(PolicyArn=None):
"""
Retrieves information about the specified managed policy, including the policy's default version and the total number of IAM users, groups, and roles to which the policy is attached. To retrieve the list of the specific users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API. This API returns metadata about the policy. To retrieve the actual policy document for a specific version of the policy, use GetPolicyVersion .
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded with an IAM user, group, or role, use the GetUserPolicy , GetGroupPolicy , or GetRolePolicy API.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_policy(
PolicyArn='string'
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the managed policy that you want information about.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:rtype: dict
:return: {
'Policy': {
'PolicyName': 'string',
'PolicyId': 'string',
'Arn': 'string',
'Path': 'string',
'DefaultVersionId': 'string',
'AttachmentCount': 123,
'IsAttachable': True|False,
'Description': 'string',
'CreateDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1)
}
}
"""
pass
def get_policy_version(PolicyArn=None, VersionId=None):
"""
Retrieves information about the specified version of the specified managed policy, including the policy document.
To list the available versions for a policy, use ListPolicyVersions .
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy , GetGroupPolicy , or GetRolePolicy API.
For more information about the types of policies, see Managed Policies and Inline Policies in the IAM User Guide .
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_policy_version(
PolicyArn='string',
VersionId='string'
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the managed policy that you want information about.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type VersionId: string
:param VersionId: [REQUIRED]
Identifies the policy version to retrieve.
This parameter allows (per its regex pattern ) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.
:rtype: dict
:return: {
'PolicyVersion': {
'Document': 'string',
'VersionId': 'string',
'IsDefaultVersion': True|False,
'CreateDate': datetime(2015, 1, 1)
}
}
"""
pass
def get_role(RoleName=None):
"""
Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see Working with Roles .
See also: AWS API Documentation
Examples
The following command gets information about the role named Test-Role.
Expected Output:
:example: response = client.get_role(
RoleName='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the IAM role to get information about.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:rtype: dict
:return: {
'Role': {
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
}
}
"""
pass
def get_role_policy(RoleName=None, PolicyName=None):
"""
Retrieves the specified inline policy document that is embedded with the specified IAM role.
An IAM role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
For more information about roles, see Using Roles to Delegate Permissions and Federate Identities .
See also: AWS API Documentation
:example: response = client.get_role_policy(
RoleName='string',
PolicyName='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role associated with the policy.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document to get.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'RoleName': 'string',
'PolicyName': 'string',
'PolicyDocument': 'string'
}
"""
pass
def get_saml_provider(SAMLProviderArn=None):
"""
Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.
See also: AWS API Documentation
:example: response = client.get_saml_provider(
SAMLProviderArn='string'
)
:type SAMLProviderArn: string
:param SAMLProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the SAML provider resource object in IAM to get information about.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:rtype: dict
:return: {
'SAMLMetadataDocument': 'string',
'CreateDate': datetime(2015, 1, 1),
'ValidUntil': datetime(2015, 1, 1)
}
"""
pass
def get_server_certificate(ServerCertificateName=None):
"""
Retrieves information about the specified server certificate stored in IAM.
For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_server_certificate(
ServerCertificateName='string'
)
:type ServerCertificateName: string
:param ServerCertificateName: [REQUIRED]
The name of the server certificate you want to retrieve information about.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'ServerCertificate': {
'ServerCertificateMetadata': {
'Path': 'string',
'ServerCertificateName': 'string',
'ServerCertificateId': 'string',
'Arn': 'string',
'UploadDate': datetime(2015, 1, 1),
'Expiration': datetime(2015, 1, 1)
},
'CertificateBody': 'string',
'CertificateChain': 'string'
}
}
"""
pass
def get_ssh_public_key(UserName=None, SSHPublicKeyId=None, Encoding=None):
"""
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
See also: AWS API Documentation
:example: response = client.get_ssh_public_key(
UserName='string',
SSHPublicKeyId='string',
Encoding='SSH'|'PEM'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user associated with the SSH public key.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SSHPublicKeyId: string
:param SSHPublicKeyId: [REQUIRED]
The unique identifier for the SSH public key.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:type Encoding: string
:param Encoding: [REQUIRED]
Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH . To retrieve the public key in PEM format, use PEM .
:rtype: dict
:return: {
'SSHPublicKey': {
'UserName': 'string',
'SSHPublicKeyId': 'string',
'Fingerprint': 'string',
'SSHPublicKeyBody': 'string',
'Status': 'Active'|'Inactive',
'UploadDate': datetime(2015, 1, 1)
}
}
"""
pass
def get_user(UserName=None):
"""
Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request to this API.
See also: AWS API Documentation
Examples
The following command gets information about the IAM user named Bob.
Expected Output:
:example: response = client.get_user(
UserName='string'
)
:type UserName: string
:param UserName: The name of the user to get information about.
This parameter is optional. If it is not included, it defaults to the user making the request. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'User': {
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
}
}
"""
pass
def get_user_policy(UserName=None, PolicyName=None):
"""
Retrieves the specified inline policy document that is embedded in the specified IAM user.
An IAM user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.get_user_policy(
UserName='string',
PolicyName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user who the policy is associated with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document to get.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:rtype: dict
:return: {
'UserName': 'string',
'PolicyName': 'string',
'PolicyDocument': 'string'
}
"""
pass
def get_waiter():
"""
"""
pass
def list_access_keys(UserName=None, Marker=None, MaxItems=None):
"""
Returns information about the access key IDs associated with the specified IAM user. If there are none, the action returns an empty list.
Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.
If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
See also: AWS API Documentation
Examples
The following command lists the access keys IDs for the IAM user named Alice.
Expected Output:
:example: response = client.list_access_keys(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: The name of the user.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'AccessKeyMetadata': [
{
'UserName': 'string',
'AccessKeyId': 'string',
'Status': 'Active'|'Inactive',
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_account_aliases(Marker=None, MaxItems=None):
"""
Lists the account alias associated with the AWS account (Note: you can have only one). For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command lists the aliases for the current account.
Expected Output:
:example: response = client.list_account_aliases(
Marker='string',
MaxItems=123
)
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'AccountAliases': [
'string',
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def list_attached_group_policies(GroupName=None, PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists all managed policies that are attached to the specified IAM group.
An IAM group can also have inline policies embedded with it. To list the inline policies for a group, use the ListGroupPolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.
See also: AWS API Documentation
:example: response = client.list_attached_group_policies(
GroupName='string',
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name (friendly name, not ARN) of the group to list attached policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'AttachedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_attached_role_policies(RoleName=None, PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists all managed policies that are attached to the specified IAM role.
An IAM role can also have inline policies embedded with it. To list the inline policies for a role, use the ListRolePolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the action returns an empty list.
See also: AWS API Documentation
:example: response = client.list_attached_role_policies(
RoleName='string',
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name (friendly name, not ARN) of the role to list attached policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'AttachedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_attached_user_policies(UserName=None, PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists all managed policies that are attached to the specified IAM user.
An IAM user can also have inline policies embedded with it. To list the inline policies for a user, use the ListUserPolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.
See also: AWS API Documentation
:example: response = client.list_attached_user_policies(
UserName='string',
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: [REQUIRED]
The name (friendly name, not ARN) of the user to list attached policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'AttachedPolicies': [
{
'PolicyName': 'string',
'PolicyArn': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_entities_for_policy(PolicyArn=None, EntityFilter=None, PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists all IAM users, groups, and roles that the specified managed policy is attached to.
You can use the optional EntityFilter parameter to limit the results to a particular type of entity (users, groups, or roles). For example, to list only the roles that are attached to the specified policy, set EntityFilter to Role .
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_entities_for_policy(
PolicyArn='string',
EntityFilter='User'|'Role'|'Group'|'LocalManagedPolicy'|'AWSManagedPolicy',
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy for which you want the versions.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type EntityFilter: string
:param EntityFilter: The entity type to use for filtering the results.
For example, when EntityFilter is Role , only the roles that are attached to the specified policy are returned. This parameter is optional. If it is not included, all attached entities (users, groups, and roles) are returned. The argument for this parameter must be one of the valid values listed below.
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all entities.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'PolicyGroups': [
{
'GroupName': 'string',
'GroupId': 'string'
},
],
'PolicyUsers': [
{
'UserName': 'string',
'UserId': 'string'
},
],
'PolicyRoles': [
{
'RoleName': 'string',
'RoleId': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_group_policies(GroupName=None, Marker=None, MaxItems=None):
"""
Lists the names of the inline policies that are embedded in the specified IAM group.
An IAM group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies . For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified group, the action returns an empty list.
See also: AWS API Documentation
Examples
The following command lists the names of in-line policies that are embedded in the IAM group named Admins.
Expected Output:
:example: response = client.list_group_policies(
GroupName='string',
Marker='string',
MaxItems=123
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group to list policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'PolicyNames': [
'string',
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def list_groups(PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists the IAM groups that have the specified path prefix.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Examples
The following command lists the IAM groups in the current account:
Expected Output:
:example: response = client.list_groups(
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ gets all groups whose path starts with /division_abc/subdivision_xyz/ .
This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Groups': [
{
'Path': 'string',
'GroupName': 'string',
'GroupId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateGroup
GetGroup
ListGroups
"""
pass
def list_groups_for_user(UserName=None, Marker=None, MaxItems=None):
"""
Lists the IAM groups that the specified IAM user belongs to.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Examples
The following command displays the groups that the IAM user named Bob belongs to.
Expected Output:
:example: response = client.list_groups_for_user(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to list groups for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Groups': [
{
'Path': 'string',
'GroupName': 'string',
'GroupId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateGroup
GetGroup
ListGroups
"""
pass
def list_instance_profiles(PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_instance_profiles(
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all instance profiles whose path starts with /application_abc/component_xyz/ .
This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'InstanceProfiles': [
{
'Path': 'string',
'InstanceProfileName': 'string',
'InstanceProfileId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
]
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateInstanceProfile
GetInstanceProfile
ListInstanceProfiles
ListInstanceProfilesForRole
"""
pass
def list_instance_profiles_for_role(RoleName=None, Marker=None, MaxItems=None):
"""
Lists the instance profiles that have the specified associated IAM role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles .
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_instance_profiles_for_role(
RoleName='string',
Marker='string',
MaxItems=123
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to list instance profiles for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'InstanceProfiles': [
{
'Path': 'string',
'InstanceProfileName': 'string',
'InstanceProfileId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
]
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateInstanceProfile
GetInstanceProfile
ListInstanceProfiles
ListInstanceProfilesForRole
"""
pass
def list_mfa_devices(UserName=None, Marker=None, MaxItems=None):
"""
Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this action lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request for this API.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_mfa_devices(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: The name of the user whose MFA devices you want to list.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'MFADevices': [
{
'UserName': 'string',
'SerialNumber': 'string',
'EnableDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_open_id_connect_providers():
"""
Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the AWS account.
See also: AWS API Documentation
:example: response = client.list_open_id_connect_providers()
:rtype: dict
:return: {
'OpenIDConnectProviderList': [
{
'Arn': 'string'
},
]
}
"""
pass
def list_policies(Scope=None, OnlyAttached=None, PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists all the managed policies that are available in your AWS account, including your own customer-defined managed policies and all AWS managed policies.
You can filter the list of policies that is returned using the optional OnlyAttached , Scope , and PathPrefix parameters. For example, to list only the customer managed policies in your AWS account, set Scope to Local . To list only AWS managed policies, set Scope to AWS .
You can paginate the results using the MaxItems and Marker parameters.
For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.list_policies(
Scope='All'|'AWS'|'Local',
OnlyAttached=True|False,
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type Scope: string
:param Scope: The scope to use for filtering the results.
To list only AWS managed policies, set Scope to AWS . To list only the customer managed policies in your AWS account, set Scope to Local .
This parameter is optional. If it is not included, or if it is set to All , all policies are returned.
:type OnlyAttached: boolean
:param OnlyAttached: A flag to filter the results to only the attached policies.
When OnlyAttached is true , the returned list contains only the policies that are attached to an IAM user, group, or role. When OnlyAttached is false , or when the parameter is not included, all policies are returned.
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Policies': [
{
'PolicyName': 'string',
'PolicyId': 'string',
'Arn': 'string',
'Path': 'string',
'DefaultVersionId': 'string',
'AttachmentCount': 123,
'IsAttachable': True|False,
'Description': 'string',
'CreateDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_policy_versions(PolicyArn=None, Marker=None, MaxItems=None):
"""
Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.
For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.list_policy_versions(
PolicyArn='string',
Marker='string',
MaxItems=123
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy for which you want the versions.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Versions': [
{
'Document': 'string',
'VersionId': 'string',
'IsDefaultVersion': True|False,
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_role_policies(RoleName=None, Marker=None, MaxItems=None):
"""
Lists the names of the inline policies that are embedded in the specified IAM role.
An IAM role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies . For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified role, the action returns an empty list.
See also: AWS API Documentation
:example: response = client.list_role_policies(
RoleName='string',
Marker='string',
MaxItems=123
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to list policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'PolicyNames': [
'string',
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def list_roles(PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists the IAM roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about roles, go to Working with Roles .
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_roles(
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all roles whose path starts with /application_abc/component_xyz/ .
This parameter is optional. If it is not included, it defaults to a slash (/), listing all roles. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Roles': [
{
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_saml_providers():
"""
Lists the SAML provider resource objects defined in IAM in the account.
See also: AWS API Documentation
:example: response = client.list_saml_providers()
:rtype: dict
:return: {
'SAMLProviderList': [
{
'Arn': 'string',
'ValidUntil': datetime(2015, 1, 1),
'CreateDate': datetime(2015, 1, 1)
},
]
}
"""
pass
def list_server_certificates(PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the action returns an empty list.
You can paginate the results using the MaxItems and Marker parameters.
For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.list_server_certificates(
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts .
This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'ServerCertificateMetadataList': [
{
'Path': 'string',
'ServerCertificateName': 'string',
'ServerCertificateId': 'string',
'Arn': 'string',
'UploadDate': datetime(2015, 1, 1),
'Expiration': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_service_specific_credentials(UserName=None, ServiceName=None):
"""
Returns information about the service-specific credentials associated with the specified IAM user. If there are none, the action returns an empty list. The service-specific credentials returned by this action are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an AWS service, see Set Up service-specific credentials in the AWS CodeCommit User Guide.
See also: AWS API Documentation
:example: response = client.list_service_specific_credentials(
UserName='string',
ServiceName='string'
)
:type UserName: string
:param UserName: The name of the user whose service-specific credentials you want information about. If this value is not specified then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type ServiceName: string
:param ServiceName: Filters the returned results to only those for the specified AWS service. If not specified, then AWS returns service-specific credentials for all services.
:rtype: dict
:return: {
'ServiceSpecificCredentials': [
{
'UserName': 'string',
'Status': 'Active'|'Inactive',
'ServiceUserName': 'string',
'CreateDate': datetime(2015, 1, 1),
'ServiceSpecificCredentialId': 'string',
'ServiceName': 'string'
},
]
}
"""
pass
def list_signing_certificates(UserName=None, Marker=None, MaxItems=None):
"""
Returns information about the signing certificates associated with the specified IAM user. If there are none, the action returns an empty list.
Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.
If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this API. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
See also: AWS API Documentation
Examples
The following command lists the signing certificates for the IAM user named Bob.
Expected Output:
:example: response = client.list_signing_certificates(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: The name of the IAM user whose signing certificates you want to examine.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Certificates': [
{
'UserName': 'string',
'CertificateId': 'string',
'CertificateBody': 'string',
'Status': 'Active'|'Inactive',
'UploadDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_ssh_public_keys(UserName=None, Marker=None, MaxItems=None):
"""
Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.
The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
:example: response = client.list_ssh_public_keys(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: The name of the IAM user to list SSH public keys for. If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'SSHPublicKeys': [
{
'UserName': 'string',
'SSHPublicKeyId': 'string',
'Status': 'Active'|'Inactive',
'UploadDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
"""
pass
def list_user_policies(UserName=None, Marker=None, MaxItems=None):
"""
Lists the names of the inline policies embedded in the specified IAM user.
An IAM user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies . For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified user, the action returns an empty list.
See also: AWS API Documentation
:example: response = client.list_user_policies(
UserName='string',
Marker='string',
MaxItems=123
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to list policies for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'PolicyNames': [
'string',
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def list_users(PathPrefix=None, Marker=None, MaxItems=None):
"""
Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Examples
The following command lists the IAM users in the current account.
Expected Output:
:example: response = client.list_users(
PathPrefix='string',
Marker='string',
MaxItems=123
)
:type PathPrefix: string
:param PathPrefix: The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/ , which would get all user names whose path starts with /division_abc/subdivision_xyz/ .
This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names. This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'Users': [
{
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
CreateUser
GetUser
ListUsers
"""
pass
def list_virtual_mfa_devices(AssignmentStatus=None, Marker=None, MaxItems=None):
"""
Lists the virtual MFA devices defined in the AWS account by assignment status. If you do not specify an assignment status, the action returns a list of all virtual MFA devices. Assignment status can be Assigned , Unassigned , or Any .
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Examples
The following command lists the virtual MFA devices that have been configured for the current account.
Expected Output:
:example: response = client.list_virtual_mfa_devices(
AssignmentStatus='Assigned'|'Unassigned'|'Any',
Marker='string',
MaxItems=123
)
:type AssignmentStatus: string
:param AssignmentStatus: The status (Unassigned or Assigned ) of the devices to list. If you do not specify an AssignmentStatus , the action defaults to Any which lists both assigned and unassigned virtual MFA devices.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:rtype: dict
:return: {
'VirtualMFADevices': [
{
'SerialNumber': 'string',
'Base32StringSeed': b'bytes',
'QRCodePNG': b'bytes',
'User': {
'Path': 'string',
'UserName': 'string',
'UserId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'PasswordLastUsed': datetime(2015, 1, 1)
},
'EnableDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
The user does not have a password
The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014
there is no sign-in data associated with the user
"""
pass
def put_group_policy(GroupName=None, PolicyName=None, PolicyDocument=None):
"""
Adds or updates an inline policy document that is embedded in the specified IAM group.
A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy . To create a new managed policy, use CreatePolicy . For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command adds a policy named AllPerms to the IAM group named Admins.
Expected Output:
:example: response = client.put_group_policy(
GroupName='string',
PolicyName='string',
PolicyDocument='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group to associate the policy with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The policy document.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:return: response = client.put_group_policy(
GroupName='Admins',
PolicyDocument='{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"*","Resource":"*"}}',
PolicyName='AllPerms',
)
print(response)
"""
pass
def put_role_policy(RoleName=None, PolicyName=None, PolicyDocument=None):
"""
Adds or updates an inline policy document that is embedded in the specified IAM role.
When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole . You can update a role's trust policy using UpdateAssumeRolePolicy . For more information about IAM roles, go to Using Roles to Delegate Permissions and Federate Identities .
A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy . To create a new managed policy, use CreatePolicy . For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed with a role, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command adds a permissions policy to the role named Test-Role.
Expected Output:
:example: response = client.put_role_policy(
RoleName='string',
PolicyName='string',
PolicyDocument='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to associate the policy with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The policy document.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:return: response = client.put_role_policy(
PolicyDocument='{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"s3:*","Resource":"*"}}',
PolicyName='S3AccessPolicy',
RoleName='S3Access',
)
print(response)
"""
pass
def put_user_policy(UserName=None, PolicyName=None, PolicyDocument=None):
"""
Adds or updates an inline policy document that is embedded in the specified IAM user.
An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy . To create a new managed policy, use CreatePolicy . For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command attaches a policy to the IAM user named Bob.
Expected Output:
:example: response = client.put_user_policy(
UserName='string',
PolicyName='string',
PolicyDocument='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to associate the policy with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyName: string
:param PolicyName: [REQUIRED]
The name of the policy document.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The policy document.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:return: response = client.put_user_policy(
PolicyDocument='{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"*","Resource":"*"}}',
PolicyName='AllAccessPolicy',
UserName='Bob',
)
print(response)
"""
pass
def remove_client_id_from_open_id_connect_provider(OpenIDConnectProviderArn=None, ClientID=None):
"""
Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.
This action is idempotent; it does not fail or return an error if you try to remove a client ID that does not exist.
See also: AWS API Documentation
:example: response = client.remove_client_id_from_open_id_connect_provider(
OpenIDConnectProviderArn='string',
ClientID='string'
)
:type OpenIDConnectProviderArn: string
:param OpenIDConnectProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM OIDC provider resource to remove the client ID from. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type ClientID: string
:param ClientID: [REQUIRED]
The client ID (also known as audience) to remove from the IAM OIDC provider resource. For more information about client IDs, see CreateOpenIDConnectProvider .
"""
pass
def remove_role_from_instance_profile(InstanceProfileName=None, RoleName=None):
"""
Removes the specified IAM role from the specified EC2 instance profile.
For more information about IAM roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
See also: AWS API Documentation
Examples
The following command removes the role named Test-Role from the instance profile named ExampleInstanceProfile.
Expected Output:
:example: response = client.remove_role_from_instance_profile(
InstanceProfileName='string',
RoleName='string'
)
:type InstanceProfileName: string
:param InstanceProfileName: [REQUIRED]
The name of the instance profile to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to remove.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:return: response = client.remove_role_from_instance_profile(
InstanceProfileName='ExampleInstanceProfile',
RoleName='Test-Role',
)
print(response)
"""
pass
def remove_user_from_group(GroupName=None, UserName=None):
"""
Removes the specified user from the specified group.
See also: AWS API Documentation
Examples
The following command removes the user named Bob from the IAM group named Admins.
Expected Output:
:example: response = client.remove_user_from_group(
GroupName='string',
UserName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
The name of the group to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type UserName: string
:param UserName: [REQUIRED]
The name of the user to remove.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.remove_user_from_group(
GroupName='Admins',
UserName='Bob',
)
print(response)
"""
pass
def reset_service_specific_credential(UserName=None, ServiceSpecificCredentialId=None):
"""
Resets the password for a service-specific credential. The new password is AWS generated and cryptographically strong. It cannot be configured by the user. Resetting the password immediately invalidates the previous password associated with this user.
See also: AWS API Documentation
:example: response = client.reset_service_specific_credential(
UserName='string',
ServiceSpecificCredentialId='string'
)
:type UserName: string
:param UserName: The name of the IAM user associated with the service-specific credential. If this value is not specified, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type ServiceSpecificCredentialId: string
:param ServiceSpecificCredentialId: [REQUIRED]
The unique identifier of the service-specific credential.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:rtype: dict
:return: {
'ServiceSpecificCredential': {
'CreateDate': datetime(2015, 1, 1),
'ServiceName': 'string',
'ServiceUserName': 'string',
'ServicePassword': 'string',
'ServiceSpecificCredentialId': 'string',
'UserName': 'string',
'Status': 'Active'|'Inactive'
}
}
"""
pass
def resync_mfa_device(UserName=None, SerialNumber=None, AuthenticationCode1=None, AuthenticationCode2=None):
"""
Synchronizes the specified MFA device with its IAM resource object on the AWS servers.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.resync_mfa_device(
UserName='string',
SerialNumber='string',
AuthenticationCode1='string',
AuthenticationCode2='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user whose MFA device you want to resynchronize.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SerialNumber: string
:param SerialNumber: [REQUIRED]
Serial number that uniquely identifies the MFA device.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type AuthenticationCode1: string
:param AuthenticationCode1: [REQUIRED]
An authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
:type AuthenticationCode2: string
:param AuthenticationCode2: [REQUIRED]
A subsequent authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
"""
pass
def set_default_policy_version(PolicyArn=None, VersionId=None):
"""
Sets the specified version of the specified policy as the policy's default (operative) version.
This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.
For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.set_default_policy_version(
PolicyArn='string',
VersionId='string'
)
:type PolicyArn: string
:param PolicyArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type VersionId: string
:param VersionId: [REQUIRED]
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
"""
pass
def simulate_custom_policy(PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as strings.
The simulation does not perform the API actions; it only checks the authorization to determine if the simulated policies allow or deny the actions.
If you want to simulate existing policies attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.
Context keys are variables maintained by AWS and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy .
If the output is long, you can use MaxItems and Marker parameters to paginate the results.
See also: AWS API Documentation
:example: response = client.simulate_custom_policy(
PolicyInputList=[
'string',
],
ActionNames=[
'string',
],
ResourceArns=[
'string',
],
ResourcePolicy='string',
ResourceOwner='string',
CallerArn='string',
ContextEntries=[
{
'ContextKeyName': 'string',
'ContextKeyValues': [
'string',
],
'ContextKeyType': 'string'|'stringList'|'numeric'|'numericList'|'boolean'|'booleanList'|'ip'|'ipList'|'binary'|'binaryList'|'date'|'dateList'
},
],
ResourceHandlingOption='string',
MaxItems=123,
Marker='string'
)
:type PolicyInputList: list
:param PolicyInputList: [REQUIRED]
A list of policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. Do not include any resource-based policies in this parameter. Any resource-based policy must be submitted with the ResourcePolicy parameter. The policies cannot be 'scope-down' policies, such as you could include in a call to GetFederationToken or one of the AssumeRole APIs to restrict what a user can do while using the temporary credentials.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
(string) --
:type ActionNames: list
:param ActionNames: [REQUIRED]
A list of names of API actions to evaluate in the simulation. Each action is evaluated against each resource. Each action must include the service identifier, such as iam:CreateUser .
(string) --
:type ResourceArns: list
:param ResourceArns: A list of ARNs of AWS resources to include in the simulation. If this parameter is not provided then the value defaults to * (all resources). Each API in the ActionNames parameter is evaluated for each resource in this list. The simulation determines the access result (allowed or denied) of each combination and reports it in the response.
The simulation does not automatically retrieve policies for the specified resources. If you want to include a resource policy in the simulation, then you must include the policy as a string in the ResourcePolicy parameter.
If you include a ResourcePolicy , then it must be applicable to all of the resources included in the simulation or you receive an invalid input error.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
(string) --
:type ResourcePolicy: string
:param ResourcePolicy: A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type ResourceOwner: string
:param ResourceOwner: An AWS account ID that specifies the owner of any simulated resource that does not identify its owner in the resource ARN, such as an S3 bucket or object. If ResourceOwner is specified, it is also used as the account owner of any ResourcePolicy included in the simulation. If the ResourceOwner parameter is not specified, then the owner of the resources and the resource policy defaults to the account of the identity provided in CallerArn . This parameter is required only if you specify a resource-based policy and account that owns the resource is different from the account that owns the simulated calling user CallerArn .
:type CallerArn: string
:param CallerArn: The ARN of the IAM user that you want to use as the simulated caller of the APIs. CallerArn is required if you include a ResourcePolicy so that the policy's Principal element has a value to use in evaluating the policy.
You can specify only the ARN of an IAM user. You cannot specify the ARN of an assumed role, federated user, or a service principal.
:type ContextEntries: list
:param ContextEntries: A list of context keys and corresponding values for the simulation to use. Whenever a context key is evaluated in one of the simulated IAM permission policies, the corresponding value is supplied.
(dict) --Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.
This data type is used as an input parameter to `` SimulateCustomPolicy `` and `` SimulateCustomPolicy `` .
ContextKeyName (string) --The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId .
ContextKeyValues (list) --The value (or values, if the condition context key supports multiple values) to provide to the simulation for use when the key is referenced by a Condition element in an input policy.
(string) --
ContextKeyType (string) --The data type of the value (or values) specified in the ContextKeyValues parameter.
:type ResourceHandlingOption: string
:param ResourceHandlingOption: Specifies the type of simulation to run. Different APIs that support resource-based policies require different combinations of resources. By specifying the type of simulation to run, you enable the policy simulator to enforce the presence of the required resources to ensure reliable simulation results. If your simulation does not match one of the following scenarios, then you can omit this parameter. The following list shows each of the supported scenario values and the resources that you must define to run the simulation.
Each of the EC2 scenarios requires that you specify instance, image, and security-group resources. If your scenario includes an EBS volume, then you must specify that volume as a resource. If the EC2 scenario includes VPC, then you must supply the network-interface resource. If it includes an IP subnet, then you must specify the subnet resource. For more information on the EC2 scenario options, see Supported Platforms in the AWS EC2 User Guide .
EC2-Classic-InstanceStore instance, image, security-group
EC2-Classic-EBS instance, image, security-group, volume
EC2-VPC-InstanceStore instance, image, security-group, network-interface
EC2-VPC-InstanceStore-Subnet instance, image, security-group, network-interface, subnet
EC2-VPC-EBS instance, image, security-group, network-interface, volume
EC2-VPC-EBS-Subnet instance, image, security-group, network-interface, subnet, volume
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:rtype: dict
:return: {
'EvaluationResults': [
{
'EvalActionName': 'string',
'EvalResourceName': 'string',
'EvalDecision': 'allowed'|'explicitDeny'|'implicitDeny',
'MatchedStatements': [
{
'SourcePolicyId': 'string',
'SourcePolicyType': 'user'|'group'|'role'|'aws-managed'|'user-managed'|'resource'|'none',
'StartPosition': {
'Line': 123,
'Column': 123
},
'EndPosition': {
'Line': 123,
'Column': 123
}
},
],
'MissingContextValues': [
'string',
],
'OrganizationsDecisionDetail': {
'AllowedByOrganizations': True|False
},
'EvalDecisionDetails': {
'string': 'allowed'|'explicitDeny'|'implicitDeny'
},
'ResourceSpecificResults': [
{
'EvalResourceName': 'string',
'EvalResourceDecision': 'allowed'|'explicitDeny'|'implicitDeny',
'MatchedStatements': [
{
'SourcePolicyId': 'string',
'SourcePolicyType': 'user'|'group'|'role'|'aws-managed'|'user-managed'|'resource'|'none',
'StartPosition': {
'Line': 123,
'Column': 123
},
'EndPosition': {
'Line': 123,
'Column': 123
}
},
],
'MissingContextValues': [
'string',
],
'EvalDecisionDetails': {
'string': 'allowed'|'explicitDeny'|'implicitDeny'
}
},
]
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def simulate_principal_policy(PolicySourceArn=None, PolicyInputList=None, ActionNames=None, ResourceArns=None, ResourcePolicy=None, ResourceOwner=None, CallerArn=None, ContextEntries=None, ResourceHandlingOption=None, MaxItems=None, Marker=None):
"""
Simulate how a set of IAM policies attached to an IAM entity works with a list of API actions and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that the user belongs to .
You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.
You can also optionally include one resource-based policy to be evaluated with each of the resources included in the simulation.
The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.
Context keys are variables maintained by AWS and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForPrincipalPolicy .
If the output is long, you can use the MaxItems and Marker parameters to paginate the results.
See also: AWS API Documentation
:example: response = client.simulate_principal_policy(
PolicySourceArn='string',
PolicyInputList=[
'string',
],
ActionNames=[
'string',
],
ResourceArns=[
'string',
],
ResourcePolicy='string',
ResourceOwner='string',
CallerArn='string',
ContextEntries=[
{
'ContextKeyName': 'string',
'ContextKeyValues': [
'string',
],
'ContextKeyType': 'string'|'stringList'|'numeric'|'numericList'|'boolean'|'booleanList'|'ip'|'ipList'|'binary'|'binaryList'|'date'|'dateList'
},
],
ResourceHandlingOption='string',
MaxItems=123,
Marker='string'
)
:type PolicySourceArn: string
:param PolicySourceArn: [REQUIRED]
The Amazon Resource Name (ARN) of a user, group, or role whose policies you want to include in the simulation. If you specify a user, group, or role, the simulation includes all policies that are associated with that entity. If you specify a user, the simulation also includes all policies that are attached to any groups the user belongs to.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type PolicyInputList: list
:param PolicyInputList: An optional list of additional policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
(string) --
:type ActionNames: list
:param ActionNames: [REQUIRED]
A list of names of API actions to evaluate in the simulation. Each action is evaluated for each resource. Each action must include the service identifier, such as iam:CreateUser .
(string) --
:type ResourceArns: list
:param ResourceArns: A list of ARNs of AWS resources to include in the simulation. If this parameter is not provided then the value defaults to * (all resources). Each API in the ActionNames parameter is evaluated for each resource in this list. The simulation determines the access result (allowed or denied) of each combination and reports it in the response.
The simulation does not automatically retrieve policies for the specified resources. If you want to include a resource policy in the simulation, then you must include the policy as a string in the ResourcePolicy parameter.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
(string) --
:type ResourcePolicy: string
:param ResourcePolicy: A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type ResourceOwner: string
:param ResourceOwner: An AWS account ID that specifies the owner of any simulated resource that does not identify its owner in the resource ARN, such as an S3 bucket or object. If ResourceOwner is specified, it is also used as the account owner of any ResourcePolicy included in the simulation. If the ResourceOwner parameter is not specified, then the owner of the resources and the resource policy defaults to the account of the identity provided in CallerArn . This parameter is required only if you specify a resource-based policy and account that owns the resource is different from the account that owns the simulated calling user CallerArn .
:type CallerArn: string
:param CallerArn: The ARN of the IAM user that you want to specify as the simulated caller of the APIs. If you do not specify a CallerArn , it defaults to the ARN of the user that you specify in PolicySourceArn , if you specified a user. If you include both a PolicySourceArn (for example, arn:aws:iam::123456789012:user/David ) and a CallerArn (for example, arn:aws:iam::123456789012:user/Bob ), the result is that you simulate calling the APIs as Bob, as if Bob had David's policies.
You can specify only the ARN of an IAM user. You cannot specify the ARN of an assumed role, federated user, or a service principal.
CallerArn is required if you include a ResourcePolicy and the PolicySourceArn is not the ARN for an IAM user. This is required so that the resource-based policy's Principal element has a value to use in evaluating the policy.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type ContextEntries: list
:param ContextEntries: A list of context keys and corresponding values for the simulation to use. Whenever a context key is evaluated in one of the simulated IAM permission policies, the corresponding value is supplied.
(dict) --Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.
This data type is used as an input parameter to `` SimulateCustomPolicy `` and `` SimulateCustomPolicy `` .
ContextKeyName (string) --The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId .
ContextKeyValues (list) --The value (or values, if the condition context key supports multiple values) to provide to the simulation for use when the key is referenced by a Condition element in an input policy.
(string) --
ContextKeyType (string) --The data type of the value (or values) specified in the ContextKeyValues parameter.
:type ResourceHandlingOption: string
:param ResourceHandlingOption: Specifies the type of simulation to run. Different APIs that support resource-based policies require different combinations of resources. By specifying the type of simulation to run, you enable the policy simulator to enforce the presence of the required resources to ensure reliable simulation results. If your simulation does not match one of the following scenarios, then you can omit this parameter. The following list shows each of the supported scenario values and the resources that you must define to run the simulation.
Each of the EC2 scenarios requires that you specify instance, image, and security-group resources. If your scenario includes an EBS volume, then you must specify that volume as a resource. If the EC2 scenario includes VPC, then you must supply the network-interface resource. If it includes an IP subnet, then you must specify the subnet resource. For more information on the EC2 scenario options, see Supported Platforms in the AWS EC2 User Guide .
EC2-Classic-InstanceStore instance, image, security-group
EC2-Classic-EBS instance, image, security-group, volume
EC2-VPC-InstanceStore instance, image, security-group, network-interface
EC2-VPC-InstanceStore-Subnet instance, image, security-group, network-interface, subnet
EC2-VPC-EBS instance, image, security-group, network-interface, volume
EC2-VPC-EBS-Subnet instance, image, security-group, network-interface, subnet, volume
:type MaxItems: integer
:param MaxItems: (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true .
If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
:type Marker: string
:param Marker: Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
:rtype: dict
:return: {
'EvaluationResults': [
{
'EvalActionName': 'string',
'EvalResourceName': 'string',
'EvalDecision': 'allowed'|'explicitDeny'|'implicitDeny',
'MatchedStatements': [
{
'SourcePolicyId': 'string',
'SourcePolicyType': 'user'|'group'|'role'|'aws-managed'|'user-managed'|'resource'|'none',
'StartPosition': {
'Line': 123,
'Column': 123
},
'EndPosition': {
'Line': 123,
'Column': 123
}
},
],
'MissingContextValues': [
'string',
],
'OrganizationsDecisionDetail': {
'AllowedByOrganizations': True|False
},
'EvalDecisionDetails': {
'string': 'allowed'|'explicitDeny'|'implicitDeny'
},
'ResourceSpecificResults': [
{
'EvalResourceName': 'string',
'EvalResourceDecision': 'allowed'|'explicitDeny'|'implicitDeny',
'MatchedStatements': [
{
'SourcePolicyId': 'string',
'SourcePolicyType': 'user'|'group'|'role'|'aws-managed'|'user-managed'|'resource'|'none',
'StartPosition': {
'Line': 123,
'Column': 123
},
'EndPosition': {
'Line': 123,
'Column': 123
}
},
],
'MissingContextValues': [
'string',
],
'EvalDecisionDetails': {
'string': 'allowed'|'explicitDeny'|'implicitDeny'
}
},
]
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
:returns:
(string) --
"""
pass
def update_access_key(UserName=None, AccessKeyId=None, Status=None):
"""
Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.
If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command deactivates the specified access key (access key ID and secret access key) for the IAM user named Bob.
Expected Output:
:example: response = client.update_access_key(
UserName='string',
AccessKeyId='string',
Status='Active'|'Inactive'
)
:type UserName: string
:param UserName: The name of the user whose key you want to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type AccessKeyId: string
:param AccessKeyId: [REQUIRED]
The access key ID of the secret access key you want to update.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:type Status: string
:param Status: [REQUIRED]
The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.
:return: response = client.update_access_key(
AccessKeyId='AKIAIOSFODNN7EXAMPLE',
Status='Inactive',
UserName='Bob',
)
print(response)
"""
pass
def update_account_password_policy(MinimumPasswordLength=None, RequireSymbols=None, RequireNumbers=None, RequireUppercaseCharacters=None, RequireLowercaseCharacters=None, AllowUsersToChangePassword=None, MaxPasswordAge=None, PasswordReusePrevention=None, HardExpiry=None):
"""
Updates the password policy settings for the AWS account.
For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command sets the password policy to require a minimum length of eight characters and to require one or more numbers in the password:
Expected Output:
:example: response = client.update_account_password_policy(
MinimumPasswordLength=123,
RequireSymbols=True|False,
RequireNumbers=True|False,
RequireUppercaseCharacters=True|False,
RequireLowercaseCharacters=True|False,
AllowUsersToChangePassword=True|False,
MaxPasswordAge=123,
PasswordReusePrevention=123,
HardExpiry=True|False
)
:type MinimumPasswordLength: integer
:param MinimumPasswordLength: The minimum number of characters allowed in an IAM user password.
Default value: 6
:type RequireSymbols: boolean
:param RequireSymbols: Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters:
! @ # $ % ^ amp; * ( ) _ + - = [ ] { } | '
Default value: false
:type RequireNumbers: boolean
:param RequireNumbers: Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
Default value: false
:type RequireUppercaseCharacters: boolean
:param RequireUppercaseCharacters: Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z).
Default value: false
:type RequireLowercaseCharacters: boolean
:param RequireLowercaseCharacters: Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z).
Default value: false
:type AllowUsersToChangePassword: boolean
:param AllowUsersToChangePassword: Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User Guide .
Default value: false
:type MaxPasswordAge: integer
:param MaxPasswordAge: The number of days that an IAM user password is valid. The default value of 0 means IAM user passwords never expire.
Default value: 0
:type PasswordReusePrevention: integer
:param PasswordReusePrevention: Specifies the number of previous passwords that IAM users are prevented from reusing. The default value of 0 means IAM users are not prevented from reusing previous passwords.
Default value: 0
:type HardExpiry: boolean
:param HardExpiry: Prevents IAM users from setting a new password after their password has expired.
Default value: false
:return: response = client.update_account_password_policy(
MinimumPasswordLength=8,
RequireNumbers=True,
)
print(response)
"""
pass
def update_assume_role_policy(RoleName=None, PolicyDocument=None):
"""
Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the "role trust policy". For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
See also: AWS API Documentation
Examples
The following command updates the role trust policy for the role named Test-Role:
Expected Output:
:example: response = client.update_assume_role_policy(
RoleName='string',
PolicyDocument='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role to update with the new policy.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
:type PolicyDocument: string
:param PolicyDocument: [REQUIRED]
The policy that grants an entity permission to assume the role.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:return: response = client.update_assume_role_policy(
PolicyDocument='{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":["ec2.amazonaws.com"]},"Action":["sts:AssumeRole"]}]}',
RoleName='S3AccessForEC2Instances',
)
print(response)
"""
pass
def update_group(GroupName=None, NewPath=None, NewGroupName=None):
"""
Updates the name and/or the path of the specified IAM group.
See also: AWS API Documentation
Examples
The following command changes the name of the IAM group Test to Test-1.
Expected Output:
:example: response = client.update_group(
GroupName='string',
NewPath='string',
NewGroupName='string'
)
:type GroupName: string
:param GroupName: [REQUIRED]
Name of the IAM group to update. If you're changing the name of the group, this is the original name.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type NewPath: string
:param NewPath: New path for the IAM group. Only include this if changing the group's path.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type NewGroupName: string
:param NewGroupName: New name for the IAM group. Only include this if changing the group's name.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.update_group(
GroupName='Test',
NewGroupName='Test-1',
)
print(response)
"""
pass
def update_login_profile(UserName=None, Password=None, PasswordResetRequired=None):
"""
Changes the password for the specified IAM user.
IAM users can change their own passwords by calling ChangePassword . For more information about modifying passwords, see Managing Passwords in the IAM User Guide .
See also: AWS API Documentation
Examples
The following command creates or changes the password for the IAM user named Bob.
Expected Output:
:example: response = client.update_login_profile(
UserName='string',
Password='string',
PasswordResetRequired=True|False
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the user whose password you want to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type Password: string
:param Password: The new password for the specified IAM user.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D). However, the format can be further restricted by the account administrator by setting a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy .
:type PasswordResetRequired: boolean
:param PasswordResetRequired: Allows this new password to be used only once by requiring the specified IAM user to set a new password on next sign-in.
:return: response = client.update_login_profile(
Password='SomeKindOfPassword123!@#',
UserName='Bob',
)
print(response)
"""
pass
def update_open_id_connect_provider_thumbprint(OpenIDConnectProviderArn=None, ThumbprintList=None):
"""
Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.
The list that you pass with this action completely replaces the existing list of thumbprints. (The lists are not merged.)
Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated.
See also: AWS API Documentation
:example: response = client.update_open_id_connect_provider_thumbprint(
OpenIDConnectProviderArn='string',
ThumbprintList=[
'string',
]
)
:type OpenIDConnectProviderArn: string
:param OpenIDConnectProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the IAM OIDC provider resource object for which you want to update the thumbprint. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:type ThumbprintList: list
:param ThumbprintList: [REQUIRED]
A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider .
(string) --Contains a thumbprint for an identity provider's server certificate.
The identity provider's server certificate thumbprint is the hex-encoded SHA-1 hash value of the self-signed X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.
"""
pass
def update_role_description(RoleName=None, Description=None):
"""
Modifies the description of a role.
See also: AWS API Documentation
:example: response = client.update_role_description(
RoleName='string',
Description='string'
)
:type RoleName: string
:param RoleName: [REQUIRED]
The name of the role that you want to modify.
:type Description: string
:param Description: [REQUIRED]
The new description that you want to apply to the specified role.
:rtype: dict
:return: {
'Role': {
'Path': 'string',
'RoleName': 'string',
'RoleId': 'string',
'Arn': 'string',
'CreateDate': datetime(2015, 1, 1),
'AssumeRolePolicyDocument': 'string',
'Description': 'string'
}
}
"""
pass
def update_saml_provider(SAMLMetadataDocument=None, SAMLProviderArn=None):
"""
Updates the metadata document for an existing SAML provider resource object.
See also: AWS API Documentation
:example: response = client.update_saml_provider(
SAMLMetadataDocument='string',
SAMLProviderArn='string'
)
:type SAMLMetadataDocument: string
:param SAMLMetadataDocument: [REQUIRED]
An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.
:type SAMLProviderArn: string
:param SAMLProviderArn: [REQUIRED]
The Amazon Resource Name (ARN) of the SAML provider to update.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
:rtype: dict
:return: {
'SAMLProviderArn': 'string'
}
"""
pass
def update_server_certificate(ServerCertificateName=None, NewPath=None, NewServerCertificateName=None):
"""
Updates the name and/or the path of the specified server certificate stored in IAM.
For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide .
See also: AWS API Documentation
:example: response = client.update_server_certificate(
ServerCertificateName='string',
NewPath='string',
NewServerCertificateName='string'
)
:type ServerCertificateName: string
:param ServerCertificateName: [REQUIRED]
The name of the server certificate that you want to update.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type NewPath: string
:param NewPath: The new path for the server certificate. Include this only if you are updating the server certificate's path.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type NewServerCertificateName: string
:param NewServerCertificateName: The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
"""
pass
def update_service_specific_credential(UserName=None, ServiceSpecificCredentialId=None, Status=None):
"""
Sets the status of a service-specific credential to Active or Inactive . Service-specific credentials that are inactive cannot be used for authentication to the service. This action can be used to disable a users service-specific credential as part of a credential rotation work flow.
See also: AWS API Documentation
:example: response = client.update_service_specific_credential(
UserName='string',
ServiceSpecificCredentialId='string',
Status='Active'|'Inactive'
)
:type UserName: string
:param UserName: The name of the IAM user associated with the service-specific credential. If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type ServiceSpecificCredentialId: string
:param ServiceSpecificCredentialId: [REQUIRED]
The unique identifier of the service-specific credential.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:type Status: string
:param Status: [REQUIRED]
The status to be assigned to the service-specific credential.
"""
pass
def update_signing_certificate(UserName=None, CertificateId=None, Status=None):
"""
Changes the status of the specified user signing certificate from active to disabled, or vice versa. This action can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.
If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
See also: AWS API Documentation
Examples
The following command changes the status of a signing certificate for a user named Bob to Inactive.
Expected Output:
:example: response = client.update_signing_certificate(
UserName='string',
CertificateId='string',
Status='Active'|'Inactive'
)
:type UserName: string
:param UserName: The name of the IAM user the signing certificate belongs to.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type CertificateId: string
:param CertificateId: [REQUIRED]
The ID of the signing certificate you want to update.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:type Status: string
:param Status: [REQUIRED]
The status you want to assign to the certificate. Active means the certificate can be used for API calls to AWS, while Inactive means the certificate cannot be used.
:return: response = client.update_signing_certificate(
CertificateId='TA7SMP42TDN5Z26OBPJE7EXAMPLE',
Status='Inactive',
UserName='Bob',
)
print(response)
"""
pass
def update_ssh_public_key(UserName=None, SSHPublicKeyId=None, Status=None):
"""
Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.
The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
See also: AWS API Documentation
:example: response = client.update_ssh_public_key(
UserName='string',
SSHPublicKeyId='string',
Status='Active'|'Inactive'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user associated with the SSH public key.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SSHPublicKeyId: string
:param SSHPublicKeyId: [REQUIRED]
The unique identifier for the SSH public key.
This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
:type Status: string
:param Status: [REQUIRED]
The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.
"""
pass
def update_user(UserName=None, NewPath=None, NewUserName=None):
"""
Updates the name and/or the path of the specified IAM user.
See also: AWS API Documentation
Examples
The following command changes the name of the IAM user Bob to Robert. It does not change the user's path.
Expected Output:
:example: response = client.update_user(
UserName='string',
NewPath='string',
NewUserName='string'
)
:type UserName: string
:param UserName: [REQUIRED]
Name of the user to update. If you're changing the name of the user, this is the original user name.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type NewPath: string
:param NewPath: New path for the IAM user. Include this parameter only if you're changing the user's path.
This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
:type NewUserName: string
:param NewUserName: New name for the user. Include this parameter only if you're changing the user's name.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:return: response = client.update_user(
NewUserName='Robert',
UserName='Bob',
)
print(response)
"""
pass
def upload_server_certificate(Path=None, ServerCertificateName=None, CertificateBody=None, PrivateKey=None, CertificateChain=None):
"""
Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.
We recommend that you use AWS Certificate Manager to provision, manage, and deploy your server certificates. With ACM you can request a certificate, deploy it to AWS resources, and let ACM handle certificate renewals for you. Certificates provided by ACM are free. For more information about using ACM, see the AWS Certificate Manager User Guide .
For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide .
For information about the number of server certificates you can upload, see Limitations on IAM Entities and Objects in the IAM User Guide .
See also: AWS API Documentation
Examples
The following upload-server-certificate command uploads a server certificate to your AWS account:
Expected Output:
:example: response = client.upload_server_certificate(
Path='string',
ServerCertificateName='string',
CertificateBody='string',
PrivateKey='string',
CertificateChain='string'
)
:type Path: string
:param Path: The path for the server certificate. For more information about paths, see IAM Identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/). This paramater allows (per 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, containing any ASCII character from the ! (u0021) thru the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
Note
If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the --path option. The path must begin with /cloudfront and must include a trailing slash (for example, /cloudfront/test/ ).
:type ServerCertificateName: string
:param ServerCertificateName: [REQUIRED]
The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type CertificateBody: string
:param CertificateBody: [REQUIRED]
The contents of the public key certificate in PEM-encoded format.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type PrivateKey: string
:param PrivateKey: [REQUIRED]
The contents of the private key in PEM-encoded format.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:type CertificateChain: string
:param CertificateChain: The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:rtype: dict
:return: {
'ServerCertificateMetadata': {
'Path': 'string',
'ServerCertificateName': 'string',
'ServerCertificateId': 'string',
'Arn': 'string',
'UploadDate': datetime(2015, 1, 1),
'Expiration': datetime(2015, 1, 1)
}
}
"""
pass
def upload_signing_certificate(UserName=None, CertificateBody=None):
"""
Uploads an X.509 signing certificate and associates it with the specified IAM user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active .
If the UserName field is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
See also: AWS API Documentation
Examples
The following command uploads a signing certificate for the IAM user named Bob.
Expected Output:
:example: response = client.upload_signing_certificate(
UserName='string',
CertificateBody='string'
)
:type UserName: string
:param UserName: The name of the user the signing certificate is for.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type CertificateBody: string
:param CertificateBody: [REQUIRED]
The contents of the signing certificate.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:rtype: dict
:return: {
'Certificate': {
'UserName': 'string',
'CertificateId': 'string',
'CertificateBody': 'string',
'Status': 'Active'|'Inactive',
'UploadDate': datetime(2015, 1, 1)
}
}
"""
pass
def upload_ssh_public_key(UserName=None, SSHPublicKeyBody=None):
"""
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
See also: AWS API Documentation
:example: response = client.upload_ssh_public_key(
UserName='string',
SSHPublicKeyBody='string'
)
:type UserName: string
:param UserName: [REQUIRED]
The name of the IAM user to associate the SSH public key with.
This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
:type SSHPublicKeyBody: string
:param SSHPublicKeyBody: [REQUIRED]
The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).
:rtype: dict
:return: {
'SSHPublicKey': {
'UserName': 'string',
'SSHPublicKeyId': 'string',
'Fingerprint': 'string',
'SSHPublicKeyBody': 'string',
'Status': 'Active'|'Inactive',
'UploadDate': datetime(2015, 1, 1)
}
}
"""
pass
| 47.337308
| 652
| 0.675312
| 31,378
| 250,083
| 5.360125
| 0.03802
| 0.010108
| 0.008294
| 0.017058
| 0.841536
| 0.815714
| 0.79016
| 0.768256
| 0.754064
| 0.736863
| 0
| 0.007816
| 0.267387
| 250,083
| 5,282
| 653
| 47.34627
| 0.910182
| 0.882611
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.524194
| 0
| 0
| 0.5
| 0.008065
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
755820a1e56e5a952fe77b1ca48a2ef3a5c36672
| 270
|
py
|
Python
|
backend/src/baserow/core/tasks.py
|
cjh0613/baserow
|
62871f5bf53c9d25446976031aacb706c0abe584
|
[
"MIT"
] | 839
|
2020-07-20T13:29:34.000Z
|
2022-03-31T21:09:16.000Z
|
backend/src/baserow/core/tasks.py
|
cjh0613/baserow
|
62871f5bf53c9d25446976031aacb706c0abe584
|
[
"MIT"
] | 28
|
2020-08-07T09:23:58.000Z
|
2022-03-01T22:32:40.000Z
|
backend/src/baserow/core/tasks.py
|
cjh0613/baserow
|
62871f5bf53c9d25446976031aacb706c0abe584
|
[
"MIT"
] | 79
|
2020-08-04T01:48:01.000Z
|
2022-03-27T13:30:54.000Z
|
from .trash.tasks import (
permanently_delete_marked_trash,
mark_old_trash_for_permanent_deletion,
setup_period_trash_tasks,
)
__all__ = [
"permanently_delete_marked_trash",
"mark_old_trash_for_permanent_deletion",
"setup_period_trash_tasks",
]
| 22.5
| 44
| 0.781481
| 33
| 270
| 5.606061
| 0.454545
| 0.162162
| 0.248649
| 0.302703
| 0.875676
| 0.875676
| 0.875676
| 0.875676
| 0.875676
| 0.875676
| 0
| 0
| 0.148148
| 270
| 11
| 45
| 24.545455
| 0.804348
| 0
| 0
| 0
| 0
| 0
| 0.340741
| 0.340741
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 0.1
| 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
|
f3497a20a21dc0f8d50cdbaf9055e5ef34886d6a
| 15,307
|
py
|
Python
|
operator_api/swapper/tests/test_generic.py
|
liquidity-network/nocust-hub
|
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
|
[
"MIT"
] | 1
|
2021-08-04T06:09:46.000Z
|
2021-08-04T06:09:46.000Z
|
operator_api/swapper/tests/test_generic.py
|
liquidity-network/nocust-hub
|
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
|
[
"MIT"
] | 8
|
2020-11-01T19:48:21.000Z
|
2022-02-10T14:12:25.000Z
|
operator_api/swapper/tests/test_generic.py
|
liquidity-network/nocust-hub
|
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
|
[
"MIT"
] | 3
|
2020-11-01T15:59:56.000Z
|
2021-09-16T07:18:18.000Z
|
import random
from operator_api.simulation.swap import send_swap, freeze_last_swap, finalize_last_swap, cancel_last_swap
from ledger.models import Transfer
from swapper.tasks.cancel_finalize_swaps import cancel_finalize_swaps_for_eon
from swapper.tasks.confirm_swaps import confirm_swaps_for_eon
from swapper.tasks.process_swaps import process_swaps_for_eon
from operator_api.simulation.eon import commit_eon, advance_to_next_eon
from ledger.context.wallet_transfer import WalletTransferContext
from .swap_test_case import SwapTestCase
class GenericSwapTests(SwapTestCase):
def test_orderbook_sorting(self):
for idx, account in enumerate(self.testrpc_accounts[:4], 1):
send_swap( # Buy LQD at .5, .25, .16, .125, ETH
test_case=self,
eon_number=1,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token,
amount=1,
amount_swapped=2*idx,
nonce=random.randint(1, 999999))
# Match none
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
send_swap( # Sell LQD at 0.5 ETH -> match with BUY at 0.5
test_case=self,
eon_number=1,
account=self.testrpc_accounts[5],
token=self.lqd_token,
token_swapped=self.eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999))
# Match best
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=self.testrpc_accounts[0])
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=self.testrpc_accounts[5])
for account in self.testrpc_accounts[1:4]:
# Cancel pending .25, .16... BUY orders
freeze_last_swap(
test_case=self,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token)
cancel_last_swap(
test_case=self,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token)
# Match none
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
# Test OPPOSITE direction
for idx, account in enumerate(self.testrpc_accounts[:5], 1):
send_swap( # SELL LQD at .5, .25, .16, .125, 0.1 ETH
test_case=self,
eon_number=1,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token,
amount=200000*idx,
amount_swapped=100000,
nonce=random.randint(1, 999999))
# Match none
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
send_swap( # BUY LQD at 0.5 ETH -> match with SELL at 0.1
test_case=self,
eon_number=1,
account=self.testrpc_accounts[5],
token=self.eth_token,
token_swapped=self.lqd_token,
amount=100000,
amount_swapped=200000,
nonce=random.randint(1, 999999))
# Match best
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=self.testrpc_accounts[4])
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=self.testrpc_accounts[5])
for account in self.testrpc_accounts[:4]:
# Cancel pending .25, .16... BUY orders
freeze_last_swap(
test_case=self,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token)
cancel_last_swap(
test_case=self,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token)
# Match none
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
def test_make_random_valid_swaps(self):
for i in range(0, 2):
print('--------------')
for account in self.testrpc_accounts[:4]:
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999))
for account in self.testrpc_accounts[4:]:
send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999))
# Match All
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
for account in self.testrpc_accounts[:4]:
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=account)
for account in self.testrpc_accounts[4:]:
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=account)
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
print('--------------')
for account in self.testrpc_accounts[:5]:
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token,
amount=100,
amount_swapped=200,
nonce=random.randint(1, 999999))
for account in self.testrpc_accounts[6:]:
send_swap( # Sell LQD at 1.0 ETH
test_case=self,
eon_number=1,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token,
amount=100,
amount_swapped=100,
nonce=random.randint(1, 999999))
# No Match
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
print('--------------')
send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=self.testrpc_accounts[5],
token=self.lqd_token,
token_swapped=self.eth_token,
amount=1000,
amount_swapped=500,
nonce=random.randint(1, 999999))
# One Match For All
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=self.testrpc_accounts[5])
for account in self.testrpc_accounts[:5]:
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=account)
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
print('--------------')
send_swap( # Buy LQD at 1.0 ETH
test_case=self,
eon_number=1,
account=self.testrpc_accounts[1],
token=self.eth_token,
token_swapped=self.lqd_token,
amount=200,
amount_swapped=200,
nonce=random.randint(1, 999999))
# One Match For All
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=self.testrpc_accounts[1])
for account in self.testrpc_accounts[6:]:
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=account)
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
print('--------------')
send_swap( # Buy LQD at 3/7 ETH (No Match / Empty)
test_case=self,
eon_number=1,
account=self.testrpc_accounts[1],
token=self.eth_token,
token_swapped=self.lqd_token,
amount=3,
amount_swapped=7,
nonce=random.randint(1, 999999))
send_swap( # Sell LQD at 4/7 ETH (No Match)
test_case=self,
eon_number=1,
account=self.testrpc_accounts[4],
token=self.lqd_token,
token_swapped=self.eth_token,
amount=7,
amount_swapped=4,
nonce=random.randint(1, 999999))
# No Match
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
print('--------------')
send_swap( # Sell LQD at 2/7 ETH (Match with 3/7 at price of 3/7 -> Finalize both and get +1)
test_case=self,
eon_number=1,
account=self.testrpc_accounts[5],
token=self.lqd_token,
token_swapped=self.eth_token,
amount=7,
amount_swapped=2,
nonce=random.randint(1, 999999))
send_swap( # Sell LQD at 1/7 ETH (No Match / Empty)
test_case=self,
eon_number=1,
account=self.testrpc_accounts[6],
token=self.lqd_token,
token_swapped=self.eth_token,
amount=7,
amount_swapped=1,
nonce=random.randint(1, 999999))
send_swap( # Buy LQD at 4/7 ETH (Match with 1/7 at its price -> Finalize 1/7 and remain with 3 then match with 4/7 and finalize self)
test_case=self,
eon_number=1,
account=self.testrpc_accounts[7],
token=self.eth_token,
token_swapped=self.lqd_token,
amount=4,
amount_swapped=7,
nonce=random.randint(1, 999999))
# Three Matches
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
# Cancel pending 4/7 sell order
freeze_last_swap(
test_case=self,
account=self.testrpc_accounts[4],
token=self.lqd_token,
token_swapped=self.eth_token)
cancel_last_swap(
test_case=self,
account=self.testrpc_accounts[4],
token=self.lqd_token,
token_swapped=self.eth_token)
for account in self.testrpc_accounts[5:7]:
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=account)
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=self.testrpc_accounts[1])
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=self.testrpc_accounts[7])
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
for i in range(0, 2):
print('--------------')
for account in self.testrpc_accounts[:4]:
send_swap( # Buy LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=account,
token=self.eth_token,
token_swapped=self.lqd_token,
amount=1,
amount_swapped=2,
nonce=random.randint(1, 999999))
for account in self.testrpc_accounts[4:]:
send_swap( # Sell LQD at 0.5 ETH
test_case=self,
eon_number=1,
account=account,
token=self.lqd_token,
token_swapped=self.eth_token,
amount=2,
amount_swapped=1,
nonce=random.randint(1, 999999))
# Match all
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
for account in self.testrpc_accounts[:4]:
finalize_last_swap(
test_case=self,
token=self.eth_token,
token_swapped=self.lqd_token,
account=account)
for account in self.testrpc_accounts[4:]:
finalize_last_swap(
test_case=self,
token=self.lqd_token,
token_swapped=self.eth_token,
account=account)
confirm_swaps_for_eon(operator_eon_number=1)
cancel_finalize_swaps_for_eon(operator_eon_number=1)
process_swaps_for_eon(operator_eon_number=1)
| 39.148338
| 142
| 0.571111
| 1,816
| 15,307
| 4.480727
| 0.055617
| 0.07853
| 0.087256
| 0.126091
| 0.906722
| 0.900209
| 0.885707
| 0.869731
| 0.841342
| 0.841342
| 0
| 0.038106
| 0.350232
| 15,307
| 390
| 143
| 39.248718
| 0.780012
| 0.059711
| 0
| 0.905714
| 0
| 0
| 0.006825
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005714
| false
| 0
| 0.025714
| 0
| 0.034286
| 0.02
| 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
|
f37de69c1a30701f74e000f2b32ae4d84fee1419
| 363
|
py
|
Python
|
visualdl/server/mock/tags.py
|
gmhou/VisualDL
|
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
|
[
"Apache-2.0"
] | 1
|
2018-01-19T10:54:38.000Z
|
2018-01-19T10:54:38.000Z
|
visualdl/server/mock/tags.py
|
gmhou/VisualDL
|
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
|
[
"Apache-2.0"
] | null | null | null |
visualdl/server/mock/tags.py
|
gmhou/VisualDL
|
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
|
[
"Apache-2.0"
] | null | null | null |
def data():
return {
"test": {
"min/layer2/weights": {
"displayName": "min/layer2/weights",
"description": ""
}
},
"train": {
"min/layer2/weights": {
"displayName": "min/layer2/weights",
"description": ""
}
}
}
| 22.6875
| 52
| 0.358127
| 21
| 363
| 6.190476
| 0.47619
| 0.276923
| 0.492308
| 0.415385
| 0.830769
| 0.830769
| 0.830769
| 0.830769
| 0
| 0
| 0
| 0.021505
| 0.487603
| 363
| 15
| 53
| 24.2
| 0.677419
| 0
| 0
| 0.4
| 0
| 0
| 0.344353
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066667
| true
| 0
| 0
| 0.066667
| 0.133333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
f39ec60dc46531ec9590f0efc920110c339b1951
| 5,222
|
py
|
Python
|
pages/tests/test_views.py
|
gurupratap-matharu/polls
|
5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639
|
[
"MIT"
] | null | null | null |
pages/tests/test_views.py
|
gurupratap-matharu/polls
|
5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639
|
[
"MIT"
] | 66
|
2020-08-25T02:03:25.000Z
|
2021-09-22T19:33:34.000Z
|
pages/tests/test_views.py
|
gurupratap-matharu/polls
|
5484a1f639b2ccd5e0a676f24cf0e23b6b2d0639
|
[
"MIT"
] | null | null | null |
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import resolve, reverse
from pages.factories import UserFactory
from pages.views import (AboutPageView, ContactPageView, FeedbackPageView,
HomePageView)
IRRELEVANT_RESPONSE = 'Hi I should not be on this page!'
class HomePageTests(TestCase):
def setUp(self):
self.user = UserFactory()
def test_home_page_works_for_logged_in_user(self):
self.client.force_login(self.user)
response = self.client.get(reverse('pages:home'))
no_response = self.client.get('/pages/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/home.html')
self.assertContains(response, 'Home')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_home_page_works_for_anonymous_user(self):
response = self.client.get(reverse('pages:home'))
no_response = self.client.get('/pages/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/home.html')
self.assertContains(response, 'Home')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_home_page_resolves_homepageview(self):
view = resolve(reverse('pages:home'))
self.assertEqual(view.func.__name__, HomePageView.as_view().__name__)
class AboutPageTests(TestCase):
def setUp(self):
self.user = UserFactory()
def test_about_page_works_for_logged_in_user(self):
self.client.force_login(self.user)
response = self.client.get(reverse('pages:about'))
no_response = self.client.get('/pages/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/about.html')
self.assertContains(response, 'About')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_about_page_works_for_anonymous_user(self):
response = self.client.get(reverse('pages:about'))
no_response = self.client.get('/pages/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/about.html')
self.assertContains(response, 'About')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_about_page_resolve_aboutpageview(self):
view = resolve(reverse('pages:about'))
self.assertEqual(view.func.__name__, AboutPageView.as_view().__name__)
class ContactPageTests(TestCase):
def setUp(self):
self.user = UserFactory()
def test_contact_page_works_for_logged_in_user(self):
self.client.force_login(self.user)
response = self.client.get(reverse('pages:contact'))
no_response = self.client.get('/pages/contact/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/contact.html')
self.assertContains(response, 'Contact')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_contact_page_works_for_anonymous_user(self):
response = self.client.get(reverse('pages:contact'))
no_response = self.client.get('/pages/contact/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/contact.html')
self.assertContains(response, 'Contact')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_contact_page_resolve_contactpageview(self):
view = resolve(reverse('pages:contact'))
self.assertEqual(view.func.__name__, ContactPageView.as_view().__name__)
class FeedbackPageTests(TestCase):
def setUp(self):
self.user = UserFactory()
def test_feedback_page_works_for_logged_in_user(self):
self.client.force_login(self.user)
response = self.client.get(reverse('pages:feedback'))
no_response = self.client.get('/pages/feedback/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/feedback.html')
self.assertContains(response, 'Feedback')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_feedback_page_works_for_anonymous_user(self):
response = self.client.get(reverse('pages:feedback'))
no_response = self.client.get('/pages/feedback/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'pages/feedback.html')
self.assertContains(response, 'Feedback')
self.assertNotContains(response, IRRELEVANT_RESPONSE)
self.assertEqual(no_response.status_code, 404)
def test_feedback_page_resolves_feedbackpageview(self):
view = resolve(reverse('pages:feedback'))
self.assertEqual(view.func.__name__, FeedbackPageView.as_view().__name__)
| 40.169231
| 81
| 0.713328
| 594
| 5,222
| 6.016835
| 0.111111
| 0.080582
| 0.080582
| 0.094012
| 0.848909
| 0.788472
| 0.781757
| 0.781757
| 0.781757
| 0.730274
| 0
| 0.011191
| 0.178667
| 5,222
| 129
| 82
| 40.48062
| 0.822103
| 0
| 0
| 0.686869
| 0
| 0
| 0.086174
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.161616
| false
| 0
| 0.050505
| 0
| 0.252525
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f3a2fd0b210b64da226165db1dfa30a8168330cb
| 2,448
|
py
|
Python
|
Lesson09/problem/problem_validate_email_utils_optional_part2.py
|
AlexMazonowicz/PythonFundamentals
|
5451f61d3b4e7cd285dea442795c25baa5072ef9
|
[
"MIT"
] | 2
|
2020-02-27T01:33:43.000Z
|
2021-03-29T13:11:54.000Z
|
Lesson09/problem/problem_validate_email_utils_optional_part2.py
|
AlexMazonowicz/PythonFundamentals
|
5451f61d3b4e7cd285dea442795c25baa5072ef9
|
[
"MIT"
] | null | null | null |
Lesson09/problem/problem_validate_email_utils_optional_part2.py
|
AlexMazonowicz/PythonFundamentals
|
5451f61d3b4e7cd285dea442795c25baa5072ef9
|
[
"MIT"
] | 6
|
2019-03-18T04:49:11.000Z
|
2022-03-22T04:03:19.000Z
|
# Importing re library
# Importing user-defined exceptions
def is_provider_valid_blacklist_optional_len(mailing_list):
"""
Your docstring documentation starts here.
For more information on how to proper document your function, please refer to the official PEP8:
https://www.python.org/dev/peps/pep-0008/#documentation-strings.
"""
# Array to hold user ids
final_users_list = []
# The regex pattern to validate emails
regex = # The regex pattern to validate emails
# Loop through the mailing list
for key, email in # Your mailing list:
if '@' in ... # Check if the @ is present in the email and check if the email passes the regex pattern
# Append the id of users with valid emails
# Extract only the provider from the email string
# Inserted a try.., except.. block to cast the exception
try:
# Check if the provider length is greater than 5, which is our condition to consider a provider
# suspicious.
if # Check if the provider contains at least 5 characters:
# Append the id of users with email addresses with valid providers
except # Your user-defined exception:
# Return a user-friendly message to cast the exception
return final_users_list
def is_provider_valid_blacklist_optional_exception(mailing_list):
"""
Your docstring documentation starts here.
For more information on how to proper document your function, please refer to the official PEP8:
https://www.python.org/dev/peps/pep-0008/#documentation-strings.
"""
# The regex pattern to validate emails
regex = # The regex pattern to validate emails
# Loop through the mailing list
for key, email in # Your mailing list:
# Check if the @ is present in the email and check if the email passes the regex patter
if '# Check if the email contains @ and passes the regex':
# Append the id of users with valid emails
# Extract only the provider from the email string
# Check if the provider length is greater than 5, which is our condition to consider a provider
# suspicious.
if # Check if the provider contains at least 5 characters:
# raise your custom defined exception
| 37.661538
| 112
| 0.647876
| 323
| 2,448
| 4.860681
| 0.303406
| 0.040127
| 0.057325
| 0.043312
| 0.775796
| 0.775796
| 0.717197
| 0.717197
| 0.717197
| 0.717197
| 0
| 0.008226
| 0.304739
| 2,448
| 64
| 113
| 38.25
| 0.914219
| 0.503268
| 0
| 0.428571
| 0
| 0
| 0.082426
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.071429
| 0
| null | null | 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
f3b5163ef57cb33c3ee07fed4d2f9ad57f7df2f4
| 34
|
py
|
Python
|
src/feature_handle/__init__.py
|
weijinqian0/feature_eda
|
cf2167eeac726fb33ce2ae5c7051412815601b8b
|
[
"Apache-2.0"
] | 6
|
2020-12-09T11:06:49.000Z
|
2021-09-13T08:00:55.000Z
|
src/feature_handle/__init__.py
|
weijinqian0/feature_eda
|
cf2167eeac726fb33ce2ae5c7051412815601b8b
|
[
"Apache-2.0"
] | null | null | null |
src/feature_handle/__init__.py
|
weijinqian0/feature_eda
|
cf2167eeac726fb33ce2ae5c7051412815601b8b
|
[
"Apache-2.0"
] | 3
|
2020-11-15T15:23:39.000Z
|
2021-07-17T08:06:46.000Z
|
print("你已经导入了特征工程处理模块,happy、wise")
| 34
| 34
| 0.823529
| 4
| 34
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 34
| 1
| 34
| 34
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0.714286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
f3c511712be87ab4da0a836b2bbd63f4bc47349d
| 284
|
py
|
Python
|
pygeom/matrix3d/__init__.py
|
Xero64/pygeom
|
4a41d98987e86a7253c7da6ac55550b35f801926
|
[
"MIT"
] | 4
|
2018-08-13T15:25:42.000Z
|
2019-05-04T13:06:14.000Z
|
pygeom/matrix3d/__init__.py
|
Xero64/pygeom
|
4a41d98987e86a7253c7da6ac55550b35f801926
|
[
"MIT"
] | null | null | null |
pygeom/matrix3d/__init__.py
|
Xero64/pygeom
|
4a41d98987e86a7253c7da6ac55550b35f801926
|
[
"MIT"
] | 2
|
2018-10-15T11:00:47.000Z
|
2020-08-26T06:39:55.000Z
|
from .matrixvector import MatrixVector, zero_matrix_vector, solve_matrix_vector
from .matrixvector import elementwise_dot_product, elementwise_cross_product
from .matrixvector import elementwise_multiply, elementwise_divide
from .matrixvector import vector_to_global, vector_to_local
| 56.8
| 79
| 0.894366
| 35
| 284
| 6.857143
| 0.457143
| 0.266667
| 0.366667
| 0.275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073944
| 284
| 4
| 80
| 71
| 0.912548
| 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
|
1ba604bd9405fca0c08e78c70687daee469bfca6
| 7,837
|
py
|
Python
|
tests/system/relations/test_generic_relations.py
|
reiterl/openslides-backend
|
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
|
[
"MIT"
] | null | null | null |
tests/system/relations/test_generic_relations.py
|
reiterl/openslides-backend
|
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
|
[
"MIT"
] | null | null | null |
tests/system/relations/test_generic_relations.py
|
reiterl/openslides-backend
|
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
|
[
"MIT"
] | null | null | null |
from openslides_backend.action.relations import RelationsHandler
from tests.util import get_fqfield, get_fqid
from .setup import BaseRelationsTestCase, FakeModelA
class GenericRelationsTest(BaseRelationsTestCase):
def test_generic_O2O_empty(self) -> None:
self.create_model("fake_model_a/1", {})
self.create_model("fake_model_b/2", {})
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_oo,
field_name="fake_model_b_generic_oo",
obj={"fake_model_b_generic_oo": 2},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_oo"): {
"type": "add",
"value": get_fqid("fake_model_a/1"),
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def xtest_generic_O2O_replace(self) -> None:
self.create_model("fake_model_a/1", {})
self.create_model("fake_model_a/2", {"fake_model_b_generic_oo": 3})
self.create_model(
"fake_model_b/3", {"fake_model_a_generic_oo": get_fqid("fake_model_a/2")}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_oo,
field_name="fake_model_b_generic_oo",
obj={"fake_model_b_generic_oo": 3},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/3/fake_model_a_generic_oo"): {
"type": "add",
"value": get_fqid("fake_model_a/1"),
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def test_generic_O2O_delete(self) -> None:
self.create_model("fake_model_a/1", {"fake_model_b_generic_oo": 2})
self.create_model(
"fake_model_b/2", {"fake_model_a_generic_oo": get_fqid("fake_model_a/1")}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_oo,
field_name="fake_model_b_generic_oo",
obj={"fake_model_b_generic_oo": None},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_oo"): {
"type": "remove",
"value": None,
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def test_generic_O2M_empty(self) -> None:
self.create_model("fake_model_a/1", {})
self.create_model("fake_model_b/2", {})
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_om,
field_name="fake_model_b_generic_om",
obj={"fake_model_b_generic_om": 2},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_mo"): {
"type": "add",
"value": [get_fqid("fake_model_a/1")],
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def test_generic_O2M_add(self) -> None:
self.create_model("fake_model_a/1", {"fake_model_b_generic_om": 3})
self.create_model("fake_model_a/2", {})
self.create_model(
"fake_model_b/3", {"fake_model_a_generic_mo": [get_fqid("fake_model_a/1")]}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=2,
field=FakeModelA.fake_model_b_generic_om,
field_name="fake_model_b_generic_om",
obj={"fake_model_b_generic_om": 3},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/3/fake_model_a_generic_mo"): {
"type": "add",
"value": [get_fqid("fake_model_a/1"), get_fqid("fake_model_a/2")],
"modified_element": get_fqid("fake_model_a/2"),
}
}
assert result == expected
def test_generic_O2M_delete(self) -> None:
self.create_model("fake_model_a/1", {"fake_model_b_generic_om": 2})
self.create_model(
"fake_model_b/2", {"fake_model_a_generic_mo": [get_fqid("fake_model_a/1")]}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_om,
field_name="fake_model_b_generic_om",
obj={"fake_model_b_generic_om": None},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_mo"): {
"type": "remove",
"value": [],
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def test_generic_M2M_empty(self) -> None:
self.create_model("fake_model_a/1", {})
self.create_model("fake_model_b/2", {})
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_mm,
field_name="fake_model_b_generic_mm",
obj={"fake_model_b_generic_mm": [2]},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_mm"): {
"type": "add",
"value": [get_fqid("fake_model_a/1")],
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
def test_generic_M2M_add(self) -> None:
self.create_model("fake_model_a/1", {"fake_model_b_generic_mm": [3]})
self.create_model("fake_model_a/2", {})
self.create_model(
"fake_model_b/3", {"fake_model_a_generic_mm": [get_fqid("fake_model_a/1")]}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=2,
field=FakeModelA.fake_model_b_generic_mm,
field_name="fake_model_b_generic_mm",
obj={"fake_model_b_generic_mm": [3]},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/3/fake_model_a_generic_mm"): {
"type": "add",
"value": [get_fqid("fake_model_a/1"), get_fqid("fake_model_a/2")],
"modified_element": get_fqid("fake_model_a/2"),
}
}
assert result == expected
def test_generic_M2M_delete(self) -> None:
self.create_model("fake_model_a/1", {"fake_model_b_generic_mm": [2]})
self.create_model(
"fake_model_b/2", {"fake_model_a_generic_mm": [get_fqid("fake_model_a/1")]}
)
handler = RelationsHandler(
database=self.datastore,
model=FakeModelA(),
id=1,
field=FakeModelA.fake_model_b_generic_mm,
field_name="fake_model_b_generic_mm",
obj={"fake_model_b_generic_mm": []},
)
result = handler.perform()
expected = {
get_fqfield("fake_model_b/2/fake_model_a_generic_mm"): {
"type": "remove",
"value": [],
"modified_element": get_fqid("fake_model_a/1"),
}
}
assert result == expected
| 37.14218
| 87
| 0.564885
| 914
| 7,837
| 4.407002
| 0.063457
| 0.22567
| 0.126614
| 0.139275
| 0.939672
| 0.939672
| 0.934211
| 0.932224
| 0.932224
| 0.932224
| 0
| 0.015442
| 0.314151
| 7,837
| 210
| 88
| 37.319048
| 0.733953
| 0
| 0
| 0.643216
| 0
| 0
| 0.243588
| 0.131683
| 0
| 0
| 0
| 0
| 0.045226
| 1
| 0.045226
| false
| 0
| 0.015075
| 0
| 0.065327
| 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
|
84732e3b7d40a137e0baff13f31fd9ed58f2cc4a
| 39,013
|
py
|
Python
|
test/test_PowerExpansion.py
|
sohamch/Onsager
|
1c943299b969fdebf77c21f092c5df2c9a142bc7
|
[
"MIT"
] | 9
|
2016-10-21T21:42:29.000Z
|
2021-08-25T08:11:33.000Z
|
test/test_PowerExpansion.py
|
sohamch/Onsager
|
1c943299b969fdebf77c21f092c5df2c9a142bc7
|
[
"MIT"
] | 3
|
2017-07-03T16:00:54.000Z
|
2017-07-18T20:32:45.000Z
|
test/test_PowerExpansion.py
|
sohamch/Onsager
|
1c943299b969fdebf77c21f092c5df2c9a142bc7
|
[
"MIT"
] | 4
|
2016-08-13T00:36:32.000Z
|
2022-01-13T02:12:24.000Z
|
"""
Unit tests for PowerExpansion class
"""
__author__ = 'Dallas R. Trinkle'
import unittest
import numpy as np
from scipy.special import sph_harm
import onsager.PowerExpansion as PE
T3D = PE.Taylor3D
T2D = PE.Taylor2D
class PowerExpansionTests(unittest.TestCase):
"""Tests to make sure our power expansions are constructed correctly and behaving as advertised"""
def setUp(self):
"""initial setup for testing"""
self.phi = np.pi * 0.2234
self.theta = np.pi * 0.7261
self.c = T3D()
self.basis = [(np.eye(2), np.array([0.5, -np.sqrt(0.75), 0.])),
(np.eye(2), np.array([0.5, np.sqrt(0.75), 0.])),
(np.eye(2), np.array([-1., 0., 0.])),
(np.eye(2), np.array([-0.5, -np.sqrt(0.75), 0.])),
(np.eye(2), np.array([-0.5, np.sqrt(0.75), 0.])),
(np.eye(2), np.array([1., 0., 0.])),
(np.eye(2) * 2, np.array([0., 0., 1.])),
(np.eye(2) * 2, np.array([0., 0., -1.])),
]
def testExpansionYlmpow(self):
"""Test the expansion of Ylm into powers"""
for (phi, theta) in [(self.phi + dp, self.theta + dt)
for dp in (0., 0.25 * np.pi, 0.5 * np.pi, 0.75 * np.pi)
for dt in (0., 0.5 * np.pi, np.pi, 1.5 * np.pi)]:
utest, umagn = T3D.powexp(np.array([np.sin(phi) * np.cos(theta),
np.sin(phi) * np.sin(theta),
np.cos(phi)]))
self.assertAlmostEqual(umagn, 1)
Ylm0 = np.zeros(T3D.NYlm, dtype=complex)
# Ylm as power expansions
for lm in range(T3D.NYlm):
l, m = T3D.ind2Ylm[lm, 0], T3D.ind2Ylm[lm, 1]
Ylm0[lm] = sph_harm(m, l, theta, phi)
Ylmexp = np.dot(T3D.Ylmpow[lm], utest)
self.assertAlmostEqual(Ylm0[lm], Ylmexp,
msg="Failure for Ylmpow "
"l={} m={}; theta={}, phi={}\n{} != {}".format(l, m, theta, phi, Ylm0[lm], Ylmexp))
# power expansions in Ylm's
for p in range(T3D.NYlm):
pYlm = np.dot(T3D.powYlm[p], Ylm0)
self.assertAlmostEqual(utest[p], pYlm,
msg="Failure for powYlm "
"{}; theta={}, phi={}\n{} != {}".format(T3D.ind2pow[p], theta, phi, utest[p], pYlm))
# projection (note that Lproj is not symmetric): so this test ensures that v.u and (proj.v).u
# give the same value
uproj = np.tensordot(T3D.Lproj[-1], utest, axes=(0, 0))
for p in range(T3D.NYlm):
self.assertAlmostEqual(utest[p], uproj[p],
msg="Projection failure for "
"{}\n{} != {}".format(T3D.ind2pow[p], uproj[p], utest[p]))
def testProjection(self):
"""Test that the L-projections are correct"""
# Try to do this sequentially
for tup in [(0, 0, 0), (1, 0, 0), (0, 1, 0), (0, 0, 1)]:
v = np.zeros(T3D.Npower)
v[T3D.pow2ind[tup]] = 1.
Pv = np.tensordot(T3D.Lproj[-1], v, axes=1)
# now, try with multiplying by x^2+y^2+z^2:
vxyz = np.zeros(T3D.Npower)
vxyz[T3D.pow2ind[tup[0] + 2, tup[1], tup[2]]] = 1.
vxyz[T3D.pow2ind[tup[0], tup[1] + 2, tup[2]]] = 1.
vxyz[T3D.pow2ind[tup[0], tup[1], tup[2] + 2]] = 1.
Pvxyz = np.tensordot(T3D.Lproj[-1], vxyz, axes=1)
self.assertTrue(np.allclose(v, Pv))
self.assertTrue(np.allclose(v, Pvxyz))
for l in range(T3D.Lmax + 1):
Pv = np.tensordot(T3D.Lproj[l], v, axes=1)
Pvxyz = np.tensordot(T3D.Lproj[l], vxyz, axes=1)
if l == sum(tup):
self.assertTrue(np.allclose(v, Pv))
self.assertTrue(np.allclose(v, Pvxyz))
else:
self.assertTrue(np.allclose(Pv, 0))
self.assertTrue(np.allclose(Pvxyz, 0))
def testEvaluation(self):
"""Test out the evaluation functions in an expansion, including with scalar multiply and addition"""
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n / PE.factorial(n, True)
c = T3D()
for coeff in c.constructexpansion(self.basis):
c.addterms(coeff)
for (n, l) in c.nl():
self.assertEqual(n, l)
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
# c2 = 2*c
c2 = c.copy()
c2 *= 2
c3 = c + c
c4 = c2 - c
### NOTE! We have to do it *this way*; otherwise, it will try to use the sum in np.array,
### and that WILL NOT WORK with our expansion.
c5 = c + np.eye(2)
prod = np.array([[-4.2, 2.67], [1.3, 3.21]])
c6 = c.ldot(prod)
c7 = c.copy()
c7.irdot(prod)
sum([c, c2, c3]) # tests whether we can use sum
for u in [np.zeros(3), np.array([1., 0., 0.]), np.array([0., 1., 0.]), np.array([0., 0., 1.]),
np.array([0.234, -0.85, 1.25]),
np.array([1.24, 0.71, -0.98])]:
umagn = np.sqrt(np.dot(u, u))
fval = {nl: f(umagn) for nl, f in fnu.items()}
# comparison value:
value = sum(pre * approxexp(np.dot(u, vec)) for pre, vec in self.basis)
valsum = c(u, fval)
funcsum = c(u, fnu)
dictsum = sum(fval[k] * v for k, v in c(u).items())
self.assertTrue(np.allclose(value, valsum),
msg="Failure for call with values for {}\n{} != {}".format(u, value, valsum))
self.assertTrue(np.allclose(value, funcsum),
msg="Failure for call with function for {}\n{} != {}".format(u, value, funcsum))
self.assertTrue(np.allclose(value, dictsum),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value, dictsum))
self.assertTrue(np.allclose(2 * value, c2(u, fval)),
msg="Failure with scalar multiply?")
self.assertTrue(np.allclose(2 * value, c3(u, fval)),
msg="Failure with addition?")
self.assertTrue(np.allclose(value, c4(u, fval)),
msg="Failure with subtraction?")
self.assertTrue(np.allclose(value + np.eye(2), c5(u, fval)),
msg="Failure with scalar addition?")
self.assertTrue(np.allclose(np.dot(prod, value), c6(u, fval)),
msg="Failure with tensor dot product?")
self.assertTrue(np.allclose(np.dot(value, prod), c7(u, fval)),
msg="Failure with tensor dot product inplace?")
def testProduct(self):
"""Test out the evaluation functions in an expansion, using coefficient products"""
def approxexp(u):
"""2nd order expansion of exp(u)"""
# return 1 + u*(1 + u*(0.5 + u*(1/6 + u/24)))
return 1 + u * (1 + u * 0.5)
def createExpansion(n):
return lambda u: u ** n
c = T3D()
for coeff in c.constructexpansion(self.basis, N=2):
c.addterms(coeff)
c *= {(n, l): 1. / PE.factorial(n, True) for (n, l) in
c.nl()} # scalar multiply to create a Taylor expansion for exp
c2 = c * c
for (n, l) in c2.nl():
self.assertEqual(n, l)
fnu = {(n, l): createExpansion(n) for (n, l) in c2.nl()} # or could do this in previous loop
for u in [np.zeros(3), np.array([1., 0., 0.]), np.array([0., 1., 0.]), np.array([0., 0., 1.]),
np.array([0.234, -0.85, 1.25]),
np.array([1.24, 0.71, -0.98])]:
umagn = np.sqrt(np.dot(u, u))
fval = {nl: f(umagn) for nl, f in fnu.items()}
# comparison value:
value = sum(pre * approxexp(np.dot(u, vec)) for pre, vec in self.basis)
valsum = c(u, fval)
funcsum = c(u, fnu)
dictsum = sum(fval[k] * v for k, v in c(u).items())
value2 = np.dot(value, value)
valsum2 = c2(u, fval)
funcsum2 = c2(u, fnu)
dictsum2 = sum(fval[k] * v for k, v in c2(u).items())
self.assertTrue(np.allclose(value, valsum),
msg="Failure for call with values for {}\n{} != {}".format(u, value, valsum))
self.assertTrue(np.allclose(value, funcsum),
msg="Failure for call with function for {}\n{} != {}".format(u, value, funcsum))
self.assertTrue(np.allclose(value, dictsum),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value, dictsum))
self.assertTrue(np.allclose(value2, valsum2),
msg="Failure for call with values for {}\n{} != {}".format(u, value2, valsum2))
self.assertTrue(np.allclose(value2, funcsum2),
msg="Failure for call with function for {}\n{} != {}".format(u, value2, funcsum2))
self.assertTrue(np.allclose(value2, dictsum2),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value2, dictsum2))
def testReduceExpand(self):
"""Test our reduction and expansion operations"""
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n
c = T3D([c[0] for c in T3D.constructexpansion(self.basis, N=4, pre=(0, 1, 1 / 2, 1 / 6, 1 / 24))])
self.assertEqual(len(c.coefflist), 5) # should have all n from 0 to 4
c2 = c.copy()
c2.reduce()
# check the reduction: should be just two terms remaining: n=2, n=4
self.assertEqual(len(c2.coefflist), 2)
for n, l, coeff in c2.coefflist:
self.assertTrue(n == 2 or n == 4)
if n == 2:
self.assertEqual(l, 2)
else:
self.assertEqual(l, 4)
c3 = c2.copy()
c3.separate()
# print("c2:\n{}".format(c2))
# print("c3:\n{}".format(c3))
# now should have 2 + 3 = 5 terms
self.assertEqual(len(c3.coefflist), 5)
for n, l, coeff in c3.coefflist:
self.assertTrue(n == 2 or n == 4)
if n == 2:
self.assertTrue(l == 0 or l == 2)
else:
self.assertTrue(l == 0 or l == 2 or l == 4)
# also check that the only non-zero terms for a given l are value are those values
if l == 0:
lmin = 0
else:
lmin = T3D.powlrange[l - 1]
lmax = T3D.powlrange[l]
# self.assertTrue(np.allclose(coeff[0:lmin], 0))
self.assertTrue(np.allclose(coeff[lmax:T3D.Npower], 0))
self.assertFalse(np.allclose(coeff[lmin:lmax], 0))
Ylmcoeff = np.tensordot(T3D.powYlm[:T3D.powlrange[l], :], coeff, axes=(0, 0)) # now in Ylm
lmin = l ** 2
lmax = (l + 1) ** 2
self.assertTrue(np.allclose(Ylmcoeff[0:lmin], 0))
self.assertFalse(np.allclose(Ylmcoeff[lmin:lmax], 0))
self.assertTrue(np.allclose(Ylmcoeff[lmax:T3D.NYlm], 0))
# a little tricky to make sure we get ALL the functions (instead of making multiple dictionaries)
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
for (n, l) in c3.nl():
if (n, l) not in fnu:
fnu[(n, l)] = createExpansion(n)
for u in [np.zeros(3), np.array([1., 0., 0.]), np.array([0., 1., 0.]), np.array([0., 0., 1.]),
np.array([0.234, -0.85, 1.25]),
np.array([1.24, 0.71, -0.98])]:
umagn = np.sqrt(np.dot(u, u))
# compare values:
self.assertTrue(np.allclose(c(u, fnu), c2(u, fnu)),
msg="Failure on reduce:\n{} != {}".format(c(u, fnu), c2(u, fnu)))
self.assertTrue(np.allclose(c(u, fnu), c3(u, fnu)),
msg="Failure on expand:\n{} != {}".format(c(u, fnu), c3(u, fnu)))
# do a test of projection using some random coefficients
coeffrand = np.random.uniform(-1, 1, T3D.Npower)
coeffrand.shape = (T3D.Npower, 1, 1)
crand = T3D([(0, T3D.Lmax, coeffrand)])
crand.separate()
for (n, l, c) in crand.coefflist:
Ylmcoeff = np.tensordot(T3D.powYlm[:T3D.powlrange[l], :], c, axes=(0, 0)) # now in Ylm
lmin = l ** 2
lmax = (l + 1) ** 2
self.assertTrue(np.allclose(Ylmcoeff[0:lmin], 0))
self.assertFalse(np.allclose(Ylmcoeff[lmin:lmax], 0))
self.assertTrue(np.allclose(Ylmcoeff[lmax:T3D.NYlm], 0))
def testInverse(self):
"""Test our inverse expansion"""
# This is *very tricky* because the inverse expansion is *strictly* a Taylor series;
# it won't be exact. Should be up to order u^2
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n
cubicbasis = [(np.eye(2), np.array([1., 0., 0.])),
(np.eye(2), np.array([-1., 0., 0.])),
(np.eye(2), np.array([0., 1., 0.])),
(np.eye(2), np.array([0., -1., 0.])),
(np.eye(2), np.array([0., 0., 1.])),
(np.eye(2), np.array([0., 0., -1.]))
]
c = T3D([c[0] for c in T3D.constructexpansion(cubicbasis, N=4, pre=(0, 1, 1 / 2, 1 / 6, 1 / 24))])
c.reduce()
cinv = c.inv(Nmax=0) # since c ~ x^2, cinv ~ 1/x^2, and L=4 should take us to x^0
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
for (n, l) in cinv.nl():
if (n, l) not in fnu:
fnu[(n, l)] = createExpansion(n)
for u in [np.array([0.25, 0., 0.]), np.array([0., 0.1, 0.]), np.array([0., 0., 0.1]),
np.array([0.0234, -0.085, 0.125]),
np.array([0.124, 0.071, -0.098])]:
umagn = np.sqrt(np.dot(u, u))
cval = c(u, fnu)
cinvval = cinv(u, fnu)
cval_inv = np.dot(cval, cinvval) - np.eye(2)
# cval_directinv = np.linalg.inv(cval)
self.assertTrue(np.all(abs(cval_inv) < (1 / 120) * umagn ** 4),
msg="cinv * c != 1?\nc={}\ncinv={}\nc*cinv-1={}".format(cval, cinvval, cval_inv))
def testTruncation(self):
"""Make sure truncation works how we expect"""
c = T3D([nlc[0] for nlc in T3D.constructexpansion(self.basis, N=4)])
c.reduce()
self.assertEqual(max(n for n, l, c in c.coefflist), 4)
c2 = c.truncate(2)
self.assertEqual(max(n for n, l, c in c2.coefflist), 2)
self.assertEqual(max(n for n, l, c in c.coefflist), 4)
c.truncate(2, inplace=True)
self.assertEqual(max(n for n, l, c in c.coefflist), 2)
def testIndexingSlicing(self):
"""Can we index into our expansions to get a new expansion? Can we slice? Can we assign?"""
def createExpansion(n):
return lambda u: u ** n
newbasis = [(np.array([[1., 6., 5.], [5., 2., 4.], [5., 4., 3.]]), np.array([2 / 3., 1 / 3, -1 / 2]))]
c = T3D([nlc[0] for nlc in T3D.constructexpansion(newbasis, N=4)])
fnu = {(n, l): createExpansion(n) for n in range(5) for l in range(5)}
# now we have something to work with. We should have a basis from n=0 up to n=4 of 3x3 matrices.
c00 = c[0, 0]
for u in [np.array([0.25, 0., 0.]), np.array([0., 0.1, 0.]), np.array([0., 0., 0.1]),
np.array([0.0234, -0.085, 0.125]),
np.array([0.124, 0.071, -0.098])]:
cval = c(u, fnu)
c00val = c00(u, fnu)
self.assertEqual(cval[0, 0], c00val)
# now, an assignment test. This will be funky; first, we do a "copy" operation so that
# c00 is clean--it is no longer a "view" or slice of c, but it's own thing.
c00 = c00.copy()
# now, set the 0,0 value to be twice what it was before:
c[0, 0] = 2. * c00
for u in [np.array([0.25, 0., 0.]), np.array([0., 0.1, 0.]), np.array([0., 0., 0.1]),
np.array([0.0234, -0.085, 0.125]),
np.array([0.124, 0.071, -0.098])]:
cval = c(u, fnu)
c00val = c00(u, fnu)
self.assertEqual(cval[0, 0], 2. * c00val)
c00inv = c00.inv(Nmax=4)
c00inv.reduce()
for u in [np.array([0.025, 0., 0.]), np.array([0., 0.025, 0.]), np.array([0., 0., 0.025]),
np.array([0.0234, -0.05, 0.05]),
np.array([-0.024, 0.041, -0.033])]:
c00val = c00(u, fnu)
c00invval = c00inv(u, fnu)
self.assertAlmostEqual(c00val * c00invval, 1)
def testRotation(self):
"""Set of tests for rotating directions"""
def createExpansion(n):
return lambda u: u ** n
newbasis = [(0.89 * np.eye(1), np.array([2 / 3., 1 / 3, -1 / 2]))]
c = T3D([nlc[0] for nlc in T3D.constructexpansion(newbasis, N=4)])
# does this still work if we do this?
# c.reduce()
fnu = {(n, l): createExpansion(n) for n in range(5) for l in range(5)}
for rot in [np.eye(3), 2. * np.eye(3), 0.5 * np.eye(3),
np.array([[1.25, 0.5, 0.25], [-0.25, 0.9, 0.5], [-0.75, -0.4, 0.6]]),
np.array([[0., 1., 0.], [-1., 0., 0.], [0., 0., 1.]])]:
rotbasis = [(newbasis[0][0], np.dot(newbasis[0][1], rot))]
crotdirect = T3D([nlc[0] for nlc in T3D.constructexpansion(rotbasis, N=4)])
crot = c.rotate(c.rotatedirections(rot))
for u in [np.array([1.2, 0., 0.]),
np.array([0., 1.2, 0.]),
np.array([0., 0., 1.2]),
np.array([0.234, -0.5, 0.5]),
np.array([-0.24, 0.41, -1.3])]:
self.assertAlmostEqual(crot(u, fnu)[0, 0], crotdirect(u, fnu)[0, 0],
msg="Failed before reduce()")
# now, a more detailed test: do a reduce.
c2 = c.copy()
c.reduce()
for rot in [np.eye(3), 2. * np.eye(3), 0.5 * np.eye(3),
np.array([[1.25, 0.5, 0.25], [-0.25, 0.9, 0.5], [-0.75, -0.4, 0.6]]),
np.array([[0., 1., 0.], [-1., 0., 0.], [0., 0., 1.]])]:
rotbasis = [(newbasis[0][0], np.dot(newbasis[0][1], rot))]
crotdirect = T3D([nlc[0] for nlc in T3D.constructexpansion(rotbasis, N=4)])
crot = c.rotate(c.rotatedirections(rot))
for u in [np.array([1.2, 0., 0.]),
np.array([0., 1.2, 0.]),
np.array([0., 0., 1.2]),
np.array([0.234, -0.5, 0.5]),
np.array([-0.24, 0.41, -1.3])]:
self.assertAlmostEqual(c(u, fnu)[0, 0], c2(u, fnu)[0, 0],
msg="Failure in reduce() to produce equal function values?")
self.assertAlmostEqual(crot(u, fnu)[0, 0], crotdirect(u, fnu)[0, 0],
msg="Failed after reduce() for\n{}".format(rot))
def FourierCoeff(l, theta):
"""This is the equivalent of sph_harm for the two-dimensional case"""
return np.exp(1j*l*theta)
class PowerExpansion2DTests(unittest.TestCase):
"""Tests to make sure our power expansions are constructed correctly and behaving as advertised"""
def setUp(self):
"""initial setup for testing"""
self.theta = np.pi * 0.2234
self.c = T2D()
self.basis = [(np.eye(2), np.array([0.5, -np.sqrt(0.75)])),
(np.eye(2), np.array([0.5, np.sqrt(0.75)])),
(2.*np.eye(2), np.array([-1., 0.])),
(np.eye(2), np.array([-0.5, -np.sqrt(0.75)])),
(np.eye(2), np.array([-0.5, np.sqrt(0.75)])),
(2.*np.eye(2), np.array([1., 0.]))
]
def testIndexing(self):
for ind, l in enumerate(self.c.ind2FC):
self.assertEqual(ind, self.c.FC2ind[l])
for l in range(-self.c.Lmax, self.c.Lmax+1):
self.assertEqual(l, self.c.ind2FC[self.c.FC2ind[l]])
def testExpansionFCpow(self):
"""Test the expansion of FC into powers"""
for theta in [self.theta + dt*np.pi for dt in np.linspace(0, 2, num=16, endpoint=False)]:
utest, umagn = T2D.powexp(np.array([np.cos(theta), np.sin(theta)]))
self.assertAlmostEqual(umagn, 1)
FC0 = np.zeros(T2D.NFC, dtype=complex)
# FC as power expansions
for lind in range(T2D.NFC):
l = T2D.ind2FC[lind]
FC0[lind] = FourierCoeff(l, theta)
FCexp = np.dot(T2D.FCpow[lind], utest)
self.assertAlmostEqual(FC0[lind], FCexp,
msg="Failure for FCpow "
"l={}; theta={}\n{} != {}".format(l, theta, FC0[lind], FCexp))
# power expansions in FC's
for p in range(T2D.NFC):
pFC = np.dot(T2D.powFC[p], FC0)
self.assertAlmostEqual(utest[p], pFC,
msg="Failure for powFC "
"{}; theta={}\n{} != {}".format(T2D.ind2pow[p], theta, utest[p], pFC))
# projection (note that Lproj is not symmetric): so this test ensures that v.u and (proj.v).u
# give the same value
uproj = np.tensordot(T2D.Lproj[-1], utest, axes=(0, 0))
for p in range(T2D.NFC):
self.assertAlmostEqual(utest[p], uproj[p],
msg="Projection failure for "
"{}\n{} != {}".format(T2D.ind2pow[p], uproj[p], utest[p]))
def testProjection(self):
"""Test that the L-projections are correct"""
# Try to do this sequentially
for tup in [(0, 0), (1, 0), (0, 1)]:
v = np.zeros(T2D.Npower)
v[T2D.pow2ind[tup]] = 1.
Pv = np.tensordot(T2D.Lproj[-1], v, axes=1)
# now, try with multiplying by x^2+y^2+z^2:
vxy = np.zeros(T2D.Npower)
vxy[T2D.pow2ind[tup[0] + 2, tup[1]]] = 1.
vxy[T2D.pow2ind[tup[0], tup[1] + 2]] = 1.
Pvxy = np.tensordot(T2D.Lproj[-1], vxy, axes=1)
self.assertTrue(np.allclose(v, Pv))
self.assertTrue(np.allclose(v, Pvxy))
for l in range(T2D.Lmax + 1):
Pv = np.tensordot(T2D.Lproj[l], v, axes=1)
Pvxy = np.tensordot(T2D.Lproj[l], vxy, axes=1)
if l == sum(tup):
self.assertTrue(np.allclose(v, Pv))
self.assertTrue(np.allclose(v, Pvxy))
else:
self.assertTrue(np.allclose(Pv, 0))
self.assertTrue(np.allclose(Pvxy, 0))
def testEvaluation(self):
"""Test out the evaluation functions in an expansion, including with scalar multiply and addition"""
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n / PE.factorial(n, True)
c = T2D()
for coeff in c.constructexpansion(self.basis):
c.addterms(coeff)
for (n, l) in c.nl():
self.assertEqual(n, l)
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
# c2 = 2*c
c2 = c.copy()
c2 *= 2
c3 = c + c
c4 = c2 - c
### NOTE! We have to do it *this way*; otherwise, it will try to use the sum in np.array,
### and that WILL NOT WORK with our expansion.
c5 = c + np.eye(2)
prod = np.array([[-4.2, 2.67], [1.3, 3.21]])
c6 = c.ldot(prod)
c7 = c.copy()
c7.irdot(prod)
sum([c, c2, c3]) # tests whether we can use sum
for u in [np.zeros(2), np.array([1., 0.]), np.array([0., 1.]), np.array([0., 0.]),
np.array([0.234, -0.85]),
np.array([1.24, 0.71])]:
umagn = np.sqrt(np.dot(u, u))
fval = {nl: f(umagn) for nl, f in fnu.items()}
# comparison value:
value = sum(pre * approxexp(np.dot(u, vec)) for pre, vec in self.basis)
valsum = c(u, fval)
funcsum = c(u, fnu)
dictsum = sum(fval[k] * v for k, v in c(u).items())
self.assertTrue(np.allclose(value, valsum),
msg="Failure for call with values for {}\n{} != {}".format(u, value, valsum))
self.assertTrue(np.allclose(value, funcsum),
msg="Failure for call with function for {}\n{} != {}".format(u, value, funcsum))
self.assertTrue(np.allclose(value, dictsum),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value, dictsum))
self.assertTrue(np.allclose(2 * value, c2(u, fval)),
msg="Failure with scalar multiply?")
self.assertTrue(np.allclose(2 * value, c3(u, fval)),
msg="Failure with addition?")
self.assertTrue(np.allclose(value, c4(u, fval)),
msg="Failure with subtraction?")
self.assertTrue(np.allclose(value + np.eye(2), c5(u, fval)),
msg="Failure with scalar addition?")
self.assertTrue(np.allclose(np.dot(prod, value), c6(u, fval)),
msg="Failure with tensor dot product?")
self.assertTrue(np.allclose(np.dot(value, prod), c7(u, fval)),
msg="Failure with tensor dot product inplace?")
def testProduct(self):
"""Test out the evaluation functions in an expansion, using coefficient products"""
def approxexp(u):
"""2nd order expansion of exp(u)"""
# return 1 + u*(1 + u*(0.5 + u*(1/6 + u/24)))
return 1 + u * (1 + u * 0.5)
def createExpansion(n):
return lambda u: u ** n
c = T2D()
for coeff in c.constructexpansion(self.basis, N=2):
c.addterms(coeff)
c *= {(n, l): 1. / PE.factorial(n, True) for (n, l) in
c.nl()} # scalar multiply to create a Taylor expansion for exp
c2 = c * c
for (n, l) in c2.nl():
self.assertEqual(n, l)
fnu = {(n, l): createExpansion(n) for (n, l) in c2.nl()} # or could do this in previous loop
for u in [np.zeros(2), np.array([1., 0.]), np.array([0., 1.]),
np.array([0.234, -0.85]), np.array([1.24, 0.71])]:
umagn = np.sqrt(np.dot(u, u))
fval = {nl: f(umagn) for nl, f in fnu.items()}
# comparison value:
value = sum(pre * approxexp(np.dot(u, vec)) for pre, vec in self.basis)
valsum = c(u, fval)
funcsum = c(u, fnu)
dictsum = sum(fval[k] * v for k, v in c(u).items())
value2 = np.dot(value, value)
valsum2 = c2(u, fval)
funcsum2 = c2(u, fnu)
dictsum2 = sum(fval[k] * v for k, v in c2(u).items())
self.assertTrue(np.allclose(value, valsum),
msg="Failure for call with values for {}\n{} != {}".format(u, value, valsum))
self.assertTrue(np.allclose(value, funcsum),
msg="Failure for call with function for {}\n{} != {}".format(u, value, funcsum))
self.assertTrue(np.allclose(value, dictsum),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value, dictsum))
self.assertTrue(np.allclose(value2, valsum2),
msg="Failure for call with values for {}\n{} != {}".format(u, value2, valsum2))
self.assertTrue(np.allclose(value2, funcsum2),
msg="Failure for call with function for {}\n{} != {}".format(u, value2, funcsum2))
self.assertTrue(np.allclose(value2, dictsum2),
msg="Failure for call with dictionary for {}\n{} != {}".format(u, value2, dictsum2))
def testReduceExpand(self):
"""Test our reduction and expansion operations"""
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n
c = T2D([c[0] for c in T2D.constructexpansion(self.basis, N=4, pre=(0, 1, 1 / 2, 1 / 6, 1 / 24))])
self.assertEqual(len(c.coefflist), 5) # should have all n from 0 to 4
c2 = c.copy()
c2.reduce()
# check the reduction: should be just two terms remaining: n=2, n=4
self.assertEqual(len(c2.coefflist), 2)
for n, l, coeff in c2.coefflist:
self.assertTrue(n == 2 or n == 4)
if n == 2:
self.assertEqual(l, 2)
else:
self.assertEqual(l, 4)
c3 = c2.copy()
c3.separate()
# print("c2:\n{}".format(c2))
# print("c3:\n{}".format(c3))
# now should have 2 + 3 = 5 terms
self.assertEqual(len(c3.coefflist), 5)
for n, l, coeff in c3.coefflist:
self.assertTrue(n == 2 or n == 4)
if n == 2:
self.assertTrue(l == 0 or l == 2)
else:
self.assertTrue(l == 0 or l == 2 or l == 4)
# also check that the only non-zero terms for a given l are value are those values
lmin, lmax = T2D.powlrange[l-1], T2D.powlrange[l]
self.assertTrue(np.allclose(coeff[0:lmin], 0))
self.assertTrue(np.allclose(coeff[lmax:T2D.Npower], 0))
self.assertFalse(np.allclose(coeff[lmin:lmax], 0))
# check directly the Fourier transform:
FCcoeff = np.tensordot(T2D.powFC[:T2D.powlrange[l], :], coeff, axes=(0, 0)) # now in FC
# only the lplus and lminus should be non-zero:
lp, lm = T2D.FC2ind[l], T2D.FC2ind[-l]
for lind in range(T2D.NFC):
if lind != lp and lind != lm:
self.assertAlmostEqual(np.sum(np.abs(FCcoeff[lind])), 0)
self.assertNotAlmostEqual(np.sum(np.abs(FCcoeff[lp])+np.abs(FCcoeff[lm])), 0)
# a little tricky to make sure we get ALL the functions (instead of making multiple dictionaries)
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
for (n, l) in c3.nl():
if (n, l) not in fnu:
fnu[(n, l)] = createExpansion(n)
for u in [np.zeros(2), np.array([1., 0.]), np.array([0., 1.]),
np.array([0.234, -0.85]), np.array([1.24, 0.71])]:
umagn = np.sqrt(np.dot(u, u))
# compare values:
self.assertTrue(np.allclose(c(u, fnu), c2(u, fnu)),
msg="Failure on reduce:\n{} != {}".format(c(u, fnu), c2(u, fnu)))
self.assertTrue(np.allclose(c(u, fnu), c3(u, fnu)),
msg="Failure on expand:\n{} != {}".format(c(u, fnu), c3(u, fnu)))
# do a test of projection using some random coefficients
coeffrand = np.random.uniform(-1, 1, T2D.Npower)
coeffrand.shape = (T2D.Npower, 1, 1)
crand = T2D([(0, T2D.Lmax, coeffrand)])
crand.separate()
for (n, l, c) in crand.coefflist:
FCcoeff = np.tensordot(T2D.powFC[:T2D.powlrange[l], :], c, axes=(0, 0)) # now in FC
# only the lplus and lminus should be non-zero:
lp, lm = T2D.FC2ind[l], T2D.FC2ind[-l]
for lind in range(T2D.NFC):
if lind != lp and lind != lm:
self.assertAlmostEqual(np.sum(np.abs(FCcoeff[lind])), 0)
self.assertNotAlmostEqual(np.sum(np.abs(FCcoeff[lp])+np.abs(FCcoeff[lm])), 0)
def testInverse(self):
"""Test our inverse expansion"""
# This is *very tricky* because the inverse expansion is *strictly* a Taylor series;
# it won't be exact. Should be up to order u^2
def approxexp(u):
"""4th order expansion of exp(u)"""
return 1 + u * (1 + u * (0.5 + u * (1 / 6 + u / 24)))
def createExpansion(n):
return lambda u: u ** n
cubicbasis = [(np.eye(2), np.array([1., 0.])),
(np.eye(2), np.array([-1., 0.])),
(np.eye(2), np.array([0., 1.])),
(np.eye(2), np.array([0., -1.]))
]
c = T2D([c[0] for c in T2D.constructexpansion(cubicbasis, N=4, pre=(0, 1, 1 / 2, 1 / 6, 1 / 24))])
c.reduce()
cinv = c.inv(Nmax=0) # since c ~ x^2, cinv ~ 1/x^2, and L=4 should take us to x^0
fnu = {(n, l): createExpansion(n) for (n, l) in c.nl()} # or could do this in previous loop
for (n, l) in cinv.nl():
if (n, l) not in fnu:
fnu[(n, l)] = createExpansion(n)
for u in [np.array([0.25, 0.]), np.array([0., 0.1]),
np.array([0.0234, -0.085]), np.array([0.124, 0.071])]:
umagn = np.sqrt(np.dot(u, u))
cval = c(u, fnu)
cinvval = cinv(u, fnu)
cval_inv = np.dot(cval, cinvval) - np.eye(2)
# cval_directinv = np.linalg.inv(cval)
self.assertTrue(np.all(abs(cval_inv) < (1 / 120) * umagn ** 4),
msg="cinv * c != 1?\nc={}\ncinv={}\nc*cinv-1={}".format(cval, cinvval, cval_inv))
def testTruncation(self):
"""Make sure truncation works how we expect"""
c = T2D([nlc[0] for nlc in T2D.constructexpansion(self.basis, N=4)])
c.reduce()
self.assertEqual(max(n for n, l, c in c.coefflist), 4)
c2 = c.truncate(2)
self.assertEqual(max(n for n, l, c in c2.coefflist), 2)
self.assertEqual(max(n for n, l, c in c.coefflist), 4)
c.truncate(2, inplace=True)
self.assertEqual(max(n for n, l, c in c.coefflist), 2)
def testIndexingSlicing(self):
"""Can we index into our expansions to get a new expansion? Can we slice? Can we assign?"""
def createExpansion(n):
return lambda u: u ** n
newbasis = [(np.array([[1., -2.], [-2., 2.]]), np.array([2 / 3., 1 / 3]))]
c = T2D([nlc[0] for nlc in T2D.constructexpansion(newbasis, N=4)])
fnu = {(n, l): createExpansion(n) for n in range(5) for l in range(5)}
# now we have something to work with. We should have a basis from n=0 up to n=4 of 2x2 matrices.
c00 = c[0, 0]
for u in [np.array([0.25, 0.]), np.array([0., 0.1]),
np.array([0.0234, -0.085]), np.array([0.124, 0.071])]:
cval = c(u, fnu)
c00val = c00(u, fnu)
self.assertEqual(cval[0, 0], c00val)
# now, an assignment test. This will be funky; first, we do a "copy" operation so that
# c00 is clean--it is no longer a "view" or slice of c, but it's own thing.
c00 = c00.copy()
# now, set the 0,0 value to be twice what it was before:
c[0, 0] = 2. * c00
for u in [np.array([0.25, 0.]), np.array([0., 0.1]),
np.array([0.0234, -0.085]), np.array([0.124, 0.071])]:
cval = c(u, fnu)
c00val = c00(u, fnu)
self.assertEqual(cval[0, 0], 2. * c00val)
c00inv = c00.inv(Nmax=4)
c00inv.reduce()
for u in [np.array([0.025, 0.]), np.array([0., 0.01]),
np.array([0.0234, -0.085]), np.array([0.0124, 0.071])]:
c00val = c00(u, fnu)
c00invval = c00inv(u, fnu)
self.assertAlmostEqual(c00val * c00invval, 1)
def testRotation(self):
"""Set of tests for rotating directions"""
def createExpansion(n):
return lambda u: u ** n
newbasis = [(0.89 * np.eye(1), np.array([2 / 3., 1 / 3]))]
c = T2D([nlc[0] for nlc in T2D.constructexpansion(newbasis, N=4)])
# does this still work if we do this?
# c.reduce()
fnu = {(n, l): createExpansion(n) for n in range(5) for l in range(5)}
for rot in [np.eye(2), 2. * np.eye(2), 0.5 * np.eye(2),
np.array([[1.25, 0.5], [-0.25, 0.9]]),
np.array([[0., 1.], [-1., 0.]])]:
rotbasis = [(newbasis[0][0], np.dot(newbasis[0][1], rot))]
crotdirect = T2D([nlc[0] for nlc in T2D.constructexpansion(rotbasis, N=4)])
crot = c.rotate(c.rotatedirections(rot))
for u in [np.array([1.2, 0.]),
np.array([0., 1.2]),
np.array([0., 0.]),
np.array([0.234, -0.5]),
np.array([-0.24, 0.41])]:
self.assertAlmostEqual(crot(u, fnu)[0, 0], crotdirect(u, fnu)[0, 0],
msg="Failed before reduce()")
# now, a more detailed test: do a reduce.
c2 = c.copy()
c.reduce()
for rot in [np.eye(2), 2. * np.eye(2), 0.5 * np.eye(2),
np.array([[1.25, 0.5], [-0.25, 0.9]]),
np.array([[0., 1.], [-1., 0.]])]:
rotbasis = [(newbasis[0][0], np.dot(newbasis[0][1], rot))]
crotdirect = T2D([nlc[0] for nlc in T2D.constructexpansion(rotbasis, N=4)])
crot = c.rotate(c.rotatedirections(rot))
for u in [np.array([1.2, 0.]),
np.array([0., 1.2]),
np.array([0., 0.]),
np.array([0.234, -0.5]),
np.array([-0.24, 0.41])]:
self.assertAlmostEqual(c(u, fnu)[0, 0], c2(u, fnu)[0, 0],
msg="Failure in reduce() to produce equal function values?")
self.assertAlmostEqual(crot(u, fnu)[0, 0], crotdirect(u, fnu)[0, 0],
msg="Failed after reduce() for\n{}".format(rot))
| 48.705368
| 112
| 0.490196
| 5,546
| 39,013
| 3.445546
| 0.073026
| 0.046889
| 0.036841
| 0.067821
| 0.904024
| 0.891255
| 0.873358
| 0.872102
| 0.861322
| 0.853158
| 0
| 0.063351
| 0.343321
| 39,013
| 800
| 113
| 48.76625
| 0.68254
| 0.133443
| 0
| 0.764992
| 0
| 0
| 0.055971
| 0.001788
| 0
| 0
| 0
| 0
| 0.186386
| 1
| 0.068071
| false
| 0
| 0.006483
| 0.019449
| 0.111831
| 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
|
8481dab66f9e2cfb5f4a862bbb515bf2add60cfe
| 15,837
|
py
|
Python
|
rbac/common/protobuf/task_transaction_pb2.py
|
fthornton67/sawtooth-next-directory
|
79479afb8d234911c56379bb1d8abf11f28ef86d
|
[
"Apache-2.0"
] | 75
|
2018-04-06T09:13:34.000Z
|
2020-05-18T18:59:47.000Z
|
rbac/common/protobuf/task_transaction_pb2.py
|
fthornton67/sawtooth-next-directory
|
79479afb8d234911c56379bb1d8abf11f28ef86d
|
[
"Apache-2.0"
] | 989
|
2018-04-18T21:01:56.000Z
|
2019-10-23T15:37:09.000Z
|
rbac/common/protobuf/task_transaction_pb2.py
|
fthornton67/sawtooth-next-directory
|
79479afb8d234911c56379bb1d8abf11f28ef86d
|
[
"Apache-2.0"
] | 72
|
2018-04-13T18:29:12.000Z
|
2020-05-29T06:00:33.000Z
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task_transaction.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
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()
DESCRIPTOR = _descriptor.FileDescriptor(
name='task_transaction.proto',
package='',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\x16task_transaction.proto\"\xde\x01\n\x13ProposeAddTaskOwner\x12\x13\n\x0bproposal_id\x18\x01 \x01(\t\x12\x0f\n\x07task_id\x18\x02 \x01(\t\x12\x0f\n\x07next_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x34\n\x08metadata\x18\x05 \x03(\x0b\x32\".ProposeAddTaskOwner.MetadataEntry\x12\x19\n\x11\x61ssigned_approver\x18\x06 \x03(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xde\x01\n\x13ProposeAddTaskAdmin\x12\x13\n\x0bproposal_id\x18\x01 \x01(\t\x12\x0f\n\x07task_id\x18\x02 \x01(\t\x12\x0f\n\x07next_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x34\n\x08metadata\x18\x05 \x03(\x0b\x32\".ProposeAddTaskAdmin.MetadataEntry\x12\x19\n\x11\x61ssigned_approver\x18\x06 \x03(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa9\x01\n\nCreateTask\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x64mins\x18\x03 \x03(\t\x12\x0e\n\x06owners\x18\x04 \x03(\t\x12+\n\x08metadata\x18\x05 \x03(\x0b\x32\x19.CreateTask.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3')
)
_PROPOSEADDTASKOWNER_METADATAENTRY = _descriptor.Descriptor(
name='MetadataEntry',
full_name='ProposeAddTaskOwner.MetadataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ProposeAddTaskOwner.MetadataEntry.key', index=0,
number=1, 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='value', full_name='ProposeAddTaskOwner.MetadataEntry.value', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=202,
serialized_end=249,
)
_PROPOSEADDTASKOWNER = _descriptor.Descriptor(
name='ProposeAddTaskOwner',
full_name='ProposeAddTaskOwner',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='proposal_id', full_name='ProposeAddTaskOwner.proposal_id', index=0,
number=1, 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='task_id', full_name='ProposeAddTaskOwner.task_id', index=1,
number=2, 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='next_id', full_name='ProposeAddTaskOwner.next_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),
_descriptor.FieldDescriptor(
name='reason', full_name='ProposeAddTaskOwner.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),
_descriptor.FieldDescriptor(
name='metadata', full_name='ProposeAddTaskOwner.metadata', index=4,
number=5, 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),
_descriptor.FieldDescriptor(
name='assigned_approver', full_name='ProposeAddTaskOwner.assigned_approver', index=5,
number=6, type=9, cpp_type=9, 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),
],
extensions=[
],
nested_types=[_PROPOSEADDTASKOWNER_METADATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=27,
serialized_end=249,
)
_PROPOSEADDTASKADMIN_METADATAENTRY = _descriptor.Descriptor(
name='MetadataEntry',
full_name='ProposeAddTaskAdmin.MetadataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ProposeAddTaskAdmin.MetadataEntry.key', index=0,
number=1, 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='value', full_name='ProposeAddTaskAdmin.MetadataEntry.value', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=202,
serialized_end=249,
)
_PROPOSEADDTASKADMIN = _descriptor.Descriptor(
name='ProposeAddTaskAdmin',
full_name='ProposeAddTaskAdmin',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='proposal_id', full_name='ProposeAddTaskAdmin.proposal_id', index=0,
number=1, 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='task_id', full_name='ProposeAddTaskAdmin.task_id', index=1,
number=2, 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='next_id', full_name='ProposeAddTaskAdmin.next_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),
_descriptor.FieldDescriptor(
name='reason', full_name='ProposeAddTaskAdmin.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),
_descriptor.FieldDescriptor(
name='metadata', full_name='ProposeAddTaskAdmin.metadata', index=4,
number=5, 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),
_descriptor.FieldDescriptor(
name='assigned_approver', full_name='ProposeAddTaskAdmin.assigned_approver', index=5,
number=6, type=9, cpp_type=9, 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),
],
extensions=[
],
nested_types=[_PROPOSEADDTASKADMIN_METADATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=252,
serialized_end=474,
)
_CREATETASK_METADATAENTRY = _descriptor.Descriptor(
name='MetadataEntry',
full_name='CreateTask.MetadataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='CreateTask.MetadataEntry.key', index=0,
number=1, 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='value', full_name='CreateTask.MetadataEntry.value', index=1,
number=2, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=202,
serialized_end=249,
)
_CREATETASK = _descriptor.Descriptor(
name='CreateTask',
full_name='CreateTask',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='task_id', full_name='CreateTask.task_id', index=0,
number=1, 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='name', full_name='CreateTask.name', index=1,
number=2, 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='admins', full_name='CreateTask.admins', index=2,
number=3, type=9, cpp_type=9, 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),
_descriptor.FieldDescriptor(
name='owners', full_name='CreateTask.owners', index=3,
number=4, type=9, cpp_type=9, 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),
_descriptor.FieldDescriptor(
name='metadata', full_name='CreateTask.metadata', index=4,
number=5, 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),
],
extensions=[
],
nested_types=[_CREATETASK_METADATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=477,
serialized_end=646,
)
_PROPOSEADDTASKOWNER_METADATAENTRY.containing_type = _PROPOSEADDTASKOWNER
_PROPOSEADDTASKOWNER.fields_by_name['metadata'].message_type = _PROPOSEADDTASKOWNER_METADATAENTRY
_PROPOSEADDTASKADMIN_METADATAENTRY.containing_type = _PROPOSEADDTASKADMIN
_PROPOSEADDTASKADMIN.fields_by_name['metadata'].message_type = _PROPOSEADDTASKADMIN_METADATAENTRY
_CREATETASK_METADATAENTRY.containing_type = _CREATETASK
_CREATETASK.fields_by_name['metadata'].message_type = _CREATETASK_METADATAENTRY
DESCRIPTOR.message_types_by_name['ProposeAddTaskOwner'] = _PROPOSEADDTASKOWNER
DESCRIPTOR.message_types_by_name['ProposeAddTaskAdmin'] = _PROPOSEADDTASKADMIN
DESCRIPTOR.message_types_by_name['CreateTask'] = _CREATETASK
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
ProposeAddTaskOwner = _reflection.GeneratedProtocolMessageType('ProposeAddTaskOwner', (_message.Message,), dict(
MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict(
DESCRIPTOR = _PROPOSEADDTASKOWNER_METADATAENTRY,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:ProposeAddTaskOwner.MetadataEntry)
))
,
DESCRIPTOR = _PROPOSEADDTASKOWNER,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:ProposeAddTaskOwner)
))
_sym_db.RegisterMessage(ProposeAddTaskOwner)
_sym_db.RegisterMessage(ProposeAddTaskOwner.MetadataEntry)
ProposeAddTaskAdmin = _reflection.GeneratedProtocolMessageType('ProposeAddTaskAdmin', (_message.Message,), dict(
MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict(
DESCRIPTOR = _PROPOSEADDTASKADMIN_METADATAENTRY,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:ProposeAddTaskAdmin.MetadataEntry)
))
,
DESCRIPTOR = _PROPOSEADDTASKADMIN,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:ProposeAddTaskAdmin)
))
_sym_db.RegisterMessage(ProposeAddTaskAdmin)
_sym_db.RegisterMessage(ProposeAddTaskAdmin.MetadataEntry)
CreateTask = _reflection.GeneratedProtocolMessageType('CreateTask', (_message.Message,), dict(
MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict(
DESCRIPTOR = _CREATETASK_METADATAENTRY,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:CreateTask.MetadataEntry)
))
,
DESCRIPTOR = _CREATETASK,
__module__ = 'task_transaction_pb2'
# @@protoc_insertion_point(class_scope:CreateTask)
))
_sym_db.RegisterMessage(CreateTask)
_sym_db.RegisterMessage(CreateTask.MetadataEntry)
_PROPOSEADDTASKOWNER_METADATAENTRY._options = None
_PROPOSEADDTASKADMIN_METADATAENTRY._options = None
_CREATETASK_METADATAENTRY._options = None
# @@protoc_insertion_point(module_scope)
| 40.607692
| 1,242
| 0.744522
| 1,928
| 15,837
| 5.824689
| 0.082988
| 0.053428
| 0.046483
| 0.040962
| 0.76821
| 0.739982
| 0.729118
| 0.709973
| 0.709973
| 0.709973
| 0
| 0.037021
| 0.128433
| 15,837
| 389
| 1,243
| 40.712082
| 0.77657
| 0.033592
| 0
| 0.725212
| 1
| 0.002833
| 0.176801
| 0.122336
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014164
| 0
| 0.014164
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 8
|
84c70fefc2ef3d45c2a707f28dbaae1d581efe4b
| 7,831
|
py
|
Python
|
pointnet/dataset_normal.py
|
trisct/pointnet.pytorch
|
a6cd50838057093562be4704146d1f975a250926
|
[
"MIT"
] | null | null | null |
pointnet/dataset_normal.py
|
trisct/pointnet.pytorch
|
a6cd50838057093562be4704146d1f975a250926
|
[
"MIT"
] | null | null | null |
pointnet/dataset_normal.py
|
trisct/pointnet.pytorch
|
a6cd50838057093562be4704146d1f975a250926
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
import torch.utils.data as data
import os
import os.path
import torch
import numpy as np
import sys
from tqdm import tqdm
import json
from plyfile import PlyData, PlyElement
import h5py
from torch_geometric.nn import fps
from open3d import *
class NormalDataset(data.Dataset):
def __init__(self,
root,
npoints=4096,
split='train',
data_augmentation=True):
self.npoints = npoints
self.root = root
self.data_augmentation = data_augmentation
if split == 'train':
self.idfile = os.path.join(self.root, 'train_split.txt')
else:
self.idfile = os.path.join(self.root, 'valid_split.txt')
with open(self.idfile, 'r') as f:
self.objects = f.readlines()
def __getitem__(self, index):
objname_no_suffix = self.objects[index][:-1]
#print('[HERE: In pointnet.pytorch.pointnet.dataset_normal] Getting object %d: %s' % (index, objname_no_suffix))
point_set = np.loadtxt(
os.path.join(self.root, objname_no_suffix + '.pts'),
dtype=np.float32)
vnormal = np.loadtxt(
os.path.join(self.root, objname_no_suffix + '.normal'),
dtype=np.float32)
choice = np.random.choice(point_set.shape[0], self.npoints, replace=True)
#resample
point_set = point_set[choice, :]
point_set = point_set - np.expand_dims(np.mean(point_set, axis = 0), 0) # center
dist = np.max(np.sqrt(np.sum(point_set ** 2, axis = 1)),0)
point_set = point_set / dist #scale
vnormal = vnormal[choice]
# original pointnet augmentations include rotation, we do not implement yet
if self.data_augmentation:
#theta = np.random.uniform(0,np.pi*2)
#rotation_matrix = np.array([[np.cos(theta), -np.sin(theta)],[np.sin(theta), np.cos(theta)]])
#point_set[:,[0,2]] = point_set[:,[0,2]].dot(rotation_matrix) # random rotation
point_set += np.random.normal(0, 0.02, size=point_set.shape) # random jitter
point_set = torch.from_numpy(point_set)
vnormal = torch.from_numpy(vnormal)
return point_set, vnormal
def __len__(self):
return len(self.objects)
class NormalDatasetAllInOne(data.Dataset):
def __init__(self,
root,
npoints=4096,
split='train',
data_augmentation=True,
copy_len=None):
self.npoints = npoints
self.root = root
self.dataset_file = 'thingi10k_all_in_one.hdf5'
self.data_augmentation = data_augmentation
self.copy_len = copy_len
if split == 'train':
self.idfile = os.path.join(self.root, 'train_split.txt')
else:
self.idfile = os.path.join(self.root, 'valid_split.txt')
with open(self.idfile, 'r') as f:
self.objects = f.read().splitlines()
self.data = h5py.File(os.path.join(self.root, self.dataset_file), 'r')
def __getitem__(self, index):
if self.copy_len is not None:
index = index % len(self.objects)
objname = self.objects[index]
#print('[HERE: In pointnet.pytorch.pointnet.dataset_normal] Getting object %d: %s' % (index, objname_no_suffix))
#print(f'[HERE In pointnet.pytorch.pointnet.dataset_normal] Trying to access {objname}')
point_set = self.data[objname + '_pts'][:]
vnormal = self.data[objname + '_normal'][:]
choice = np.random.choice(point_set.shape[0], self.npoints, replace=True)
#resample
point_set = point_set[choice, :]
point_set = point_set - np.expand_dims(np.mean(point_set, axis = 0), 0) # center
dist = np.max(np.sqrt(np.sum(point_set ** 2, axis = 1)),0)
point_set = point_set / dist #scale
vnormal = vnormal[choice]
# original pointnet augmentations include rotation, we do not implement yet
if self.data_augmentation:
#theta = np.random.uniform(0,np.pi*2)
#rotation_matrix = np.array([[np.cos(theta), -np.sin(theta)],[np.sin(theta), np.cos(theta)]])
#point_set[:,[0,2]] = point_set[:,[0,2]].dot(rotation_matrix) # random rotation
point_set += np.random.normal(0, 0.02, size=point_set.shape) # random jitter
point_set = torch.from_numpy(point_set)
vnormal = torch.from_numpy(vnormal)
return point_set, vnormal
def __len__(self):
if self.copy_len is None:
return len(self.objects)
return self.copy_len
class NormalDatasetAllInOneFPS(data.Dataset):
def __init__(self,
root,
npoints=2048,
split='train',
data_augmentation=True,
copy_len=None):
self.npoints = npoints
self.root = root
self.dataset_file = 'thingi10k_all_in_one.hdf5'
self.data_augmentation = data_augmentation
self.copy_len = copy_len
if split == 'train':
self.idfile = os.path.join(self.root, 'train_split.txt')
else:
self.idfile = os.path.join(self.root, 'valid_split.txt')
with open(self.idfile, 'r') as f:
self.objects = f.read().splitlines()
self.data = h5py.File(os.path.join(self.root, self.dataset_file), 'r')
def __getitem__(self, index):
if self.copy_len is not None:
index = index % len(self.objects)
objname = self.objects[index]
#print('[HERE: In pointnet.pytorch.pointnet.dataset_normal] Getting object %d: %s' % (index, objname_no_suffix))
#print(f'[HERE In pointnet.pytorch.pointnet.dataset_normal] Trying to access {objname}')
point_set = self.data[objname + '_pts'][:]
vnormal = self.data[objname + '_normal'][:]
N_pts = point_set.shape[0]
# maybe change this to offline sampling
fps_sample_index = fps(torch.from_numpy(point_set), ratio=self.npoints/N_pts)
if self.npoints/N_pts > 1:
print(f'[HERE: In pointnet.pytorch.pointnet.dataset_normal.NormalDatasetAllInOneFPS] Sample ratio {self.npoints/N_pts: .4f} = {self.npoints}/{N_pts} larger than 1!')
if len(fps_sample_index) != self.npoints:
print(f'[HERE: In pointnet.pytorch.pointnet.dataset_normal.NormalDatasetAllInOneFPS] Resulting sample number {len(fps_sample_index)} is different than designated: {self.npoints}!')
#choice = np.random.choice(point_set.shape[0], self.npoints, replace=True)
#resample
#point_set = point_set[choice, :]
point_set = point_set[fps_sample_index]
point_set = point_set - np.expand_dims(np.mean(point_set, axis = 0), 0) # center
dist = np.max(np.sqrt(np.sum(point_set ** 2, axis = 1)),0)
point_set = point_set / dist #scale
draw_geometries([point_set])
#vnormal = vnormal[choice]
vnormal = vnormal[fps_sample_index]
# original pointnet augmentations include rotation, we do not implement yet
if self.data_augmentation:
#theta = np.random.uniform(0,np.pi*2)
#rotation_matrix = np.array([[np.cos(theta), -np.sin(theta)],[np.sin(theta), np.cos(theta)]])
#point_set[:,[0,2]] = point_set[:,[0,2]].dot(rotation_matrix) # random rotation
point_set += np.random.normal(0, 0.02, size=point_set.shape) # random jitter
point_set = torch.from_numpy(point_set)
vnormal = torch.from_numpy(vnormal)
return point_set, vnormal
def __len__(self):
if self.copy_len is None:
return len(self.objects)
return self.copy_len
| 39.751269
| 192
| 0.614481
| 1,018
| 7,831
| 4.537328
| 0.140472
| 0.096991
| 0.02165
| 0.03031
| 0.839143
| 0.818792
| 0.818792
| 0.804287
| 0.804287
| 0.804287
| 0
| 0.013727
| 0.2651
| 7,831
| 196
| 193
| 39.954082
| 0.788879
| 0.206104
| 0
| 0.755556
| 0
| 0.014815
| 0.086232
| 0.036725
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066667
| false
| 0
| 0.096296
| 0.007407
| 0.244444
| 0.022222
| 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
|
84e9512b78bee2499994ca3aa4a674cc6ff73da8
| 20,607
|
py
|
Python
|
tests/integration/test_event_hooks_it.py
|
cluesblues/okta-sdk-python
|
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
|
[
"Apache-2.0"
] | null | null | null |
tests/integration/test_event_hooks_it.py
|
cluesblues/okta-sdk-python
|
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
|
[
"Apache-2.0"
] | null | null | null |
tests/integration/test_event_hooks_it.py
|
cluesblues/okta-sdk-python
|
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
|
[
"Apache-2.0"
] | 1
|
2022-01-19T09:29:14.000Z
|
2022-01-19T09:29:14.000Z
|
import pytest
from tests.mocks import MockOktaClient
import okta.models as models
from http import HTTPStatus
from okta.errors.okta_api_error import OktaAPIError
class TestEventHooksResource:
"""
Integration Tests for the Event Hooks Resource
"""
SDK_PREFIX = "python_sdk"
EVENT_TYPE = "EVENT_TYPE"
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_create_get_event_hook(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
# create Event Hook
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
assert len(created_event_hook.channel.config.headers) == 1
assert isinstance(created_event_hook.channel.config.headers[0],
models.EventHookChannelConfigHeader)
# Retrieve
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
# Deactivate + Delete
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
_, err = await client.delete_event_hook(created_event_hook.id)
assert err is None
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_update_event_hook(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
# create Event Hook
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
# Retrieve
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
# Update
updated_event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate",
"user.lifecycle.deactivate"], # new
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks-UPDATE", # new
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value updated" # new
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key-updated", # new
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
updated_event_hook, _, err = await client.update_event_hook(
created_event_hook.id, updated_event_hook_model
)
assert err is None
assert isinstance(updated_event_hook, models.EventHook)
assert updated_event_hook.id == created_event_hook.id
# Retrieve for validation
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == updated_event_hook.id
assert retrieved_event_hook.name == updated_event_hook.name
assert len(retrieved_event_hook.events.items) > len(
created_event_hook.events.items)
assert len(retrieved_event_hook.events.items) == 3
assert "user.lifecycle.deactivate" in retrieved_event_hook.events.items
assert retrieved_event_hook.channel.config.uri == \
"https://www.example.com/eventHooks-UPDATE"
# Deactivate + Delete
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
_, err = await client.delete_event_hook(created_event_hook.id)
assert err is None
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_delete_event_hook(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
# create Event Hook
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
# Retrieve
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
# Deactivate + Delete
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
_, err = await client.delete_event_hook(created_event_hook.id)
assert err is None
# Retrieve for validation
retrieved_event_hook, resp, err = await client.get_event_hook(
created_event_hook.id)
assert err is not None
assert isinstance(err, OktaAPIError)
assert resp.get_status() == HTTPStatus.NOT_FOUND
assert retrieved_event_hook is None
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_list_event_hooks(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
EVENT_HOOKS_COUNT = 3
# Keep IDs
created_event_hook_ids = []
# create Event Hooks
for index in range(EVENT_HOOKS_COUNT):
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE + str(index),
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
created_event_hook_ids.append(created_event_hook.id)
# List
all_event_hooks, _, err = await client.list_event_hooks()
assert err is None
assert len(all_event_hooks) > 0
assert len(all_event_hooks) == EVENT_HOOKS_COUNT
for event_hook_id in created_event_hook_ids:
assert((eh_id for eh_id in all_event_hooks
if eh_id.id == event_hook_id))
# Deactivate + Delete
for event_hook_id in created_event_hook_ids:
_, _, err = await client.deactivate_event_hook(event_hook_id)
assert err is None
_, err = await client.delete_event_hook(event_hook_id)
assert err is None
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_deactivate_event_hook(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
# create Event Hook
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
assert created_event_hook.status == "ACTIVE"
# Retrieve
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
assert retrieved_event_hook.status == "ACTIVE"
# Deactivate
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
# Verify
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
assert retrieved_event_hook.status == "INACTIVE"
# Delete
_, err = await client.delete_event_hook(created_event_hook.id)
assert err is None
@pytest.mark.vcr()
@pytest.mark.asyncio
async def test_activate_event_hook(self, fs):
# Instantiate Mock Client
client = MockOktaClient(fs)
# create Event Hook
event_hook_model = models.EventHook({
"name": TestEventHooksResource.EVENT_TYPE,
"events": models.EventSubscriptions({
"items": ["user.lifecycle.create",
"user.lifecycle.activate"],
"type": TestEventHooksResource.EVENT_TYPE
}),
"channel": models.EventHookChannel({
"type": "HTTP",
"version": "1.0.0",
"config": models.EventHookChannelConfig({
"uri": "https://www.example.com/eventHooks",
"headers": [
models.EventHookChannelConfigHeader({
"key": "X-Test-Header",
"value": "Test Header value"
})
],
"authScheme": models.EventHookChannelConfigAuthScheme({
"key": "Authorization",
"value": "Test-API-Key",
"type": models.EventHookChannelConfigAuthSchemeType
.HEADER
})
})
})
})
created_event_hook, _, err = await client.create_event_hook(
event_hook_model)
# Verify details
assert err is None
assert isinstance(created_event_hook, models.EventHook)
assert created_event_hook.id is not None
assert created_event_hook.name == event_hook_model.name
assert created_event_hook.events is not None
assert len(created_event_hook.events.items) == 2
assert created_event_hook.channel is not None
assert created_event_hook.channel.config.uri ==\
event_hook_model.channel.config.uri
assert created_event_hook.status == "ACTIVE"
# Retrieve
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
assert retrieved_event_hook.status == "ACTIVE"
# Deactivate
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
# Verify
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
assert retrieved_event_hook.status == "INACTIVE"
# Activate
_, _, err = await \
client.activate_event_hook(created_event_hook.id)
assert err is None
# Verify
retrieved_event_hook, _, err = await client.get_event_hook(
created_event_hook.id)
assert err is None
assert isinstance(retrieved_event_hook, models.EventHook)
assert retrieved_event_hook.id == created_event_hook.id
assert retrieved_event_hook.name == created_event_hook.name
assert retrieved_event_hook.status == "ACTIVE"
# Deactivate
_, _, err = await client.deactivate_event_hook(created_event_hook.id)
assert err is None
# Delete
_, err = await client.delete_event_hook(created_event_hook.id)
assert err is None
| 41.379518
| 79
| 0.571796
| 1,991
| 20,607
| 5.652436
| 0.056253
| 0.177537
| 0.139328
| 0.062378
| 0.916741
| 0.900036
| 0.876311
| 0.86316
| 0.85534
| 0.831882
| 0
| 0.002374
| 0.345902
| 20,607
| 497
| 80
| 41.462777
| 0.832554
| 0.032853
| 0
| 0.86618
| 0
| 0
| 0.088324
| 0.018017
| 0
| 0
| 0
| 0
| 0.296837
| 1
| 0
| false
| 0
| 0.012165
| 0
| 0.019465
| 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
|
ca022d487f3f7acbf4117b9a125d0d9a5d72b01c
| 132
|
py
|
Python
|
use_other_py_code_in_program/printString.py
|
CrazyJ36/python
|
4cff6e7240672a273d978521bb511065f45d4312
|
[
"MIT"
] | null | null | null |
use_other_py_code_in_program/printString.py
|
CrazyJ36/python
|
4cff6e7240672a273d978521bb511065f45d4312
|
[
"MIT"
] | null | null | null |
use_other_py_code_in_program/printString.py
|
CrazyJ36/python
|
4cff6e7240672a273d978521bb511065f45d4312
|
[
"MIT"
] | null | null | null |
print("This text is from printString.py.\nThe statement:\n'import printString'\nran the code from printstring.py automatically.")
| 33
| 129
| 0.787879
| 19
| 132
| 5.473684
| 0.789474
| 0.288462
| 0.326923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 132
| 3
| 130
| 44
| 0.881356
| 0
| 0
| 0
| 0
| 1
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 10
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.