Skip to main content

UnitCvrt

Unit Conversion System

Author

Shinsuke Sakai Yokohama National University

Installation

You can install the package via pip:

pip install UnitCvrt

License

This project is licensed under the MIT License - see the LICENSE file for details.

Simple usage

First, create an instance and check the registered unit names.

from UnitCvrt import UnitConv as uc
conv=uc.Convert()
conv.Registered()

Select a unit name from the list of registered units, then convert it using the following steps. The example below demonstrates how to convert 1 meter to inch for the case of length.

conv.SetUnit('Length')
conv.Eval('m','in',1)

You can output the unit conversion table using the following command. You can check the unit names from this output.

conv.Table()

Similarly, the unit conversion of density can be carried out according to the following steps.

conv.SetUnit('Density')
conv.Eval('N/m^3','kgf/mm^3',1)

Alternative method

from UnitCvrt import UnitConv as uc
length=uc.Length()
# Conversion Table
print(length.ShowDict())
print(length.Conv('m','in',1))
density=uc.Density()
# Conversion Table
print(density.ShowDict())
print(density.Conv('N/m^3','kgf/mm^3',1))

Metadata

Release files for unitcvrt 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unitcvrt 0.1.7
File Size Uploaded Provenance Actions
unitcvrt-0.1.7.tar.gz 5.5 kB Without provenance Details for unitcvrt-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unitcvrt 0.1.7
File Interpreter ABI Platform Actions
unitcvrt-0.1.7-py3-none-any.whl Python 3 none any Details for unitcvrt-0.1.7-py3-none-any.whl

Total release size: 11.2 kB

Release files / unitcvrt-0.1.7.tar.gz

Download URL unitcvrt-0.1.7.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b4d929f141b01ca47662058b05de0fbcb3c86a6a390b50f588a2e0b061f27fb7
BLAKE2b-256 checksum
How to use checksums
ff1f092f05cef670263487754edeedeb3a2b53dccb432970d5464dda0c1882bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release files / unitcvrt-0.1.7-py3-none-any.whl

Download URL unitcvrt-0.1.7-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5158c22b852c30d252fa8376cace0194122894849b3797a1c2c977de71439dd4
BLAKE2b-256 checksum
How to use checksums
94c3d16c6c3a824a225af0c6ac3166f5ddb91d425f4e944a3e173dd5c743eb6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Security for unitcvrt 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page