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 google-datacatalog-connectors-commons
1.2. Virtualenv
Using virtualenv is optional, but strongly recommended.
1.2.1. Install Python 3.5
1.2.2. Create and activate a virtualenv
pip install --upgrade virtualenv
python3 -m virtualenv --python python3 env
source ./env/bin/activate
1.3. Generate a wheel file
python setup.py bdist_wheel
The wheel file can used to install the package as a local pip dependency to other projects while it's not published to The Python Package Index (PyPI).
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78df69b7bfb2bef06b9fce40ed1f0d6ade987fe516f656def393f526c320098d |
|
MD5 | 9ed4c89f00fc566d4a81d41b7a72e5d9 |
|
BLAKE2b-256 | 1a0cd6f3ac1f7da35664e17b362bd3e21147c5a249efd6c21b47b6e0ddd6e494 |
Close
Hashes for google_datacatalog_connectors_commons-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d11e92d2756e1454b1574fcc56291f868e0e102c39cde442f637b0ee775dec |
|
MD5 | 5b8b00a530e43e964ea3a5bbce473624 |
|
BLAKE2b-256 | 4faa08665854357617d4dceaaed28861d427b4934fe167b3ca9b5ed742c6ca45 |