Skip to main content

Mini Module for Parsing Cookies.

Project description

cookiesparser

GitHub GitHub release (latest by date) PyPI

Description

cookiesparser is a Mini Module for Parsing Cookies.

Installation

You can install cookiesparser using pip:

pip install cookiesparser

Usage

from cookiesparser import (parse, encode_cookies)

c = "foo=bar; id=191002929; key=avjwowuejbnwoqo; bar=foo;"
parsed = parse(c)
encoded = encode_cookies(parsed)

print("Orignal: %s" % (c))
print("Parsed: %s" % (parsed))
print("Encoded: %s" % (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.

License

cookiesparser is released under the Apache License.

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

cookiesparser-1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

cookiesparser-1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file cookiesparser-1.2.tar.gz.

File metadata

  • Download URL: cookiesparser-1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cookiesparser-1.2.tar.gz
Algorithm Hash digest
SHA256 24333e2c7dc875358f13bc00df5c3be4ddf81d76c78f4667052f998b93037ae8
MD5 d238552193885213edf02dcccb256ed8
BLAKE2b-256 032a6771d0a598efedcc8c261873fc91f99934b6c70e66c1f00626cf458990fb

See more details on using hashes here.

File details

Details for the file cookiesparser-1.2-py3-none-any.whl.

File metadata

  • Download URL: cookiesparser-1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cookiesparser-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98140eeb9a3aa774fcc79af3c76df8b341da27342eb7fadc4a2c262a05e2c074
MD5 6f5182fe0e90fb5c1f14a4e963ff05d9
BLAKE2b-256 67bbcc30178691370c0438709a7611e55f2721dd1b5ca94017030e9f8e88e358

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