philipcristiano's posterous

 
Filed under

Project

 

Plug v0.1.3 Released

Plug is a tool to automate packaging and installation of Python daemons including Python dependencies in the package. It grew out of my use of Supervisor and the problems of managing large numbers of processes.

Version 0.1.3

I've removed all the extra --command options, you can now just `plug install package.plug`. There is still the --number option for setup though.

There was a bug where runit wasn't properly shutting down the process when it thought it was. The issue occured because I didn't exec properly when calling the plug's command so runit was sending a SIGTERM to the script, not the process. Once the process was zombified runit had no hope of getting it.

Installs will also remove an existing plug of the same name should one exist. This is to force a reinstall in case you have two packages with the same plug name. 

You can get Plug on PyPi.

Filed under  //   Plug   Project   Python   Release  

Comments [0]

PMS v0.1.1

I've uploaded v0.1.1 of PMS to PyPi. This adds an endpoint that returns the next event from Mongo. This endpoint can be used with the pms_watch command in your shell to get events from PMS easily.

I still have no docs or tests so we'll see this week when I try using it with another project if it winds up being useful.

The pms_watch command should probably be moved to a pms_utils package.

Filed under  //   Project   Python   pms  

Comments [0]

Python Monitoring Service

I've started a new project called the Python Monitoring Service with a goal to provide a service for application monitoring.

The intended use case will eventually be for internal applications to push events to the service to be easily aggregated for DevOps. It currently uses JSON over HTTP for messaging and stores events in MongoDB.

This week I hope to integrate it with a project at work and get some idea of how I want to use it. It's on PyPi as well although there is not documentation, tests, or reason to use it yet.

 

Filed under  //   Project   Python   monitoring  

Comments [0]

ScrobbleChecker! Make sure your Last.fm account is scrobbling!

I've had some trouble remembering to scrobble at certain times, like when I reformat and think I've set up the daemon properly. Since Last.fm has an API I figured I could solve that problem!

I just put up a very beta-ish site for doing just that! You can check it out ScrobbleChecker. I warn you though that I'm still working on some basic things... like unsubscribing, and like any of my projects, I haven't done any design. 

There was a bug about sending emails too frequently, although that has been fixed. 

Given your username, email, and the time delay you want before an email, it will check your account to make sure you have been scrobbling. If you haven't scrobbled in that period of time it will send an email to remind you. The emails will only be sent once per period so you shouldn't receive reminders more frequently then the number of days you enter. 

Now that I have a working stack there will probably be more upcoming features, like unsubscribe and actually informative emails. 

Some technical details:

Running on my Slicehost account now that Drinklogs is no longer there. 

My first Pylons projects since I needed to learn it for work. Also with Turbomail since Python emailing is horrible. 

Deployable with one command! 

Dingus and Pylons do not get along well.

This was mostly a project to play with some other cool technologies. Sadly I didn't really need a asynchronous  queue as Turbomail is plenty fast in my daemon process. Otherwise I would have used Beanstalkd in the project. For the next version of Drinklogs though I certainly will. 

Filed under  //   Beanstalkd   Dingus   Drinklogs   Project   Pylons   ScrobbleChecker   Slicehost   Turbomail  

Comments [0]