技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
skill-038【数据与研究】Manage and query chemical databases for efficient data retrieval and organization of chemical compounds.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill empowers users to manage and query chemical databases effectively. It provides functionalities to store, retrieve, and organize data related to chemical compounds, enhancing research capabilities in chemistry.
from chemical_db_manager import ChemicalDatabase
# Initialize a new chemical database
db = ChemicalDatabase("my_chemical_db")
# Create the database structure
db.create_structure()
To add new compounds into the database:
compound_data = {
"name": "Acetic Acid",
"formula": "C2H4O2",
"molecular_weight": 60.05,
"boiling_point": 118.1
}
db.insert_compound(compound_data)
Retrieve compounds based on specific criteria:
results = db.query_compounds(molecular_weight=60)
for compound in results:
print(f"Compound: {compound['name']}, Formula: {compound['formula']}")
For in-depth documentation on querying and data management, visit docs/chemical_database_manager.md.