Python API for the extended tight-binding program
Project description
This repository hosts the Python API for the extended tight binding (xtb) program.
The idea of this project is to provide the xtb API for Python without requiring an additional xtb installation.
Installation
Depending on what you plan to do with xtb-python there are two recommended ways to install.
If you plan to use this project in your workflows, follow the Conda Installation section.
If you plan to develop on this project, proceed with the Build from Source section.
For more details visit the documentation.
Conda Installation
Installing xtb-python from the conda-forge channel can be achieved by adding conda-forge to your channels with:
conda config --add channels conda-forge
Once the conda-forge channel has been enabled, xtb-python can be installed with:
conda install xtb-python
It is possible to list all of the versions of xtb-python available on your platform with:
conda search xtb-python --channel conda-forge
Build from Source
The project is build with meson, the exact dependencies are defined by the xtb project, in summary it requires a Fortran and a C compiler as well as a linear algebra backend. Make yourself familiar with building xtb first!
Additionally this project requires a development version of Python installed. Also ensure that you have the numpy and cffi packages installed, configure the build of the extension with.
All steps to build the project are automated using
pip install .
To pass options to the meson build of xtb use --config-setting setup-args="-Dxtb-6.5.1:la_backend=openblas" to set for example the linear algebra backend to OpenBLAS.
Contributing
Contributions to this open source project are very welcome. Before starting, review our contributing guidelines first, please.
License
xtb-python is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
xtb-python is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU Lesser General Public License for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file xtb-22.1.tar.gz
.
File metadata
- Download URL: xtb-22.1.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a59e7b783fc6e8b7328f55211de681e535a83991b07c4bab73494063f5e9018 |
|
MD5 | 02eb3583a42efe1b53f45de307665f89 |
|
BLAKE2b-256 | a836a0b21a9efe55fbdea9d9a3ffc31046cf5291d15da52ea36967d37104c3b7 |
File details
Details for the file xtb-22.1-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: xtb-22.1-cp311-cp311-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943229d4e9665f7d8c63bf6461805bbea927b13b525ac6be7239461c6b2c6640 |
|
MD5 | 843dd5f764e67cfe0309fe261671c0b4 |
|
BLAKE2b-256 | 350ca8f709ad11eed9e904fb94c5b5c6d9fa25735080cd551e1dbfc6d9a2d35d |
File details
Details for the file xtb-22.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: xtb-22.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4baa584e7705f6dc3845bc5be2d1aef0c8e18fbc23aacf3c666c2fd8eb451516 |
|
MD5 | 08d4c7aa1b20932833e9b9007ea2bcbd |
|
BLAKE2b-256 | 3a90eccfa767cad0884d0048a8384a56b9307cae8450b6fd507adffe39e61d50 |
File details
Details for the file xtb-22.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: xtb-22.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622bc34e9f9ec295e5fb0bf4a556787e620eae8b2804197871edec5174309e1d |
|
MD5 | 551cde9bff2a423a085dbd740281a180 |
|
BLAKE2b-256 | 7fd30695f6470d51baf43eb55c6713d3b4574a4bf44caaae497c59a509988bec |
File details
Details for the file xtb-22.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: xtb-22.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f625b4f3539d7f3d232f69d1a21f977c39fe42b1024d82a6c76878b70575e336 |
|
MD5 | 9420a4f1887b9e5b11b39345c20bee9e |
|
BLAKE2b-256 | 03aefa23e533f7692cf8d120888a6801aace5cb53a9d4c9916c9bd4e205db77d |
File details
Details for the file xtb-22.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: xtb-22.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 17.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bedd0c98161e8fc026c0ea067096a46ecba721a35ca1975962d2bcf4938cda6 |
|
MD5 | b6bf71f26c68fe7cf2a960dbd3650890 |
|
BLAKE2b-256 | f4a769cc113af4ef7876f8e061d97cfc052c80cb04a0e913c50935241a19d65e |