Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation missing #9

Open
icefo opened this issue Apr 3, 2015 · 6 comments
Open

Documentation missing #9

icefo opened this issue Apr 3, 2015 · 6 comments

Comments

@icefo
Copy link

icefo commented Apr 3, 2015

First, I'm a Python beginner in search of a Vcard parser working with python3 and I'm having some troubles to understand how to use your app. I looked at the example and test files but they both seem to be working with a previous release.

Example: if I run the example file ( I figured ou the import part )


from strudel.vobj import VCard

vcf = VCard()
vcf.full_name = "Ryan Leckey"
vcf.name.first = "Ryan"
vcf.name.last = "Leckey"
vcf.phone.append("916-800-2370", attributes="..", label="Bobs")

Python throw me an error :


Traceback (most recent call last):
  File "/..../main.py", line 7, in 
    vcf.phone.append("916-800-2370", attributes="..", label="Bobs")
  File "/..../lib/python3.4/site-packages/strudel/vobj.py", line 154, in phone
    return self._data['TEL'][0]
IndexError: list index out of range

So do you have a link to some doc ? If no could show me how to import the "strudel/strudel/fixtures/multicard_2.1.vcf" file, delete / edit / access some records and then save it ?
PS : I understand that you have no obligation to do it but it would be nice :-)

@jcbsv
Copy link

jcbsv commented Jan 14, 2016

+1 some documentation, or working examples would be greatly appreciated ;-)

@icefo
Copy link
Author

icefo commented Jan 16, 2016

The project seems to be dead. If you really need a vcard parser you'll have to write one yourself. You might want to look at http://pyparsing.wikispaces.com/ to write the parser.
Good luck !

@off-by-some
Copy link
Contributor

I'll be forking and writing some docs/bugfixes/proper error handling possibly sometime this weekend or the next as @icefo is correct, this is a dead project.. The company has since dissolved and there are no active contributors to any of these repositories

@icefo
Copy link
Author

icefo commented Jan 16, 2016

Thank you ! That might come handy one day

@jcbsv
Copy link

jcbsv commented Jan 17, 2016

I went with card-me, which is a recent Python 3 fork of vobject.

@off-by-some
Copy link
Contributor

@icefo @jcbsnd, After many hours of pain and suffering in the strudel code base, i decided it would be best to rewrite it here , Its not done quite yet, but it is useable.. most of the work has been done and adding support for fields is rather painless at this point (should be completed within the next week honestly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants