biscuits


Namebiscuits JSON
Version 0.3.2 PyPI version JSON
download
home_pagehttps://github.com/pyrates/biscuits
SummaryFast and tasty cookies handling.
upload_time2024-02-21 10:20:27
maintainer
docs_urlNone
authorPyrates
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # 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)

### 0.3

- add support for the SameSite attribute (cf #8)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pyrates/biscuits",
    "name": "biscuits",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pyrates",
    "author_email": "yohan.boniface@data.gouv.fr",
    "download_url": "https://files.pythonhosted.org/packages/73/f5/894078ebebfea9b022bdfa0f0079cc570b5731ff42931ddaf57216d5ac54/biscuits-0.3.2.tar.gz",
    "platform": "POSIX",
    "description": "# Biscuits\n\nLow level API for handling cookies server side.\n\n\n## Install\n\n    pip install biscuits\n\n\n## API\n\n    # Parse a \"Cookie:\" header value:\n    from biscuits import parse\n    parse('some=value; and=more')\n    > {'some': 'value', 'and': 'more'}\n\n    # Generate a \"Set-Cookie:\" header value:\n    from biscuits import Cookie\n    cookie = Cookie(name='foo', value='bar', domain='www.example.org')\n    str(cookie)\n    > \"foo=bar; Domain=www.example.org; Path=/\"\n\n\n## Building from source\n\n    pip install cython\n    make compile\n    python setup.py develop\n\n## Testing\n\n    make test\n\n## Benchmark\n\n![benchmark](benchmark.png)\n\nSee [Benchmark](https://github.com/pyrates/biscuits/wiki/Benchmark) for more\ndetails.\n\n\n## Changelog\n\n### 0.2\n\n- unescape antislash when parsing to be consistent with quoting (cf #3)\n- unescape octal ascii when parsing to be consistent with quoting (cf #4)\n\n### 0.3\n\n- add support for the SameSite attribute (cf #8)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fast and tasty cookies handling.",
    "version": "0.3.2",
    "project_urls": {
        "Homepage": "https://github.com/pyrates/biscuits"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73f5894078ebebfea9b022bdfa0f0079cc570b5731ff42931ddaf57216d5ac54",
                "md5": "f2baf0cfbd526c6b59f4073a1dc6c07b",
                "sha256": "041ee6da5af6b0f1eb327a8b5d73930eddc5d9d8b3daf7fbe00301564abd9510"
            },
            "downloads": -1,
            "filename": "biscuits-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f2baf0cfbd526c6b59f4073a1dc6c07b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 92804,
            "upload_time": "2024-02-21T10:20:27",
            "upload_time_iso_8601": "2024-02-21T10:20:27.389901Z",
            "url": "https://files.pythonhosted.org/packages/73/f5/894078ebebfea9b022bdfa0f0079cc570b5731ff42931ddaf57216d5ac54/biscuits-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-21 10:20:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pyrates",
    "github_project": "biscuits",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "biscuits"
}
        
Elapsed time: 1.06296s