profile
viewpoint
Tres Seaver tseaver Agendaless Consulting, Inc. Fredericksburg, Virginia, USA http://palladion.com/

googleapis/google-api-python-client 5250

🐍 The official Python client library for Google's discovery based APIs.

tseaver/compoze 3

Python egg fetcher and index builder

tseaver/fritter 2

SSH into Pyramid WSGI Server

tseaver/appendonly 1

ZODB conflict-reducing data structures

tseaver/candide 1

TTW schemas / propertysheets for SubstanceD

tseaver/curveship 1

Interactive fiction + interactive narrating.

tseaver/mr.developer 1

A zc.buildout extension to ease the development of large projects with lots of packages.

dhermes/google-cloud-python-on-gae 0

Experiments getting google-cloud-python working on Google App Engine

dhermes/py-crc32c 0

Python / CFFI wrapper for google/crc32c

Pull request review commentgoogleapis/python-bigquery

test: check extreme DATE/DATETIME values can be loaded from pandas DataFrame

 def test_load_table_from_dataframe_w_nulls(bigquery_client, dataset_id):         bigquery.SchemaField("ts_col", "TIMESTAMP"),     ) -    table_schema = scalars_schema + (-        # TODO: Array columns can't be read due to NULLABLE versus REPEATED-        #       mode mismatch. See:-        #       https://issuetracker.google.com/133415569#comment3-        # bigquery.SchemaField("array_col", "INTEGER", mode="REPEATED"),-        # TODO: Support writing StructArrays to Parquet. See:-        #       https://jira.apache.org/jira/browse/ARROW-2587-        # bigquery.SchemaField("struct_col", "RECORD", fields=scalars_schema),-    )

Are we just bailing on those two TODO entries?

tswast

comment created time in 15 hours

PullRequestReviewEvent
PullRequestReviewEvent

pull request commentgoogleapis/python-datacatalog

chore: release 3.6.2

Merge freeze in effect, thawing 2022-01-04.

release-please[bot]

comment created time in 15 hours

push eventgoogleapis/python-firestore

Tres Seaver

commit sha 4ff450614f1a34714a7dac59497b99d3e4efb8a8

fix: use 'WhichOneof' for dispatch response type Also, remove weird mocking for BIDI classes.

view details

push time in 16 hours

issue commentgevent/gevent

Compatibility with python-firestore

Just for clarification: the on_snapshot method of a Firestore collection (or query, or document) spawns a thread which sets up a BIDI stream, over which the Firestore server pushes update snapshots. The return value is a Watch instance: it processes those snapshots and pushes the result into the callback.

leodaher

comment created time in 19 hours

issue commentgoogleapis/google-auth-library-python

Bug Report: Exception when calling .upload_from_string()

@ShwetanshuSingh The traceback indicates that info is a string, rather than the expected dict. Digging down, _metadata.get_service_account_info calls _metadata.get, which only returns a string if the metadata server returns a non-JSON response (which should never happen).

ShwetanshuSingh

comment created time in 19 hours

issue commentgoogleapis/python-firestore

Ability to connect using client app configuration

@LeonardoRick I'm afraid I don't understand your use case here. The client needs to be initialized with credentials, which you can pass to it explicitly, rather than using the implicit environmental search for credentials. E.g.:

from google.oauth2.service_account import Credentials
from google.cloud.firestore_v1 import Client

credentials = Credentials.from_service_account_info({<your creds info here>})
fs = Client(credentials=credentials)

Please reopen / follow up if this example does not address your question.

LeonardoRick

comment created time in 20 hours

issue closedgoogleapis/python-firestore

Ability to connect using client app configuration

I really couldn't find a way to connect to this package using my application setup, not admin SDK. Is there a way to do that? This way, the access would be able to respect Firestore rules and all things related to a client access.

A solution would be to be able to connect to Client() with something like this:

config = {
  "apiKey": "apiKey",
  "authDomain": "projectId.firebaseapp.com",
  "databaseURL": "https://databaseName.firebaseio.com",
  "storageBucket": "projectId.appspot.com"
}

fs = Client().initialize_app(config)

Is there any another library or way that can do that?

closed time in 20 hours

LeonardoRick

issue closedgoogleapis/python-firestore

Snapshot method for async collections

Is there a reason why the async collections do not have on_snapshot? And are there any plans to add this?

closed time in 20 hours

Kyzegs

issue commentgoogleapis/python-firestore

Snapshot method for async collections

Note that adding async support for the Watch mechanism is an existing feature request: #131

Kyzegs

comment created time in 20 hours

issue closedgoogleapis/python-firestore

ServiceUnavailable: 503 DNS resolution failed for service: firestore.googleapis.com

I am trying to access the Google's Firestore in my project with Python code (in Jupyter Notebook) and for some reason the Python program never finishes. Also tried to create a document in Firestore but then I get this error:

ServiceUnavailable: 503 DNS resolution failed for service: firestore.googleapis.com

I created a service account in Firestore (ServiceAccount.json contains the settings). This is my code:

import firebase_admin

from firebase_admin import credentials
from firebase_admin import firestore

cred = credentials.Certificate('ServiceAccount.json')
firebase_admin.initialize_app(cred)
db = firestore.client()
db.collection('company').add({'name': 'Test'})

Only the last statement fails. This is also returned:

C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\grpc_helpers.py in error_remapped_callable(*args, **kwargs)
     65         try:
---> 66             return callable_(*args, **kwargs)
     67         except grpc.RpcError as exc:

C:\ProgramData\Anaconda3\lib\site-packages\grpc\_channel.py in __call__(self, request, timeout, metadata, credentials, wait_for_ready, compression)
    945                                       wait_for_ready, compression)
--> 946         return _end_unary_response_blocking(state, call, False, None)
    947 

C:\ProgramData\Anaconda3\lib\site-packages\grpc\_channel.py in _end_unary_response_blocking(state, call, with_call, deadline)
    848     else:
--> 849         raise _InactiveRpcError(state)
    850 

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.UNAVAILABLE
    details = "DNS resolution failed for service: firestore.googleapis.com"
    debug_error_string = "{"created":"@1632831473.221000000","description":"Resolver transient failure","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":1356,"referenced_errors":[{"created":"@1632831473.221000000","description":"DNS resolution failed for service: firestore.googleapis.com","file":"src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc","file_line":202,"grpc_status":14,"referenced_errors":[{"created":"@1632831473.221000000","description":"OS Error","file":"src/core/lib/iomgr/resolve_address_windows.cc","file_line":93,"os_error":"The specified class was not found.\r\n","syscall":"getaddrinfo","wsa_error":10109}]}]}"
>

The above exception was the direct cause of the following exception:

ServiceUnavailable                        Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\retry.py in retry_target(target, predicate, sleep_generator, deadline, on_error)
    189         try:
--> 190             return target()
    191
...

Please advise. I am out of ideas.

closed time in 20 hours

eugenevk

issue commentgoogleapis/python-firestore

ServiceUnavailable: 503 DNS resolution failed for service: firestore.googleapis.com

I'm closing this issue, as I can't foresee any possible change to the google-cloud-firestore client library which would resolve it. Please follow up with a report against the https://github.com/grpc/grpc repository if you can provide information for reproducing the problem.

eugenevk

comment created time in 20 hours

pull request commentgoogleapis/python-bigquery-connection

chore: release 1.3.2

Release freeze now in effect until 2022-01-04.

release-please[bot]

comment created time in 20 hours

push eventgoogleapis/python-ids

gcf-owl-bot[bot]

commit sha 395b531adcf514aed837e888afdb82173c4e4dac

chore: generate CODEOWNERS from config (#3) Source-Link: https://github.com/googleapis/synthtool/commit/6b5cee730c12697d78183545467319b339b0ba4f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:74124fe59b8859f30143dcdea7b78300046d97de816dc53c0e381308a5f4f8bc Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

view details

push time in 20 hours

delete branch googleapis/python-ids

delete branch : owl-bot-update-lock-74124fe59b8859f30143dcdea7b78300046d97de816dc53c0e381308a5f4f8bc

delete time in 20 hours

PullRequestReviewEvent
PullRequestReviewEvent

pull request commentpypa/twine

Add support for Metadata 2.2

The latest release of pkginfo has the feature already.

bhrutledge

comment created time in a day

pull request commentgoogleapis/python-pubsublite

chore: release 1.3.0

@anguillanneuf Looks like the link for #274 is there now.

release-please[bot]

comment created time in 2 days

pull request commentgoogleapis/python-firestore

testing: use pytest idioms for unit tests

Reviewers: this is a big PR, and mostly involves repetition of the same few transforms:

  • Use normal assert rather than self.assert*.
  • Replace self.assertRaises with pytest.raises.
  • Convert testcase helper methods to module-scope functions.
  • Drop use of the unittest.TestCase base class, converting testcase methods to module-scope functions.
  • Minor cleanups of module-scope imports.
tseaver

comment created time in 2 days

pull request commentgoogleapis/python-pubsublite

feat: surface ReservationPath and Reservation

@googlebot I consent.

anguillanneuf

comment created time in 2 days

PullRequestReviewEvent

PR opened googleapis/python-firestore

Reviewers
testing: use pytest idioms for unit tests

Closes #498.

+13344 -12703

0 comment

27 changed files

pr created time in 2 days

PR closed googleapis/synthtool

Reviewers
chore(python): refactor unit / system test dependency install cla: yes

Closes #1185.

Opened PR as a draft for discussion.

+165 -62

1 comment

2 changed files

tseaver

pr closed time in 2 days

pull request commentgoogleapis/synthtool

chore(python): refactor unit / system test dependency install

PR made from a now-removed fork. Replaced by #1294.

tseaver

comment created time in 2 days

PR opened googleapis/synthtool

Reviewers
chore(python): refactor unit / system test dependency install

Closes #1185.

Opened PR as a draft for discussion.

Replaces #1186.

+171 -64

0 comment

2 changed files

pr created time in 2 days

Pull request review commentgoogleapis/synthtool

chore(python): refactor unit / system test dependency install

 def lint_setup_py(session):     session.run("python", "setup.py", "check", "--restructuredtext", "--strict")  +def install_unittest_dependencies(session, *constraints):+    session.install(*UNIT_TEST_STANDARD_DEPENDENCIES, *constraints)++    if UNIT_TEST_EXTERNAL_DEPENDENCIES:+        session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints)++    if UNIT_TEST_LOCAL_DEPENDENCIES:+        session.install("-e", *UNIT_TEST_LOCAL_DEPENDENCIES, *constraints)++    if UNIT_TEST_DEPENDENCIES:+        session.install("-e", *UNIT_TEST_DEPENDENCIES, *constraints)

d274ce3

tseaver

comment created time in 2 days

more