Closed joshourisman closed 8 years ago
Very nice. I was wondering why use_datetime
wasn't an option. This would have saved me some headaches.
@joshourisman sorry for the delay on this, I'm happy to merge but can you squash it down into a single commit?
I've rebased all my changes into a single commit.
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 anxmlrpclib.ServerProxy
object so that date objects are returned asdatetime.datetime
objects instead ofxmlrpclib.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 offrom 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
topy-infusionsoft
.