The minimalist, fast and private way to share contact information. https://qcard.link
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

699 B

QCard Generation

Python

Requirements

$ pip install vobject

Example

import vobject
import base64

card = vobject.vCard()
card.add('n')
card.n.value = vobject.vcard.Name(given='Arran')
card.add('fn')
card.fn.value = "Arran"

card.add('email')
card.email.value = 'mail@email.co'

card.add('tel')
card.tel.value = '+555'

card.add('url')
card.url.value = 'https://arran.nz'

card.add('note')
card.note.value = 'Here I go, making cards in Python again'

serializedCard = card.serialize()
encodedCard = base64.b64encode(serializedCard.encode())

print("https://qcard.link/?v={}".format(encodedCard.decode()))