mgorsk1 / pyatlasclient

Apache Atlas Python Client

Home Page:https://pyatlasclient.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apache Atlas Client in Python

https://coveralls.io/repos/github/verdan/pyatlasclient/badge.svg?branch=master Documentation Status Updates

Apache Atlas client in Python. Only compatible with Apache Atlas REST API v2.

Based on the awesome work done by Poullet in atlasclient

Get started

>>> from atlasclient.client import Atlas
>>> client = Atlas('<atlas.host>', port=21000, username='admin', password='admin')
>>> client.entity_guid(<guid>).status
>>> params = {'typeName': 'DataSet', 'attrName': 'name', 'attrValue': 'data', 'offset': '1', 'limit':'10'}
>>> search_results = client.search_attribute(**params)
>>> for s in search_results:
...    for e in s.entities:
...         print(e.name)
...         print(e.guid)

Features

  • Lazy loading: requests are only performed when data are required and not yet available
  • Resource object relationships: REST API from sub-resources are done transparently for the user, for instance the user does not have to know that it needs to trigger a different REST request for getting the classifications of a specific entity.

TODO features

  • allow multiprocessing

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Apache Atlas Python Client

https://pyatlasclient.readthedocs.io/en/latest/

License:Apache License 2.0


Languages

Language:Python 99.7%Language:Shell 0.2%Language:Batchfile 0.1%