MoleditPy 4.13.0__tar.gz → 5.0.0a2__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.
- moleditpy-5.0.0a2/DISTRIBUTION.md +29 -0
- moleditpy-5.0.0a2/LICENSE +165 -0
- moleditpy-5.0.0a2/LICENSING.md +11 -0
- moleditpy-5.0.0a2/PKG-INFO +97 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/README.md +13 -5
- moleditpy-5.0.0a2/THIRD_PARTY_NOTICES.md +20 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/pyproject.toml +7 -7
- moleditpy-5.0.0a2/src/MoleditPy.egg-info/PKG-INFO +97 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/MoleditPy.egg-info/SOURCES.txt +5 -0
- moleditpy-5.0.0a2/src/MoleditPy.egg-info/requires.txt +10 -0
- moleditpy-5.0.0a2/src/moleditpy/__init__.py +19 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/__main__.py +1 -1
- {moleditpy-4.13.0/src/moleditpy/ui/settings_tabs → moleditpy-5.0.0a2/src/moleditpy/core}/__init__.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/core/mol_geometry.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/core/molecular_data.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/core/stereo_check.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/main.py +4 -7
- {moleditpy-4.13.0/src/moleditpy/utils → moleditpy-5.0.0a2/src/moleditpy/plugins}/__init__.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/plugins/plugin_interface.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/plugins/plugin_manager.py +47 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/plugins/plugin_manager_window.py +4 -4
- moleditpy-5.0.0a2/src/moleditpy/ui/__init__.py +15 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/about_dialog.py +5 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/align_plane_dialog.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/alignment_dialog.py +11 -5
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/analysis_window.py +8 -8
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/angle_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/app_state.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/atom_item.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/atom_picking.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/base_picking_dialog.py +11 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/bond_item.py +10 -8
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/bond_length_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/calculation_worker.py +18 -241
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/chain_mixin.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/chirality_warning_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/color_settings_dialog.py +6 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/compute_logic.py +51 -34
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/constrained_optimization_dialog.py +12 -8
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/custom_interactor_style.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/custom_qt_interactor.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/dialog_3d_picking_mixin.py +5 -5
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/dialog_logic.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/dihedral_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/edit_3d_logic.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/edit_actions_logic.py +5 -5
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/export_logic.py +7 -7
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/geometry_base_dialog.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/io_logic.py +13 -13
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/main_window.py +5 -5
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/main_window_init.py +41 -47
- moleditpy-5.0.0a2/src/moleditpy/ui/menu_utils.py +14 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/mirror_dialog.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/molecular_scene_handler.py +8 -7
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/molecule_scene.py +6 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/move_dialog_mixin.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/move_group_dialog.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/move_selected_atoms_dialog.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/periodic_table_dialog.py +8 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/planarize_dialog.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/plugin_menu_manager.py +11 -9
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/preview_molecule.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/sdf_record_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_dialog.py +3 -3
- {moleditpy-4.13.0/src/moleditpy/core → moleditpy-5.0.0a2/src/moleditpy/ui/settings_tabs}/__init__.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_2d_cleanup_tab.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_2d_tab.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_3d_tabs.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_labels_tab.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_other_tab.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/settings_tabs/settings_tab_base.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/string_importers.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/template_preview_item.py +4 -4
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/template_preview_view.py +8 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/translation_dialog.py +3 -3
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/ui_manager.py +7 -7
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/user_template_dialog.py +7 -6
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/view_3d_logic.py +5 -5
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/ui/zoomable_view.py +8 -6
- {moleditpy-4.13.0/src/moleditpy/plugins → moleditpy-5.0.0a2/src/moleditpy/utils}/__init__.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/constants.py +2 -2
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/default_settings.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/finite_float.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/hit_radius.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/label_style.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/sdf_records.py +1 -1
- moleditpy-5.0.0a2/src/moleditpy/utils/sip_isdeleted_safe.py +23 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/suppress_log.py +1 -1
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/utils/system_utils.py +1 -1
- moleditpy-4.13.0/PKG-INFO +0 -760
- moleditpy-4.13.0/src/MoleditPy.egg-info/PKG-INFO +0 -760
- moleditpy-4.13.0/src/MoleditPy.egg-info/requires.txt +0 -11
- moleditpy-4.13.0/src/moleditpy/__init__.py +0 -19
- moleditpy-4.13.0/src/moleditpy/ui/__init__.py +0 -25
- moleditpy-4.13.0/src/moleditpy/utils/sip_isdeleted_safe.py +0 -41
- /moleditpy-4.13.0/LICENSE → /moleditpy-5.0.0a2/COPYING +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/setup.cfg +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/MoleditPy.egg-info/dependency_links.txt +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/MoleditPy.egg-info/entry_points.txt +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/MoleditPy.egg-info/top_level.txt +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/assets/file_icon.ico +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/assets/icon.icns +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/assets/icon.ico +0 -0
- {moleditpy-4.13.0 → moleditpy-5.0.0a2}/src/moleditpy/assets/icon.png +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Distribution, source, and replacing libraries
|
|
2
|
+
|
|
3
|
+
MoleditPy is LGPL-3.0-or-later. Read `LICENSE` together with `COPYING`. Recipients may inspect and modify the program, replace LGPL libraries, and reverse engineer for debugging their modifications. No warranty is provided.
|
|
4
|
+
|
|
5
|
+
## Source distributions and installed Python packages
|
|
6
|
+
|
|
7
|
+
The corresponding MoleditPy source, tests, build specifications and release workflows are in https://github.com/HiroYokoyama/python_molecular_editor. Each frozen build includes `licenses/build-manifest.json` with its exact source commit and dependency versions. Release archives must accompany or link the exact corresponding source and build instructions. The wheel and source archive include both GNU license texts and these notices.
|
|
8
|
+
|
|
9
|
+
For a Python installation, create a virtual environment, install `moleditpy` and substitute compatible PySide6-Essentials/Shiboken6 wheels in that environment with pip. Running from source uses those installed shared libraries directly. Example:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
python -m venv .venv
|
|
13
|
+
# Activate .venv with the command for your shell.
|
|
14
|
+
python -m pip install -e ./moleditpy
|
|
15
|
+
python -m pip install --force-reinstall /path/to/modified/shiboken6.whl /path/to/modified/PySide6_Essentials.whl
|
|
16
|
+
python -m moleditpy --safe
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Frozen Windows and macOS applications
|
|
20
|
+
|
|
21
|
+
The application is an unpacked PyInstaller directory / `.app` bundle, with Qt and PySide6 shared libraries stored outside the executable archive. It does not statically link those libraries into MoleditPy. Keep a backup, close the application, and replace a compatible set of Qt libraries and matching PySide6/Shiboken6 bindings. Use the architecture, Qt ABI and versions recorded in `licenses/build-manifest.json`.
|
|
22
|
+
|
|
23
|
+
On Windows the files are normally below `MoleditPy/_internal/PySide6/` (Qt6Core.dll, Qt6Gui.dll, Qt6Widgets.dll and associated bindings), with Shiboken6 below `_internal/shiboken6/`. Replace the corresponding files and plugin directories while preserving the layout. On macOS inspect `MoleditPy.app/Contents/Frameworks/PySide6/` and `Contents/Frameworks/`; replace matching `.framework`, `.dylib` and binding files and retain relative paths. Bundled paths vary with PyInstaller versions; locate the external `QtCore`/`Qt6Core` shared library first. macOS may require ad-hoc signing of a locally modified bundle: `codesign --force --deep --sign - MoleditPy.app`. This is a local platform requirement; MoleditPy does not require the publisher's signature.
|
|
24
|
+
|
|
25
|
+
A reliable alternative to file replacement is to rebuild with modified dependencies: check out the manifest commit, install the modified compatible wheels in a clean environment, install `moleditpy` and PyInstaller, then run `pyinstaller --clean --noconfirm windows-installer/script/MoleditPy.spec` or `macos-installer/script/MoleditPy.spec` from the repository root. The build uses normal dynamic Qt libraries and does not impose a signature or activation lock.
|
|
26
|
+
|
|
27
|
+
## Corresponding dependency source
|
|
28
|
+
|
|
29
|
+
The manifest records installed versions and upstream source locations. Obtain Qt/PySide6 sources matching those versions from https://download.qt.io/official_releases/QtForPython/ and https://download.qt.io/official_releases/qt/, or their matching tags at https://code.qt.io/pyside/pyside-setup.git and https://code.qt.io/qt/qt5.git. Follow that version's upstream build instructions and preserve its third-party source notices. Distribution of modified libraries also requires their modified corresponding source under their applicable licenses. Release distributors must make required corresponding source available alongside the binaries, or use another compliant LGPL/GPL source-delivery method; an upstream project link alone is not a substitute for that obligation.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Licensing and independently developed plugins
|
|
2
|
+
|
|
3
|
+
MoleditPy 5.0.0a1 and later is licensed under the GNU Lesser General Public License, version 3 or (at your option) any later version (LGPL-3.0-or-later). `LICENSE` contains LGPLv3's additional permissions; `COPYING` contains the incorporated GPLv3 terms. Earlier releases keep their original license.
|
|
4
|
+
|
|
5
|
+
Copyright holder permission: independently developed plugins that use MoleditPy's documented plugin API may be distributed under any license, including proprietary licenses. Their authors choose their license and retain their copyright. This permission does not relicense copied or modified MoleditPy code, or code/libraries belonging to third parties. Those components retain their own licenses and obligations. Existing plugins retain their current licenses unless their authors explicitly change them.
|
|
6
|
+
|
|
7
|
+
Modifications to MoleditPy itself remain subject to the LGPL. Distribution terms must allow users to modify the covered components and reverse engineer for debugging their modifications as required by LGPLv3. No separate activation, signature check, or plugin restriction blocks modified builds.
|
|
8
|
+
|
|
9
|
+
This migration was authorized by the project owner. The repository attribution audit (`git shortlog -sne`) identifies Hiromichi Yokoyama/HiroYokoyama identities, automation bots, and CodexSandboxOffline under the owner's email. Third-party code is excluded from the relicensing grant.
|
|
10
|
+
|
|
11
|
+
See [distribution and library replacement instructions](DISTRIBUTION.md) and [third-party notices](THIRD_PARTY_NOTICES.md).
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: MoleditPy
|
|
3
|
+
Version: 5.0.0a2
|
|
4
|
+
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
|
+
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
|
+
License-Expression: LGPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://github.com/HiroYokoyama/python_molecular_editor
|
|
8
|
+
Project-URL: Issues, https://github.com/HiroYokoyama/python_molecular_editor/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
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: Programming Language :: Python :: 3.14
|
|
19
|
+
Requires-Python: <3.15,>=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: COPYING
|
|
23
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
24
|
+
License-File: DISTRIBUTION.md
|
|
25
|
+
License-File: LICENSING.md
|
|
26
|
+
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: pyside6-essentials<6.10,>=6.9; python_version < "3.10"
|
|
28
|
+
Requires-Dist: pyside6-essentials<6.12,>=6.10; python_version >= "3.10"
|
|
29
|
+
Requires-Dist: pyvista<0.50
|
|
30
|
+
Requires-Dist: pyvistaqt<0.14
|
|
31
|
+
Requires-Dist: rdkit<2026.4
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# MoleditPy — A Python Molecular Editor
|
|
35
|
+
|
|
36
|
+
[](https://doi.org/10.5281/zenodo.17268532)
|
|
37
|
+
[](https://badge.fury.io/py/MoleditPy)
|
|
38
|
+
[](https://pypi.org/project/MoleditPy/)
|
|
39
|
+
[](https://www.gnu.org/licenses/lgpl-3.0)
|
|
40
|
+
[](https://github.com/HiroYokoyama/python_molecular_editor/actions)
|
|
41
|
+
[](https://codecov.io/gh/HiroYokoyama/python_molecular_editor)
|
|
42
|
+
[](https://pepy.tech/projects/moleditpy)
|
|
43
|
+
[](https://github.com/sponsors/HiroYokoyama)
|
|
44
|
+
|
|
45
|
+
**MoleditPy** is a programmable, cross-platform molecular editor built with PySide6, RDKit, and PyVista. It takes you from a 2D sketch to an editable 3D structure and out to input files for DFT calculations, and it can be extended with plain Python plugins.
|
|
46
|
+
|
|
47
|
+
**[Website](https://hiroyokoyama.github.io/python_molecular_editor/)** · **[User manual](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual)** ([日本語](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual-JP)) · **[Plugins](https://hiroyokoyama.github.io/moleditpy-plugins/)** · **[Wiki](https://github.com/HiroYokoyama/python_molecular_editor/wiki)**
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
## Features
|
|
52
|
+
|
|
53
|
+
- **2D drawing** — atoms, bonds, ring templates, alkyl chains, charges, radicals, stereo bonds, and the full periodic table.
|
|
54
|
+
- **3D editing** — 2D-to-3D conversion, dragging atoms in the 3D view, exact bond lengths, angles, and dihedrals, and MMFF94/UFF optimization with constraints.
|
|
55
|
+
- **Analysis and export** — molecular properties, R/S labels, MOL/SDF/XYZ/SMILES/InChI import and export, PNG/SVG images, and STL/OBJ for 3D printing.
|
|
56
|
+
- **Plugins** — drop a Python file into the plugin folder to add menu actions and tools. Browse the official collection in the [Plugin Explorer](https://hiroyokoyama.github.io/moleditpy-plugins/explorer/).
|
|
57
|
+
|
|
58
|
+
See the [user manual](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual) for every feature and keyboard shortcut.
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
python -m pip install moleditpy-installer
|
|
64
|
+
python -m moleditpy_installer
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The first command installs MoleditPy and the shortcut helper; the second creates shortcuts and file associations. The same `moleditpy` package is used on Windows, macOS, and Linux. MoleditPy 5 requires Python 3.9–3.14. For an existing environment, uninstall `moleditpy-linux` and `openbabel-wheel` before upgrading. The core uses PySide6-Essentials and does not require Open Babel. Start the app from the shortcut or with:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
moleditpy
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The first launch can take a while as RDKit and the other libraries initialize. A [Windows installer](https://hiroyokoyama.github.io/python_molecular_editor/windows-installer/windows_installer), a [macOS app bundle](https://hiroyokoyama.github.io/python_molecular_editor/macos-installer/macos_installer), and a [Docker image](https://github.com/HiroYokoyama/python_molecular_editor_docker) are also available.
|
|
74
|
+
|
|
75
|
+
> **Security note:** the legacy `.pmeraw` project format uses Python pickle, which can execute arbitrary code when loaded. Only open `.pmeraw` files you created yourself, and use the JSON-based `.pmeprj` format for sharing.
|
|
76
|
+
|
|
77
|
+
To install the application directly without the shortcut helper:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
python -m pip install MoleditPy
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Citation
|
|
84
|
+
|
|
85
|
+
If you use this software in your work, please cite it as follows:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Yokoyama, H. (2026). MoleditPy — A Python-based molecular editing software. Zenodo. https://doi.org/10.5281/zenodo.17268532
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Please also cite the plugins you used; see [Citation in the plugin collection](https://github.com/HiroYokoyama/moleditpy-plugins#citation).
|
|
92
|
+
|
|
93
|
+
## License & Disclaimer
|
|
94
|
+
|
|
95
|
+
This project is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later) - see the [LICENSE](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSE) file for details. As open-source software, it is provided 'as is' without warranty of any kind, and the author assumes no responsibility or liability for the results. Although outputs have been carefully verified, users are strongly encouraged to independently check and validate them for critical applications (such as publications). If you encounter any bugs, please open an issue.
|
|
96
|
+
|
|
97
|
+
Independently developed plugins may use any license, including proprietary licenses. Existing plugins retain their licenses. See [licensing policy](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSING.md) and [binary distribution instructions](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/DISTRIBUTION.md).
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
[](https://doi.org/10.5281/zenodo.17268532)
|
|
4
4
|
[](https://badge.fury.io/py/MoleditPy)
|
|
5
5
|
[](https://pypi.org/project/MoleditPy/)
|
|
6
|
-
[](https://www.gnu.org/licenses/lgpl-3.0)
|
|
7
7
|
[](https://github.com/HiroYokoyama/python_molecular_editor/actions)
|
|
8
8
|
[](https://codecov.io/gh/HiroYokoyama/python_molecular_editor)
|
|
9
9
|
[](https://pepy.tech/projects/moleditpy)
|
|
10
10
|
[](https://github.com/sponsors/HiroYokoyama)
|
|
11
11
|
|
|
12
|
-
**MoleditPy** is a programmable, cross-platform molecular editor built with
|
|
12
|
+
**MoleditPy** is a programmable, cross-platform molecular editor built with PySide6, RDKit, and PyVista. It takes you from a 2D sketch to an editable 3D structure and out to input files for DFT calculations, and it can be extended with plain Python plugins.
|
|
13
13
|
|
|
14
14
|
**[Website](https://hiroyokoyama.github.io/python_molecular_editor/)** · **[User manual](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual)** ([日本語](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual-JP)) · **[Plugins](https://hiroyokoyama.github.io/moleditpy-plugins/)** · **[Wiki](https://github.com/HiroYokoyama/python_molecular_editor/wiki)**
|
|
15
15
|
|
|
@@ -27,11 +27,11 @@ See the [user manual](https://hiroyokoyama.github.io/python_molecular_editor/man
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
pip install moleditpy-installer
|
|
30
|
+
python -m pip install moleditpy-installer
|
|
31
31
|
python -m moleditpy_installer
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The first command installs the
|
|
34
|
+
The first command installs MoleditPy and the shortcut helper; the second creates shortcuts and file associations. The same `moleditpy` package is used on Windows, macOS, and Linux. MoleditPy 5 requires Python 3.9–3.14. For an existing environment, uninstall `moleditpy-linux` and `openbabel-wheel` before upgrading. The core uses PySide6-Essentials and does not require Open Babel. Start the app from the shortcut or with:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
moleditpy
|
|
@@ -41,6 +41,12 @@ The first launch can take a while as RDKit and the other libraries initialize. A
|
|
|
41
41
|
|
|
42
42
|
> **Security note:** the legacy `.pmeraw` project format uses Python pickle, which can execute arbitrary code when loaded. Only open `.pmeraw` files you created yourself, and use the JSON-based `.pmeprj` format for sharing.
|
|
43
43
|
|
|
44
|
+
To install the application directly without the shortcut helper:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python -m pip install MoleditPy
|
|
48
|
+
```
|
|
49
|
+
|
|
44
50
|
## Citation
|
|
45
51
|
|
|
46
52
|
If you use this software in your work, please cite it as follows:
|
|
@@ -53,4 +59,6 @@ Please also cite the plugins you used; see [Citation in the plugin collection](h
|
|
|
53
59
|
|
|
54
60
|
## License & Disclaimer
|
|
55
61
|
|
|
56
|
-
This project is licensed under the GNU General Public License v3.0 (
|
|
62
|
+
This project is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later) - see the [LICENSE](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSE) file for details. As open-source software, it is provided 'as is' without warranty of any kind, and the author assumes no responsibility or liability for the results. Although outputs have been carefully verified, users are strongly encouraged to independently check and validate them for critical applications (such as publications). If you encounter any bugs, please open an issue.
|
|
63
|
+
|
|
64
|
+
Independently developed plugins may use any license, including proprietary licenses. Existing plugins retain their licenses. See [licensing policy](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSING.md) and [binary distribution instructions](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/DISTRIBUTION.md).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
MoleditPy is LGPL-3.0-or-later. Its license does not replace third-party licenses.
|
|
4
|
+
|
|
5
|
+
| Component | License / source |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| PySide6-Essentials and Shiboken6 | LGPL-3.0 (or other terms offered by Qt); https://code.qt.io/pyside/pyside-setup.git |
|
|
8
|
+
| Qt Core, GUI, Widgets, SVG and required support libraries | LGPL-3.0 (or other terms offered by Qt); https://code.qt.io/qt/qtbase.git and https://code.qt.io/qt/qtsvg.git |
|
|
9
|
+
| RDKit | BSD-3-Clause; https://github.com/rdkit/rdkit |
|
|
10
|
+
| PyVista and pyvistaqt | MIT; https://github.com/pyvista/pyvista and https://github.com/pyvista/pyvistaqt |
|
|
11
|
+
| VTK | BSD-3-Clause; https://gitlab.kitware.com/vtk/vtk |
|
|
12
|
+
| NumPy | BSD-3-Clause and bundled notices; https://github.com/numpy/numpy |
|
|
13
|
+
| Python | PSF license and included notices; https://github.com/python/cpython |
|
|
14
|
+
| PyInstaller bootloader | GPL-2.0-or-later with the PyInstaller exception; https://github.com/pyinstaller/pyinstaller |
|
|
15
|
+
|
|
16
|
+
Dependency wheels and frozen distributions include additional libraries (for example image codecs, numerical libraries, and platform support). Preserve their accompanying license and copyright notices. Build archives include installed dependency license directories under `licenses/third-party` and a version/source manifest.
|
|
17
|
+
|
|
18
|
+
The core does not depend on or bundle Open Babel. Optional plugins and their dependencies carry independent license notices. The frozen build deliberately excludes unused Qt modules, including GPL-only add-on modules; installing arbitrary Qt add-ons can change a distributor's obligations.
|
|
19
|
+
|
|
20
|
+
Official Qt licensing information: https://doc.qt.io/qt-6/licensing.html and https://doc.qt.io/qtforpython-6/licenses.html. GNU license texts: https://www.gnu.org/licenses/lgpl-3.0.html and https://www.gnu.org/licenses/gpl-3.0.html.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=77.0"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "MoleditPy"
|
|
7
7
|
|
|
8
|
-
version = "
|
|
8
|
+
version = "5.0.0a2"
|
|
9
9
|
|
|
10
|
-
license =
|
|
10
|
+
license = "LGPL-3.0-or-later"
|
|
11
|
+
license-files = ["LICENSE", "COPYING", "THIRD_PARTY_NOTICES.md", "DISTRIBUTION.md", "LICENSING.md"]
|
|
11
12
|
|
|
12
13
|
authors = [
|
|
13
14
|
{ name="HiroYokoyama", email="titech.yoko.hiro@gmail.com" },
|
|
@@ -34,12 +35,11 @@ classifiers = [
|
|
|
34
35
|
|
|
35
36
|
dependencies = [
|
|
36
37
|
"numpy",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"pyside6-essentials >= 6.9, < 6.10; python_version < '3.10'",
|
|
39
|
+
"pyside6-essentials >= 6.10, < 6.12; python_version >= '3.10'",
|
|
39
40
|
"pyvista < 0.50",
|
|
40
41
|
"pyvistaqt < 0.14",
|
|
41
|
-
"rdkit < 2026.4"
|
|
42
|
-
"openbabel-wheel < 3.2"
|
|
42
|
+
"rdkit < 2026.4"
|
|
43
43
|
]
|
|
44
44
|
|
|
45
45
|
[project.urls]
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: MoleditPy
|
|
3
|
+
Version: 5.0.0a2
|
|
4
|
+
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
|
+
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
|
+
License-Expression: LGPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://github.com/HiroYokoyama/python_molecular_editor
|
|
8
|
+
Project-URL: Issues, https://github.com/HiroYokoyama/python_molecular_editor/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
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: Programming Language :: Python :: 3.14
|
|
19
|
+
Requires-Python: <3.15,>=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: COPYING
|
|
23
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
24
|
+
License-File: DISTRIBUTION.md
|
|
25
|
+
License-File: LICENSING.md
|
|
26
|
+
Requires-Dist: numpy
|
|
27
|
+
Requires-Dist: pyside6-essentials<6.10,>=6.9; python_version < "3.10"
|
|
28
|
+
Requires-Dist: pyside6-essentials<6.12,>=6.10; python_version >= "3.10"
|
|
29
|
+
Requires-Dist: pyvista<0.50
|
|
30
|
+
Requires-Dist: pyvistaqt<0.14
|
|
31
|
+
Requires-Dist: rdkit<2026.4
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# MoleditPy — A Python Molecular Editor
|
|
35
|
+
|
|
36
|
+
[](https://doi.org/10.5281/zenodo.17268532)
|
|
37
|
+
[](https://badge.fury.io/py/MoleditPy)
|
|
38
|
+
[](https://pypi.org/project/MoleditPy/)
|
|
39
|
+
[](https://www.gnu.org/licenses/lgpl-3.0)
|
|
40
|
+
[](https://github.com/HiroYokoyama/python_molecular_editor/actions)
|
|
41
|
+
[](https://codecov.io/gh/HiroYokoyama/python_molecular_editor)
|
|
42
|
+
[](https://pepy.tech/projects/moleditpy)
|
|
43
|
+
[](https://github.com/sponsors/HiroYokoyama)
|
|
44
|
+
|
|
45
|
+
**MoleditPy** is a programmable, cross-platform molecular editor built with PySide6, RDKit, and PyVista. It takes you from a 2D sketch to an editable 3D structure and out to input files for DFT calculations, and it can be extended with plain Python plugins.
|
|
46
|
+
|
|
47
|
+
**[Website](https://hiroyokoyama.github.io/python_molecular_editor/)** · **[User manual](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual)** ([日本語](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual-JP)) · **[Plugins](https://hiroyokoyama.github.io/moleditpy-plugins/)** · **[Wiki](https://github.com/HiroYokoyama/python_molecular_editor/wiki)**
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
## Features
|
|
52
|
+
|
|
53
|
+
- **2D drawing** — atoms, bonds, ring templates, alkyl chains, charges, radicals, stereo bonds, and the full periodic table.
|
|
54
|
+
- **3D editing** — 2D-to-3D conversion, dragging atoms in the 3D view, exact bond lengths, angles, and dihedrals, and MMFF94/UFF optimization with constraints.
|
|
55
|
+
- **Analysis and export** — molecular properties, R/S labels, MOL/SDF/XYZ/SMILES/InChI import and export, PNG/SVG images, and STL/OBJ for 3D printing.
|
|
56
|
+
- **Plugins** — drop a Python file into the plugin folder to add menu actions and tools. Browse the official collection in the [Plugin Explorer](https://hiroyokoyama.github.io/moleditpy-plugins/explorer/).
|
|
57
|
+
|
|
58
|
+
See the [user manual](https://hiroyokoyama.github.io/python_molecular_editor/manual/manual) for every feature and keyboard shortcut.
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
python -m pip install moleditpy-installer
|
|
64
|
+
python -m moleditpy_installer
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The first command installs MoleditPy and the shortcut helper; the second creates shortcuts and file associations. The same `moleditpy` package is used on Windows, macOS, and Linux. MoleditPy 5 requires Python 3.9–3.14. For an existing environment, uninstall `moleditpy-linux` and `openbabel-wheel` before upgrading. The core uses PySide6-Essentials and does not require Open Babel. Start the app from the shortcut or with:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
moleditpy
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The first launch can take a while as RDKit and the other libraries initialize. A [Windows installer](https://hiroyokoyama.github.io/python_molecular_editor/windows-installer/windows_installer), a [macOS app bundle](https://hiroyokoyama.github.io/python_molecular_editor/macos-installer/macos_installer), and a [Docker image](https://github.com/HiroYokoyama/python_molecular_editor_docker) are also available.
|
|
74
|
+
|
|
75
|
+
> **Security note:** the legacy `.pmeraw` project format uses Python pickle, which can execute arbitrary code when loaded. Only open `.pmeraw` files you created yourself, and use the JSON-based `.pmeprj` format for sharing.
|
|
76
|
+
|
|
77
|
+
To install the application directly without the shortcut helper:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
python -m pip install MoleditPy
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Citation
|
|
84
|
+
|
|
85
|
+
If you use this software in your work, please cite it as follows:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Yokoyama, H. (2026). MoleditPy — A Python-based molecular editing software. Zenodo. https://doi.org/10.5281/zenodo.17268532
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Please also cite the plugins you used; see [Citation in the plugin collection](https://github.com/HiroYokoyama/moleditpy-plugins#citation).
|
|
92
|
+
|
|
93
|
+
## License & Disclaimer
|
|
94
|
+
|
|
95
|
+
This project is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later) - see the [LICENSE](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSE) file for details. As open-source software, it is provided 'as is' without warranty of any kind, and the author assumes no responsibility or liability for the results. Although outputs have been carefully verified, users are strongly encouraged to independently check and validate them for critical applications (such as publications). If you encounter any bugs, please open an issue.
|
|
96
|
+
|
|
97
|
+
Independently developed plugins may use any license, including proprietary licenses. Existing plugins retain their licenses. See [licensing policy](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/LICENSING.md) and [binary distribution instructions](https://github.com/HiroYokoyama/python_molecular_editor/blob/v5.0.0a1/DISTRIBUTION.md).
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
COPYING
|
|
2
|
+
DISTRIBUTION.md
|
|
1
3
|
LICENSE
|
|
4
|
+
LICENSING.md
|
|
2
5
|
README.md
|
|
6
|
+
THIRD_PARTY_NOTICES.md
|
|
3
7
|
pyproject.toml
|
|
4
8
|
src/MoleditPy.egg-info/PKG-INFO
|
|
5
9
|
src/MoleditPy.egg-info/SOURCES.txt
|
|
@@ -52,6 +56,7 @@ src/moleditpy/ui/geometry_base_dialog.py
|
|
|
52
56
|
src/moleditpy/ui/io_logic.py
|
|
53
57
|
src/moleditpy/ui/main_window.py
|
|
54
58
|
src/moleditpy/ui/main_window_init.py
|
|
59
|
+
src/moleditpy/ui/menu_utils.py
|
|
55
60
|
src/moleditpy/ui/mirror_dialog.py
|
|
56
61
|
src/moleditpy/ui/molecular_scene_handler.py
|
|
57
62
|
src/moleditpy/ui/molecule_scene.py
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
MoleditPy — A Python-based molecular editing software
|
|
6
|
+
|
|
7
|
+
Author: Hiromichi Yokoyama
|
|
8
|
+
License: LGPL-3.0-or-later
|
|
9
|
+
Repo: https://github.com/HiroYokoyama/python_molecular_editor
|
|
10
|
+
DOI: 10.5281/zenodo.17268532
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import os
|
|
14
|
+
|
|
15
|
+
# qtpy/pyvistaqt must use the same binding as the application's native widgets,
|
|
16
|
+
# including when an older installation left QT_API=pyqt6 in the environment.
|
|
17
|
+
os.environ["QT_API"] = "pyside6"
|
|
18
|
+
|
|
19
|
+
from .utils.constants import VERSION as __version__ # noqa: E402, F401
|