{"id":30302838,"url":"https://github.com/liugaoyong/pygfn0","last_synced_at":"2026-06-19T18:32:15.609Z","repository":{"id":306605684,"uuid":"1026697743","full_name":"LiuGaoyong/PyGFN0","owner":"LiuGaoyong","description":"Python wrapper for GFN0 based on F2PY. https://pypi.org/project/pygfn0","archived":false,"fork":false,"pushed_at":"2025-08-15T07:18:48.000Z","size":652,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T09:14:40.508Z","etag":null,"topics":["ase","atomic-simulation-environment","chemistry","gfn0-xtb","molecule","python","single-point-energy","xtb"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiuGaoyong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-26T12:26:17.000Z","updated_at":"2025-08-15T07:18:51.000Z","dependencies_parsed_at":"2025-07-26T19:39:08.011Z","dependency_job_id":"32ff4529-642c-4fd4-8a14-17a91fe3a582","html_url":"https://github.com/LiuGaoyong/PyGFN0","commit_stats":null,"previous_names":["liugaoyong/pygfn0"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LiuGaoyong/PyGFN0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuGaoyong%2FPyGFN0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuGaoyong%2FPyGFN0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuGaoyong%2FPyGFN0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuGaoyong%2FPyGFN0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiuGaoyong","download_url":"https://codeload.github.com/LiuGaoyong/PyGFN0/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiuGaoyong%2FPyGFN0/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270811911,"owners_count":24650075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ase","atomic-simulation-environment","chemistry","gfn0-xtb","molecule","python","single-point-energy","xtb"],"created_at":"2025-08-17T06:00:41.229Z","updated_at":"2026-06-19T18:32:15.604Z","avatar_url":"https://github.com/LiuGaoyong.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyGFN0\n\n[![Pypi version](https://img.shields.io/pypi/v/pygfn0)](https://pypi.org/project/pygfn0/)\n[![PyPI Downloads](https://static.pepy.tech/badge/pygfn0)](https://pepy.tech/projects/pygfn0)\n\nThis is a Python version for [GFN0-xTB](https://github.com/pprcht/gfn0) based on F2PY.\n\n---\n\n## Usage\n\nThere is an `ase.Calculator` subclass termed `GFN0` for non-PBC system. And a more low function called `gfn0` can be found in [the code](https://github.com/LiuGaoyong/PyGFNFF/blob/main/pygfn0/_pygfn0.py).\n\n```python\nfrom ase import Atoms\nfrom ase.build import molecule\nfrom ase.optimize import BFGS\nfrom scipy.spatial.distance import pdist\n\nfrom pygfn0 import GFN0\n\natoms = Atoms(molecule(\"CO\"), calculator=GFN0())\nopt = BFGS(atoms, logfile=\"-\", trajectory=None)\nopt.run(fmax=0.03, steps=50)\nprint(f\"Energy: {atoms.get_potential_energy():.3f}eV\")\nprint(f\"C=O Length: {pdist(atoms.positions).item():.3f}\\u212b\")\n\n\n# Output:\n#       Step     Time          Energy          fmax\n# BFGS:    0 21:48:56     -145.434618        3.546420\n# BFGS:    1 21:48:56     -145.184501        9.984024\n# BFGS:    2 21:48:56     -145.493902        0.833465\n# BFGS:    3 21:48:56     -145.496822        0.175982\n# BFGS:    4 21:48:56     -145.496955        0.004404\n# Energy: -145.497eV\n# C=O Length: 1.116Å\n```\n\n\n\n### Reference\n\n1. P. Pracht, S. Grimme, et.al. A Robust Non-Self-Consistent Tight-Binding Quantum Chemistry Method for large Molecules (2019), DOI: https://doi.org/10.26434/chemrxiv.8326202.v1\n2. A standalone library of the GFN0-xTB method. https://github.com/pprcht/gfn0/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliugaoyong%2Fpygfn0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliugaoyong%2Fpygfn0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliugaoyong%2Fpygfn0/lists"}