Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an attrs-based parser API #55

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Add an attrs-based parser API #55

wants to merge 4 commits into from

Conversation

jwodder
Copy link
Collaborator

@jwodder jwodder commented Dec 19, 2023

Closes #52.

To do:

  • Ensure that subclassing works!
    • Subclasses of parsable need to be decorated with @parsable as well in order to guarantee that parsing them works
    • A subclass of a parsable that is also decorated with @parsable should fall back to the parents' name_decoder and other @parsable-specific params if the subclass doesn't specify them
      • How should this work with multiple inheritance?
      • Maybe don't inherit @parsable params?
  • Use typing.assert_type() in tests?
  • Write docs
    • Document mypy plugin
  • Update changelog
  • Rewrite long description
  • Change the package's short description to no longer mention the "argparse-like-ness"
  • Deprecate the old argparse-like parser

@jwodder jwodder added enhancement New feature or request therefor attrs-parser in progress Currently under development labels Dec 19, 2023
@jwodder jwodder added this to the Attrs-Based Parser milestone Dec 19, 2023
@jwodder jwodder self-assigned this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attrs-parser enhancement New feature or request therefor in progress Currently under development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a new parser API built on attrs for defining classes instantiated from scanned stanzas
1 participant