castor-extractor-0.3.7
توضیحات
Extract your metadata assets.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | castor-extractor-0.3.7 |
| نام | castor-extractor |
| نسخه کتابخانه | 0.3.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Castor |
| ایمیل نویسنده | support@castordoc.com |
| آدرس صفحه اصلی | https://www.castordoc.com/ |
| آدرس اینترنتی | https://pypi.org/project/castor-extractor/ |
| مجوز | EULA |
# Castor Extractor <img src="https://app.castordoc.com/images/castor_icon_dark.svg" width=30 />
This library contains utilities to extract your metadata assets into `JSON` or `CSV` files, on your local machine.
After extraction, those files can be pushed to Castor for ingestion.
- Visualization assets are typically:
- `dashboards`
- `users`
- `folders`
- ...
- Warehouse assets are typically:
- `databases`
- `schemas`
- `tables`
- `columns`
- `queries`
- ...
It also embeds utilities to help you push your metadata to Castor:
- `File Checker` to validate your [generic](https://docs.castordoc.com/integrations/data-warehouses/generic-warehouse) CSV files before pushing to Castor
- `Uploader` to push extracted files to our Google-Cloud-Storage (GCS)
# Table of contents
- [Castor Extractor ](#castor-extractor-)
- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Create castor-env](#create-castor-env)
- [PIP install](#pip-install)
- [Create the output directory](#create-the-output-directory)
- [Contact](#contact)
# Installation
Requirements: **python3.8+**
<img src="https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg" width=20 />
## Create castor-env
We advise to create a dedicated [Python environment](https://docs.python.org/3/library/venv.html).
Here's an example using `Pyenv` and Python `3.8.12`:
- Install Pyenv
```bash
brew install pyenv
brew install pyenv-virtualenv
```
- [optional] Update your `.bashrc` if you encounter this [issue](https://stackoverflow.com/questions/45577194/failed-to-activate-virtualenv-with-pyenv/45578839)
```bash
eval "$(pyenv init -)"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
```
- [optional] Install python 3.8+
```bash
pyenv versions # check your local python installations
pyenv install -v 3.8.12 # if none of the installed versions satisfy requirements 8+
```
- Create your virtual env
```bash
pyenv virtualenv 3.8.12 castor-env # create a dedicated env
pyenv shell castor-env # activate the environment
# optional checks
python --version # should be `3.8.12`
pyenv version # should be `castor-env`
```
## PIP install
⚠️ `castor-env` must be created AND activated first.
```bash
pyenv shell castor-env
(castor-env) $ # this means the environment is now active
```
ℹ️ please upgrade `PIP` before installing Castor.
```
pip install --upgrade pip
```
Run the following command to install `castor-extractor`:
```
pip install castor-extractor
```
Depending on your use-case, you can also install one of the following `extras`:
```
pip install castor-extractor[looker]
pip install castor-extractor[tableau]
pip install castor-extractor[metabase]
pip install castor-extractor[qlik]
pip install castor-extractor[bigquery]
pip install castor-extractor[redshift]
pip install castor-extractor[snowflake]
```
## Create the output directory
```bash
mkdir /tmp/castor
```
You will provide this path in `extraction` scripts as following:
```
castor-extract-bigquery --output=/tmp/castor
```
Alternatively, you can also set the following `ENV` in your `bashrc`:
```bash
export CASTOR_OUTPUT_DIRECTORY="/tmp/castor"
````
# Contact
For any questions or bug report, contact us at [support@castordoc.com](mailto:support@castordoc.com)
[Castor](https://castordoc.com) helps you find, understand, use your data assets
نیازمندی
| مقدار | نام |
|---|---|
| >=4.2.4,<5.0.0 | cachetools |
| ==2021.10.8 | certifi |
| >=2.0.7,<3.0.0 | charset-normalizer |
| >=8.0,<8.1 | click |
| >=2.1.1,<3.0.0 | google-api-core |
| >=1.6.3,<3.0.0 | google-auth |
| >=2.0.0,<3.0.0 | google-cloud-bigquery |
| >=2.0.0,<3.0.0 | google-cloud-bigquery-storage |
| >=2.1.0,<3.0.0 | google-cloud-core |
| >=1.42.3,<2.0.0 | google-cloud-storage |
| >=1.3.0,<2.0.0 | google-crc32c |
| >=2.0.3 | google-resumable-media |
| >=1.53.0,<7.0.0 | googleapis-common-protos |
| >=2.5,<2.9 | idna |
| >=22.4.0,<=23.0.0) | looker-sdk |
| >=1.20.0,<2.0.0 | msal |
| >=2.0.0,<4.0.0 | protobuf |
| >=2.0.0,<3.0.0) | psycopg2-binary |
| >=6.0.0,<7.0.0 | pyarrow |
| >=0.4.8,<1.0.0 | pyasn1 |
| >=0.2.8,<1.0.0 | pyasn1-modules |
| >=3.0.0,<4.0.0 | pycryptodome |
| >=2.0.0,<=3.0.0 | python-dateutil |
| ==2021.3 | pytz |
| >=2.0.0,<3.0.0 | requests |
| >=4.0.0,<5.0.0 | rsa |
| >=65.6.3,<66.0.0 | setuptools |
| >=1.16.0,<2.0.0 | six |
| >=2.6.2,!=2.7.10) | snowflake-connector-python |
| !=1.2.5,<2.0.0) | snowflake-sqlalchemy |
| >=1.4,<1.5 | sqlalchemy |
| >=1.0.0,<=2.0.0) | sqlalchemy-bigquery |
| ==0.8.2) | sqlalchemy-redshift |
| ==0.17.0) | tableauserverclient |
| >=4.0.0,<5.0.0 | tqdm |
| >=4.0.0 | typing-extensions |
| >=1.0.0,<2.0.0 | urllib3 |
| >=0,<1) | websocket-client |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<3.11 | Python |
نحوه نصب
نصب پکیج whl castor-extractor-0.3.7:
pip install castor-extractor-0.3.7.whl
نصب پکیج tar.gz castor-extractor-0.3.7:
pip install castor-extractor-0.3.7.tar.gz