Fast and tasty server side cookies handling
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
tools
.gitignore
.travis.yml
Makefile
README.md
benchmark.png
biscuits.pyx
setup.py

README.md

Biscuits

Low level API for handling cookies server side.

Install

pip install biscuits

API

# Parse a "Cookie:" header value:
from biscuits import parse
parse('some=value; and=more')
> {'some': 'value', 'and': 'more'}

# Generate a "Set-Cookie:" header value:
from biscuits import Cookie
cookie = Cookie(name='foo', value='bar', domain='www.example.org')
str(cookie)
> "foo=bar; Domain=www.example.org; Path=/"

Building from source

pip install cython
make compile
python setup.py develop

Testing

make test

Benchmark

benchmark

See Benchmark for more details.