macaroonbakery


Namemacaroonbakery JSON
Version 1.3.4 PyPI version JSON
download
home_pagehttps://github.com/go-macaroon-bakery/py-macaroon-bakery
SummaryA Python library port for bakery, higher level operation to work with macaroons
upload_time2023-12-13 14:22:22
maintainer
docs_urlNone
authorJuju UI Team
requires_python
licenseLGPL3
keywords macaroon cookie
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ===============
Macaroon Bakery
===============

A Python library for working with macaroons.


Installation
------------
The easiest way to install macaroonbakery is via pip::

    $ pip install macaroonbakery

macaroonbakery was developed around pymacaroons. On ubuntu, you
can get libsodium from a ppa::

	$ sudo add-apt-repository ppa:yellow/ppa -y
	$ apt-get install libsodium13

Usage
-----
Interacting with a protected url, you can use the BakeryAuth provided to deal
with the macaroon bakery

    >>> from macaroonbakery import httpbakery
    >>> jar = requests.cookies.RequestsCookieJar()
    >>> resp = requests.get('some protected url',
                            cookies=jar,
                            auth=httpbakery.BakeryAuth(cookies=jar))
    >>> resp.raise_for_status()


You can use any cookie storage you'd like so next subsequent calls the macaroon
saved in the cookie jar will be directly used and will not require
any other authentication (for example, cookielib.FileCookieJar).



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/go-macaroon-bakery/py-macaroon-bakery",
    "name": "macaroonbakery",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "macaroon cookie",
    "author": "Juju UI Team",
    "author_email": "juju-gui@lists.ubuntu.com",
    "download_url": "https://files.pythonhosted.org/packages/4b/ae/59f5ab870640bd43673b708e5f24aed592dc2673cc72caa49b0053b4af37/macaroonbakery-1.3.4.tar.gz",
    "platform": null,
    "description": "===============\nMacaroon Bakery\n===============\n\nA Python library for working with macaroons.\n\n\nInstallation\n------------\nThe easiest way to install macaroonbakery is via pip::\n\n    $ pip install macaroonbakery\n\nmacaroonbakery was developed around pymacaroons. On ubuntu, you\ncan get libsodium from a ppa::\n\n\t$ sudo add-apt-repository ppa:yellow/ppa -y\n\t$ apt-get install libsodium13\n\nUsage\n-----\nInteracting with a protected url, you can use the BakeryAuth provided to deal\nwith the macaroon bakery\n\n    >>> from macaroonbakery import httpbakery\n    >>> jar = requests.cookies.RequestsCookieJar()\n    >>> resp = requests.get('some protected url',\n                            cookies=jar,\n                            auth=httpbakery.BakeryAuth(cookies=jar))\n    >>> resp.raise_for_status()\n\n\nYou can use any cookie storage you'd like so next subsequent calls the macaroon\nsaved in the cookie jar will be directly used and will not require\nany other authentication (for example, cookielib.FileCookieJar).\n\n\n",
    "bugtrack_url": null,
    "license": "LGPL3",
    "summary": "A Python library port for bakery, higher level operation to work with macaroons",
    "version": "1.3.4",
    "project_urls": {
        "Homepage": "https://github.com/go-macaroon-bakery/py-macaroon-bakery"
    },
    "split_keywords": [
        "macaroon",
        "cookie"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6042227f748dc222b7a1c5cb40c7c74ab4162c7fc146b88980776b490ab673a1",
                "md5": "55a9351cb5ee6e49357e45293ad5a549",
                "sha256": "1e952a189f5c1e96ef82b081b2852c770d7daa20987e2088e762dd5689fb253b"
            },
            "downloads": -1,
            "filename": "macaroonbakery-1.3.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "55a9351cb5ee6e49357e45293ad5a549",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 103184,
            "upload_time": "2023-12-13T14:22:20",
            "upload_time_iso_8601": "2023-12-13T14:22:20.159005Z",
            "url": "https://files.pythonhosted.org/packages/60/42/227f748dc222b7a1c5cb40c7c74ab4162c7fc146b88980776b490ab673a1/macaroonbakery-1.3.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4bae59f5ab870640bd43673b708e5f24aed592dc2673cc72caa49b0053b4af37",
                "md5": "e529bdb6a8aeec80aa6c701e98c6bcdc",
                "sha256": "41ca993a23e4f8ef2fe7723b5cd4a30c759735f1d5021e990770c8a0e0f33970"
            },
            "downloads": -1,
            "filename": "macaroonbakery-1.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "e529bdb6a8aeec80aa6c701e98c6bcdc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 82143,
            "upload_time": "2023-12-13T14:22:22",
            "upload_time_iso_8601": "2023-12-13T14:22:22.539655Z",
            "url": "https://files.pythonhosted.org/packages/4b/ae/59f5ab870640bd43673b708e5f24aed592dc2673cc72caa49b0053b4af37/macaroonbakery-1.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 14:22:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "go-macaroon-bakery",
    "github_project": "py-macaroon-bakery",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "macaroonbakery"
}
        
Elapsed time: 0.17998s