periodic2023


Nameperiodic2023 JSON
Version 2.2.1 PyPI version JSON
download
home_pagehttps://github.com/NMRbox/periodic.git
SummaryA periodic table API.
upload_time2023-01-25 12:33:26
maintainerGerard Weatherby / NMRbox
docs_urlNone
authorJose Luis Naranjo Gomez
requires_python
licenseGNU GPL
keywords chem chemistry periodic table finder elements
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Periodic
********

A python API/console script for the periodic table. 

Created by Luis Naranjo <luisnaranjo733@hotmail.com>

Documentation at http://periodic.readthedocs.org

Original source code https://github.com/doubledubba/periodic
Maintainer fork https://github.com/NMRbox/periodic

Installation
************

>>> pip install periodic2023

Basic Usage
***********

Retrieve element as an object
=============================

>>> from periodic import element
>>> hydrogen = element('hydrogen')
>>> hydrogen.mass
1.0079

Advanced database queries (using sqlalchemy)
=============================================

>>> from periodic.table import session, Element
>>> session.query(Element).order_by(Element.mass).all()[-4:]  # 4 heaviest elements (by mass)
[<Element('Uup', '115')>, <Element('Uuq', '114')>, <Element('Uuh', '116')>, <Element('Uuo', '118')>]

ASCII Table
===========

>>> import periodic
>>> print periodic.table
  -----                                                               -----
1 | H |                                                               |He |
  |---+----                                       --------------------+---|
2 |Li |Be |                                       | B | C | N | O | F |Ne |
  |---+---|                                       |---+---+---+---+---+---|
3 |Na |Mg |3B  4B  5B  6B  7B |    8B     |1B  2B |Al |Si | P | S |Cl |Ar |
  |---+---+---------------------------------------+---+---+---+---+---+---|
4 | K |Ca |Sc |Ti | V |Cr |Mn |Fe |Co |Ni |Cu |Zn |Ga |Ge |As |Se |Br |Kr |
  |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
5 |Rb |Sr | Y |Zr |Nb |Mo |Tc |Ru |Rh |Pd |Ag |Cd |In |Sn |Sb |Te | I |Xe |
  |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
6 |Cs |Ba |LAN|Hf |Ta | W |Re |Os |Ir |Pt |Au |Hg |Tl |Pb |Bi |Po |At |Rn |
  |---+---+---+------------------------------------------------------------
7 |Fr |Ra |ACT|
  -------------
              -------------------------------------------------------------
   Lanthanide |La |Ce |Pr |Nd |Pm |Sm |Eu |Gd |Tb |Dy |Ho |Er |Tm |Yb |Lu |
              |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|
   Actinide   |Ac |Th |Pa | U |Np |Pu |Am |Cm |Bk |Cf |Es |Fm |Md |No |Lw |
              -------------------------------------------------------------

Interactive shell (Console script)
==================================

Periodic provides an originally named console script called 'periodic'.

It's usage for now is limited to periodic table reference.

In the future, it will be able to do with elements!

This interactive shell may also be invoked from the python interpreter:

>>> import periodic
>>> periodic.interactive_shell()

Or from the command line::

    $ periodic

::

    Enter any of the following periodic values of the element you are looking for:
	    ['atomic', 'symbol', 'name', 'mass']

    Use ^C or type 'exit' to exit.
    ========================================================================
    > 12
    atomic: 12
    symbol: Mg
    name: Magnesium
    mass: 24.305
    ========================================================================
    > uranium
    atomic: 92
    symbol: U
    name: Uranium
    mass: 238.02891
    ========================================================================
    > H
    atomic: 1
    symbol: H
    name: Hydrogen
    mass: 1.00794
    ========================================================================
    > 15.9994
    atomic: 8
    symbol: O
    name: Oxygen
    mass: 15.9994
    ========================================================================


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/NMRbox/periodic.git",
    "name": "periodic2023",
    "maintainer": "Gerard Weatherby / NMRbox",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "gweatherby@uchc.edu",
    "keywords": "chem chemistry periodic table finder elements",
    "author": "Jose Luis Naranjo Gomez",
    "author_email": "luisnaranjo733@hotmail.com",
    "download_url": "",
    "platform": null,
    "description": "Periodic\n********\n\nA python API/console script for the periodic table. \n\nCreated by Luis Naranjo <luisnaranjo733@hotmail.com>\n\nDocumentation at http://periodic.readthedocs.org\n\nOriginal source code https://github.com/doubledubba/periodic\nMaintainer fork https://github.com/NMRbox/periodic\n\nInstallation\n************\n\n>>> pip install periodic2023\n\nBasic Usage\n***********\n\nRetrieve element as an object\n=============================\n\n>>> from periodic import element\n>>> hydrogen = element('hydrogen')\n>>> hydrogen.mass\n1.0079\n\nAdvanced database queries (using sqlalchemy)\n=============================================\n\n>>> from periodic.table import session, Element\n>>> session.query(Element).order_by(Element.mass).all()[-4:]  # 4 heaviest elements (by mass)\n[<Element('Uup', '115')>, <Element('Uuq', '114')>, <Element('Uuh', '116')>, <Element('Uuo', '118')>]\n\nASCII Table\n===========\n\n>>> import periodic\n>>> print periodic.table\n  -----                                                               -----\n1 | H |                                                               |He |\n  |---+----                                       --------------------+---|\n2 |Li |Be |                                       | B | C | N | O | F |Ne |\n  |---+---|                                       |---+---+---+---+---+---|\n3 |Na |Mg |3B  4B  5B  6B  7B |    8B     |1B  2B |Al |Si | P | S |Cl |Ar |\n  |---+---+---------------------------------------+---+---+---+---+---+---|\n4 | K |Ca |Sc |Ti | V |Cr |Mn |Fe |Co |Ni |Cu |Zn |Ga |Ge |As |Se |Br |Kr |\n  |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|\n5 |Rb |Sr | Y |Zr |Nb |Mo |Tc |Ru |Rh |Pd |Ag |Cd |In |Sn |Sb |Te | I |Xe |\n  |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|\n6 |Cs |Ba |LAN|Hf |Ta | W |Re |Os |Ir |Pt |Au |Hg |Tl |Pb |Bi |Po |At |Rn |\n  |---+---+---+------------------------------------------------------------\n7 |Fr |Ra |ACT|\n  -------------\n              -------------------------------------------------------------\n   Lanthanide |La |Ce |Pr |Nd |Pm |Sm |Eu |Gd |Tb |Dy |Ho |Er |Tm |Yb |Lu |\n              |---+---+---+---+---+---+---+---+---+---+---+---+---+---+---|\n   Actinide   |Ac |Th |Pa | U |Np |Pu |Am |Cm |Bk |Cf |Es |Fm |Md |No |Lw |\n              -------------------------------------------------------------\n\nInteractive shell (Console script)\n==================================\n\nPeriodic provides an originally named console script called 'periodic'.\n\nIt's usage for now is limited to periodic table reference.\n\nIn the future, it will be able to do with elements!\n\nThis interactive shell may also be invoked from the python interpreter:\n\n>>> import periodic\n>>> periodic.interactive_shell()\n\nOr from the command line::\n\n    $ periodic\n\n::\n\n    Enter any of the following periodic values of the element you are looking for:\n\t    ['atomic', 'symbol', 'name', 'mass']\n\n    Use ^C or type 'exit' to exit.\n    ========================================================================\n    > 12\n    atomic: 12\n    symbol: Mg\n    name: Magnesium\n    mass: 24.305\n    ========================================================================\n    > uranium\n    atomic: 92\n    symbol: U\n    name: Uranium\n    mass: 238.02891\n    ========================================================================\n    > H\n    atomic: 1\n    symbol: H\n    name: Hydrogen\n    mass: 1.00794\n    ========================================================================\n    > 15.9994\n    atomic: 8\n    symbol: O\n    name: Oxygen\n    mass: 15.9994\n    ========================================================================\n\n",
    "bugtrack_url": null,
    "license": "GNU GPL",
    "summary": "A periodic table API.",
    "version": "2.2.1",
    "split_keywords": [
        "chem",
        "chemistry",
        "periodic",
        "table",
        "finder",
        "elements"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "13a0a383914d26fd93845fa17c1b9fe8f1bd31ef42b4db91b7aadba067a15e4d",
                "md5": "5291a6d8457be92a68f511dfe3af707f",
                "sha256": "9c9bbf4579340c5389adbbc49f1f12c566c076b66f38b07c2c30b8d044da2b79"
            },
            "downloads": -1,
            "filename": "periodic2023-2.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5291a6d8457be92a68f511dfe3af707f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7979,
            "upload_time": "2023-01-25T12:33:26",
            "upload_time_iso_8601": "2023-01-25T12:33:26.050245Z",
            "url": "https://files.pythonhosted.org/packages/13/a0/a383914d26fd93845fa17c1b9fe8f1bd31ef42b4db91b7aadba067a15e4d/periodic2023-2.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-25 12:33:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "NMRbox",
    "github_project": "periodic.git",
    "lcname": "periodic2023"
}
        
Elapsed time: 0.06622s