Hey TH,

I'm not sure what you mean by "install and load modules". Perhaps this docs 
page <https://cloud.google.com/appengine/docs/python/tools/libraries27> on 
libraries in python27 will help you with that question, although feel free 
to clarify if I missed your meaning. There shouldn't be any differences for 
python3, given the differences between 3.x and 2.x 
<http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html> wouldn't 
impact anything in the doc.

As to using Datastore with python, this is definitely possible, via the 
Cloud Datastore REST API 
<https://cloud.google.com/datastore/reference/rest/>, or via the gcloud 
<https://googlecloudplatform.github.io/gcloud-python/> python library, or 
via the google api client library 
<https://developers.google.com/api-client-library/python/> for python to 
connect to the API, or via the ndb 
<https://cloud.google.com/appengine/docs/python/ndb/> package. There are 
many means of connecting to Datastore.

I hope this has been helpful. Feel free to let me know if you have any 
further questions.

Regards,

Nick
Cloud Platform Community Support

On Monday, April 4, 2016 at 5:08:04 PM UTC-4, TH TH wrote:
>
> Is there a way to use Datastore inside Python 3? If so, how can install 
> and load modules?
>
> On Monday, April 4, 2016 at 8:49:43 PM UTC+2, Nick (Cloud Platform 
> Support) wrote:
>>
>> Hey TH,
>>
>> The Datastore does have restrictions on concurrent modifications 
>> <https://cloud.google.com/appengine/articles/scaling/contention>, but as 
>> far as read operations, there is an unlimited quota 
>> <https://cloud.google.com/appengine/docs/quotas#Datastore> when billing 
>> is enabled. As long as you can provision enough reading apps, you should be 
>> able to successfully run the script without hitches, although you'll want 
>> to experiment and profile with the system to determine what bottlenecks 
>> might exist in your script's logic. You could look into Memcache as well, 
>> as a potential middle layer to speed up the reads. 
>>
>> Let me know if you still have questions and I'll be happy to help.
>>
>> Sincerely,
>>
>> Nick
>> Cloud Platform Community Support
>>
>>
>>
>> On Monday, April 4, 2016 at 10:59:19 AM UTC-4, TH TH wrote:
>>>
>>>
>>> So I have 25,000 .py scripts running at the same time every 2 minutes as 
>>> CRON jobs (distributed equally over 1000 servers)
>>>
>>> They all have to access the same DB at the same time, ONLY to READ from 
>>> db, not to write.
>>>
>>> So I was wondering if Google Datastore (for example) could handle this? 
>>> 25000 requests to the same DB at the same time just to read?
>>>
>>> I couldnt find this in Google's AE docs.
>>>
>>> Best Regards
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4477bccf-1fbf-4477-94b9-27b827dc70b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to