Skip to main content

datacatalog-object-storage-processor

A package for performing Data Catalog operations on object storage solutions.

CircleCI PyPi License Issues

Table of Contents


1. Environment setup

1.1. Get the code

git clone https://github.com/mesmacosta/datacatalog-object-storage-processor
cd datacatalog-object-storage-processor

1.2. Auth credentials

1.2.1. Create a service account and grant it below roles
  • Data Catalog Admin
  • Storage Admin or Custom Role with storage.buckets.list acl
1.2.2. Download a JSON key and save it as
  • ./credentials/datacatalog-object-storage-processor-sa.json

1.3. Virtualenv

Using virtualenv is optional, but strongly recommended unless you use Docker.

1.3.1. Install Python 3.6+
1.3.2. Create and activate an isolated Python environment
pip install --upgrade virtualenv
python3 -m virtualenv --python python3 env
source ./env/bin/activate
1.3.3. Install the dependencies
pip install --upgrade --editable .
1.3.4. Set environment variables
export GOOGLE_APPLICATION_CREDENTIALS=./credentials/datacatalog-object-storage-processor-sa.json

1.4. Docker

Docker may be used as an alternative to run all the scripts. In this case, please disregard the Virtualenv install instructions.

2. Create DataCatalog entries based on object storage files

2.1. python main.py

  • python
datacatalog-object-storage-processor \
  object-storage create-entries --type cloud-storage \
  --project-id my_project \
  --entry-group-name my_entry_group_name \
  --bucket-prefix my_bucket
  • docker
docker build --rm --tag datacatalog-object-storage-processor .
docker run --rm --tty -v your_credentials_folder:/data datacatalog-object-storage-processor \
  --type cloud-storage \
  --project-id my_project \
  --entry-group-name my_entry_group_name \
  --bucket-prefix my_bucket

3 Delete up object storage entries on entry group

Delete entries for given entry group

datacatalog-object-storage-processor \
  object-storage delete-entries --type cloud-storage \
  --project-id my_project \
  --entry-group-name my_entry_group_name

Disclaimers

This is not an officially supported Google product.

History

0.1.0 (2020-05-01)

  • First release on PyPI.

Metadata

Release files for datacatalog-object-storage-processor 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datacatalog-object-storage-processor 0.1.2
File Size Uploaded Provenance
datacatalog-object-storage-processor-0.1.2.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for datacatalog-object-storage-processor 0.1.2
File Interpreter ABI Platform
datacatalog_object_storage_processor-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 27.2 kB

Release files / datacatalog-object-storage-processor-0.1.2.tar.gz

Download URL datacatalog-object-storage-processor-0.1.2.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2cfd591e7c7469656e24966fb7a32dbeabf03d50b8d2b1a53a0dd7ea8d774dc5
BLAKE2b-256 checksum
How to use checksums
5b6798d1066b343f3316b71eaeef4c889dc250a649071727ea1d889edcc1a2fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.0

Release files / datacatalog_object_storage_processor-0.1.2-py2.py3-none-any.whl

Download URL datacatalog_object_storage_processor-0.1.2-py2.py3-none-any.whl
Size 14.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e2c24aa69a15c749bc600c7e95b435d61ed4e2462428f85fdc54fe9ef5818af4
BLAKE2b-256 checksum
How to use checksums
e32751f9eab355b93d5fd1d504bf0be3af95bca3fad6fa0fe6c23add5bd1bc5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.0

Security for datacatalog-object-storage-processor 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page