-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/72778/
-----------------------------------------------------------

(Updated Aug. 16, 2020, 4:39 p.m.)


Review request for ranger, Abhishek  Kumar, Don Bosco Durai, Abhay Kulkarni, 
Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and 
Velmurugan Periasamy.


Bugs: RANGER-2927
    https://issues.apache.org/jira/browse/RANGER-2927


Repository: ranger


Description
-------

Added packaging for Python client. Once Ranger Python client is registered with 
pypi.org, users can access the library with the following:
 $ pip install apache-ranger
 $ python3 -q
    >>> from apache_ranger.client.ranger_client import RangerClient
    >>> client = RangerClient('http://localhost:6180', 'username', 'password')
    >>> client.get_policies_in_service('prod_hive')


Diffs
-----

  intg/src/main/python/LICENSE PRE-CREATION 
  intg/src/main/python/README.md PRE-CREATION 
  intg/src/main/python/__init__.py  
  intg/src/main/python/ranger/client/__init__.py  
  intg/src/main/python/ranger/client/ranger_client.py 319261d82 
  intg/src/main/python/ranger/model/__init__.py  
  intg/src/main/python/ranger/model/grant_revoke_role_request.py  
  intg/src/main/python/ranger/model/ranger_base.py  
  intg/src/main/python/ranger/model/ranger_policy.py 9195f4b79 
  intg/src/main/python/ranger/model/ranger_role.py aa0521639 
  intg/src/main/python/ranger/model/ranger_security_zone.py 40a52093f 
  intg/src/main/python/ranger/model/ranger_service.py 637c38f1b 
  intg/src/main/python/ranger/model/ranger_service_def.py 8cd47570f 
  intg/src/main/python/setup.py PRE-CREATION 
  intg/src/main/resources/logging.conf  
  ranger-examples/sample-client/src/main/python/sample_client.py 7ff6e709b 


Diff: https://reviews.apache.org/r/72778/diff/1/


Testing
-------

Registered Ranger Python client with test.pypi.org, and verified that the 
library could be installed and accessed with:

  $ pip install -i https://test.pypi.org/simple/ apache-ranger-madhan==0.0.5
  $ python3 -q
    >>> from apache_ranger.client.ranger_client import RangerClient
    >>> client = RangerClient('http://localhost:6180', 'username', 'password')
    >>> client.get_policies_in_service('prod_hive')
 
 $ python3 -q src/main/python/sample_client.py --url https://localhost:6182 
--username username --password password


Thanks,

Madhan Neethiraj

Reply via email to