Metadata-Version: 2.1
Name: cookiesparser
Version: 1.3
Summary: cookiesparser is a mini module for parsing cookies.
Author: Farhan Ali
Author-email: i.farhanali.dev@gmail.com
Keywords: cookies,cookie parsing,cookie management,http cookies,web development,python cookies,cookie encoder,cookie decoder,data parsing,string manipulation,mini module,farhan ali
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# 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).
