resistance is obsolete ™ ;-)
the groupware construction kit

Python example for importing CSV

Contained is a small but configurable Python example for using the SKYRiX XML-RPC daemon to import contact data formatted as CSV (comma separated value) files. Such CSV files can be exported by almost any PIM application (eg Outlook).

The importer can be configured using a simple config file:
[options]
server = http://localhost:20000/Skyrix/xmlrpc
user = root
password = 
import_person = yes
person_file = imp_person.csv
[person_attributes]
isAccount = 1
entry_status = 2
name = 3
firstname = 4
extendedAttrs.email1 = 5 phones.01_tel.number = 6
Sources
  • importExample.py - the import script
  • import.cfg - example config for the import

  • Sample Input
  • imp_person.csv

  • Required Modules
  • strptime.py
  • xmlrpclib.py

  • Author
  • Björn Stierand
  • We welcome your feedback!
    Trademarks.  
    This site is sponsored by
    SKYRIX Software AG
    ZideOne GmbH
    MDlink