Skip to main content

A tool to calculate molar mass for middle school students.

Project description

nonebot-plugin-molar-mass

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

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

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

安装

使用 pip 安装:

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

使用 nb-cli 安装:

> nb plugin install nonebot-plugin-molar-mass

使用

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_molar_mass-0.2.3.tar.gz (4.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page