Closed DanielYang59 closed 1 month ago
- Resolve following
mysql
dependency issue:
i think mysql
can be replaced with https://pypi.org/project/mysqlclient (based on the advice here)
Why bother? This is a small feature within pymatgen and we probably can count on a few fingers the number of people who use it. Those who use it can install mysql. In fact, the onus should be on COD to offer a REST API rather than an SQL one. Pls focus efforts on more impactful changes.
This is a small feature within pymatgen and we probably can count on a few fingers the number of people who use it. Those who use it can install mysql.
That's true, I posted this in case someone who need to use SQL might be interested to take over and fix this?
Pls focus efforts on more impactful changes.
That's the reason I opened this instead of fixing it myself. Can we reopen this? This looks like a good first issue if anyone is interested in getting involved in open source.
mysql
dependency issue: https://github.com/materialsproject/pymatgen/blob/41e4c69911f2b724734e0917c436ee5a1de63091/src/pymatgen/ext/cod.py#L70S608
violations (SQL injection): https://github.com/materialsproject/pymatgen/blob/41e4c69911f2b724734e0917c436ee5a1de63091/src/pymatgen/ext/cod.py#L73 https://github.com/materialsproject/pymatgen/blob/41e4c69911f2b724734e0917c436ee5a1de63091/src/pymatgen/ext/cod.py#L109Help needed.