Skip to content

Releases: jawah/kiss-headers

kiss-headers

09 Apr 21:21
55ac222
Compare
Choose a tag to compare

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 👍

kiss-headers

28 Mar 17:07
71dfec3
Compare
Choose a tag to compare

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.

kiss-headers

22 Mar 19:05
0ec3aa0
Compare
Choose a tag to compare

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

20 Mar 21:49
Compare
Choose a tag to compare

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

18 Mar 20:42
5f711c7
Compare
Choose a tag to compare

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 !

kiss-headers

16 Mar 23:10
7ece553
Compare
Choose a tag to compare

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

16 Mar 13:15
1c775c9
Compare
Choose a tag to compare

Changes :

  • Bugfix : First batch of minors fixes after initial release #2

Kiss-Headers

15 Mar 20:21
Compare
Choose a tag to compare

first release