chempyformatics

CreateAtom3.py

See also: the Groovy version

Source code

from scyjava import config, jimport
config.add_endpoints('org.openscience.cdk:cdk-bundle:2.9')
Atom = jimport('org.openscience.cdk.silent.Atom')

atom = Atom(6);
print(atom)

Open in Google Colab

Output

Atom(892529689, S:C, H:0, AtomType(892529689, FC:0, Isotope(892529689, Element...
  (892529689, S:C, AN:6))))