Fix redundant imports, tweak TODO for 0.2

This commit is contained in:
Aldo Cortesi 2012-04-30 10:09:16 +12:00
parent 3365acf69f
commit d171e13fd3
5 changed files with 10 additions and 7 deletions

View File

@ -233,12 +233,14 @@ Supported data types are:
ascii
bytes
# API
__pathod__ exposes a simple API, intended to make it possible to drive and
inspect the daemon remotely for use in unit testing and the like. The next
release will include a client-side library that makes this transparent.
### /api/log
Returns the current log buffer. At the moment the buffer size is 500 entries -
@ -287,6 +289,7 @@ Where each entry looks like this:
You can preview the JSON data returned for a log entry through the built-in web
interface.
### /api/log/clear
A POST to this URL clears the log buffer.
@ -302,4 +305,3 @@ system, installing __pathod__ and its dependencies is dead simple:
The project uses the __pry__ unit testing framework, which you can get here:
http://github.com/cortesi/pry

View File

@ -1,6 +1,6 @@
import operator, string, random, sys, time, mmap, os, time
import operator, string, random, mmap, os, time
import contrib.pyparsing as pp
import http, utils
import http
import tornado.ioloop
TESTING = False

View File

@ -1,4 +1,4 @@
import copy, os, re, StringIO
import os, re
import rparse
class AnchorError(Exception): pass

View File

@ -1,4 +1,4 @@
import sys, os
import os
import libpry
from libpathod import rparse, utils

5
todo
View File

@ -1,10 +1,11 @@
0.2:
- API
- Logs, log reset, log retrieval
- Anchor management
- Client library
- Unit testing examples
- Specify if server should add Server and Date headers
- Shortcuts for cookies, auth
- Various SSL errors (expired certs, etc.)
- Caching functions
- Muck with caching