Kiss-headers

Latest version: v2.4.3

Safety actively analyzes 688568 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

2.0.1

This is a minor release, ship bugfixes.

*Changes :*
- **Bugfix :** Using CR+LF instead of LF when using `repr` of `Headers` 13
- **Bugfix :** Removing member from an `Header` may left trailing spaces or a unneeded coma 15

2.0.0

*Changes :* PR 11
- **Bugfix :** Prevent add a semicolon if this is the first entry when doing `header+="preload" "; preload"`.
- **Feature :** Implement the possibility to invoke '+' and '-' operator on Header and string.
- **Feature :** Introducing the `builder`. 40+ ready-to-use classes fully documented to create on-the-fly headers.
- **Improvement :** The structure of the package has been changed.
- **Feature :** Support `email.Message` object in the `parse_it()` function.
- **Feature :** Support for parsing `urllib3.HTTPResponse` in parse_it()
- **Minor :** Add Alt_Svc header hint on Headers class for autocompletion in IDEs.
- **Feature/Improvement :** Introduce the capability of detecting multiple entries in content for a single header.
- **Bugfix :** Header names were not kept in order when using `keys()` method of Headers object.
- **Bugfix :** Cmp header to another header object is now expected to behave correctly.
- **Feature :** Introduce `explain()` function that take an Headers object and output a dict containing explanation, if available, of each entry.
- **Bugfix :** __eq__ method of Headers and Header classes should raise the proper exception now. `NotImplementedError` instead of `NotImplemented` eg. not callable.
- **Bugfix :** Properly unquote member(s) of an Header object.

**Docs are on their way** 👍

1.1.1

*Changes :* from PR 10
- **Feature :** You can parse Response from `encode/httpx` package. Just use `parse_it()` method.
- **Feature :** Possibility to generate a JSON-string from a Headers object using `to_json()` method.
- **Feature :** Embed the capability to cast any header and Headers to `bytes`.
- **Improvement :** We've successfully passed `mypy` type-lint check.
- **Feature :** Allow to lock type output to List of Header instead of second guessing if List or a Header using `lock_output_type()` method from kiss-headers package init.
- **Bugfix :** Automatically cast object to str if trying to assign to Header anything else than `str`.

1.1.0

*Changes :*
- **Improvement :** No more dependencies required.
- **Style :** We embrace the black code style.
- **Feature :** Add method items() to Headers.
- **Bugfix :** Fetch attribute from Header even if key is named after a reserved keyword or start with digit.
- **Feature :** Add the possibility to assign attribute of an Header using property notation or using bracket style (8).

Full documentation is available at [www.kiss-headers.tech](https://www.kiss-headers.tech) and it is still work in progress. But it is enough to get started properly.

1.0.4

*Changes :* PR 5
- **Bugfix :** Check if provided raw bytes headers are encoded using ASCII or UTF-8.
- **Bugfix :** Provide a better output using case insensible dict for the `to_dict` method.
- **Improvement :** Act like a regular dict as is act like an object.
- **Improvement :** Writing missing docstring for public package and for all methods of Headers and Header.
- **Type-hint :** Adding From header type hint on Headers class.

1.0.3

*Changes :* PR 4
- **Bugfix :** Accessing header that are named the same as a reserved python keyword. `From: eg`
- **Feature :** Possibility to invoke deep copy on `Headers` and `Header` objects.
- **Feature :** Subtract header from Headers by name (string) or object using operator `-`
- **Feature :** Add header object to headers using operator `+`

Thank to all early adopters !

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.