You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Madhan Neethiraj <ma...@apache.org> on 2020/12/13 00:10:30 UTC

Review Request 73082: RANGER-3114: updated Python client with more samples, and refactoring

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

Review request for ranger, Abhishek  Kumar, Dineshkumar Yadav, Abhay Kulkarni, Mehul Parikh, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.


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


Repository: ranger


Description
-------

- added more samples to show create/retrieval/update/delete of services and policies
- updated APIs to return Ranger class objects, instead of a dict object, to enable consistent access to members
- updated client is available at https://test.pypi.org/project/apache-ranger/


Diffs
-----

  .gitignore e3518155c 
  intg/src/main/python/README.md 4426d102e 
  intg/src/main/python/apache_ranger/client/ranger_client.py c95d0d9ed 
  intg/src/main/python/apache_ranger/exceptions.py PRE-CREATION 
  intg/src/main/python/apache_ranger/model/grant_revoke_role_request.py fb0eab285 
  intg/src/main/python/apache_ranger/model/ranger_base.py ae8de74ec 
  intg/src/main/python/apache_ranger/model/ranger_policy.py 213698902 
  intg/src/main/python/apache_ranger/model/ranger_role.py 1c698edee 
  intg/src/main/python/apache_ranger/model/ranger_security_zone.py 9ed8208e1 
  intg/src/main/python/apache_ranger/model/ranger_service.py e07a70677 
  intg/src/main/python/apache_ranger/model/ranger_service_def.py ec3845d31 
  intg/src/main/python/apache_ranger/utils.py PRE-CREATION 
  intg/src/main/python/setup.py b073a80ae 
  ranger-examples/sample-client/src/main/python/sample_client.py 1d1c3318f 


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


Testing
-------

- verified with HTTPS and Kerberos authentication
- verified that the client works with Python 2.7 and Python 3.7


Thanks,

Madhan Neethiraj