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.5.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6bd3d3f19614d3f97e70d7c306a7b22ed9611c54a0e7a54568acec7a4013b3e |
|
MD5 | 78909b907b56ced38c62d7fdd8e13b13 |
|
BLAKE2b-256 | 3a9795c9f1573417951331fcffd22decea7cff96197fccfc299118bcecd83d8c |
Close
Hashes for google_datacatalog_connectors_commons-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4239b583e316aef65a896e1289ed1fc4178e69963275ef08527b9721ee7443 |
|
MD5 | 72f49d931d5bb6b6605b155b7ec2d32d |
|
BLAKE2b-256 | 5e66b29edd2878172c7285ea6764452a9fa5b8d9366d117157f87118a02dfbdd |