# cookiesparser
[![GitHub](https://img.shields.io/github/license/farhanaliofficial/cookiesparser)](https://github.com/farhanaliofficial/cookiesparser/blob/main/LICENSE)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/farhanaliofficial/cookiesparser)](https://github.com/farhanaliofficial/cookiesparser/releases)
[![PyPI](https://img.shields.io/pypi/v/cookiesparser)](https://pypi.org/project/cookiesparser/)
# Description
**cookiesparser** is a mini module for parsing cookies 🍪✨. This basic but super useful tool allows you to easily extract and encode cookies from strings, making your coding journey a little sweeter!
# Installation
You can install cookiesparser using pip:
```
pip install cookiesparser
```
# Usage
```python
import cookiesparser as cparser
c = "foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo;"
parsed = cparser.parse(c)
encoded = cparser.encode(parsed)
print(f"Orignal: {c}")
print(f"Parsed: {parsed}")
print("Encoded: {encoded}")
```
# Output
```
Orignal: foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo;
Parsed: {'foo': 'bar', 'id': '191002929', 'key': 'avjwowuejbnwoqo', 'bar': 'foo'}
Encoded: foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo
```
# Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/farhanaliofficial/cookiesparser).
# License
cookiesparser is released under the [Apache License](https://github.com/farhanaliofficial/cookiesparser/blob/main/LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "cookiesparser",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "cookies, cookie parsing, cookie management, http cookies, web development, python cookies, cookie encoder, cookie decoder, data parsing, string manipulation, mini module, farhan ali",
"author": "Farhan Ali",
"author_email": "i.farhanali.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c7/4c/4a42a62106332f7ff99a7a76c5c9a240fe96c69b4616917514d99c89b902/cookiesparser-1.3.tar.gz",
"platform": null,
"description": "# cookiesparser\n\n[![GitHub](https://img.shields.io/github/license/farhanaliofficial/cookiesparser)](https://github.com/farhanaliofficial/cookiesparser/blob/main/LICENSE)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/farhanaliofficial/cookiesparser)](https://github.com/farhanaliofficial/cookiesparser/releases)\n[![PyPI](https://img.shields.io/pypi/v/cookiesparser)](https://pypi.org/project/cookiesparser/)\n\n# Description\n**cookiesparser** is a mini module for parsing cookies \ud83c\udf6a\u2728. This basic but super useful tool allows you to easily extract and encode cookies from strings, making your coding journey a little sweeter!\n\n# Installation\nYou can install cookiesparser using pip:\n```\npip install cookiesparser\n```\n\n# Usage\n```python\nimport cookiesparser as cparser\n\nc = \"foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo;\"\nparsed = cparser.parse(c)\nencoded = cparser.encode(parsed)\n\nprint(f\"Orignal: {c}\")\nprint(f\"Parsed: {parsed}\")\nprint(\"Encoded: {encoded}\")\n```\n # Output\n ```\nOrignal: foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo;\nParsed: {'foo': 'bar', 'id': '191002929', 'key': 'avjwowuejbnwoqo', 'bar': 'foo'}\nEncoded: foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo\n```\n\n# Contributing\nContributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/farhanaliofficial/cookiesparser).\n\n# License\ncookiesparser is released under the [Apache License](https://github.com/farhanaliofficial/cookiesparser/blob/main/LICENSE).\n",
"bugtrack_url": null,
"license": null,
"summary": "cookiesparser is a mini module for parsing cookies.",
"version": "1.3",
"project_urls": null,
"split_keywords": [
"cookies",
" cookie parsing",
" cookie management",
" http cookies",
" web development",
" python cookies",
" cookie encoder",
" cookie decoder",
" data parsing",
" string manipulation",
" mini module",
" farhan ali"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cda2658ca0b5d975e53c974b3e8ff3e4a5f015565889e6ae97d5eac21cfa2469",
"md5": "efd46c8550bebaeb89ed28e1f13ec770",
"sha256": "da73f90657c7c9ac67b615ec0e421fd9220fffcf114d4f2808900a3b214da8d6"
},
"downloads": -1,
"filename": "cookiesparser-1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "efd46c8550bebaeb89ed28e1f13ec770",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7372,
"upload_time": "2024-10-27T11:35:25",
"upload_time_iso_8601": "2024-10-27T11:35:25.051545Z",
"url": "https://files.pythonhosted.org/packages/cd/a2/658ca0b5d975e53c974b3e8ff3e4a5f015565889e6ae97d5eac21cfa2469/cookiesparser-1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c74c4a42a62106332f7ff99a7a76c5c9a240fe96c69b4616917514d99c89b902",
"md5": "f6445f82e8f01d46a1a4edfcc66676dd",
"sha256": "0771d751dc124995dd06032921e75d568f746d1b67c8fc2e37b541652cbd7494"
},
"downloads": -1,
"filename": "cookiesparser-1.3.tar.gz",
"has_sig": false,
"md5_digest": "f6445f82e8f01d46a1a4edfcc66676dd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6735,
"upload_time": "2024-10-27T11:35:25",
"upload_time_iso_8601": "2024-10-27T11:35:25.983233Z",
"url": "https://files.pythonhosted.org/packages/c7/4c/4a42a62106332f7ff99a7a76c5c9a240fe96c69b4616917514d99c89b902/cookiesparser-1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-27 11:35:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cookiesparser"
}