This is not possible, because SQLAlchemy can only manage SQL-based RDBMS-type systems, while Bigtable (and HBase) are NoSQL, non-relational systems.
Here's my detailed response on a feature request that was filed for the Google Cloud Python library project which has more context and alternative suggestions:
The integration between SQLAlchemy and Google Cloud Bigtable would
have to be done in SQLAlchemy. I was going to file a bug on SQLAlchemy
on your behalf, but looks like you've already filed a feature
request
and it was closed as wontfix
:
unfortunately Google bigtable is non-relational and non-SQL, SQLAlchemy does not have support for key/value stores.
and a previous email thread on the sqlalchemy@
list
about adding support for NoSQL databases like HBase (which is very
similar to Bigtable) ended up without any answers.
Thus, I am afraid we won't be able to help you use SQLAlchemy together
with Bigtable.
That said, as an alternative, consider using Apache
Hue, which works with Apache HBase, and can be
made to work similarly with Bigtable. We don't have a simple howto for
how to connect Apache Hue to Cloud Bigtable yet, but I imagine it can
be done as follows:
Apache Hue -> (a: Thrift API) -> Apache HBase Thrift proxy -> (b: gRPC API) -> Google Cloud Bigtable
The first connection (a) should work out-of-the-box for Hue and
HBase. The second connection can use the Google Cloud Bigtable Java
client for
HBase.
This is not as complicated as it looks, although there are several
parts to connect together to make it all work.
Apache Hue -> (gRPC API) -> Google Cloud Bigtable
This could be done using the Google Cloud Bigtable Java client for
HBase, but
it requires Apache Hue to use the HBase 1.x API (which I believe is
not yet the case, I believe it's using 0.9x API and/or Thrift), so I
would recommend following option (1) above for now instead.
Hope this is helpful.