More API
This commit is contained in:
parent
8547fdeece
commit
63001a7279
9 changed files with 85 additions and 15 deletions
|
|
@ -15,6 +15,11 @@ class Extension(object):
|
|||
self.docs = docs
|
||||
self.website = website
|
||||
|
||||
def to_json(self):
|
||||
rv = vars(self).copy()
|
||||
rv['description'] = unicode(rv['description'])
|
||||
return rv
|
||||
|
||||
@property
|
||||
def pypi(self):
|
||||
return 'http://pypi.python.org/pypi/%s' % url_quote(self.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue