Fast and tasty cookies handling.
Project description
# Biscuits
Low level API for handling cookies server side.
## Install
# No Pypi release yet. pip install https://github.com/pyrates/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](benchmark.png)
See [Benchmark](https://github.com/pyrates/biscuits/wiki/Benchmark) for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file biscuits-0.1.0.tar.gz
.
File metadata
- Download URL: biscuits-0.1.0.tar.gz
- Upload date:
- Size: 56.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218acc9d734d8dec9e97a005df10845a9a2ec9755bc658b11dd3a74d69dfb194 |
|
MD5 | fa1d339467d64ecbc9bc61618d93be83 |
|
BLAKE2b-256 | cbcf99c94abab1dfcaf3139f925d0d1447b1d2f341dadf09e9a721106f44f4e4 |