Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: embedly/embedly-python

v0.5.0

23 Nov 01:11

Choose a tag to compare

Quite a few changes, mostly behind the scenes. However, backwards compatibility is broken for the Url class. It is now a dictionary, behaving like dictionary. It still has the method and original_url attributes but no longer has dot access to the response data.

Why? Treating those Url dictionary keys as class attributes wasn't pythonic; it was a JavaScripty approach that just doesn't fit the expectation of a Python dict. Before you could make a request, get a response and access the data in two ways: response.title and response['title']. Now you can only use response['title']. The first way will throw an error. See #15 for more info.

New--

  • setup.py test is available
  • setup.py uses 2to3 conversion during the build process for Python 3
  • test coverage at 100% (for all tested versions of Python)
  • response data can be serialized (e.g. data is received as JSON and can be turned back into JSON)

Fixed--

  • str vs unicode in Python 3 for the Url class
  • HTTP connections are properly closed
  • properly decoding response data in Embedly.get_services()
  • cleaner version reporting

Removed--

  • dot/attribute access for Url dictionary data
  • Python 3.1 support (which may not have worked anyway)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.