# Перевод единиц измерения в систему СИ
## Описание
Библиотека позволяет переводить единицы измерения в периодическую систему СИ (toSI), а также из системы СИ в нужную единицу измерения (fromSI).
## Установка
pip install "Название библиотеки"
## Использование
### В систему СИ (toSI)
from si_converter import SIConverter
converter = SIConverter()
result = converter.convert_from_si(3600, "time", "h")
print(f"3600 секунд в часах: {result} ч")
### Из системы СИ (fromSI)
from si_converter import SIConverter
converter = SIConverter()
result = converter.convert_to_si(100, "mass", "g")
print(f"100 граммов в килограммах: {result} кг")
Raw data
{
"_id": null,
"home_page": null,
"name": "SI-converter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "system si converter",
"author": "Yanuskevich M.D.",
"author_email": "mikhal_2005@mail.ru",
"download_url": "https://files.pythonhosted.org/packages/f7/e9/d655f676497222d7a4459ed48fbb34511d21771fa45b2148fdbc873c0614/si_converter-2.0.0.tar.gz",
"platform": null,
"description": "# \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0435\u0434\u0438\u043d\u0438\u0446 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0421\u0418\r\n## \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\r\n\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0421\u0418 (toSI), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0421\u0418 \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f (fromSI).\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\npip install \"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438\"\r\n\r\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\r\n### \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0421\u0418 (toSI)\r\n\r\nfrom si_converter import SIConverter \r\nconverter = SIConverter() \r\nresult = converter.convert_from_si(3600, \"time\", \"h\") \r\nprint(f\"3600 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432 \u0447\u0430\u0441\u0430\u0445: {result} \u0447\")\r\n\r\n### \u0418\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0421\u0418 (fromSI)\r\n\r\nfrom si_converter import SIConverter \r\nconverter = SIConverter() \r\nresult = converter.convert_to_si(100, \"mass\", \"g\") \r\nprint(f\"100 \u0433\u0440\u0430\u043c\u043c\u043e\u0432 \u0432 \u043a\u0438\u043b\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445: {result} \u043a\u0433\") \r\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "2.0.0",
"project_urls": null,
"split_keywords": [
"system",
"si",
"converter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df8eec0fbfa37946c47083ec4fb18646cafd3a0330708f478cd6c9fe87d9774c",
"md5": "84e2ef20fe002675c9627ac90209369b",
"sha256": "8a24a82ffb8fca2ec5448d15114b0dc2baff6ec27a0daacae5042265efa81904"
},
"downloads": -1,
"filename": "SI_converter-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "84e2ef20fe002675c9627ac90209369b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 3713,
"upload_time": "2024-12-24T11:20:54",
"upload_time_iso_8601": "2024-12-24T11:20:54.299250Z",
"url": "https://files.pythonhosted.org/packages/df/8e/ec0fbfa37946c47083ec4fb18646cafd3a0330708f478cd6c9fe87d9774c/SI_converter-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f7e9d655f676497222d7a4459ed48fbb34511d21771fa45b2148fdbc873c0614",
"md5": "cc0603c0628af1029bd508dbe64b3e19",
"sha256": "3a3040f602ebb32f277b50c40d03094f8c29d2c1493121460c3d643f495fa170"
},
"downloads": -1,
"filename": "si_converter-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "cc0603c0628af1029bd508dbe64b3e19",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 2522,
"upload_time": "2024-12-24T11:20:55",
"upload_time_iso_8601": "2024-12-24T11:20:55.850748Z",
"url": "https://files.pythonhosted.org/packages/f7/e9/d655f676497222d7a4459ed48fbb34511d21771fa45b2148fdbc873c0614/si_converter-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-24 11:20:55",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "si-converter"
}