Python Stop-Motion Insert Keyframe
This adds a button to the 3D View tool panel, Animation tab:

import bpy

class OBJECT_keyframe_insert_hide(bpy.types.Operator):
    """Tooltip"""
    bl_idname = "object.keyframe_insert_hide"
    bl_label = "(Un)hide"
    bl_options = {'REGISTER', 'UNDO'}

    hide = bpy.props.BoolProperty(name="Hide")

    @classmethod
    def poll(cls, context):
        return context.object is not None

    def execute(self, context):
        ob = context.object
        ob.hide = self.hide
        ob.hide_render = self.hide
        ob.keyframe_insert("hide")
        ob.keyframe_insert("hide_render")
        return {'FINISHED'}


def draw_func(self, context):
    layout = self.layout
    hidden = context.object.hide

    layout.label("Stop motion:")
    layout.operator(OBJECT_keyframe_insert_hide.bl_idname, text="Unhide" if hidden else "Hide", icon='KEY_HLT').hide = not hidden

def register():
    bpy.utils.register_class(OBJECT_keyframe_insert_hide)
    bpy.types.VIEW3D_PT_tools_animation.append(draw_func)


def unregister():
    bpy.utils.unregister_class(OBJECT_keyframe_insert_hide)
    bpy.types.VIEW3D_PT_tools_animation.remove(draw_func)


if __name__ == "__main__":
    register()


It hides or unhides the active object and keyframes the .hide / .hide_render properties.