nonebot-plugin-molar-mass


Namenonebot-plugin-molar-mass JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/kifuan/nonebot-plugin-molar-mass
SummaryA tool to calculate molar mass for middle school students.
upload_time2023-03-19 03:38:03
maintainer
docs_urlNone
authorkifuan
requires_python>=3.9,<4.0
license
keywords nonebot chemistry molar-mass
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nonebot-plugin-molar-mass

本项目为 `Nonebot2` 插件,用来计算摩尔质量或相对分子质量。

因为我每次遇到计算题都要去翻课本,然后按计算器,不胜其烦,导致了这个库的出现。

可以查看本项目的 `CLI` 分支,直接使用 `cli` 版本。

# 安装

使用 `pip` 安装:

```bash
> pip install -U nonebot-plugin-molar-mass
```

使用 `nb-cli` 安装:

```bash
> nb plugin install nonebot-plugin-molar-mass
```

# 使用

发送 `/摩尔质量 化学式` 或 `/相对分子质量 化学式` 或 `/mol 化学式`。注意,这里的斜杠指的是 `COMMAND_START`,你可以参考 Nonebot 官方文档配置。

以下为几组输入输出的例子:

```
> NaOH
40
> H2SO4
98
> 2HCl
73
> (NH4)2SO4
132
> CuSO4+5H2O
250
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kifuan/nonebot-plugin-molar-mass",
    "name": "nonebot-plugin-molar-mass",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot,chemistry,molar-mass",
    "author": "kifuan",
    "author_email": "kifuan@foxmail.com",
    "download_url": "https://files.pythonhosted.org/packages/23/c3/53aa0cf10e2c5417cbbfcec76292e350ec5934e93d653905f10f1751257a/nonebot_plugin_molar_mass-0.2.3.tar.gz",
    "platform": null,
    "description": "# nonebot-plugin-molar-mass\n\n\u672c\u9879\u76ee\u4e3a `Nonebot2` \u63d2\u4ef6\uff0c\u7528\u6765\u8ba1\u7b97\u6469\u5c14\u8d28\u91cf\u6216\u76f8\u5bf9\u5206\u5b50\u8d28\u91cf\u3002\n\n\u56e0\u4e3a\u6211\u6bcf\u6b21\u9047\u5230\u8ba1\u7b97\u9898\u90fd\u8981\u53bb\u7ffb\u8bfe\u672c\uff0c\u7136\u540e\u6309\u8ba1\u7b97\u5668\uff0c\u4e0d\u80dc\u5176\u70e6\uff0c\u5bfc\u81f4\u4e86\u8fd9\u4e2a\u5e93\u7684\u51fa\u73b0\u3002\n\n\u53ef\u4ee5\u67e5\u770b\u672c\u9879\u76ee\u7684 `CLI` \u5206\u652f\uff0c\u76f4\u63a5\u4f7f\u7528 `cli` \u7248\u672c\u3002\n\n# \u5b89\u88c5\n\n\u4f7f\u7528 `pip` \u5b89\u88c5\uff1a\n\n```bash\n> pip install -U nonebot-plugin-molar-mass\n```\n\n\u4f7f\u7528 `nb-cli` \u5b89\u88c5\uff1a\n\n```bash\n> nb plugin install nonebot-plugin-molar-mass\n```\n\n# \u4f7f\u7528\n\n\u53d1\u9001 `/\u6469\u5c14\u8d28\u91cf \u5316\u5b66\u5f0f` \u6216 `/\u76f8\u5bf9\u5206\u5b50\u8d28\u91cf \u5316\u5b66\u5f0f` \u6216 `/mol \u5316\u5b66\u5f0f`\u3002\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684\u659c\u6760\u6307\u7684\u662f `COMMAND_START`\uff0c\u4f60\u53ef\u4ee5\u53c2\u8003 Nonebot \u5b98\u65b9\u6587\u6863\u914d\u7f6e\u3002\n\n\u4ee5\u4e0b\u4e3a\u51e0\u7ec4\u8f93\u5165\u8f93\u51fa\u7684\u4f8b\u5b50\uff1a\n\n```\n> NaOH\n40\n> H2SO4\n98\n> 2HCl\n73\n> (NH4)2SO4\n132\n> CuSO4+5H2O\n250\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A tool to calculate molar mass for middle school students.",
    "version": "0.2.3",
    "split_keywords": [
        "nonebot",
        "chemistry",
        "molar-mass"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61446e30d039e13fe765640d877a3dd0e9733187e07c0fa3e057778e8c172160",
                "md5": "6b2bb490e660b653b1ff0dd230820ca3",
                "sha256": "ac483d2c3e1b735add601203419e64c156b4bdb1d864d602c1d6a4470cd84524"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_molar_mass-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6b2bb490e660b653b1ff0dd230820ca3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 5685,
            "upload_time": "2023-03-19T03:38:01",
            "upload_time_iso_8601": "2023-03-19T03:38:01.096308Z",
            "url": "https://files.pythonhosted.org/packages/61/44/6e30d039e13fe765640d877a3dd0e9733187e07c0fa3e057778e8c172160/nonebot_plugin_molar_mass-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23c353aa0cf10e2c5417cbbfcec76292e350ec5934e93d653905f10f1751257a",
                "md5": "c51112f31ebc8c2610a9864b431de812",
                "sha256": "7ad815724eaa361fa22bd590f80d44e05248e9d6c87f952cb67b7fc662bf5d42"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_molar_mass-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "c51112f31ebc8c2610a9864b431de812",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 4785,
            "upload_time": "2023-03-19T03:38:03",
            "upload_time_iso_8601": "2023-03-19T03:38:03.451943Z",
            "url": "https://files.pythonhosted.org/packages/23/c3/53aa0cf10e2c5417cbbfcec76292e350ec5934e93d653905f10f1751257a/nonebot_plugin_molar_mass-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-19 03:38:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "kifuan",
    "github_project": "nonebot-plugin-molar-mass",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-molar-mass"
}
        
Elapsed time: 0.05444s