René's URL Explorer Experiment


Title: Ability to Create Engine From an Existing BigQuery Client · Issue #464 · googleapis/python-bigquery-sqlalchemy · GitHub

Open Graph Title: Ability to Create Engine From an Existing BigQuery Client · Issue #464 · googleapis/python-bigquery-sqlalchemy

X Title: Ability to Create Engine From an Existing BigQuery Client · Issue #464 · googleapis/python-bigquery-sqlalchemy

Description: In situations where a user already has a google.cloud.bigquery.Client object, it'd be helpful to be able to create an sqlalchemy engine either using that already existing BigQuery client object or the same credentials used by that client...

Open Graph Description: In situations where a user already has a google.cloud.bigquery.Client object, it'd be helpful to be able to create an sqlalchemy engine either using that already existing BigQuery client object or ...

X Description: In situations where a user already has a google.cloud.bigquery.Client object, it'd be helpful to be able to create an sqlalchemy engine either using that already existing BigQuery client object...

Opengraph URL: https://github.com/googleapis/python-bigquery-sqlalchemy/issues/464

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ability to Create Engine From an Existing BigQuery Client","articleBody":"In situations where a user already has a `google.cloud.bigquery.Client` object, it'd be helpful to be able to create an sqlalchemy engine either using that already existing BigQuery client object or the same credentials used by that client. \r\n\r\nI'm poking around and one option would be something like\r\n\r\n```python\r\nbq_client: bigquery.Client\r\nengine = sqlalchemy.engine.create_engine(\r\n    'bigquery://project/?credentials_user_info_json=%s' % bq_client._credentials.to_json())\r\n```\r\nto create a client with the same credentials. This is unfortunately accessing a private `_credentials` attribute on the client. We might look to adding a public interface for this on the client so callers don't need to access `_credentials`.\r\n\r\nI was also looking at something like\r\n\r\n```python\r\nbq_client: bigquery.Client\r\nengine = sqlalchemy.engine.create_engine(\r\n  'bigquery://project', connect_args={'client': bq_client})\r\n```\r\nusing the [connect_args kwarg](https://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine.params.connect_args)\r\n\r\nThe problem is that the engine will still try to create the client itself even if it will end up being replaced by the one from `connnect_args`. That attempt to create the client by the engine may fail (we're assuming the big query client is created by some machinery that's opaque to the user here.) I'm not seeing a clean way to avoid this.\r\n\r\nAny other suggestions? I'm more than happy to work on this if it seems like a reasonable thing to support!","author":{"url":"https://github.com/waltaskew","@type":"Person","name":"waltaskew"},"datePublished":"2022-06-10T00:23:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/464/python-bigquery-sqlalchemy/issues/464"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dcc93897-9345-6c72-b88e-416c39967f36
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCEE:1A12B5:12CC4CC:1A3E1CF:6A4EA2C6
html-safe-noncef6935bf63229e87882f3ba0da3805b8f96e05ee83c1f4c521cb192d735a3bd60
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0VFOjFBMTJCNToxMkNDNENDOjFBM0UxQ0Y6NkE0RUEyQzYiLCJ2aXNpdG9yX2lkIjoiNzMyMzg5ODE2NzU4OTUxMTg3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6811320bdac331f0147e6cc62458e326f6a3f0529d528e5600aab71616c1f1f6
hovercard-subject-tagissue:1266799742
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery-sqlalchemy/464/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b2a88568c85729c912afb0a859134f24513f65f3f2b5d504c39aa2bc1fd50fc7/googleapis/python-bigquery-sqlalchemy/issues/464
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b2a88568c85729c912afb0a859134f24513f65f3f2b5d504c39aa2bc1fd50fc7/googleapis/python-bigquery-sqlalchemy/issues/464
og:image:altIn situations where a user already has a google.cloud.bigquery.Client object, it'd be helpful to be able to create an sqlalchemy engine either using that already existing BigQuery client object or ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaltaskew
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-bigquery-sqlalchemy git https://github.com/googleapis/python-bigquery-sqlalchemy.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id93616231
octolytics-dimension-repository_nwogoogleapis/python-bigquery-sqlalchemy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93616231
octolytics-dimension-repository_network_root_nwogoogleapis/python-bigquery-sqlalchemy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery-sqlalchemy%2Fissues%2F464
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery-sqlalchemy%2Fissues%2F464
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-bigquery-sqlalchemy
Reloadhttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464
Reloadhttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464
Reloadhttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464
Please reload this pagehttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464
googleapis https://github.com/googleapis
python-bigquery-sqlalchemyhttps://github.com/googleapis/python-bigquery-sqlalchemy
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-sqlalchemy
Fork 140 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-sqlalchemy
Star 490 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-bigquery-sqlalchemy
Code https://github.com/googleapis/python-bigquery-sqlalchemy
Issues 0 https://github.com/googleapis/python-bigquery-sqlalchemy/issues
Pull requests 1 https://github.com/googleapis/python-bigquery-sqlalchemy/pulls
Actions https://github.com/googleapis/python-bigquery-sqlalchemy/actions
Projects https://github.com/googleapis/python-bigquery-sqlalchemy/projects
Security and quality 0 https://github.com/googleapis/python-bigquery-sqlalchemy/security
Insights https://github.com/googleapis/python-bigquery-sqlalchemy/pulse
Code https://github.com/googleapis/python-bigquery-sqlalchemy
Issues https://github.com/googleapis/python-bigquery-sqlalchemy/issues
Pull requests https://github.com/googleapis/python-bigquery-sqlalchemy/pulls
Actions https://github.com/googleapis/python-bigquery-sqlalchemy/actions
Projects https://github.com/googleapis/python-bigquery-sqlalchemy/projects
Security and quality https://github.com/googleapis/python-bigquery-sqlalchemy/security
Insights https://github.com/googleapis/python-bigquery-sqlalchemy/pulse
#474https://github.com/googleapis/python-bigquery-sqlalchemy/pull/474
Ability to Create Engine From an Existing BigQuery Clienthttps://github.com/googleapis/python-bigquery-sqlalchemy/issues/464#top
#474https://github.com/googleapis/python-bigquery-sqlalchemy/pull/474
api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.https://github.com/googleapis/python-bigquery-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-bigquery-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com/waltaskew
waltaskewhttps://github.com/waltaskew
on Jun 10, 2022https://github.com/googleapis/python-bigquery-sqlalchemy/issues/464#issue-1266799742
connect_args kwarghttps://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine.params.connect_args
api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.https://github.com/googleapis/python-bigquery-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-bigquery-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.