Skip to main content

Electron configuration

Project description

Table of Contents

electronconfig

This package is used to find the electron configuration of an element. It is also used to do different operations on the electron configuration of an element.

Installation

To install this package, run the following command in the terminal:

pip install electronconfig

For developer installation, run the following command in the terminal:

git clone https://github.com/jako4295/electronconfig
pip install -e electronconfig

Usage

To use this package, run the following command in the terminal:

import electronconfig as ec

ec_obj = ec.ElectronConfig()

This will create an object of the ElectronConfig class. This object can be used to find the electron configuration of an element. All electron configuations are saved as attributes to the ec_obj object. For example, ec_obj.ec1 gives the electron configuration of hydrogen.

The following code can be used to remove electrons from a given element:

ec_obj.remove_electrons(82, 54)

This will remove 54 electrons from the element with atomic number 82 (lead). To find the principle quantum number of outermost projectile electron ($n_0$) of an element, one can either look at the string returned from the code above or run the following code:

ec_obj.n_0(82, 54)

This will return the principle quantum number of the outermost projectile electron of lead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

electronconfig-0.1.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

electronconfig-0.1.0-py2.py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page