Darwin LDB Webservice wrapper for Python

294 views
Skip to first unread message

Rob Clarke

unread,
Feb 9, 2015, 1:31:52 PM2/9/15
to openrail...@googlegroups.com
Hi Everyone

I've released an open source Python client for the LDB Webservice, you can access the code on github [https://github.com/robert-b-clarke/nre-darwin-py] or install it straight from pypi using pip install nre-darwin-py. There are basic docs on github and you see more detailed stuff if you run pydoc nredarwin.webservice from the command line.

The main aim of this wrapper is to provide a more intuitive Python interface to the webservice. Even choosing a SOAP client in Python is a hassle, and support comes and goes for those that are out there, then you've got to work out how to use them. As well as "hiding SOAP" it provides inline documentation, which can be accessed via pydoc or through the help command in the shell, and you get autocomplete on property and function names when using IDLE or the python3 shell. 

Feedback, bug reports and patches are all welcome

Thanks
Rob


Barking Pete

unread,
Jan 20, 2016, 9:51:54 AM1/20/16
to A gathering place for the Open Rail Data community
Hello!

nre-darwin is evolving. :0)

I have found the current version does not handle https requests through a proxy. meaning it is difficult to run it inside many company or council sites due to the (for example) "Bluecoat" proxy that is often used in such situations. Standard suds does not do https proxies very well - and we have a solution. a new http transport must be provided that does not override the environment variables and a reasoned solution has been found and tested.

My thanks to rbarrois for his efforts and source on Github: https://gist.github.com/rbarrois/3721801

The attached file included the code and has been field tested. As the notes say - better error handling would be a good idea!
webservice.py

Rob Clarke

unread,
Feb 6, 2016, 9:14:49 AM2/6/16
to A gathering place for the Open Rail Data community
Thanks for this. I have released a new version, 0.2.0, which includes this fix for suds and proxies https://pypi.python.org/pypi/nre-darwin-py/0.2.0
Reply all
Reply to author
Forward
0 new messages