vijaymasand/BKChem_python_3
关于
BKChem, a molecular drawing and chemical editor (sketching) software: now ported to Python 3
设计与媒体可以做什么
- Intuitive Drawing: Easy creation of bonds, atoms, and complex molecular structures.
- Vector: SVG, PDF (via Cairo and Piddle), PostScript, EPS.
- Document: OpenOffice/LibreOffice Draw (ODF), LaTeX.
- Image: PNG (via Cairo).
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +7
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文BKChem (Python 3 Modernized)
BKChem is a free (open source) 2D molecular drawing program. It was originally developed by Beda Kosata and has been a staple in the open-source chemical informatics community for years.
This repository contains a modernized version of BKChem, fully ported to Python 3.10+ and stabilized for modern operating systems.
Key Features
- Intuitive Drawing: Easy creation of bonds, atoms, and complex molecular structures.
- Rich Export Formats:
- Vector: SVG, PDF (via Cairo and Piddle), PostScript, EPS.
- Document: OpenOffice/LibreOffice Draw (ODF), LaTeX.
- Image: PNG (via Cairo).
- Chemical Intelligence: Correct handling of atom properties, isotopes, and structure validation.
- Scalability: Support for templates and user-defined fragment libraries.
- Plugin System: Extensible architecture for custom exporters and importers.
Recent Modernization & Stability Fixes
This version of BKChem includes significant updates to ensure compatibility with modern environments:
- Python 3 Port: Fully refactored from Python 2 to Python 3.10+, resolving all legacy syntax and library incompatibilities.
- Graphics Export Fixes:
- Resolved critical
TypeError: a bytes-like object is requiredcrashes in Cairo-based exporters (PDF, SVG, PNG, PS). - Modernized the internal Piddle graphics library to correctly handle binary file I/O in Python 3.
- Resolved critical
- Text Rendering Stability: Fixed a persistent crash (
NoneType object is not iterable) in theftextengine when handling charges or single-character labels. - Modern I/O: Shifted to standard binary file handling for all PDF and PostScript generation.
Requirements
To run BKChem, you need Python 3.10 or higher and the following libraries:
- Tkinter: (usually comes with Python)
- Pmw (Python MegaWidgets):
pip install Pmw - Pillow (PIL Fork):
pip install Pillow - PyCairo (Optional, for Cairo-based exports):
pip install pycairo
Quick Start
Clone the repository:
git clone https://github.com/vijaymasand/BKChem_python_3 cd BKChem_python_3Install dependencies:
pip install Pmw Pillow pycairoLaunch BKChem:
python start_bkchem.py
Support & Contribution
If you find this modernized version of BKChem helpful, please consider:
- 🌟 Giving it a Star on GitHub to help others find it.
- ☕ Buying me a coffee to support further development:
Documentation
Detailed documentation (though some of it legacy) can be found in the doc/ directory, including guides on batch mode, custom plugins, and templates.
License
BKChem is released under the GNU General Public License (GPL). See the bkchem/import_checker.py or the original project documentation for more licensing details.
Modernization and maintenance by Dr. Vijay Masand (Amravati, India), Gaurav Masand (Amravati, India), and Krish Masand (Amravati, India)
探索相关项目
加载中…