The new bulkloader configuration format requires the Google App Engine Python SDK version 1.3.4 or later.Files on this siteSample configuration and databulkloader.yamlmodels.pycustomer.csvcustomercall.xmlvisit.tsv Hierarchical XML example Visit + Activitiesbulkloader_visitactivity.yamlvisitactivities.xmltransformhelper.py Custom connector examplejson_connector.pybulkloader_json.yaml Mapreduce base
Uploading Data The bulkloader.py tool included with the Python SDK can upload data to your application's datastore. With just a little bit of set-up, you can create new datastore entities from CSV files. Most spreadsheet applications can export CSV files, making it easy for non-developers and other application to produce data that can be imported into your application. Setting Up remote_api Instal
GoogleAppEngine, Python EclipseでGAE/Jをメインアプリとして開発しながら、GAE/Pyのremote APIでbulkloader使っちゃおうぜ、という計画2回目。 以下が前提条件、という事でした。 1. メインのGAE/Jアプリ実装中に(=Eclipseから)アップロード可能にする事 2. GAEにアップロード、メインのGAE/Jアプリのデータインポート/エクスポート機能として提供可能である事 うん、あれだ。GAEのremote API勉強して分かったんだけど、2の方はbulkloader関係ないw よく考えれば、「remote APIでGAEにリモートでアクセスできるよ!」って事なので、実際にGAE上ならbulkloader関係無しにデータ読み書きすればいいじゃない、って話。*1 まぁいきなり頓挫気味な訳ですが、とりあえずbulkloader使えるよう
bulkloaderとは remote_apiを使ってコンソールからDatastoreにデータをアップロードするためのツール。 初期データとして大量のデータをDatastoreに突っ込んでおきたいときなどに便利。 逆にDatastoreにある内容をダウンロードすることもできる。削除をするようには作られていない? 今のところPython版のみ。Java版もそのうち出る? http://code.google.com/intl/ja/appengine/docs/python/tools/uploadingdata.html 簡単な使用例 例えばアプリケーション内で、model.pyというファイルでこんなクラスを作るとする。 from google.appengine.ext import db class PersonalData(db.Model): name = db.StringPro
I would like to ask which kind of credentials do I need to put on for importing data using the Google App Engine BulkLoader class appcfg.py upload_data --config_file=models.py --filename=listcountries.csv --kind=CMSCountry --url=http://localhost:8178/remote_api vit/ And then it asks me for credentials: Please enter login credentials for localhost Here is an extraction of the content of the models.
Google App Engineでデータストアに入れたデータを削除したい場合、 どうすればいいのか。 件数が少なければ 管理コンソール(Datastore - Data Viewer)上で削除することができる。 しかし件数が多いととてもこれでは対応できない。 Google App EngineのDatastoreの中身を全部消す とか、 GoogleAppEngineでremote_apiを使う では、件数が多い場合の対応方法が紹介されていたが、ちょっと面倒そうに思ったので、 以下の方法で対処することに。 普通にアプリケーション中にデータストア削除インタフェースを用意 アイデア自体は普通です。 データストア中に MyDataというデータモデルがあれば、そこにある実体データは、以下のコードに削除できます。 for data in MyData.all(): data.delete()
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く