pint-cf: A Lark-based parser and units registry for CF-compliance with pint #632
Replies: 2 comments 9 replies
-
|
Beautiful! I'd be happy to switch out our regex stuff for this. cc @aulemahal |
Beta Was this translation helpful? Give feedback.
-
|
Hi @pgamez, I'm reaching out on behalf of the SciTools organization, who maintain cf-units. We think pint-cf looks seriously exciting! We had the same thought as you: there is a need for small project that provides CF-compliant Pint units, and we had almost started writing our own parser, so we're very glad you shared this project when you did ❤️. We are keen to use Pint for unit operations since it is more widely accepted by the community, and it would enable Pip-installation (UDUNITS2 prevents this). In our own projects, we would love pint-cf as a dependency, as an alternative to cf-units. So, we have some questions:
Happy to talk in any form you like; here, on your repo, or on a call, whatever 👍 Thanks for your time! Footnotes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(I’ve also shared this on MetPy’s discussions)
Hi all,
I’ve recently published
pint-cf, a lightweight package designed to bring CF-compliant unit support to pint. While excellent tools like yours and MetPy already handle many use cases, they often rely on regex-based preprocessors or partial custom definitions to bridge the gap between UDUNITS-2 and Pint.This package tries to provide a more formal approach:
Code is available at https://github.com/pgamez/pint-cf
I would be very grateful if you could take a look and share any feedback.
I hope you find it interesting!
Thanks,
Pedro
Beta Was this translation helpful? Give feedback.
All reactions