Benign python Download

apache-ranger 0.0.6

imports Response from requestsimports Session from requests

Evidence

Declares Markdown package description METADATA · lines 12–20
12:47… Software License
13Classifier: Operating System :: OS Independent
14Requires-Python: >=2.7
15Description-Content-Type: text/markdown
16Requires-Dist: requests (>=2.24)
17
18<!---
19Licensed to the Apache Software Foundation (ASF) under one
20or more contributor license agreements. See the NOTICE file
Python comment contains a URL __init__.py · lines 1–17
1#!/usr/bin/env python
2
3#
4# Licensed to the Apache Software Foundation (ASF) under one or more
5# contributor license agreements. See the NOTICE file distributed with
6# this work for additional information regarding copyright ownership.
7# The ASF licenses this file to You under the Apache License, Version 2.0
8# (the "License"); you may not use this file except in compliance with
9# the License. You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
imports os ranger_client.py · lines 16–40
16:19… for the specific language governing permissions and
17# limitations under the License.
18
19
20import json
21import logging
22import os
23from apache_ranger.exceptions import RangerServiceException
24from apache_ranger.model.ranger_base import RangerBase
25from apache_ranger.model.ranger_policy import RangerPolicy
26from apache_ranger.model.ranger_role import RangerRole
27from apache_ranger.model.ranger_security_zone import RangerSecurityZone
28from apache_ranger.model.ranger_service import RangerService
29from apache_ranger.model.ranger_service_def import RangerServiceDef
30from apache_ranger.model.ranger_service_tags import RangerServiceTags
31from apache_ranger.utils import *
32from requests import Session
33from requests import Response
34
35LOG = logging.getLogger(__name__)
⋯5 lines
Mutates params dictionary or map entries ranger_client.py · lines 208–216
208:56… e):
209 if params is None:
210 params = {}
211
212 params['serviceName'] = serviceName
213
214 resp = self.client_http.call_api(RangerClient.CREATE_ROLE, params, role)
215
216 return type_coerce(resp, …
Python message-key lookup ranger_client.py · lines 379–385
379:11… lf.rbKey = attrs.get('rbKey')
380 self.message = attrs.get('message')
381 self.objectId = attrs.get('objectId')
382 self.fieldName = attrs.get('fieldName')
383
384
385class RESTResponse(RangerBase …

Showing the top 5 files — 3 more files (16 regions) not shown.

No evidence locations were recorded for this file. Raw result

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