PyGamLab 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
PyGamLab/__init__.py CHANGED
@@ -44,7 +44,7 @@ Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
44
44
 
45
45
 
46
46
 
47
- __version__ = "0.1.1"
47
+ __version__ = "0.1.3"
48
48
 
49
49
 
50
50
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGamLab
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
5
5
  Home-page: https://github.com/APMaii/pygamlab/tree/main
6
6
  Author: Ali Pilehvar Meibody
@@ -25,16 +25,21 @@ Dynamic: requires-python
25
25
 
26
26
  # PyGamLab
27
27
 
28
+ <p align="center">
29
+ <img src="pics/pygamlab_logo.png" alt="PyGamLab Logo" width="300"/>
30
+ </p>
31
+
32
+
28
33
  **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.
29
34
 
30
35
  ---
31
36
 
32
37
  ## 📌 Overview
33
38
 
34
- **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Gamlab (Graphene and Advanced Material Laboratory)** under supervision of **Amirkabir University of Technology (AUT)**.
39
+ **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
35
40
 
36
41
  - **Author:** Ali Pilehvar Meibody
37
- - **Supervisor:** Prof. Naderi
42
+ - **Supervisor:** Prof. Malek Naderi
38
43
  - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
39
44
 
40
45
  ---
@@ -115,7 +120,7 @@ pip install numpy pandas scipy matplotlib seaborn scikit-learn
115
120
 
116
121
  ## 🚀 Installation
117
122
 
118
- To install PyGAMLab via pip (after uploading it to PyPI):
123
+ To install PyGAMLab via pip:
119
124
 
120
125
  ```bash
121
126
  pip install pygamlab
@@ -134,49 +139,64 @@ git clone https://github.com/APMaii/pygamlab.git
134
139
  ```python
135
140
  import PyGamLab
136
141
 
137
- #--------------Constants-----------------------
138
142
 
139
- print(PyGamLab.Constants.melting_point_of_Cu)
140
- print(PyGamLab.Constants.melting_point_of_Al)
141
- print(PyGamLab.Constants.Fe_Tm_Alpha)
142
- print(PyGamLab.Constants.Fe_Tm_Gama)
143
+ import PyGamLab.Constants as gamcn
144
+ import PyGamLab.Convertos as gamcv
145
+ import PyGamLab.Functions as gamfunc
146
+ import PyGamLab.Data_Analysis as gamdat
147
+
143
148
 
144
- print(PyGamLab.Constants.Boltzmann_Constant)
145
- print(PyGamLab.Constants.Faraday_Constant)
146
149
 
147
- #----------------Convertors---------------------
150
+ #--------------Constants-----------------------
151
+
152
+ print(gamcn.melting_point_of_Cu)
153
+ print(gamcn.melting_point_of_Al)
154
+ print(gamcn.Fe_Tm_Alpha)
155
+ print(gamcn.Fe_Tm_Gama)
148
156
 
149
- print(PyGamLab.Convertos.Kelvin_to_Celcius(300))
150
- print(PyGamLab.Convertos.Coulomb_To_Electron_volt())
151
- print(PyGamLab.Convertos.Angstrom_To_Milimeter())
152
- print(PyGamLab.Convertos.Bar_To_Pascal())
157
+ print(gamcn.Boltzmann_Constant)
158
+ print(gamcn.Faraday_Constant)
153
159
 
154
- #------------Functions-----------------------
155
160
 
156
- PyGamLab.Functions.Gibs_free_energy(H0,T,S0)
161
+ #----------Converters------------------------
157
162
 
163
+ print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
164
+ print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
165
+ print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
166
+ print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
158
167
 
159
- PyGamLab.Functions.Bragg_Law(h, k, l, a, y)
168
+ #-----------Functions------------------------
160
169
 
170
+ # Gibb's Free Energy: G = H0 - T*S0
171
+ H0 = 100 # Enthalpy in kJ/mol
172
+ T = 298 # Temperature in Kelvin
173
+ S0 = 0.2 # Entropy in kJ/mol·K
174
+ print(gamfunc.Gibs_free_energy(H0, T, S0))
161
175
 
162
- PyGamLab.Functions.Electrical_Resistance(v,i)
163
176
 
177
+ # Electrical Resistance: R = V / I
178
+ voltage = 10 # in Volts
179
+ current = 2 # in Amperes
180
+ print(gamfunc.Electrical_Resistance(voltage, current))
164
181
 
165
- PyGamLab.Functions.Hall_Petch(d_grain,sigma0,k)
182
+ # Hall-Petch Relationship: σ = σ0 + k / √d
183
+ d_grain = 0.01 # Grain diameter in mm
184
+ sigma0 = 150 # Friction stress in MPa
185
+ k = 0.5 # Strengthening coefficient in MPa·mm^0.5
186
+ print(gamfunc.Hall_Petch(d_grain, sigma0, k))
166
187
 
167
188
  #-----------Data_Analysis--------------------
168
189
  import pandas as pd
169
190
 
170
191
  df= pd.read_csv('/users/apm/....../data.csv')
171
- PyGamLab.Data_Analysis.Stress_Strain1(df, 'PLOT')
172
- my_uts=PyGamLab.Data_Analysis.Stress_Strain1(df, 'UTS')
192
+ gamdat.Stress_Strain1(df, 'PLOT')
193
+ my_uts=gamdat.Stress_Strain1(df, 'UTS')
173
194
 
174
195
 
175
196
  data=pd.read_csv('/users/apm/....../data.csv')
176
- my_max=PyGamLab.Data_Analysis.Xrd_Analysis(data,'max intensity')
177
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'scatter plot')
178
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'line graph')
179
-
197
+ my_max=gamdat.Xrd_Analysis(data,'max intensity')
198
+ gamdat.Xrd_Analysis(data,'scatter plot')
199
+ gamdat.Xrd_Analysis(data,'line graph')
180
200
  ```
181
201
 
182
202
 
@@ -195,15 +215,6 @@ pygamlab/
195
215
  ```
196
216
 
197
217
 
198
- ---
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
218
  ---
208
219
  ## 🤝 Contributing
209
220
 
@@ -243,7 +254,7 @@ This project is part of the scientific research activities at **GAMLab (Generali
243
254
 
244
255
  Special thanks to:
245
256
 
246
- - **Prof. Nader** – For his guidance, mentorship, and continuous support.
257
+ - **Prof. Malek Naderi** – For his guidance, mentorship, and continuous support.
247
258
  - **Ali Pilehvar Meibody** – Main developer and author of PyGamLab.
248
259
  - **GAMLab Research Group** – For providing a collaborative and innovative environment.
249
260
 
@@ -0,0 +1,9 @@
1
+ PyGamLab/Constants.py,sha256=hupfOwj-2ofXWSPvsdO_WZgyKxoCTZl_Uxq3uB3C-yw,16927
2
+ PyGamLab/Convertors.py,sha256=f2-hfi1jJOeWBrCWJBWiRGZfPy3uhROHKj_iIvlOmA4,31575
3
+ PyGamLab/Data_Analysis.py,sha256=-hlQE3APk2eVwwZuMvMRdqSeV_pwkMq9a85v71zvLVw,109917
4
+ PyGamLab/Functions.py,sha256=fFZ2nCMtDHsEKqfDbLd8fJWPnFQzaS5V8CrJ-Y4Rde8,111881
5
+ PyGamLab/__init__.py,sha256=yQfdW_QDUFtVvc49_1VaWn84QxIsNaOsTmjkXTRaaCk,1959
6
+ pygamlab-0.1.3.dist-info/METADATA,sha256=VD-O3gltDrkxd4rLUiOfYfbjf3WPNAzeNdNUQhMqD5Q,6801
7
+ pygamlab-0.1.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ pygamlab-0.1.3.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
9
+ pygamlab-0.1.3.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- PyGamLab/Constants.py,sha256=hupfOwj-2ofXWSPvsdO_WZgyKxoCTZl_Uxq3uB3C-yw,16927
2
- PyGamLab/Convertos.py,sha256=f2-hfi1jJOeWBrCWJBWiRGZfPy3uhROHKj_iIvlOmA4,31575
3
- PyGamLab/Data_Analysis.py,sha256=-hlQE3APk2eVwwZuMvMRdqSeV_pwkMq9a85v71zvLVw,109917
4
- PyGamLab/Functions.py,sha256=fFZ2nCMtDHsEKqfDbLd8fJWPnFQzaS5V8CrJ-Y4Rde8,111881
5
- PyGamLab/__init__.py,sha256=Jk2e1ZsFaemg_xhfpAcY6Ul_6ixjrBMfnea81xMFY2s,1959
6
- pygamlab-0.1.1.dist-info/METADATA,sha256=rjaEHzWwi6djkPsQNR2c0TrbsypVa8bLyNMMhWdN-Ds,6294
7
- pygamlab-0.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- pygamlab-0.1.1.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
9
- pygamlab-0.1.1.dist-info/RECORD,,
File without changes