Skip to main content

A scientific Python library with constants, unit convertors, formulas, and data analysis tools.

Project description

PyGamMLab

PyGAMLab is a scientific Python library developed for researchers, engineers, and students who need access to fundamental constants, conversion tools, engineering formulas, and data analysis utilities. The package is designed with simplicity, clarity, and usability in mind.


📌 Overview

PyGAMLab stands for Python GAMLAb tools, a collection of scientific tools and functions developed at the GAMLab under the supervision of Prof. Nader at Amirkabir University of Technology (AUT).

  • Author: Ali Pilehvar Meibody
  • Supervisor: Prof. Nader
  • Affiliation: GAMLab, Amirkabir University of Technology (AUT)

📦 Modules

PyGAMLab is composed of four core modules, each focused on a specific area of scientific computation:

🔹 constants.py

This module includes a comprehensive set of scientific constants used in physics, chemistry, and engineering.

Examples:

  • Planck's constant
  • Boltzmann constant
  • Speed of light
  • Universal gas constant
  • And many more...

🔹 convertors.py

Contains unit conversion functions that follow the format:
FirstUnit_To_SecondUnit()

Examples:

  • Kelvin_To_Celsius(k)
  • Pascal_To_Bar(p)
  • Meter_To_Foot(m)
  • ...and many more standard conversions used in science and engineering.

🔹 functions.py

This module provides a wide collection of scientific formulas and functional tools commonly used in engineering applications.

Examples:

  • Thermodynamics equations
  • Mechanical stress and strain calculations
  • Fluid dynamics formulas
  • General utility functions

🔹 data_analysis.py

Provides tools for working with data, either from a file path or directly from a DataFrame.

Features include:

  • Reading and preprocessing datasets
  • Performing scientific calculations
  • Creating visualizations (e.g., line plots, scatter plots, histograms)

🚀 Installation

To install PyGAMLab via pip (after uploading it to PyPI):

pip install pygamlab

📖 Usage Example

from pygamlab import Kelvin_To_Celsius, universal_gas_constant
from pygamlab import calculate_stress
from pygamlab import plot_from_csv

# Convert temperature
print(Kelvin_To_Celsius(300))

# Use a constant
print(universal_gas_constant)

# Use an engineering function
stress = calculate_stress(force=500, area=0.01)
print(stress)

# Analyze a dataset
plot_from_csv("data/experiment.csv", column_x="Time", column_y="Temperature")

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

pygamlab-0.1.0.tar.gz (77.7 kB view details)

Uploaded Source

Built Distribution

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

pygamlab-0.1.0-py3-none-any.whl (78.0 kB view details)

Uploaded Python 3

File details

Details for the file pygamlab-0.1.0.tar.gz.

File metadata

  • Download URL: pygamlab-0.1.0.tar.gz
  • Upload date:
  • Size: 77.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pygamlab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9efe1c9d75c7c6e0586428c7216f1b671331f60f8d011bf11cdbafd06091d6c5
MD5 711cf3e2b70bd4ae5d30aced533454ef
BLAKE2b-256 d85356b4e5e210717596e30a66fa1e5f3dad9da72461715a35dad85087838cf3

See more details on using hashes here.

File details

Details for the file pygamlab-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygamlab-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 78.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pygamlab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6acfcc2333b5cd32b752aae11dc0364cf3cc4d8594d499de32eda6adc744efce
MD5 24e5e4dd435cb157ce65d8ed869d25f6
BLAKE2b-256 269aef7c6be7c57cb084f577e1eb00df817e564e110903fc0c048d38b5f145f2

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