simple-unit-system


Namesimple-unit-system JSON
Version 0.0.8 PyPI version JSON
download
home_pageNone
SummaryA framework for applying physical units and performing unit conversions, for scientific and engineering analyses, based on NIST conversions and constants
upload_time2024-04-13 02:55:20
maintainerNone
docs_urlNone
authorNone
requires_python<4,>=3
licenseNone
keywords unit units physical system si nist engineering scientific measurements weights physics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Physical Unit System Framework
A physical units framework for scientific and engineering programming

This implementation of a units framework for python, has low overhead, and can be expanded upon as desired.
Reference conversion factors and constants are derived from NIST standards when available
Some US customary units use implicit conversions and derivations

## Use:

**import the library and establish the base unit system**

from units import units
C = units('US')

**assign units to a number - in this case 10 lbf of force:**

F = 10*C.LBF

**report the number in units force:**

print( F/C.LBF )

**report the number in units of Newtons:**

print ( F/C.N )

**assign a mixed unit to a value in this case density in SI units:**

rho = 10 *C.KG/C.M**3

**report the unit is US customary units:**

print ( rho / (C.SLUG/C.FT**3) )

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "simple-unit-system",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3",
    "maintainer_email": null,
    "keywords": "unit, units, physical, system, SI, NIST, engineering, scientific, measurements, weights, physics",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/02/2c/77d831fb84093bd08cb4fd4909bcfee511ad24fd18ac700f2aacc69f4b0a/simple-unit-system-0.0.8.tar.gz",
    "platform": null,
    "description": "# Python Physical Unit System Framework\r\nA physical units framework for scientific and engineering programming\r\n\r\nThis implementation of a units framework for python, has low overhead, and can be expanded upon as desired.\r\nReference conversion factors and constants are derived from NIST standards when available\r\nSome US customary units use implicit conversions and derivations\r\n\r\n## Use:\r\n\r\n**import the library and establish the base unit system**\r\n\r\nfrom units import units\r\nC = units('US')\r\n\r\n**assign units to a number - in this case 10 lbf of force:**\r\n\r\nF = 10*C.LBF\r\n\r\n**report the number in units force:**\r\n\r\nprint( F/C.LBF )\r\n\r\n**report the number in units of Newtons:**\r\n\r\nprint ( F/C.N )\r\n\r\n**assign a mixed unit to a value in this case density in SI units:**\r\n\r\nrho = 10 *C.KG/C.M**3\r\n\r\n**report the unit is US customary units:**\r\n\r\nprint ( rho / (C.SLUG/C.FT**3) )\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A framework for applying physical units and performing unit conversions, for scientific and engineering analyses, based on NIST conversions and constants",
    "version": "0.0.8",
    "project_urls": {
        "Bug Reports": "https://github.com/jeffcodez/PhysicalUnits/issues",
        "Source": "https://github.com/jeffcodez/PhysicalUnits"
    },
    "split_keywords": [
        "unit",
        " units",
        " physical",
        " system",
        " si",
        " nist",
        " engineering",
        " scientific",
        " measurements",
        " weights",
        " physics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2430e5ea6a374cb496692a383c73462a47ba5a001a4b3152ac0d0664ccd80c81",
                "md5": "403fcd14457c9fbd21444e08b4ca28b0",
                "sha256": "e1c0a333d91da4ccb7a30de513fc8c3a2fbe50e3e564fc706a6c480e84c722b9"
            },
            "downloads": -1,
            "filename": "simple_unit_system-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "403fcd14457c9fbd21444e08b4ca28b0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3",
            "size": 4715,
            "upload_time": "2024-04-13T02:55:18",
            "upload_time_iso_8601": "2024-04-13T02:55:18.710563Z",
            "url": "https://files.pythonhosted.org/packages/24/30/e5ea6a374cb496692a383c73462a47ba5a001a4b3152ac0d0664ccd80c81/simple_unit_system-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "022c77d831fb84093bd08cb4fd4909bcfee511ad24fd18ac700f2aacc69f4b0a",
                "md5": "339b1d09af9fd0cb4658253d8f7b234c",
                "sha256": "8e9c8fc55d21e2f9dc653d1fd7c0fb67192b39472e82ce007ab67f03d1b0845b"
            },
            "downloads": -1,
            "filename": "simple-unit-system-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "339b1d09af9fd0cb4658253d8f7b234c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3",
            "size": 4100,
            "upload_time": "2024-04-13T02:55:20",
            "upload_time_iso_8601": "2024-04-13T02:55:20.432475Z",
            "url": "https://files.pythonhosted.org/packages/02/2c/77d831fb84093bd08cb4fd4909bcfee511ad24fd18ac700f2aacc69f4b0a/simple-unit-system-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-13 02:55:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jeffcodez",
    "github_project": "PhysicalUnits",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "simple-unit-system"
}
        
Elapsed time: 0.22792s