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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4c8e5f3519313057b5898c76eda30c00ccab5417c957897b58b304962213b8 |
|
MD5 | 2ab47782fe4c247d83f7aee24ddb79b6 |
|
BLAKE2b-256 | f1a9b1c61255e40178d36b1521a4f310a599f7898323ceee80343b6c31f8b0cd |
Close
Hashes for google_datacatalog_connectors_commons-0.6.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f187a4f88d8bfd9ef55f904ab69156d6a125dc592eab4c47a3f6a748a1a8d5 |
|
MD5 | c0b450d9c76d8f2e35bfed69a49391a2 |
|
BLAKE2b-256 | 78ee17b954042531e3e8be783b3ef0c9bbcf94ca0f29704a6a6ad4f823f3cd81 |