Skip to content

Latest commit

 

History

History
62 lines (35 loc) · 1.54 KB

CHANGELOG.md

File metadata and controls

62 lines (35 loc) · 1.54 KB

Version history

Change Bumps
Breaking major
New Feature minor
otherwise patch

Latest changes

2.1.0

This release moves some code around and introduces the new keyword argument as_json: bool that, if True, dumps the soup to json string right from the function.

Feature

  • Add as_json keyword parameter to convert

Internal

  • Moves classes.typeclass functions to transformer.py and renames the convert function to transform. This is so that we can have a new convert function in our __init__.py with the new parameter and this feature will not introduce a breaking change.
  • Fix CI after main branch change

2.0.0

No new features in this release, but we now support python 3.9 and 3.10

Breaking

  • soup2dict drops python 3.6 support

Features

  • Add support for python 3.9 and 3.10

Internal

  • Fixes poetry install in github workflows
  • Cleans up github workflow
  • Add python 3.9 and 3.10 to github workflows

1.0.1 - The License

Patch adds MIT LICENSE and updates metadata in pyproject.toml

1.0.0 - The Converter

First Release. Should be able handle most BeautifulSoup stuff

Features

  • BeautifulSoup to dictionary converter
  • Converts BeautifulSoup, ResultSet, (list), Tag and all descendants of NavigableString Classes.
  • tag attributes are prefixed with @
  • text data is contained in #text key
  • @class is always a list of 1-many classes if it exists on the element
  • all sub elements are element_name keys with an array containing 1 to many dictionaries.