didactichem 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. didactichem-0.1.0/LICENSE +21 -0
  2. didactichem-0.1.0/MANIFEST.in +6 -0
  3. didactichem-0.1.0/PKG-INFO +53 -0
  4. didactichem-0.1.0/README.md +17 -0
  5. didactichem-0.1.0/pyproject.toml +55 -0
  6. didactichem-0.1.0/setup.cfg +4 -0
  7. didactichem-0.1.0/setup.py +3 -0
  8. didactichem-0.1.0/src/didactichem/__init__.py +55 -0
  9. didactichem-0.1.0/src/didactichem/animate.py +2468 -0
  10. didactichem-0.1.0/src/didactichem/catalog.py +348 -0
  11. didactichem-0.1.0/src/didactichem/colab.py +32 -0
  12. didactichem-0.1.0/src/didactichem/data/drugs.yaml +1173 -0
  13. didactichem-0.1.0/src/didactichem/data/groups_pka.yaml +1360 -0
  14. didactichem-0.1.0/src/didactichem/data/strings.yaml +216 -0
  15. didactichem-0.1.0/src/didactichem/draw2d.py +676 -0
  16. didactichem-0.1.0/src/didactichem/from_smiles.py +124 -0
  17. didactichem-0.1.0/src/didactichem/groups.py +298 -0
  18. didactichem-0.1.0/src/didactichem/i18n.py +44 -0
  19. didactichem-0.1.0/src/didactichem/ionization.py +578 -0
  20. didactichem-0.1.0/src/didactichem/molecule.py +834 -0
  21. didactichem-0.1.0/src/didactichem/nb.py +23 -0
  22. didactichem-0.1.0/src/didactichem/pka_refs.py +315 -0
  23. didactichem-0.1.0/src/didactichem/theme.py +144 -0
  24. didactichem-0.1.0/src/didactichem/view3d.py +297 -0
  25. didactichem-0.1.0/src/didactichem/widgets.py +730 -0
  26. didactichem-0.1.0/src/didactichem.egg-info/PKG-INFO +53 -0
  27. didactichem-0.1.0/src/didactichem.egg-info/SOURCES.txt +31 -0
  28. didactichem-0.1.0/src/didactichem.egg-info/dependency_links.txt +1 -0
  29. didactichem-0.1.0/src/didactichem.egg-info/requires.txt +13 -0
  30. didactichem-0.1.0/src/didactichem.egg-info/top_level.txt +1 -0
  31. didactichem-0.1.0/tests/test_catalog.py +95 -0
  32. didactichem-0.1.0/tests/test_molecules.py +1021 -0
  33. didactichem-0.1.0/tests/test_pka_groups.py +135 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mauricio Bedoya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ include LICENSE
2
+ include README.md
3
+ include pyproject.toml
4
+ graft src/didactichem/data
5
+ recursive-exclude * __pycache__
6
+ recursive-exclude * *.py[cod]
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: didactichem
3
+ Version: 0.1.0
4
+ Summary: Interactive medicinal chemistry lessons for Jupyter and Google Colab (2D/3D, pKa, prodrugs). Bilingual ES/EN.
5
+ Author: DidactiChem contributors
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/maurobedoya/didactichem
8
+ Project-URL: Issues, https://github.com/maurobedoya/didactichem/issues
9
+ Keywords: medicinal-chemistry,pharmacy,pKa,RDKit,colab,education
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Education
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
19
+ Classifier: Framework :: Jupyter
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: rdkit
24
+ Requires-Dist: py3Dmol
25
+ Requires-Dist: ipywidgets
26
+ Requires-Dist: matplotlib
27
+ Requires-Dist: pyyaml
28
+ Requires-Dist: pillow
29
+ Requires-Dist: numpy
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest; extra == "dev"
32
+ Requires-Dist: ruff; extra == "dev"
33
+ Requires-Dist: build; extra == "dev"
34
+ Requires-Dist: twine; extra == "dev"
35
+ Dynamic: license-file
36
+
37
+ # DidactiChem
38
+
39
+ Química farmacéutica interactiva en Jupyter y Colab (2D/3D, pKa, prófármacos). Español por defecto; `dc.set_lang("en")` para inglés.
40
+
41
+ ```bash
42
+ pip install didactichem
43
+ ```
44
+
45
+ ```python
46
+ import didactichem as dc
47
+
48
+ asp = dc.Farmaco("aspirina")
49
+ asp.dibujar_2d()
50
+ asp.ionizacion(pH=7.4)
51
+ asp.animar_proton_2d()
52
+ dc.explorar()
53
+ ```
@@ -0,0 +1,17 @@
1
+ # DidactiChem
2
+
3
+ Química farmacéutica interactiva en Jupyter y Colab (2D/3D, pKa, prófármacos). Español por defecto; `dc.set_lang("en")` para inglés.
4
+
5
+ ```bash
6
+ pip install didactichem
7
+ ```
8
+
9
+ ```python
10
+ import didactichem as dc
11
+
12
+ asp = dc.Farmaco("aspirina")
13
+ asp.dibujar_2d()
14
+ asp.ionizacion(pH=7.4)
15
+ asp.animar_proton_2d()
16
+ dc.explorar()
17
+ ```
@@ -0,0 +1,55 @@
1
+ [project]
2
+ name = "didactichem"
3
+ version = "0.1.0"
4
+ description = "Interactive medicinal chemistry lessons for Jupyter and Google Colab (2D/3D, pKa, prodrugs). Bilingual ES/EN."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ authors = [{ name = "DidactiChem contributors" }]
10
+ keywords = ["medicinal-chemistry", "pharmacy", "pKa", "RDKit", "colab", "education"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Education",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.10",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Topic :: Scientific/Engineering :: Chemistry",
21
+ "Framework :: Jupyter",
22
+ ]
23
+ dependencies = [
24
+ "rdkit",
25
+ "py3Dmol",
26
+ "ipywidgets",
27
+ "matplotlib",
28
+ "pyyaml",
29
+ "pillow",
30
+ "numpy",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ dev = ["pytest", "ruff", "build", "twine"]
35
+
36
+ [build-system]
37
+ requires = ["setuptools>=68"]
38
+ build-backend = "setuptools.build_meta"
39
+
40
+ [tool.setuptools]
41
+ include-package-data = true
42
+
43
+ [tool.setuptools.packages.find]
44
+ where = ["src"]
45
+
46
+ [tool.setuptools.package-data]
47
+ didactichem = ["data/*.yaml"]
48
+
49
+ [tool.pytest.ini_options]
50
+ testpaths = ["tests"]
51
+ pythonpath = ["src"]
52
+
53
+ [project.urls]
54
+ Homepage = "https://github.com/maurobedoya/didactichem"
55
+ Issues = "https://github.com/maurobedoya/didactichem/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup()
@@ -0,0 +1,55 @@
1
+ """DidactiChem: bilingual Colab lessons for medicinal / pharmaceutical chemistry."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("didactichem")
7
+ except PackageNotFoundError:
8
+ __version__ = "0.1.0"
9
+
10
+ from didactichem.catalog import (
11
+ list_courses,
12
+ list_drugs,
13
+ list_themes,
14
+ list_topics,
15
+ listar,
16
+ listar_cursos,
17
+ listar_temas,
18
+ listar_unidades,
19
+ )
20
+ from didactichem.colab import bootstrap
21
+ from didactichem.from_smiles import desde_smiles, from_smiles
22
+ from didactichem.i18n import get_lang, set_lang
23
+ from didactichem.theme import get_theme, set_theme
24
+ from didactichem.molecule import Drug, Farmaco, group, grupo
25
+ from didactichem.pka_refs import list_groups, listar_grupos
26
+ from didactichem.widgets import dibujar_molecula, draw_molecule_editor, explorer, explorar
27
+
28
+ __all__ = [
29
+ "__version__",
30
+ "Drug",
31
+ "Farmaco",
32
+ "bootstrap",
33
+ "desde_smiles",
34
+ "dibujar_molecula",
35
+ "draw_molecule_editor",
36
+ "explorer",
37
+ "explorar",
38
+ "from_smiles",
39
+ "get_lang",
40
+ "get_theme",
41
+ "group",
42
+ "grupo",
43
+ "list_courses",
44
+ "list_drugs",
45
+ "list_groups",
46
+ "list_themes",
47
+ "list_topics",
48
+ "listar",
49
+ "listar_cursos",
50
+ "listar_grupos",
51
+ "listar_temas",
52
+ "listar_unidades",
53
+ "set_lang",
54
+ "set_theme",
55
+ ]