/
opt
/
imh-python
/
lib
/
python3.9
/
site-packages
/
botocore
/
/opt/imh-python/lib/python3.9/site-packages/botocore
mkdir
upload
Name
Size
Mode
Actions
data/
-
0755
rm
docs/
-
0755
rm
retries/
-
0755
rm
vendored/
-
0755
rm
__pycache__/
-
0755
rm
args.py
16199
0644
edit
dl
rm
auth.py
34966
0644
edit
dl
rm
awsrequest.py
23247
0644
edit
dl
rm
cacert.pem
271088
0644
edit
dl
rm
client.py
41514
0644
edit
dl
rm
compat.py
11715
0644
edit
dl
rm
config.py
12721
0644
edit
dl
rm
configloader.py
9580
0644
edit
dl
rm
configprovider.py
22235
0644
edit
dl
rm
credentials.py
81582
0644
edit
dl
rm
discovery.py
11031
0644
edit
dl
rm
endpoint.py
13811
0644
edit
dl
rm
errorfactory.py
3727
0644
edit
dl
rm
eventstream.py
20517
0644
edit
dl
rm
exceptions.py
19927
0644
edit
dl
rm
handlers.py
45142
0644
edit
dl
rm
history.py
1748
0644
edit
dl
rm
hooks.py
24573
0644
edit
dl
rm
httpsession.py
13547
0644
edit
dl
rm
loaders.py
17355
0644
edit
dl
rm
model.py
28352
0644
edit
dl
rm
monitoring.py
20586
0644
edit
dl
rm
paginate.py
27128
0644
edit
dl
rm
parsers.py
42301
0644
edit
dl
rm
regions.py
8975
0644
edit
dl
rm
response.py
6434
0644
edit
dl
rm
retryhandler.py
13781
0644
edit
dl
rm
serialize.py
30430
0644
edit
dl
rm
session.py
43433
0644
edit
dl
rm
signers.py
28234
0644
edit
dl
rm
stub.py
14361
0644
edit
dl
rm
translate.py
3412
0644
edit
dl
rm
utils.py
86492
0644
edit
dl
rm
validate.py
11323
0644
edit
dl
rm
waiter.py
13860
0644
edit
dl
rm
__init__.py
3881
0644
edit
dl
rm
Edit:
/opt/imh-python/lib/python3.9/site-packages/botocore/__init__.py
(3881B)
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. import os import re import logging __version__ = '1.19.63' class NullHandler(logging.Handler): def emit(self, record): pass # Configure default logger to do nothing log = logging.getLogger('botocore') log.addHandler(NullHandler()) _first_cap_regex = re.compile('(.)([A-Z][a-z]+)') _end_cap_regex = re.compile('([a-z0-9])([A-Z])') # The regex below handles the special case where some acryonym # name is pluralized, e.g GatewayARNs, ListWebACLs, SomeCNAMEs. _special_case_transform = re.compile('[A-Z]{3,}s$') # Prepopulate the cache with special cases that don't match # our regular transformation. _xform_cache = { ('CreateCachediSCSIVolume', '_'): 'create_cached_iscsi_volume', ('CreateCachediSCSIVolume', '-'): 'create-cached-iscsi-volume', ('DescribeCachediSCSIVolumes', '_'): 'describe_cached_iscsi_volumes', ('DescribeCachediSCSIVolumes', '-'): 'describe-cached-iscsi-volumes', ('DescribeStorediSCSIVolumes', '_'): 'describe_stored_iscsi_volumes', ('DescribeStorediSCSIVolumes', '-'): 'describe-stored-iscsi-volumes', ('CreateStorediSCSIVolume', '_'): 'create_stored_iscsi_volume', ('CreateStorediSCSIVolume', '-'): 'create-stored-iscsi-volume', ('ListHITsForQualificationType', '_'): 'list_hits_for_qualification_type', ('ListHITsForQualificationType', '-'): 'list-hits-for-qualification-type', ('ExecutePartiQLStatement', '_'): 'execute_partiql_statement', ('ExecutePartiQLStatement', '-'): 'execute-partiql-statement', ('ExecutePartiQLTransaction', '_'): 'execute_partiql_transaction', ('ExecutePartiQLTransaction', '-'): 'execute-partiql-transaction', ('ExecutePartiQLBatch', '_'): 'execute_partiql_batch', ('ExecutePartiQLBatch', '-'): 'execute-partiql-batch', } # The items in this dict represent partial renames to apply globally to all # services which might have a matching argument or operation. This way a # common mis-translation can be fixed without having to call out each # individual case. ScalarTypes = ('string', 'integer', 'boolean', 'timestamp', 'float', 'double') BOTOCORE_ROOT = os.path.dirname(os.path.abspath(__file__)) # Used to specify anonymous (unsigned) request signature class UNSIGNED(object): def __copy__(self): return self def __deepcopy__(self, memodict): return self UNSIGNED = UNSIGNED() def xform_name(name, sep='_', _xform_cache=_xform_cache): """Convert camel case to a "pythonic" name. If the name contains the ``sep`` character, then it is returned unchanged. """ if sep in name: # If the sep is in the name, assume that it's already # transformed and return the string unchanged. return name key = (name, sep) if key not in _xform_cache: if _special_case_transform.search(name) is not None: is_special = _special_case_transform.search(name) matched = is_special.group() # Replace something like ARNs, ACLs with _arns, _acls. name = name[:-len(matched)] + sep + matched.lower() s1 = _first_cap_regex.sub(r'\1' + sep + r'\2', name) transformed = _end_cap_regex.sub(r'\1' + sep + r'\2', s1).lower() _xform_cache[key] = transformed return _xform_cache[key]
Save
cmd:
run