diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:01:44 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:01:44 +0000 |
| commit | 847b8bfc6eb0be09a35ffee0aacf7284ba9c21d3 (patch) | |
| tree | 008e735a0baf972162bebd4595f219653a7fb8b7 | |
| parent | 5a712040c28d8a902e450219957322cdca816bc2 (diff) | |
automatic import of python-amundsenatlastypesopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-amundsenatlastypes.spec | 367 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 369 insertions, 0 deletions
@@ -0,0 +1 @@ +/amundsenatlastypes-1.2.2.tar.gz diff --git a/python-amundsenatlastypes.spec b/python-amundsenatlastypes.spec new file mode 100644 index 0000000..b88b894 --- /dev/null +++ b/python-amundsenatlastypes.spec @@ -0,0 +1,367 @@ +%global _empty_manifest_terminate_build 0 +Name: python-amundsenatlastypes +Version: 1.2.2 +Release: 1 +Summary: Custom Amundsen Atlas data types definition +License: Apache Software License 2.0 +URL: https://github.com/dwarszawski/amundsen-atlas-types +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/66/5d/7a6ac87b81c330802220f06f9a9a23ef1d92c96eff9118619d969ff96db9/amundsenatlastypes-1.2.2.tar.gz +BuildArch: noarch + +Requires: python3-pyatlasclient +Requires: python3-mypy +Requires: python3-flake8 +Requires: python3-faker + +%description +# Amundsen Atlas Types +[](https://badge.fury.io/py/amundsenatlastypes) +[](https://travis-ci.org/dwarszawski/amundsen-atlas-types) +[](LICENSE) + +Kickstart your Apache Atlas to support Amundsen using the prebuilt functions and required entity definitions. + +## Installation: +The package is available on PyPi, which you can install using below. + +```bash + pip install amundsenatlastypes +``` + +## Usage: + +#### Connecting to Apache Atlas: +`amundsenatlastypes` uses environment variables to connect to Apache Atlas. + +Following are the environment variables need to be set in order to connect to +Apache Atlas. + +```bash +- ATLAS_HOST [default = localhost] +- ATLAS_PORT [default = 21000] +- ATLAS_USERNAME [default = admin] +- ATLAS_PASSWORD [default = admin] +``` + +#### Kickstart Apache Atlas +A single python function is available that you can use to apply all required entity definitions. +You can run this function as many times as you want, and it will not break any existing functionality, that means +that it can also be implemented in your pipelines. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities() +``` + +There also is a functionality to initiate your existing data to work accordingly with Amundsen. +To create required relations you need to set `fix_existing_data=True` while calling the `create_required_entities()`. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities(fix_existing_data=True) +``` + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + +##### Prerequisites +```shell script +pip install amundsenatlastypes[samples] +``` + +##### Table Sample Data +```python +from amundsenatlastypes.schema.table.sample_data import SampleTableData + +table_loader = SampleTableData() +table_loader.create() +``` + +##### Dashboard Sample Data + +```python +from amundsenatlastypes.schema.dashboard.sample_data import SampleDashboardData + +# Fill below variables with appropriate values +table_guid = '' +user_guid = '' + +loader = SampleDashboardData(table_guid, user_guid) + +loader.create() +``` + +#### Functionality: +`amundsenatlastypes` provides a number of functions that can be used separately to +implement/apply entity definitions of Apache Atlas, which are available [here](/amundsenatlastypes/__init__.py). + + +You can also simply access the individual entity definitions in JSON format by importing them +from [here](amundsenatlastypes/types.py). + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + + + + +%package -n python3-amundsenatlastypes +Summary: Custom Amundsen Atlas data types definition +Provides: python-amundsenatlastypes +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-amundsenatlastypes +# Amundsen Atlas Types +[](https://badge.fury.io/py/amundsenatlastypes) +[](https://travis-ci.org/dwarszawski/amundsen-atlas-types) +[](LICENSE) + +Kickstart your Apache Atlas to support Amundsen using the prebuilt functions and required entity definitions. + +## Installation: +The package is available on PyPi, which you can install using below. + +```bash + pip install amundsenatlastypes +``` + +## Usage: + +#### Connecting to Apache Atlas: +`amundsenatlastypes` uses environment variables to connect to Apache Atlas. + +Following are the environment variables need to be set in order to connect to +Apache Atlas. + +```bash +- ATLAS_HOST [default = localhost] +- ATLAS_PORT [default = 21000] +- ATLAS_USERNAME [default = admin] +- ATLAS_PASSWORD [default = admin] +``` + +#### Kickstart Apache Atlas +A single python function is available that you can use to apply all required entity definitions. +You can run this function as many times as you want, and it will not break any existing functionality, that means +that it can also be implemented in your pipelines. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities() +``` + +There also is a functionality to initiate your existing data to work accordingly with Amundsen. +To create required relations you need to set `fix_existing_data=True` while calling the `create_required_entities()`. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities(fix_existing_data=True) +``` + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + +##### Prerequisites +```shell script +pip install amundsenatlastypes[samples] +``` + +##### Table Sample Data +```python +from amundsenatlastypes.schema.table.sample_data import SampleTableData + +table_loader = SampleTableData() +table_loader.create() +``` + +##### Dashboard Sample Data + +```python +from amundsenatlastypes.schema.dashboard.sample_data import SampleDashboardData + +# Fill below variables with appropriate values +table_guid = '' +user_guid = '' + +loader = SampleDashboardData(table_guid, user_guid) + +loader.create() +``` + +#### Functionality: +`amundsenatlastypes` provides a number of functions that can be used separately to +implement/apply entity definitions of Apache Atlas, which are available [here](/amundsenatlastypes/__init__.py). + + +You can also simply access the individual entity definitions in JSON format by importing them +from [here](amundsenatlastypes/types.py). + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + + + + +%package help +Summary: Development documents and examples for amundsenatlastypes +Provides: python3-amundsenatlastypes-doc +%description help +# Amundsen Atlas Types +[](https://badge.fury.io/py/amundsenatlastypes) +[](https://travis-ci.org/dwarszawski/amundsen-atlas-types) +[](LICENSE) + +Kickstart your Apache Atlas to support Amundsen using the prebuilt functions and required entity definitions. + +## Installation: +The package is available on PyPi, which you can install using below. + +```bash + pip install amundsenatlastypes +``` + +## Usage: + +#### Connecting to Apache Atlas: +`amundsenatlastypes` uses environment variables to connect to Apache Atlas. + +Following are the environment variables need to be set in order to connect to +Apache Atlas. + +```bash +- ATLAS_HOST [default = localhost] +- ATLAS_PORT [default = 21000] +- ATLAS_USERNAME [default = admin] +- ATLAS_PASSWORD [default = admin] +``` + +#### Kickstart Apache Atlas +A single python function is available that you can use to apply all required entity definitions. +You can run this function as many times as you want, and it will not break any existing functionality, that means +that it can also be implemented in your pipelines. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities() +``` + +There also is a functionality to initiate your existing data to work accordingly with Amundsen. +To create required relations you need to set `fix_existing_data=True` while calling the `create_required_entities()`. + +```python +from amundsenatlastypes import Initializer + +init = Initializer() +init.create_required_entities(fix_existing_data=True) +``` + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + +##### Prerequisites +```shell script +pip install amundsenatlastypes[samples] +``` + +##### Table Sample Data +```python +from amundsenatlastypes.schema.table.sample_data import SampleTableData + +table_loader = SampleTableData() +table_loader.create() +``` + +##### Dashboard Sample Data + +```python +from amundsenatlastypes.schema.dashboard.sample_data import SampleDashboardData + +# Fill below variables with appropriate values +table_guid = '' +user_guid = '' + +loader = SampleDashboardData(table_guid, user_guid) + +loader.create() +``` + +#### Functionality: +`amundsenatlastypes` provides a number of functions that can be used separately to +implement/apply entity definitions of Apache Atlas, which are available [here](/amundsenatlastypes/__init__.py). + + +You can also simply access the individual entity definitions in JSON format by importing them +from [here](amundsenatlastypes/types.py). + +#### Sample Data + +`amundsenatlastypes` provides sample data so you can populate your Atlas not only with entity definitions but also +concrete entities. + + + + +%prep +%autosetup -n amundsenatlastypes-1.2.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-amundsenatlastypes -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +4daf8e9e8fad61040b9b1b4cebeac815 amundsenatlastypes-1.2.2.tar.gz |
