Last year, we did a recap with what we thought were the best Python libraries of 2015, which was widely shared within the Python community (see post in r/Python). A year has gone by, and again it is time to give due credit for the awesome work that has been done by the open source […]
Author: Alan Descoins
Python + Elasticsearch. First steps.
Lately, here at Tryolabs, we started gaining interest in big data and search related platforms which are giving us excellent resources to create our complex web applications. One of them is Elasticsearch. Elastic{ON}15, the first ES conference is coming, and since nowadays we see a lot of interest in this technology, we are taking the opportunity to give […]
Raul’s new Machine Learning book!
We are proud to announce that Raul Garreta (Co-Founder & CTO of Tryolabs) and Guillermo Moncecchi have published a new book called “Learning scikit-learn: Machine Learning in Python”. Raul has been involved with academia for years, teaching Machine Learning and Natural Language Processing at the Computer Science Institute of Universidad de la República in Uruguay […]
Run-time method patching in Python
Often, when programming, we may want to change some already set behavior. This can be accomplished by sub-classing whatever classes we have and overriding those methods we are not happy with. While this works with our own code, what happens if we want to change third party code? Of course we can edit it so […]
IPython Notebook
Last PyCon US (2013) I attended, there were many interesting talks, but if I had to talk about what’s happening, what’s the trend, between other things I would mention IPython Notebook. In a few words: it’s an excellent tool, you can have an IPython console within your web browser where you can write code snippets […]
Python Simple Getty wrapper released!
Keeping up with our efforts to be an active part of the open source community, we are pleased to announce the public release of our Simple Getty wrapper. Python Simple Getty is a basic wrapper to the extensive Getty Images Connect API. In its current state it does not fully implement Connect, but it works […]
LibreQDA public release
A news worthy of The Tryolabs’ Herald: We have just proudly released to the public LibreQDA, a Qualitative Data Analysis tool that we have developed alongside with the Universitat Autónoma de Barcelona and the Universidad de la República Oriental del Uruguay. LibreQDA is what is commonly know in the psychology area as Computer Assisted Qualitative Data […]
Displaying timezone-aware dates with Tastypie
So you have made the decision to use timezone-aware dates and now you are building your cool REST API using Tastypie. Of course timezones are important to your application, so you want to expose them when Tastypie exposes dates in the API. You have a very simple resource that exposes a Django model that has […]
PyCon Uruguay 2012
Last November 10th and 11st we enjoyed the first Python Conference in Uruguay. The event was developed by the Python community in Uruguay as a result of the great success of the PyDay that took place in August 2011. In the event participated several speakers from Uruguay, Argentina, Brasil and Denmark with talks ranging from Biopython, Machine Learning to […]
Generating image thumbnails with django-thumbnail-works.
Uploading images to our Django application can be as easy as adding an ImageField to our model. However, ImageField falls short in one key aspect, thumbnails. Usually when uploading images, we want to create smaller versions for them, for using in for example, galleries or previews. This however, has to be done manually using the appropriate imaging […]
Connecting to a Microsoft SQL Server database from Python under Ubuntu
Free tools are great, but the world ain’t all sunshine and rainbows. Sometimes, we may need to connect to a Microsoft SQL Server database from one of our Python applications running under Linux. Fortunately, there are ways to achieve this. I am assuming we got this: A Microsoft SQL Server installation running under Windows. I […]
A Django Administration interface for non staff users
A while back I had a Django application in which I needed registered users able to view, create, update and delete objects in my system. These objects were instances of only a subset of all the Django models.Model subclasses I had defined in the models.py file of my application. You may find this problem very […]
Django – Adding CAPTCHA validation to your forms
Recently we implemented a “Forgot your password?” feature in one of our django sites and wanted to protect the mechanism so our users wouldn’t get spammy messages from our servers. As much as we may hate it, forms in our sites usually act as spambots magnets. We need some kind of protection and CAPTCHAs usually […]
Get user data using django-social-auth
Recently we had to add support for social networks login to an application we are developing and we chose django-social-auth to work with. It is a well documented and easy to use django application for authentication. But we wanted to do more than just authenticating the user, we wanted to get extra data like the […]
Calling Scrapy from a Python script
When you need to do some web scraping job in Python, an excellent choice is the Scrapy framework. Not only it takes care of most of the networking (HTTP, SSL, proxies, etc) but it also facilitates the process of extracting data from the web by providing things such as nifty xpath selectors. Scrapy is built […]