tree: 34bd7d39d69a2117e2f10a0ee9ffa1710b57565e [path history] [tgz]
  1. apache_atlas/
  2. LICENSE
  3. README.md
  4. requirements.txt
  5. setup.py
intg/src/main/python/README.md

Atlas Python Client

This is a python library for Atlas. Users can integrate with Atlas using the python client. Currently, compatible with Python 3.5+

Installation

Use the package manager pip to install python client for Atlas.

# After publishing apache-atlas use

> pip install apache-atlas

Verify if apache-atlas client is installed:

> pip list

Package      Version
------------ ---------
apache-atlas 0.0.1

Usage

python create_glossary.py

# create_glossary.py

from apache_atlas.base_client import AtlasClient
from apache_atlas.model.glossary import AtlasGlossary

client        = AtlasClient("http://localhost:31000", "admin", "admin123")
glossary      = AtlasGlossary(None, None, "Glossary_Test", "This is a test Glossary")
test_glossary = client.glossary.create_glossary(glossary)

print('Created Test Glossary with guid: ' + test_glossary.guid)

For more examples, checkout sample-app python project in atlas-examples module.