comp-chem-utils


Namecomp-chem-utils JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://gitlab.com/ugognw/python-comp-chem-utils
SummaryUtilities for computational chemistry.
upload_time2024-06-03 18:24:37
maintainerNone
docs_urlNone
authorUgochukwu Nwosu
requires_python<3.12,>=3.10
licenseMIT
keywords computational chemistry catalysis comp-chem-utils
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============
CompChemUtils
=============

|ccu|_ is a set of tools for computational chemistry workflows.

Requirements
============

* Python_ 3.10 or later
* |click|_ (package for command line interfaces)
* |numpy|_ (N-dimensional array package)
* |scipy|_ (library for scientific computing)
* |ase|_ (tools for atomistic simulations)

Installation
============

.. code-block:: console

    python3 -m pip install comp-chem-utils

or, if you use poetry:

.. code-block:: console

    poetry add comp-chem-utils

You can also install the in-development version with:

.. code-block:: console

    pip install git+ssh://git@gitlab.com:ugognw/python-comp-chem-utils.git

or, similarly:

.. code-block:: console

    poetry add git+ssh://git@gitlab.com:ugognw/python-comp-chem-utils.git

Usage
=====

.. admonition:: Example

   Determine whether a water molecule is symmetric with respect to a 180 degree
   rotation about its secondary orientation axis.

    >>> from ase.build import molecule
    >>> from ccu.structure.axisfinder import find_secondary_axis
    >>> from ccu.structure.symmetry import Rotation, RotationSymmetry
    >>> h2o = molecule('H2O')
    >>> axis = find_secondary_axis(h2o)
    >>> r = Rotation(180, axis)
    >>> sym = RotationSymmetry(r)
    >>> sym.check_symmetry(h2o)
    True

.. admonition:: Example

    Retrieve reaction intermediates for the two-electron |CO2| reduction reaction.

    >>> from ccu.adsorption.adsorbates import get_adsorbate
    >>> cooh = get_adsorbate('COOH_CIS')
    >>> cooh.positions
    array([[ 0.        ,  0.        ,  0.        ],
           [ 0.98582255, -0.68771934,  0.        ],
           [ 0.        ,  1.343     ,  0.        ],
           [ 0.93293074,  1.61580804,  0.        ]])
    >>> ocho =  get_adsorbate('OCHO')
    >>> ocho.positions
    array([[ 0.        ,  0.        ,  0.        ],
           [ 1.16307212, -0.6715    ,  0.        ],
           [ 0.        ,  1.343     ,  0.        ],
           [-0.95002987, -0.5485    ,  0.        ]])

.. admonition:: Example

    Place adsorbates on a surface (namely, ``Cu-THQ.traj``) while considering the
    symmetry of the adsorbate and the adsorption sites.

    .. code-block:: console

        ccu adsorption place-adsorbate CO Cu-THQ.traj orientations/

Documentation
=============

View the latest version of the documentation on `Read the Docs`_.


.. |ccu| replace:: ``CompChemUtils``
.. _ccu: https://gitlab.com/ugognw/python-comp-chem-utils/
.. _Python: https://www.python.org
.. |click| replace:: ``click``
.. _click: https://click.palletsprojects.com/en/8.1.x/
.. |numpy| replace:: ``numpy``
.. _numpy: https://numpy.org
.. |scipy| replace:: ``scipy``
.. _scipy: https://scipy.org
.. |ase| replace:: ``ase``
.. _ASE: https://wiki.fysik.dtu.dk/ase/index.html
.. _Read the Docs: https://python-comp-chem-utils.readthedocs.io/en/latest
.. |CO2| replace:: CO\ :sub:`2`

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/ugognw/python-comp-chem-utils",
    "name": "comp-chem-utils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.10",
    "maintainer_email": null,
    "keywords": "computational chemistry, catalysis, comp-chem-utils",
    "author": "Ugochukwu Nwosu",
    "author_email": "ugognw@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c3/aa/56cb7974cdfbc05a986e434a4a775a7ed3fcbb347ebbcde65709663522d7/comp_chem_utils-0.0.3.tar.gz",
    "platform": null,
    "description": "=============\nCompChemUtils\n=============\n\n|ccu|_ is a set of tools for computational chemistry workflows.\n\nRequirements\n============\n\n* Python_ 3.10 or later\n* |click|_ (package for command line interfaces)\n* |numpy|_ (N-dimensional array package)\n* |scipy|_ (library for scientific computing)\n* |ase|_ (tools for atomistic simulations)\n\nInstallation\n============\n\n.. code-block:: console\n\n    python3 -m pip install comp-chem-utils\n\nor, if you use poetry:\n\n.. code-block:: console\n\n    poetry add comp-chem-utils\n\nYou can also install the in-development version with:\n\n.. code-block:: console\n\n    pip install git+ssh://git@gitlab.com:ugognw/python-comp-chem-utils.git\n\nor, similarly:\n\n.. code-block:: console\n\n    poetry add git+ssh://git@gitlab.com:ugognw/python-comp-chem-utils.git\n\nUsage\n=====\n\n.. admonition:: Example\n\n   Determine whether a water molecule is symmetric with respect to a 180 degree\n   rotation about its secondary orientation axis.\n\n    >>> from ase.build import molecule\n    >>> from ccu.structure.axisfinder import find_secondary_axis\n    >>> from ccu.structure.symmetry import Rotation, RotationSymmetry\n    >>> h2o = molecule('H2O')\n    >>> axis = find_secondary_axis(h2o)\n    >>> r = Rotation(180, axis)\n    >>> sym = RotationSymmetry(r)\n    >>> sym.check_symmetry(h2o)\n    True\n\n.. admonition:: Example\n\n    Retrieve reaction intermediates for the two-electron |CO2| reduction reaction.\n\n    >>> from ccu.adsorption.adsorbates import get_adsorbate\n    >>> cooh = get_adsorbate('COOH_CIS')\n    >>> cooh.positions\n    array([[ 0.        ,  0.        ,  0.        ],\n           [ 0.98582255, -0.68771934,  0.        ],\n           [ 0.        ,  1.343     ,  0.        ],\n           [ 0.93293074,  1.61580804,  0.        ]])\n    >>> ocho =  get_adsorbate('OCHO')\n    >>> ocho.positions\n    array([[ 0.        ,  0.        ,  0.        ],\n           [ 1.16307212, -0.6715    ,  0.        ],\n           [ 0.        ,  1.343     ,  0.        ],\n           [-0.95002987, -0.5485    ,  0.        ]])\n\n.. admonition:: Example\n\n    Place adsorbates on a surface (namely, ``Cu-THQ.traj``) while considering the\n    symmetry of the adsorbate and the adsorption sites.\n\n    .. code-block:: console\n\n        ccu adsorption place-adsorbate CO Cu-THQ.traj orientations/\n\nDocumentation\n=============\n\nView the latest version of the documentation on `Read the Docs`_.\n\n\n.. |ccu| replace:: ``CompChemUtils``\n.. _ccu: https://gitlab.com/ugognw/python-comp-chem-utils/\n.. _Python: https://www.python.org\n.. |click| replace:: ``click``\n.. _click: https://click.palletsprojects.com/en/8.1.x/\n.. |numpy| replace:: ``numpy``\n.. _numpy: https://numpy.org\n.. |scipy| replace:: ``scipy``\n.. _scipy: https://scipy.org\n.. |ase| replace:: ``ase``\n.. _ASE: https://wiki.fysik.dtu.dk/ase/index.html\n.. _Read the Docs: https://python-comp-chem-utils.readthedocs.io/en/latest\n.. |CO2| replace:: CO\\ :sub:`2`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Utilities for computational chemistry.",
    "version": "0.0.3",
    "project_urls": {
        "Documentation": "https://python-comp-chem-utils.readthedocs.io/",
        "Homepage": "https://gitlab.com/ugognw/python-comp-chem-utils",
        "Repository": "https://gitlab.com/ugognw/python-comp-chem-utils"
    },
    "split_keywords": [
        "computational chemistry",
        " catalysis",
        " comp-chem-utils"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "021466d229625160c9540571d9ed4b9b0688942e5fe7d7f42dc24623a6f03c4f",
                "md5": "87c48109d9c22b60708a869202225fde",
                "sha256": "72e5ec250b0c10c9724c9c08ed928b0ebb4da4bf08a7deeaa7ed58b28e9057b5"
            },
            "downloads": -1,
            "filename": "comp_chem_utils-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87c48109d9c22b60708a869202225fde",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.10",
            "size": 1599411,
            "upload_time": "2024-06-03T18:24:35",
            "upload_time_iso_8601": "2024-06-03T18:24:35.392774Z",
            "url": "https://files.pythonhosted.org/packages/02/14/66d229625160c9540571d9ed4b9b0688942e5fe7d7f42dc24623a6f03c4f/comp_chem_utils-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c3aa56cb7974cdfbc05a986e434a4a775a7ed3fcbb347ebbcde65709663522d7",
                "md5": "febc3e9982abcf8c5a8cf75b8b2d1f13",
                "sha256": "7e8e337fecea43dae2d5bece24ac09f2919ecb40986464debb1e9a32c216b2c5"
            },
            "downloads": -1,
            "filename": "comp_chem_utils-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "febc3e9982abcf8c5a8cf75b8b2d1f13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.10",
            "size": 1580936,
            "upload_time": "2024-06-03T18:24:37",
            "upload_time_iso_8601": "2024-06-03T18:24:37.579532Z",
            "url": "https://files.pythonhosted.org/packages/c3/aa/56cb7974cdfbc05a986e434a4a775a7ed3fcbb347ebbcde65709663522d7/comp_chem_utils-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-03 18:24:37",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "ugognw",
    "gitlab_project": "python-comp-chem-utils",
    "lcname": "comp-chem-utils"
}
        
Elapsed time: 0.25009s