Tag Archives: Python

MmStats in Scripts

MmStats is a library I created to expose and read statistics, metrics, and debugging information from running Python processes without the overhead of syscalls (eg writing to a socket or file) or threads, and to make sure that as many … Continue reading

Posted in Python | Tagged , | 3 Comments

Sharing Python data between processes using mmap

I’ve been toying with an idea of exposing statistics for a Python application via shared memory to keep the performance impact on the application as low as possible. The goal being an application could passively expose a number of metrics … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged , , , | 6 Comments

Switched tc-rest to webob

Small update on my toy tc-rest project: I switched to using WebOb for creating HTTP Request and Response objects. Cleaned up the code a bit, but a real dispatcher is what’s needed to really remove the cruft. I’m anxious to … Continue reading

Posted in Open Source, Python, Technology | Tagged , , , , | 2 Comments

TokyoCabinet + fapws3 = tc-rest

Have you ever wondered how hard it would be to tack a RESTful HTTP interface on top of a fast key/value database like TokyoCabinet? Probably not, but I did: tc-rest.tar.gz Components: TokyoCabinet – my favorite persistent key/value database pytc – … Continue reading

Posted in Open Source, Python, Technology | Tagged , , , | Leave a comment

Tokyo {Cabinet, [Py]Tyrant} Talk

I did an introductory talk on Tokyo Cabinet, Tokyo Tyrant, pytc, and PyTyrant at the Portland Python User Group meeting last night. It was definitely just an introductory talk, so if you’re already familiar with these projects it probably won’t … Continue reading

Posted in Open Source, Python, Technology | Tagged , , , , , | 7 Comments

(Yet Another) Deploying Django with CherryPy Script

Recently I deployed a Django project on an OSX server. I foolishly thought this would be as easy as on Linux until I ran into the mess that is x86_64 Apache + mod_wsgi* + Django + psycopg2 + i386 PostgreSQL. … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged , , | 2 Comments