Releases: jawah/kiss-headers
Releases · jawah/kiss-headers
kiss-headers
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 theparse_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 ofNotImplemented
eg. not callable. - Bugfix : Properly unquote member(s) of an Header object.
Docs are on their way 👍
kiss-headers
Changes : from PR #10
- Feature : You can parse Response from
encode/httpx
package. Just useparse_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
.
kiss-headers
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 and it is still work in progress. But it is enough to get started properly.
kiss-headers
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.
kiss-headers
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
andHeader
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 !
kiss-headers
Changes :
- Support : Add samesite and domain hint for Header class
- Bugfix : Should not allow key/attribute to have space in it
- Bugfix : Parse headers even if first n line(s) are not headers
- Feature : Support natively responses from Requests and extract headers properly
kiss-headers
Changes :
- Bugfix : First batch of minors fixes after initial release #2
Kiss-Headers
first release