Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 940 Bytes

README.rst

File metadata and controls

51 lines (28 loc) · 940 Bytes

Overview

This document briefly describes installation, dependencies and use of django-vcard.

The django-vcard library offers;

Contact

  • A Django Model for representing vCards
  • A Contact can be imported and exported to and from both vCard strings and vobjects

Install

Just type the following in the commandline:

pip install -e git+http://github.com/guidocalvano/django-vcard.git#egg=django-vcard

Dependencies

vObject

Use

Create a new Contact object;

c = Contact()

Import data into the Contact c;

c.importFrom( type, data )

Export data from the Contact

exportedData = c.exportTo( type )

Type is a string describing the type of the data imported or exported.

Valid type strings are;

"vCard" - a vCard string

"vObject" - a vObject containing vCard data