The best python library

So i took the very basic python library and made it better.


here's the link

entone, 7 years ago

putting it up on google code now.

Blake, 7 years ago

Hi entone, that's great. Let us know when it's up.

entone, 7 years ago

ok, here it is.

entone, 7 years ago

let me know what you guys think.

entone, 7 years ago

ok, I updated the Soap library to handle lists of objects in the arguments, this allows you to call the Campaign.Create service.

Should handle all the methods now for all the classes.

jamesd jamesd, 7 years ago

Hi there,

That looks great - I've checked it out and run a few tests with it. Great use of the __getattr__() method to dynamically call the API methods...

Would you consider putting it up on GitHub so as to allow better collaboration and allow others to fork the code for themselves? Your version is certainly a lot more powerful than the originally contributed version of the Python wrapper we currently have listed (

Let us know either way and we'll add it to our list of wrappers on our API Kits page.

I was also thinking that it might be nice to name it cm-python-wrapper (just so it's clear that it's a Python version).

Nice work!

entone, 7 years ago

Hey James, I'm don't have any experience with Git. I would not mind if you put it up there as long as the appropriate credits are given. I may have a chance today to play around with Git, but just respond here if you get a chance to put it up before I do.

Glad to hear you like it. It took several versions to get it to the point it's at now. I'm pretty happy with it as well and think it will work great with my new Django project.

One quick question, is there anyway to create List segments with the api?

jamesd jamesd, 7 years ago

Hey Christopher,

I've added the cm-py repository to the campaignmonitor GitHub account and committed your original code there:

Contact CM support (asking to forward on to me) with your GitHub account details and I'll add you as a collaborator.

I've also linked to it from our API Kits page:

jamesd jamesd, 7 years ago

In answer to your question, unfortunately it's not currently possible to create segments via the API.

We've added your vote for that feature, but can't say if or when we'll implement it as there are so many feature requests to prioritise.

entone, 7 years ago

James, I actually don't really plan on using segments, I just noticed the Campaign.Create requires it, and wanted to make sure I wasn't missing anything.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free