Skip to main content

A utility to determine the type of permit based on ID

Project description

Insafe Connect to Database

Build library command

python setup.py sdist bdist_wheel

Upload library command

twine upload dist/*

Install specific version

pip install insafeConnectToDatabase==0.2.2

Database Connection issue

while trying to connect to dataase we faced multiple issues as the following

  • connect to staging database with proxy
    • we should use the library which going to install the proxy script and read service account from env
  • have conflict with prot number 4532 which is shared between postrgress we have in the cloud and the one we have in local docker
    • we have to change one of the port numbers

Note: We have to make sure that we have latest cloud sql proxy in the project https://github.com/GoogleCloudPlatform/cloud-sql-proxy

  • Make sure we have the following in the setup to add library assets
      package_data = {
  'insafeConnectToDatabase': ['cloud-sql-proxy', 'cloud-sql-proxy-linux'],  # Include the script
}

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

insafeConnectToDatabase-0.5.5.tar.gz (29.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insafeConnectToDatabase-0.5.5-py3-none-any.whl (29.2 MB view details)

Uploaded Python 3

File details

Details for the file insafeConnectToDatabase-0.5.5.tar.gz.

File metadata

  • Download URL: insafeConnectToDatabase-0.5.5.tar.gz
  • Upload date:
  • Size: 29.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for insafeConnectToDatabase-0.5.5.tar.gz
Algorithm Hash digest
SHA256 7a2c95836a212d76d67827aa294647433cb760042c044dfc40e49e43b7e05fe3
MD5 e2d09b152c10fc57e83c07b01166f58f
BLAKE2b-256 2eef1393b25383cb0fec982b8436ffbb38db29c59417d64c02ea0819e8102b81

See more details on using hashes here.

File details

Details for the file insafeConnectToDatabase-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for insafeConnectToDatabase-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae551ab865e5a7b8259cbef31b969405d29ea2a7cae7c2c10fc599826d5a9ef7
MD5 64d30ec4d42ff9db3d9cb548e6a37e7b
BLAKE2b-256 8dcc25615882f270b81f9712b6de15bf26d9eb7c14532becdbd949479f9360ab

See more details on using hashes here.

Supported by

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