Skip to main content

This repository provides the periodic table in Vietnamese as a .json file.

Project description

vnptable

                           
             _       _   _
 _ _ ___ ___| |_ ___| |_| |___
| | |   | . |  _| .'| . | | -_|
 \_/|_|_|  _|_| |__,|___|_|___|    v0.1.0
        |_|

A simple and powerful Python package for working with the periodic table of chemical elements.


📦 Installation

pip install vnptable

📖 Usage

Import package

from vnptable import Element

Get element by atomic number

e = Element(1)
print(e.name)       # hydrogen
print(e.symbol)     # H

Get element by symbol

e = Element("O")
print(e.name)       # oxygen
print(e.atomic_mass)

Get element by name

e = Element("carbon")
print(e.symbol)     # C

Access properties

e = Element(26)

print(e.name)                   # iron
print(e.symbol)                 # Fe
print(e.atomic_number)          # 26
print(e.atomic_mass)
print(e.electron_configuration)
print(e.group)
print(e.period)
print(e.category)

🧪 Example

from vnptable import Element

iron = Element(26)

print(f"{iron.name} ({iron.symbol})")
print(f"Atomic number: {iron.atomic_number}")
print(f"Electron configuration: {iron.electron_configuration}")

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request

📄 License

MIT License


👨‍💻 Author

Hoàng Đức Tùng
GitHub account: https://github.com/hoangdtung-2013


⭐ Support

If you like this project, please give it a ⭐ on GitHub!

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

vnptable-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnptable-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file vnptable-0.1.1.tar.gz.

File metadata

  • Download URL: vnptable-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for vnptable-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9f298e660830528d541828b957c8bba9506b04c302117d8afe5b7895c7a42f3c
MD5 74cd99420164607bff572898f74e65e0
BLAKE2b-256 e9059b678b89e7c0fb78f78563c35a165bc22416b51ce2ba7550bdaf96297b6f

See more details on using hashes here.

File details

Details for the file vnptable-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vnptable-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for vnptable-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 649bf69d0d92fc856259cc834126049145ab83e52856b1fdc3b365e68fad2bf2
MD5 3507d413642698e1f4050fd88ea0cff0
BLAKE2b-256 b98ca5ff6366a39126565f60f5cc743a163ccc955bca5a242c8340a36359b3bd

See more details on using hashes here.

Supported by

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