There are many libraries for calling java code from python and there are many articles that try to provide a preview on their syntax. I’ve worked with JPype and Javabridge which seems to be two of the more famous ones. While JPype is by far more use friendly that javabridge I have personally had problems with it when trying to add some jar files to the class path. Especially if the jar file is packaged by maven or the project’s structure …
Category: Python
The Problem So recently I posted the following blog post explaining my approach to determining of an value is instance of a custom class. I also posted a reddit question asking if my solution made sense and whether I was missing some cases. This had become a hard thing to do since it Python pretty much everything is an object and is an instance of a class. It was even harder in Python 3x. At least in Python 2.7 you could check type of …
These days I’ve seen people writing code in Python with many many different backgrounds. Python is a well known language with small footprint and it has a great community. All of which makes it a great language for beginners and also very easy to jump in to and start your project. But, also extremely easy to miss important knowledge about underlying structure and design pattern conventions. So I’ve started using Python for a couple of my bigger projects and especially my research now. One of these projects demands some …
I’m working on a object based serializer/deserializer in python and as a result I need to know if a value is instance of class or not. First, I realized that in contrary to Java, there is really no clean way of determining if variable is holding an instance of a class or a primitive type For clarification: I know in java due to static typing it probably never happens to need to check this. But to a java programmer is intuitive to …
I started Python programming 4-5 years ago. However, I usually still use Java to write more complicated projects such as data processing platforms for many reasons. One reason is the that writing complicated projects where you have to separate one project into many related and dependent projects much easier. Lately, I started writing a Python stub for an RPC project that I’m working on that would enable me and possibly my team to write Machine Learning code in various languages and …
As a very short introduction for those who are not familiar with Django, its a powerful Python web application framework. It provides a well defined MVC structure for web applications in Python and support many things that you need. From Djnago’s website: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without …
Recently, I developed a peer review project on Google APP Engine for a course that I’m the Teacher Assistant for at University of Pittsburgh. And don’t get me wrong this was a significant and nice experience. Google App Engine is really a nice tool and great. It provides many useful features and it provides them in a really simple way reducing the learning over head. As a matter of fact you can learn everything about Google App Engine in one day at most of …