Allie SDK is a Python library that Alation customers and partners can use to increase productivity when interacting with Alation’s REST APIs. By using the Allie SDK library, you can manage and change many Alation resources programmatically. You can use this library to create your own custom applications.
This repository contains Python source code for the library and documentation showing how to use it. As of June 2024, Python versions 3.10 and up are supported.
Documentation on how to use the SDK can be found at: https://alation.github.io/Allie-SDK/
This is an open source project under the APACHE 2.0 License and is maintained by everyone in the Alation community. If you encounter a problem or something is not working as expected, open a GitHub issue on this repo and someone will get back to you. Please DO NOT create an Alation support case.
- Download the repo.
- Install
uvif you haven’t done so already (see also here). - Within the project root folder run:
uv sync. This will create the virtual environment and install all the dependencies.
You can create a local build like so (execute in the project root folder):
uv buildWe are using pytest and not unittest.
Make sure that the IDE you are working with is also configured to use pytest for running the tests.
To run the tests:
uv run pytest
# or with more detailed output
uv run pytest -v- Use
pytestnotunittest. - Don't import
request_mockand do not use decorators (since Pytest already takes care of this for you). - Bundle tests in test classes.