I am trying to check local google data store locally. My steps:
- Scan data with Scrapy
- Save data to the cloud storage using a local emulator
I followed all the steps to use a local emulator
- run local emulator:
gcloud beta emulators datastore start - set local environment variables:
gcloud beta emulators datastore env-init
However, in python, when using the following command to access the cloud data store, it always saves the data directly in the Google cloud instead of saving it to local emulators.
It looks like you cannot specify the library to use the local data warehouse emulator, as well as what they offer in their Node.js client
var datastore = gcloud.datastore({ apiEndpoint: "http://localhost:8380" });
My question is: how can I ask the python datastore google library to use a local emulator instead of using the cloud directly.
python google-app-engine google-cloud-datastore datastore
Jsnoob
source share