datacatalog-custom-model-manager-0.1.1
توضیحات
A package to load user-specified metadata models into Google Cloud Data Catalog
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | datacatalog-custom-model-manager-0.1.1 |
| نام | datacatalog-custom-model-manager |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ricardo Mendes |
| ایمیل نویسنده | ricardolsmendes@gmail.com |
| آدرس صفحه اصلی | https://github.com/ricardolsmendes/datacatalog-custom-model-manager |
| آدرس اینترنتی | https://pypi.org/project/datacatalog-custom-model-manager/ |
| مجوز | MIT |
# datacatalog-custom-model-manager
A Python package intended to load user-specified metadata models into Google Cloud Data Catalog,
comprising [Custom Entries](https://cloud.google.com/data-catalog/docs/how-to/custom-entries), Tag
Templates, and [Tags](https://cloud.google.com/data-catalog/docs/concepts/overview#tags).
It is powered by [datacatalog-custom-entries-
manager](https://github.com/ricardolsmendes/datacatalog-custom-entries-manager), [datacatalog-
tag-template-processor](https://github.com/mesmacosta/datacatalog-tag-template-processor), and
[datacatalog-tag-manager](https://github.com/ricardolsmendes/datacatalog-tag-manager), leveraging
their features in the format of a single CLI.


---
## Load Custom Model
### From CSV files
- *SCHEMAS*
Loading custom models from CSV requires a folder (`--files-folder` argument in the below commands)
containing three files: `entries.csv`, `tag_templates.csv`, and `tags.csv`. Please refer to the
following external resources for further details on their layouts:
| FILE | LAYOUT DOCUMENTATION |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `entries.csv` | [datacatalog-custom-entries-manager README](https://github.com/ricardolsmendes/datacatalog-custom-entries-manager#211-to-a-csv-file) |
| `tag_templates.csv` | [datacatalog-tag-template-processor README](https://github.com/mesmacosta/datacatalog-tag-template-processor#21-create-a-csv-file-representing-the-templates-to-be-created) |
| `tags.csv` | [datacatalog-tag-manager README](https://github.com/ricardolsmendes/datacatalog-tag-manager#211-from-a-csv-file) |
- *SAMPLE INPUT*
1. [sample-input/egeria-business-glossary](https://github.com/ricardolsmendes/datacatalog-custom-model-manager/tree/master/sample-input/egeria-business-glossary)
for reference;
1. [Sample metadata for datacatalog-custom-model-manager](https://docs.google.com/spreadsheets/d/13MuxLjQGrD-A7R4p_3TGaVFCV3X0atWmyxIINQNF2R4)
(Google Sheets) might help to create/export the mandatory CSV files.
- *COMMANDS*
**Python + virtualenv**
```shell script
pip install datacatalog-custom-model-manager
datacatalog-custom-model load \
--files-folder <CSV-FILES-PATH> \
--project-id <YOUR-PROJECT-ID> --location-id <YOUR-LOCATION-ID> \
[--delete-existing-tag-templates]
```
**Docker**
```shell script
docker build --rm --tag datacatalog-custom-model-manager .
docker run --rm --tty \
--volume <CREDENTIALS-FILE-FOLDER>:/credentials --volume <CSV-FILE-FOLDER>:/data \
datacatalog-custom-model-manager load \
--files-folder <CSV-FILES-PATH> \
--project-id <YOUR-PROJECT-ID> --location-id <YOUR-LOCATION-ID> \
[--delete-existing-tag-templates]
```
نیازمندی
| مقدار | نام |
|---|---|
| ~=0.1.2 | datacatalog-custom-entries-manager |
| ~=2.1.2 | datacatalog-tag-manager |
| ~=0.2.0 | datacatalog-tag-template-processor |
| <=1.19.3,>=1.19.0 | numpy |
| ~=1.1.4 | pandas |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl datacatalog-custom-model-manager-0.1.1:
pip install datacatalog-custom-model-manager-0.1.1.whl
نصب پکیج tar.gz datacatalog-custom-model-manager-0.1.1:
pip install datacatalog-custom-model-manager-0.1.1.tar.gz