google.appengine.ext.bulkload.bulkloader_wizard module

Summary

Wizard to generate bulkloader configuration.

Helper functions to call from the bulkloader.yaml. The wizard is run by having bulkloader.py download datastore statistics (https://developers.google.com/appengine/docs/python/datastore/stats, specifically __Stat_PropertyType_PropertyName_Kind__) configured with bulkloader_wizard.yaml.

Contents

google.appengine.ext.bulkload.bulkloader_wizard.DatastoreTypeToTransforms(property_type)source

Return the import/export_transform lines for a datastore type.

Parameters

property_type – Property type from the KindPropertyNamePropertyTypeStat.

Returns

Strings for use in a bulkloader.yaml as transforms. This may be ‘’ (no transform needed), or one or two lines with import_transform or export_transform.

class google.appengine.ext.bulkload.bulkloader_wizard.StatPostTransformsource

Bases: object

Create text to insert between properties and filter out ‘bad’ properties.

This class is a callable post_export_function which saves state across multiple calls.

It uses this saved state to determine if each entity is the first entity seen of a new kind, a duplicate kind/propertyname entry, or just a new property in the current kind being processed.

It will suppress bad output by returning None for NULL property types and __private__ types (notably the stats themselves).

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Python