How to append a Rig with a python interface at the same time
If you do this manually, you need to run the script after it is linked. The script auto-runs only on file open/reload (if it is registered).

You can write an addon, that will link your character, create proxy rig from it, link the script and run the script:


Here is how you link stuff with python
You make proxy rig like this:

# get your linked group object
objects = bpy.context.scene.objects
group_ob = objects.get('Character')   # &lt;- you probably have this from linking already
# create proxy rig
objects.active = group_ob
bpy.ops.object.proxy_make()
# get the proxy object if you need
proxy_ob = bpy.context.active_object

Running the script is easy:

script = bpy.data.texts.get("rig_script.py")   # &lt;- you have this from linking
exec(script.as_string())