Skip to content
No description or website provided.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
quadrant
.gitignore
COPYING
README.md

README.md

quadrant

A ridiculously simplistic and overly-buggy text-mode AppDotNet client in Python.

SECURITY WARNING

quadrant currently relies on Python's built-in urllib2. That means SSL certificates are not checked, so man-in-the-middle attacks are somewhere between possible and certain.

At some point soon, I'll add pycurl support, resolving this issue.

Requirements

  • Python 2.7
  • Blessings (pip/easy_install)
  • GNU Readline or editlib.

Running quadrant

Put the quadrant directory in your PYTHONPATH. Run the quadrant script in bin/. Try quadrant -h

quadrant can run a single command from the command line, or launch an interactive shell. If run with no arguments, it starts a shell, where commands start with '/' (try /help).

~/githubrepos/quadrant$ PYTHONPATH=. bin/quadrant whois nknight
nknight -- Nicholas Knight -- 

~/githubrepos/quadrant$ 

distutils may come later. Maybe. If I feel like it.

Authenticating

App.net exclusively uses oAuth2, which requires use of a browser (sigh). So here's what you have to do:

  • Run quadrant.py
  • Ignore, for now, the warning about not being able to load an access token.
  • Type /auth
  • Copy & Paste the URL into a browser
  • Grant access
  • You'll be redirected to alpha.app.net, but at the end of your address bar will be the access token.
  • Copy the access token and paste it into ~/.quadrant_access_token. That file should consist of the access token and nothing else.

Known Issues

  • Insecure per above.
  • Doesn't save/cache anything (well, aside from in your terminal scrollback buffer...).
  • Crashes when terminal resizes. Yay.
  • General error handling and UX is... not great.
  • Oh, and I really have no idea what I'm doing when it comes to readline and really any sort of complex terminal development. So utterly not my field.

Other Notes

  • Patches that make 2to3 work better without making the code uglier than it already is will be cheerfully accepted. I won't be breaking 2.7 support anytime soon, though.
Something went wrong with that request. Please try again.