Skip to content

pypi and Github out of sync: to_json and to_dict methods missing #232

@rdib-equinor

Description

@rdib-equinor

Describe the bug
to_json and to_dict methods don't exist if using package installed from pypi, only directly from github.

To Reproduce
Steps to reproduce the behavior:

  1. Install via pypi
  2. Run following commands: from quantulum3.parser import parse; quant = parse('I want 2 liters of wine'); quant[0].to_dict()

Expected behaviour
{'value': 2.0, 'unit': 'litre', 'entity': 'volume', 'surface': '2 liters', 'span': (7, 15), 'uncertainty': None, 'lang': 'en_US'}

Additional information:

  • Python Version: 3.10.12
  • OS: Mac
  • Version: 0.9.0

Additional context
If installing directly from github (9dafd76), it works as expected. I'm guessing the pypi deployment didn't pick up the latest changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions