infusionsoft / Official-API-Python-Library

24 stars 30 forks source link

Updates to Python library #12

Closed joshourisman closed 8 years ago

joshourisman commented 9 years ago

I've made a few changes to the library, the most important of which being that it's now possible to set use_datetime=True when instantiating an xmlrpclib.ServerProxy object so that date objects are returned as datetime.datetime objects instead of xmlrpclib.DateTime objects. This makes it much, much easier integrate Infusionsoft data with other Python projects, but is option to avoid creating a backwards incompatibility.

In addition, I'm now importing the Infusionsoft and InfusionsoftOAuth classes in the init.py file so that they can be imported directly from the module (from infusionsoft import Infusionsoft instead of from infusionsoft.library import Infusionsoft).

I also, to be more consistent with community practices, and avoid problems with package repositories (I use GemFury to host private packages and this caused issues there due to the space in the name) changed the package name in setup.py from InfusionSoft API to py-infusionsoft.

mgallagher commented 9 years ago

Very nice. I was wondering why use_datetime wasn't an option. This would have saved me some headaches.

kressaty commented 8 years ago

@joshourisman sorry for the delay on this, I'm happy to merge but can you squash it down into a single commit?

joshourisman commented 8 years ago

I've rebased all my changes into a single commit.