DEV Community

Kamal Mustafa
Kamal Mustafa

Posted on

2

Webfaction API client in Python

I've been following Webfaction since they're known as python-hosting.com. Back in early 2000, it's not easy to find any python web hosting. Textdrive was the first but then after closed down, I was left wandering around the Net looking for a new hosting provider.

Since then, I have been hosting all side projects on Webfaction.

I found cli tools for Webfaction API. The project seem abandoned already so I've just fork it to my github account and start adding few unimplemented command.

After playing around with the API for a while, I realized that we don't really need fancy library to access the API. It pretty straightforward, the API only accept either plain string, boolean or list as parameters and return either a dict or list of dicts. So here a client to the whole APIs in just 106 lines of code - https://gist.github.com/k4ml/5889346#file-webf-py.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more