Common resources for Data Catalog connectors
Project description
google-datacatalog-connectors-commons
Common resources for Data Catalog connectors.
Disclaimer: This is not an officially supported Google product.
Table of Contents
1. Installable file build process
1.1. Get the code
git clone https://github.com/GoogleCloudPlatform/datacatalog-connectors
cd datacatalog-connectors/google-datacatalog-connectors-commons
1.2. Virtualenv
Using virtualenv is optional, but strongly recommended.
1.2.1. Install Python 3.6
1.2.2. Create and activate a virtualenv
pip3 install --upgrade virtualenv
python3 -m virtualenv --python python3.6 env
source ./env/bin/activate
2. Developer environment
2.1. Install and run YAPF formatter
pip install --upgrade yapf
# Auto update files
yapf --in-place --recursive src tests
# Show diff
yapf --diff --recursive src tests
# Set up pre-commit hook
# From the root of your git project.
curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh
chmod a+x pre-commit.sh
mv pre-commit.sh .git/hooks/pre-commit
2.2. Install and run Flake8 linter
pip install --upgrade flake8
flake8 src tests
2.3. Install the package in editable mode (i.e. setuptools “develop mode”)
pip install --editable .
2.4. Run the unit tests
python setup.py test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for google-datacatalog-connectors-commons-0.6.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a087e1b2fd7c633ecd534ec33855938ee16f607cc55e19ab865407969924c4e |
|
MD5 | d84899cc7a82ede780cffc77fd671c81 |
|
BLAKE2b-256 | f2e35d9b1cb6bd7fd95051f4b3dc0f34ba1df2f298e9735dc6d16156ffd5f372 |
Close
Hashes for google_datacatalog_connectors_commons-0.6.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00cf075c368f7e7c3279a4be4f63cc3a995166fd50c288544819aef2e505a20 |
|
MD5 | 807d62773d5a8255cd9cd5b5567d740b |
|
BLAKE2b-256 | cec09cbc99b8cba06c86a5d2813fceef63ff653998805e1b808d4aa2f9a996cb |