Python API for Directadmin

elbarto

Verified User
Joined
Oct 8, 2008
Messages
133
Hey guys,

For a while now I've been playing with python and Directadmin's API.
I'm releasing a beta version of my code, in case it's useful for anyone else.

There are a couple of methods which I haven't implemented yet, and there are some problems I'm having for which I opened another thread a while ago.

The code is released under GPL v.3.
You can download the source, review it and send bug reports in my google code page:
http://code.google.com/p/python-directadmin/

There you will also find some examples on how to use it.

I'll be happy to hear your comments and bug reports.

El Barto
 
Guess its cute if you know how to code in python. I have never seen anyone here ask for coding in python though.
 
@scsi,

A lot of the programming magazines are suggesting python as the next server control language. So there may very well be a use for it.

Jeff
 
And how many people know how to program in it? Do you?
 
And how many people know how to program in it?
I have no idea. When searching Python Language at Amazon Books I see 270 results. Similarly when searching Python Programming at Amazon Books I see 304 results. And when searching Python for Beginners I see 19 results.
No. But that's not important to the discussion; there are many languages in which I don't program. I don't see that it makes a difference; I'm not the average DirectAdmin user by a long shot.

You can find articles on using Python in systems administration here.

Now that you and I have both made our opinion known I suggest we stay out of the way and see if the thread draws any interested parties.

Jeff
 
I can think of at least three different ways to implement this API:

- The most basic: to create console scripts to automatize server management tasks. As an example, the source code includes a very simple script to suspend/unsuspend users from the command line.

- Web development. People who want to use frameworks like Django, Web2Py or TurboGears to create their websites, can easily integrate them with Directadmin using this API.

- Desktop software. Python has a MUCH better support for cross-platform desktop-based application development than PHP. I have a project in mind (but not the time, unfortunately), to create a desktop application to control all my Directadmin servers.
 
Back
Top