Skip to main content

Generates entity ID and connects with Vault (secret engine) to retrieve credentials

Project description

common

License: AGPL v3 Python 3.8 PyPI GitHub Workflow Status codecov

Importable Pip package that generates entity ID and connects with Vault (secret engine) to retrieve credentials.

Import package

Pip install command from GitLab:

pip install common --index-url https://__token__:<GITLAB_PAT>@git.indocresearch.org/api/v4/projects/158/packages/pypi/simple

Pip install command from .whl file:

pip install common-<VERSION>-py3-none-any.whl

In requirements.txt:

--index-url https://__token__:<GITLAB_PAT>@git.indocresearch.org/api/v4/projects/158/packages/pypi/simple
common

<GITLAB_PAT> is a GitLab personal access token with the read_api scope.

Update package

Refer to documentation: https://docs.gitlab.com/ee/user/packages/pypi_repository/#publish-a-pypi-package-by-using-twine

  1. Update the package version in setup.py. Otherwise, the push will fail with duplicate version number.

  2. Install the python build and twine package:

python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
  1. Build the common package:
python3 -m build

Now you will see two more folder generated under ./common/

|- common.egg-info/
|- dist/
  1. Push to GitLab:
TWINE_PASSWORD=<PASS>  TWINE_USERNAME=<USER> python3 -m twine upload --repository-url https://git.indocresearch.org/api/v4/projects/158/packages/pypi dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pilot-platform-common-0.0.44.tar.gz (32.0 kB view hashes)

Uploaded Source

Built Distribution

pilot_platform_common-0.0.44-py3-none-any.whl (43.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page