Skip to main content

Fast and tasty cookies handling.

Project description

# 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](benchmark.png)

See [Benchmark](https://github.com/pyrates/biscuits/wiki/Benchmark) for more details.

## Changelog

### 0.2

  • unescape antislash when parsing to be consistent with quoting (cf #3)

  • unescape octal ascii when parsing to be consistent with quoting (cf #4)

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

biscuits-0.2.0.tar.gz (56.8 kB view details)

Uploaded Source

File details

Details for the file biscuits-0.2.0.tar.gz.

File metadata

  • Download URL: biscuits-0.2.0.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for biscuits-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb486d056589539638bc830f470913ee35e7e55c17918b7c92b5fb0c27aa2e37
MD5 c6b750145d97773677068f4ae8c0fc28
BLAKE2b-256 6972f1e8d8ae02b367bd4c28db4bbcd7ac7b62f68db2debf948e1e3ef97270bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page