SquareSquash / web

Squash’s front-end and API host.
http://www.squash.io
Apache License 2.0
963 stars 134 forks source link

Python Client Library? #30

Open codewarrior0 opened 11 years ago

codewarrior0 commented 11 years ago

I'm curious if anyone is already working on a Squash client library for Python applications, either web apps or desktop apps. I'm developing a desktop app in Python and am interested in using Squash to track exceptions, so I've put together a bare bones reporting module that sends a single "occurrence" to the Squash notify API.

If I won't be duplicating someone else's effort, I'll try to flesh out that mini-reporter into a full client library similar to the Cocoa/IOS libraries.

RISCfuture commented 11 years ago

If you don't know already, https://github.com/SquareSquash/web/blob/master/doc/MAKING_A_CLIENT_LIBRARY.md is helpful.

codewarrior0 commented 11 years ago

Here's a rough draft of the client library I'm using for my app. I don't think it's done yet, but I'm posting it now in case anyone else has a use for it.

https://github.com/codewarrior0/squash_python

There is a setup script included which installs the package along with two command line programs squash_tester and squash_release. I tried to make squash_release use the same options as the one included in your ios_symbolicator gem. There are a few things I still need to fix such as absolute source paths not being normalized correctly, and all kinds of personal info leaking through the environment variables.