periodic

A periodic table API
Download

periodic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Jose Luis Naranjo Gomez

periodic Tags


periodic Description

periodic is an open source simple Python API for the periodic table, created by Luis Naranjo.InstallationIf you haven’t installed pip yet, here is an excellent guide on how to do so (in the ‘Properly Install Python’ section).After you have the that all set up, you can run the following command:pip install periodicor if you are on a Linux or Mac OS,sudo pip install periodicUsageRetrieve element as an objectclass periodic.element(symbol) Parameters The input for element can be any of the following, and is case insensitive.- element name (example: hydrogen) - STRING- element symbol (example: H) - STRING- atomic number (example: 1) - INTEGER - atomic mass (example: 1.0079) - FLOAT Attributes- symbol- name- mass- atomic- charge- type >>> import periodic >>> osmium = periodic.element('Os') #Here we create the element object. The input could have been any of the above types of input. >>> osmium.name 'osmium' >>> osmium.symbol 'Os' >>> osmium.atomic 76 >>> osmium.charge #These come in tuples of integers or lone integers (3, 4) >>> osmium.type 'metal'Product's homepage


periodic Related Software