gcloud-python
PyCon Sponsor chair
https://plus.google.com/u/0/+LucemiaChen/posts
please +1
https://plus.google.com/106236402270663951141/posts/XZFjgnxfJpt
Support all kind language
datastore.set_options(dataset=sys.argv[1])
req = datastore.BeginTransactionRequest()
resp = datastore.begin_transaction(req)
tx = resp.transaction
req = datastore.LookupRequest()
key = datastore.Key()
path = key.path_element.add()
path.kind = 'Trivia'
path.name = 'hgtg'
req.key.extend([key])
req.read_options.transaction = tx
resp = datastore.lookup(req)
req = datastore.CommitRequest()
req.transaction = tx
if resp.found:
entity = resp.found[0].entity
else:
entity = req.mutation.insert.add()
entity.key.CopyFrom(key)
prop = entity.property.add()
prop.name = 'question'
prop.value.string_value = 'Meaning of life?'
prop = entity.property.add()
prop.name = 'answer'
prop.value.integer_value = 42
datastore.commit(req)
dataset = demo.get_dataset()
toy = dataset.entity('Thing', '1')
toy.update({'name': 'Toy', 'updated': '2014-10-01'})
toy.save()
https://developers.google.com/apis-explorer/#s/datastore/v1beta1/
有三名 google 工程師 mentor , 可以學習到很多流程與文化.
專案困難度適中,本身剛開始,有很多東西可以做的, 很容易有 contribution
專案參與的人不多但活躍度很高,很容易可以收到 feedback
11月中
looking for Korean, Japanese, ... talents
1. star gcloud-python
2. watch gcloud-python
3. fork gcloud-python
Guideline of contribution
view Contributions
view pull requests
view commits
尤其是沒有測試/文件的時候, 這是小白的行為
install requirements
Testing
setup.py + nose + unittest2
git clone https://github.com/[your account]/gcloud-python.git
cd gcloud-python
python setup.py develop
sudo pip install six -U
sudo pip install unittest2
sudo pip install httplib2
sudo pip install oauth2client
sudo pip install protobuf
sudo pip install pycrypto
sudo pip install pyopenssl
sudo pip install pytz
sudo pip install nose
nosetests
sudo apt-get install libssl-dev
sudo apt-get install libffi-dev
install pip http://pip.readthedocs.org/en/latest/installing.html
use koding https://koding.com/
at lucemia/gcloud-python
git branch sprint
git checkout sprint
nano README.rst
...
git add README.rst
git commit -m "my first commit"
git push origin sprint
git checkout master
git remote add lucemia \
https://github.com/lucemia/gcloud-python.git
git remote add google \
https://github.com/GoogleCloudPlatform/gcloud-python.git
git pull google master
implementation guideline in issues
on roadmap,
not implemented yet
Not on roadmap
Read docs
Find friends to discuss
Ask questions on github
chat room:
https://gitter.im/lucemia/gcloud-python