Skip to content

Conversation

@haimkastner
Copy link
Contributor

No description provided.

@haimkastner
Copy link
Contributor Author

Hi,

Since I have not found a similar library in the Python ecosystem, I have implemented a new package based on the unitnet units definitions, with a very similar API.

https://pypi.org/project/unitsnet-py/

Same as I implemented for the JavaScript ecosystem
https://www.npmjs.com/package/unitsnet-js

I hope that others will find this package useful as well, and thank you for maintaining this awesome package with a vast collection of unit definitions.

README.md Outdated
- ##### Python
- Package on PyPI registery https://pypi.org/project/unitsnet-py
- Generate units source-code https://github.com/haimkastner/unitsnet-py
Copy link
Owner

@angularsen angularsen Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this format:

Get the same strongly typed units on other platforms, based on the same [unit definitions](/Common/UnitDefinitions).

| Language                 | Name        | Links                                                                                                  | Maintainers  |
|--------------------------|-------------|--------------------------------------------------------------------------------------------------------|--------------|
| JavaScript<br>TypeScript | unitsnet-js | [npm](https://www.npmjs.com/package/unitsnet-js), [github](https://github.com/haimkastner/unitsnet-js) | @haimkastner |
| Python                   | unitsnet-py | [pypi](https://pypi.org/project/unitsnet-py), [github](https://github.com/haimkastner/unitsnet-py)     | @haimkastner |

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dig that you are able to reuse the definitions for multiple other languages, increasing the value of the effort that was put in and hopefully getting more contributors on the units. Very cool 🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
And I'm really impressed by the effort put into the definitions to include so many unit systems, while also keeping them in the JSON format and ensuring they're easy to be consumed in other environments.

Regarding your suggestion, It looks good to me, and I will push a new commit with it within the next few minutes.

@angularsen angularsen changed the title Reference to the unitsnet Python package README: Add link to Python package Apr 6, 2023
@angularsen angularsen merged commit 83589d1 into angularsen:master Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants