lib.unidades module¶
Phisics quantities module with support for unit conversion.
unidad: Base class with all functionality
Using the dimension symbol for define the SI base units:
Length: L
Mass: M
Time: T
Temperature: Θ
Amount of substance: N
Electric current: I
The list of supported unit are:
Acceleration, LT⁻²
Area, L²
CakeResistance, LM⁻¹
Density, ML⁻³
DensityPressure, T²L⁻²
DensityTemperature, ML⁻³Θ⁻¹
Diffusivity, L²T⁻¹
DipoleMoment, IL
PotencialElectric, ML³T⁻³I⁻¹
Energy, ML²T⁻²
Enthalpy, L²T⁻²
EnthalpyDensity, L⁵MT⁻²
EnthalpyPressure, L³M⁻¹
Pressure, ML⁻¹T⁻²
Entropy, ML²T⁻²Θ
Force, MLT⁻²
Frequency, T⁻¹
HeatFlux, MT⁻³
HeatTransfCoef, MT⁻⁴
Length, L
Mass, M
MassFlow, MT⁻¹
Mol, N
MolarDensity, NL⁻³
MolarFlow, NT⁻¹
MolarVolume, L⁻³N
PackingDP, ML⁻²T⁻²
Power, ML²T⁻³
Pressure, ML⁻¹T⁻²
DeltaP, ML⁻¹T⁻²
InvPressure, LT²M⁻¹
PressureTemperature, ML⁻¹T⁻²Θ⁻¹
PressureDensity, L²T⁻²
SolubilityParameter, M⁰⁵L⁻⁰⁵T⁻¹
SpecificHeat, L²T⁻²Θ
SpecificVolume, L³M⁻¹
Speed, LT⁻¹
Tension, MT⁻²
Temperature, Θ
DeltaT, Θ
InvTemperature, Θ⁻¹
TemperaturePressure, ΘLT²M⁻¹
ThermalConductivity, ML¹T⁻³Θ⁻¹
SpecificVolume_square, L⁶M⁻²
Time, T
UA, ML²T⁻³Θ⁻¹
Viscosity, ML⁻¹T⁻¹
Volume, L³
VolFlow, L³T⁻¹
Dimensionless: Null unit
API reference¶
- class lib.unidades.unidad(data, unit='', magnitud='')[source]¶
Bases:
floatGeneric class to model units.
- Each child class must define the following parameters:
__title__: Title or name of class
rates: Dict with conversion rates
__text__: List with units title
__units__: List with units properties names
__tooltip__: List with help string for units
_magnitudes: Opcional to units with several magnituds. Each magnitud
is a tuple with format (Name, title) * __units_set__: Dict with standart unit for units system (altsi, si, metric, cgs, english)
- Attributes:
strReturn a string representation of class
Methods
config([magnitud])Using config file return the value in the configurated unit
format([unit, magnitud])Using config file return the unit value in desired numeric format
func([magnitud])Return the configurated unit name for getattribute call
get_str([conf])Return a string representation of class
Return the magnitudes list for unit, if define several magnitudes, it must fill the _magnitudes variable
text([magnitud])Using config file return the configurated unit text
- rates = {}¶
- _magnitudes = []¶
- __init__(data, unit='', magnitud='')[source]¶
Constructor
- Parameters:
- datafloat
Value of initial entity
- unitstr
String with unit of data value input
- magnitudstr, optional
Name of magnitud (i.e. PipeDiameter or Head for length unit)
Notes
Non proportional magnitudes (Temperature, Pressure) must rewrite this method
- classmethod magnitudes()[source]¶
Return the magnitudes list for unit, if define several magnitudes, it must fill the _magnitudes variable
- format(unit='', magnitud='')[source]¶
Using config file return the unit value in desired numeric format
- property str¶
Return a string representation of class
- class lib.unidades.Dimensionless(data, txt='')[source]¶
Bases:
floatDummy class to integrate dimensionless magnitudes with support for class unidad operations: txt, config. func.
- Attributes:
- str
Methods
format(unit)Using config file return the unit value in desired numeric format
config
func
text
- _magnitudes = []¶
- property str¶
- class lib.unidades.Temperature(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Temperature measure
- Supported units::
Kelvin (K) (default)
Celsius (C)
Rankine (R)
Fahrenheit (F)
Reaumur (Re)
Examples
>>> T = Temperature(25, 'C') >>> "%g %g %g" % (T.K, T.C, T.F) '298.15 25 77'
- __init__(data, unit='K', magnitud='')[source]¶
Constructor
- Parameters:
- datafloat
Value of initial entity
- unitstr
String with unit of data value input
- magnitudstr, optional
Name of magnitud (i.e. PipeDiameter or Head for length unit)
Notes
Non proportional magnitudes (Temperature, Pressure) must rewrite this method
- class lib.unidades.DeltaT(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Temperature increase measure
- Supported units::
Kelvin (K) (default)
Celsius (C)
Rankine (R)
Fahrenheit (F)
Reaumur (Re)
Examples
>>> D = DeltaT(25, 'C') >>> "%g %g" % (D.K, D.F) '25 45'
- rates = {'C': 1.0, 'F': 0.5555555555555556, 'K': 1.0, 'R': 0.5555555555555556, 'Re': 1.25}¶
- class lib.unidades.Angle(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Angle measure
- Supported units::
Radian (rad) (default)
Degree (deg)
Arcminute (min)
Arcsecond (sec)
Gradian (grad)
Examples
>>> A = Angle(25, 'deg') >>> "%g" % (A.rad) '0.436332'
- rates = {'deg': 0.017453292519943295, 'grad': 0.015707963267948967, 'min': 0.0002908882086657216, 'rad': 1.0, 'sec': 4.84813681109536e-06}¶
- class lib.unidades.Length(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Length measure
- Supported units::
meter (m) (default)
centimeter (cm)
milimeter (mm)
micra (micra)
kilometer (km)
inch (inch)
foot (ft)
yard (yd)
mile (milla)
nautical mile (milla_nau)
picometer (pm)
Ångström (A)
Examples
>>> L = Length(12, 'inch') >>> "%g %g %g" % (L.m, L.inch, L.ft) '0.3048 12 1'
- rates = {'A': 1e-10, 'cm': 0.01, 'ft': 0.30479999999999996, 'inch': 0.0254, 'km': 1000.0, 'm': 1.0, 'micra': 1e-06, 'milla': 1609.344, 'milla_nau': 1852, 'mm': 0.001, 'pm': 1e-12, 'yd': 0.9143999999999999}¶
- _magnitudes = [('Length', 'Length'), ('ParticleDiameter', 'Particle Diameter'), ('Thickness', 'Thickness'), ('PipeDiameter', 'Pipe Diameter'), ('Head', 'Head')]¶
- class lib.unidades.Area(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Area measure
- Supported units::
square meter (m2) (default)
square centimeter (cm2)
square milimeter (mm2)
square kilometer (km2)
square inch (inch2)
square foot (ft2)
square yard (yd2)
hectarea (ha)
acre (acre)
Examples
>>> A = Area(1, 'ft2') >>> "%g %g" % (A.m2, A.inch2) '0.092903 144'
- rates = {'acre': 4046.856422399999, 'cm2': 0.0001, 'ft2': 0.09290303999999998, 'ha': 10000.0, 'inch2': 0.00064516, 'km2': 1000000.0, 'm2': 1.0, 'mm2': 1e-06, 'yd2': 0.8361273599999998}¶
- class lib.unidades.Volume(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Volume measure
- Supported units::
m³ (m3) (default)
cm³ (cc)
liter (l)
yd³ (yd3)
ft³ (ft3)
inch³ (inch3)
US liquid gallon (galUS)
Imperial gallon (galUK)
US fluid barrel (bbl)
UK fluid barrel (bblUS)
Oil barrel (bblUK)
US customary fluid ounce (onz)
Imperial fluid ounce (onzUK)
Examples
>>> V = Volume(1, 'bbl') >>> "%g %g %g" % (V.l, V.ft3, V.galUS) '158.987 5.61458 42'
- rates = {'bbl': 0.15898729492799998, 'bblUK': 0.16365924, 'bblUS': 0.119240471196, 'cc': 1.0000000000000002e-06, 'ft3': 0.02831684659199999, 'galUK': 0.00454609, 'galUS': 0.0037854117839999997, 'inch3': 1.6387064e-05, 'km3': 1000000000.0, 'l': 0.0010000000000000002, 'm3': 1.0, 'ml': 1.0000000000000002e-06, 'onz': 2.9573529562499998e-05, 'onzUK': 2.84130625e-05, 'qtUK': 0.0011365225, 'qtUSdr': 0.0011012107008, 'qtUSliq': 0.0009463529459999999, 'yd3': 0.7645548579839997}¶
- _magnitudes = [('Volume', 'Volume'), ('VolLiq', 'Liquid Volume'), ('VolGas', 'Gas Volume')]¶
- class lib.unidades.Time(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Time measure
- Supported units::
second (s) (default)
minute (min)
hour (h)
day (day)
year (year)
Examples
>>> T = Time(1, 'day') >>> "%g %g" % (T.min, T.h) '1440 24'
- rates = {'day': 86400.0, 'h': 3600.0, 'min': 60.0, 's': 1.0, 'year': 31536000.0}¶
- class lib.unidades.Frequency(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Frequency measure
- Supported units::
rpm (rpm) (default)
rps (rps)
rph (rph)
Hz (Hz)
rad/s (rads)
rad/min (radmin)
rad/hr (radh)
Examples
>>> F = Frequency(1, 'rads') >>> "%g" % (F.rpm) '9.5493'
- rates = {'Hz': 60.0, 'radh': 34377.46770784939, 'radmin': 572.9577951308232, 'rads': 9.549296585513721, 'rph': 0.016666666666666666, 'rpm': 1.0, 'rps': 60.0}¶
- class lib.unidades.Speed(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Speed measure
- Supported units::
m/s (ms) (default)
cm/s (cms)
mm/s (mms)
km/s (kms)
ft/s (fts)
ft/min (ftmin)
m/min (mmin)
km/min (kmmin)
km/h (kmh)
km/day (kmday)
mph (mph)
Knot (kt)
Examples
>>> S = Speed(1, 'ms') >>> "%g %g %g" % (S.mmin, S.kmh, S.fts) '60 3.6 3.28084'
- rates = {'cms': 0.01, 'ftday': 3.5277777777777775e-06, 'fth': 8.466666666666666e-05, 'ftmin': 0.0050799999999999994, 'fts': 0.30479999999999996, 'inchmin': 0.00042333333333333334, 'inchs': 0.0254, 'kmday': 0.011574074074074073, 'kmh': 0.2777777777777778, 'kmmin': 16.666666666666668, 'kms': 1000.0, 'kt': 0.5144444444444445, 'mday': 1.1574074074074073e-05, 'mmin': 0.016666666666666666, 'mms': 0.001, 'mph': 0.44703999999999994, 'ms': 1.0}¶
- class lib.unidades.Acceleration(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Acceleration measure
- Supported units::
m/s² (ms2) (default)
cm/s² (cms2)
ft/s² (fts2)
inch/s² (inchs2)
yd/s² (yds2)
m/min² (mmin2)
cm/min² (cmmin2)
ft/min² (ftmin2)
inch/min² (inchmin2)
Examples
>>> A = Acceleration(9.81, 'ms2') >>> "%g" % (A.fts2) '32.185'
- rates = {'cmmin2': 2.777777777777778e-06, 'cms2': 0.01, 'ftmin2': 8.466666666666666e-05, 'fts2': 0.30479999999999996, 'inchmin2': 7.055555555555555e-06, 'inchs2': 0.0254, 'mmin2': 0.0002777777777777778, 'ms2': 1.0, 'ydmin2': 0.00025399999999999994, 'yds2': 0.9143999999999999}¶
- class lib.unidades.Mass(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Mass measure
- Supported units::
kilogram (kg) (default)
gram (g)
miligram (mg)
ton (Ton)
pound (lb)
grain (grain)
ounce (oz)
slug (slug)
long ton (UK) (TonUK)
short ton (US) (TonUS)
Examples
>>> M = Mass(1, 'lb') >>> "%g %g %g" % (M.kg, M.g, M.oz) '0.453592 453.592 16'
- rates = {'Ton': 1000.0, 'TonUK': 1016.0469088, 'TonUS': 907.1847399999999, 'cwtUK': 45.35923699999999, 'cwtUS': 50.802345439999996, 'g': 0.001, 'grain': 6.479891e-05, 'kg': 1.0, 'lb': 0.45359236999999997, 'mg': 1e-06, 'oz': 0.028349523124999998, 'slug': 14.593902937206366}¶
- class lib.unidades.Mol(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Mol measure
- Supported units::
kmol (kmol) (default)
mol (mol)
mmol (mmol)
lbmol (lbmol)
Examples
>>> M = Mol(1, 'kmol') >>> "%g %g" % (M.mol, M.lbmol) '1000 2.20462'
- rates = {'kmol': 1.0, 'lbmol': 0.45359236999999997, 'milimol': 1e-06, 'mol': 0.001}¶
- class lib.unidades.SpecificVolume(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Specific Volume measure
- Supported units::
m³/kg (m3kg) (default)
cm³/g (ccg)
ml/g (mlg)
m³/g (m3g)
cm³/kg (cckg)
ft³/lb (ft3lb)
in³/lb (inch3lb)
gallon UK/lb (galUKlb)
gallon US/lb (galUSlb)
barril/lb (bbllb)
ft³/ton UK (ft3tonUK)
ft³/ton US (ft3tonUS)
ft³/slug (ft3slug)
ft³/onza (ft3oz)
in³/onza (in3oz)
gallon UK/onza (galUKoz)
gallon US/onza (galUSoz)
Examples
>>> S = SpecificVolume(50, 'lkg') >>> "%g %g" % (S.m3kg, S.ft3lb) '0.05 0.800923'
- rates = {'bbllb': 0.3505069869848119, 'ccg': 0.001, 'cckg': 1e-06, 'ft3lb': 0.062427960576144595, 'ft3oz': 0.9988473692183135, 'ft3slug': 0.0019403203319797147, 'ft3tonUK': 2.7869625257207406e-05, 'ft3tonUS': 3.1213980288072295e-05, 'galUKlb': 0.010022412854960501, 'galUKoz': 0.16035860567936802, 'galUSlb': 0.008345404452019332, 'galUSoz': 0.13352647123230932, 'in3oz': 0.000578036672001339, 'inch3lb': 3.612729200008369e-05, 'lg': 1.0, 'lkg': 0.001, 'm3g': 1000.0, 'm3kg': 1.0, 'mlg': 0.001}¶
- class lib.unidades.SpecificVolume_square(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Third virial coefficient measure
- Supported units::
m⁶/kg² (m3kg) (default)
cm⁶/g² (ccg)
ml²/g² (mlg)
m⁶/g² (m3g)
cm⁶/kg² (cckg)
ft⁶/lb² (ft3lb)
in⁶/lb² (inch3lb)
gallon UK²/lb² (galUKlb)
gallon US²/lb² (galUSlb)
barril²/lb² (bbllb)
ft⁶/ton UK² (ft3tonUK)
ft⁶/ton US² (ft3tonUS)
ft⁶/slug² (ft3slug)
ft⁶/onza² (ft3oz)
in⁶/onza² (in3oz)
gallon UK²/onza² (galUKoz)
gallon US²/onza² (galUSoz)
Examples
>>> S = SpecificVolume_square(50, 'lkg') >>> "%g %g" % (S.m3kg, S.ft3lb) '5e-05 0.0128296'
- rates = {'bbllb': 0.12285514792517112, 'ccg': 1e-06, 'cckg': 1e-12, 'ft3lb': 0.003897250261696663, 'ft3oz': 0.9976960669943458, 'ft3slug': 3.76484299069387e-06, 'ft3tonUK': 7.767160119771729e-10, 'ft3tonUS': 9.743125654241659e-10, 'galUKlb': 0.00010044875943527753, 'galUKoz': 0.02571488241543105, 'galUSlb': 6.964577546778409e-05, 'galUSoz': 0.017829318519752727, 'in3oz': 3.3412639417838353e-07, 'inch3lb': 1.3051812272593107e-09, 'lg': 1.0, 'lkg': 1e-06, 'm3g': 1000000.0, 'm3kg': 1.0, 'mlg': 1e-06}¶
- class lib.unidades.MolarVolume(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Molar Volume measure
- Supported units::
m³/kmol (m3kmol) (default)
l/mol (lmol)
l/kmol (lkmol)
cm³/mol (ccmol)
ml/mol (mlmol)
m³/mol (m3mol)
cm³/kmol (cckmol)
ft³/lbmol (ft3lbmol)
in³/lbmol (inch3lbmol)
Examples
>>> M = MolarVolume(50, 'lkmol') >>> "%g %g" % (M.m3kmol, M.ft3lbmol) '0.05 0.800923'
- rates = {'cckmol': 1e-06, 'ccmol': 0.001, 'ft3lbmol': 0.062427960576144595, 'inch3lbmol': 3.612729200008369e-05, 'lkmol': 0.001, 'lmol': 1.0, 'm3kmol': 1.0, 'm3mol': 1000.0, 'mlmol': 0.001}¶
- class lib.unidades.Density(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Density measure
- Supported units::
kg/m³ (kgm3) (default)
g/cm³ (gcc)
g/m³ (gm3)
kg/cm³ (kgcc)
lb/ft³ (lbft3)
lb/inch³ (lbin3)
lb/galon UK (lbgalUK)
lb/galon US (lbgalUS)
lb/barril (lbbbl)
ton UK/ft³ (tonUKft3)
ton US/ft³ (tonUSft3)
slug/ft³ (slugft3)
onza/ft³ (ozft3)
onza/inch³ (ozin3)
onza/galon UK (ozgalUK)
onza/galon US (ozgalUS)
Examples
>>> D = Density(1, 'kgl') >>> "%g %g" % (D.kgm3, D.lbft3) '1000 62.428'
- rates = {'gcc': 1000.0, 'gl': 1.0, 'gm3': 0.001, 'gml': 1000.0, 'kgcc': 1000000.0, 'kgl': 1000.0, 'kgm3': 1.0, 'lbbbl': 2.853010174211825, 'lbft3': 16.018463373960145, 'lbgalUK': 99.7763726631017, 'lbgalUS': 119.82642731689663, 'lbin3': 27679.90471020312, 'ozft3': 1.001153960872509, 'ozgalUK': 6.236023291443856, 'ozgalUS': 7.489151707306039, 'ozin3': 1729.994044387695, 'slugft3': 515.3788183931964, 'tonUKft3': 35881.35795767073, 'tonUSft3': 32036.926747920286}¶
- _magnitudes = [('Density', 'Density'), ('DenLiq', 'Liquid Density'), ('DenGas', 'Gas Density')]¶
- class lib.unidades.MolarDensity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Molar Density measure
- Supported units::
kmol/m³ (kmolm3) (default)
mol/cm³ (molcc)
mol/m³ (molm3)
kmol/cm³ (kmolcc)
lbmol/ft³ (lbmolft3)
lbmol/inch³ (lbmolin3)
Examples
>>> M = MolarDensity(1, 'kmolm3') >>> "%g %g" % (M.molcc, M.lbmolft3) '0.001 0.062428'
- rates = {'kmolcc': 1000000.0, 'kmoll': 1000.0, 'kmolm3': 1.0, 'lbmolft3': 16.018463373960145, 'lbmolin3': 27679.90471020312, 'molcc': 1000.0, 'moll': 1.0, 'molm3': 0.001}¶
- class lib.unidades.Force(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Force measure
- Supported units::
Newton (N) (default)
Kilonewton (kN)
Dyna (dyn)
Kilogram force (kgf)
Gram force (gf)
Pound force (lbf)
Ounze force (ozf)
Poundal (pdl)
TonfUK (TonfUK)
TonfUS (TonfUS)
Examples
>>> F = Force(1, 'pdl') >>> "%g %g %g" % (F.N, F.kgf, F.dyn) '0.138255 0.0140981 13825.5'
- rates = {'N': 1.0, 'TonfUK': 9964.016418183519, 'TonfUS': 8896.443230521, 'dyn': 1e-05, 'gf': 0.00980665, 'kN': 1000.0, 'kgf': 9.80665, 'lbf': 4.4482216152605, 'ozf': 0.2780138509537812, 'pdl': 0.13825495437599997}¶
- class lib.unidades.Pressure(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Pressure measure
- Supported units::
Pascal (Pa) (default)
Hectopascal (hPa)
Kilopascal (kPa)
Megapascal (MPa)
bar (bar)
Bar gauge (barg)
Milibar (mbar)
Kilobar (kbar)
Pound per square inch (psi)
Pound per square inch gauge (psig)
Atmosphere (atm)
Atmosphere technical, kg/cm² (kgcm2)
Atmosphere technical gauge, kg/cm²g (kgcm2g)
Milimeter of water column (mmH2O)
Centimeter of water column (cmH2O)
Meter of water column (mH2O)
Inch of water column (inH2O)
Foot of water column (ftH2O)
Milimeter of mercury column (mmHg)
Centimeter of mercury column (cmHg)
Inch of mercury column (inHg)
Foot of mercury column (ftHg)
Pound per square centimeter (lbcm2)
Pound per square foot (lbft2)
Dyn per square centimeter (dyncm2)
Examples
>>> P = Pressure(760, 'mmHg') >>> "%g %g %g %g" % (P.bar, P.atm, P.psi, P.kgcm2g) '1.01325 1 14.6959 0'
- rates = {'MPa': 1000000.0, 'Pa': 1.0, 'atm': 101325.0, 'bar': 100000.0, 'baria': 0.1, 'cmH2O': 98.06649999999999, 'cmHg': 1333.2236842105262, 'dyncm2': 0.1, 'ftH2O': 2989.0669199999993, 'ftHg': 40636.65789473683, 'hPa': 100.0, 'inH2O': 249.08890999999997, 'inHg': 3386.3881578947367, 'kPa': 1000.0, 'kbar': 100000000.0, 'kgcm2': 98066.49999999999, 'lbcm2': 44482.216152605, 'lbft2': 47.88025898033585, 'mH2O': 9806.65, 'mbar': 100.0, 'mmH2O': 9.80665, 'mmHg': 133.32236842105263, 'psi': 6894.757293168361, 'torr': 133.32236842105263}¶
- __init__(data, unit='Pa', magnitud='')[source]¶
Constructor
- Parameters:
- datafloat
Value of initial entity
- unitstr
String with unit of data value input
- magnitudstr, optional
Name of magnitud (i.e. PipeDiameter or Head for length unit)
Notes
Non proportional magnitudes (Temperature, Pressure) must rewrite this method
- class lib.unidades.DeltaP(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Pressure increase measure
- Supported units::
Pascal (Pa) (default)
Hectopascal (hPa)
Kilopascal (kPa)
Megapascal (MPa)
bar (bar)
Bar gauge (barg)
Milibar (mbar)
Pound per square inch (psi)
Pound per square inch gauge (psig)
Atmosphere (atm)
Atmosphere technical, kg/cm² (kgcm2)
Atmosphere technical gauge, kg/cm²g (kgcm2g)
Milimeter of water column (mmH2O)
Centimeter of water column (cmH2O)
Meter of water column (mH2O)
Inch of water column (inH2O)
Foot of water column (ftH2O)
Milimeter of mercury column (mmHg)
Centimeter of mercury column (cmHg)
Inch of mercury column (inHg)
Foot of mercury column (ftHg)
Pound per square centimeter (lbcm2)
Pound per square foot (lbft2)
Dyn per square centimeter (dyncm2)
Examples
>>> D = DeltaP(760, 'mmHg') >>> "%g %g %g %g" % (D.bar, D.atm, D.psi, D.kgcm2) '1.01325 1 14.6959 1.03323'
- rates = {'MPa': 1000000.0, 'Pa': 1.0, 'atm': 101325.0, 'bar': 100000.0, 'barg': 100000.0, 'baria': 0.1, 'cmH2O': 98.06649999999999, 'cmHg': 1333.2236842105262, 'dyncm2': 0.1, 'ftH2O': 2989.0669199999993, 'ftHg': 40636.65789473683, 'hPa': 100.0, 'inH2O': 249.08890999999997, 'inHg': 3386.3881578947367, 'kPa': 1000.0, 'kgcm2': 98066.49999999999, 'kgcm2g': 98066.49999999999, 'lbcm2': 44482.216152605, 'lbft2': 47.88025898033585, 'mH2O': 9806.65, 'mbar': 100.0, 'mmH2O': 9.80665, 'mmHg': 133.32236842105263, 'psi': 6894.757293168361, 'psig': 6894.757293168361, 'torr': 133.32236842105263}¶
- class lib.unidades.Energy(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Energy measure
- Supported units::
Joule (J) (default)
Kilojoule (kJ)
Megajoule (MJ)
Calorie (cal)
Kilocalorie (kcal)
Calorie international (cal_i)
Erg (erg)
Btu (Btu)
KiloBtu (kBtu)
MegaBtu (MBtu)
Watt-hour (Wh)
Kilowatt-hour (kWh)
Megawatt-hour (MWh)
Horsepower-hour (HPh)
kgf/m (kgfm)
lbf/ft (lbfft)
Ton TNT equivalent (TNT)
Metric horsepower-hour (CVh)
Gigaelectronvolt (GeV)
Barrel petrol (oil)
Tonne of oil equivalent (toe)
Tonne of coal equivalent (tce)
Examples
>>> E = Energy(1, 'kcal') >>> "%g %g %g" % (E.J, E.Btu, E.Wh) '4184 3.96567 1.16222'
- rates = {'Btu': 1055.05585262, 'CVh': 2647795.5, 'GeV': 1.6021766339999998e-10, 'HPh': 2684519.5376961725, 'J': 1.0, 'MBtu': 1055055852.62, 'MJ': 1000000.0, 'MWh': 3600000000.0, 'TNT': 4184000000000.0, 'Wh': 3600.0, 'cal': 4.184, 'cal_i': 4.1868, 'erg': 1e-07, 'kBtu': 1055055.85262, 'kJ': 1000.0, 'kWh': 3600000.0, 'kcal': 4184.0, 'kgfm': 9.80665, 'lbfft': 1.3558179483314001, 'oil': 6119323945.196, 'tce': 29300000000.0, 'toe': 41868000000.0}¶
- _magnitudes = [('Energy', 'Energy'), ('Work', 'Work')]¶
- class lib.unidades.Enthalpy(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Enthalpy measure
- Supported units::
J/kg (Jkg) (default)
kJ/kg (kJkg)
MJ/kg (MJkg)
cal/kg (calkg)
kcal/kg (kcalkg)
calg (calg)
cal/lb (callb)
Btu/lb (Btulb)
Examples
>>> E = Enthalpy(-5, 'Btulb') >>> "%g %g" % (E.kJkg, E.kcalkg) '-11.63 -2.77964'
- rates = {'Btulb': 2326.0, 'Jg': 1000.0, 'Jkg': 1.0, 'MJkg': 1000000.0, 'calg': 4184.0, 'calkg': 4.184, 'callb': 9.224141049815278, 'kJg': 1000000.0, 'kJkg': 1000.0, 'kWhkg': 3600000.0, 'kcalg': 4184000.0, 'kcalkg': 4184.0}¶
- class lib.unidades.MolarEnthalpy(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Molar Enthalpy measure
- Supported units::
J/kmol (Jkmol) (default)
kJ/kmol (kJkmol)
MJ/kmol (MJkmol)
cal/kmol (calkmol)
kcal/kmol (kcalkmol)
calmol (calmol)
cal/lbmol (callbmol)
Btu/lbmol (Btulbmol)
Examples
>>> M = MolarEnthalpy(-5, 'Btulbmol') >>> "%g %g" % (M.kJkmol, M.kcalkmol) '-11.63 -2.77964'
- rates = {'Btulbmol': 2326.0, 'Jkmol': 1.0, 'Jmol': 1000.0, 'MJkmol': 1000000.0, 'calkmol': 4.184, 'callbmol': 9.224141049815278, 'calmol': 4184.0, 'kJkmol': 1000.0, 'kJmol': 1000000.0, 'kWhkmol': 3600000.0, 'kcalkmol': 4184.0, 'kcalmol': 4184000.0}¶
- class lib.unidades.Entropy(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Entropy measure
- Supported units::
J/K (JK) (default)
kJ/K (kJK)
MJ/K (MJK)
cal/K (calK)
kcal/K (kcalK)
Mcal/K (McalK)
Wh/K (WhK)
kWh/K (kWhK)
MWh/K (MWhK)
hph/F (hphF)
Btu/F (BtuF)
kBtu/F (kBtuF)
MBtu/F (MBtuF)
Examples
>>> E = Entropy(30, 'BtuF') >>> "%g %g" % (E.kJK, E.kcalK) '56.973 13.6169'
- rates = {'BtuF': 1899.1005347159999, 'JK': 1.0, 'MBtuF': 1899100534.7159998, 'MJK': 1000000.0, 'MWhK': 0.0036, 'McalK': 4184000.0, 'WhK': 3600.0, 'calK': 4.184, 'hphF': 4832135.1678531105, 'kBtuF': 1899100.5347159998, 'kJK': 1000.0, 'kWhK': 3600000.0, 'kcalK': 4184.0}¶
- class lib.unidades.SpecificHeat(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Specific Heat measure
- Supported units::
J/kg·K (JkgK) (default)
kJ/kg·K (kJkgK)
kcal/kg·K (kcalkgK)
cal/g·K (calgK)
kcal/g·K (kcalgK)
kWh/kg·K (kWhkgK)
Btu/lb·F (BtulbF)
Examples
>>> S = SpecificHeat(1, 'BtulbF') >>> "%g %g" % (S.kJkgK, S.kcalkgK) '4.1868 1.00067'
- rates = {'BtulbF': 4186.8, 'JgK': 1000.0, 'JkgK': 1.0, 'calgK': 4184.0, 'kJkgK': 1000.0, 'kWhkgK': 3600000.0, 'kcalgK': 4184000.0, 'kcalkgK': 4184.0}¶
- _magnitudes = [('SpecificHeat', 'Specific Heat'), ('SpecificEntropy', 'Specific Entropy')]¶
- class lib.unidades.MolarSpecificHeat(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Molar Specific Heat measure
- Supported units::
J/kmol·K (JkmolK) (default)
kJ/kmol·K (kJkmolK)
kJ/mol·K (kJmolK)
kcal/kmol·K (kcalkmolK)
cal/mol·K (calmolK)
kcal/mol·K (kcalmolK)
kWh/kmol·K (kWhkmolK)
Btu/lbmol·F (BtulbmolF)
Examples
>>> M = MolarSpecificHeat(1, 'BtulbmolF') >>> "%g %g" % (M.kJkmolK, M.kcalkmolK) '4.1868 1.00067'
- rates = {'BtulbmolF': 4186.8, 'JkmolK': 1.0, 'JmolK': 1000.0, 'calmolK': 4184.0, 'kJkmolK': 1000.0, 'kJmolK': 1000000.0, 'kWhkmolK': 3600000.0, 'kcalkmolK': 4184.0, 'kcalmolK': 4184000.0}¶
- class lib.unidades.Power(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Power measure
- Supported units::
Watt (W) (default)
Kilowatt (kW)
Megawatt (MW)
Horsepower (hp)
Metric horsepower (CV)
Calorie per second (cals)
Kilocalorie per hour (kcalh)
Joule per hour (Jh)
Kilojoule per hour (kJh)
Megajoule per hour (MJh)
Erg per second (ergs)
Btu per second (Btus)
Btu per minute (Btumin)
Btu per hour (Btuh)
MegaBtu per hour (MBtuh)
ft/lbf·s (ftlbfs)
ft/lbf·min (ftlbfmin)
ft/lbf·h (ftlbfh)
Examples
>>> P = Power(5, 'Btuh') >>> "%g %g %g" % (P.kW, P.hp, P.kcalh) '0.00146536 0.00196507 1.26082'
- rates = {'Btuh': 0.2930710701722222, 'Btumin': 17.584264210333334, 'Btus': 1055.05585262, 'CV': 735.49875, 'Jh': 0.0002777777777777778, 'MBtuh': 293071.0701722222, 'MJh': 277.77777777777777, 'MW': 1000000.0, 'W': 1.0, 'cals': 4.184, 'ergs': 1e-07, 'ftlbfh': 0.0003766160967587222, 'ftlbfmin': 0.022596965805523332, 'ftlbfs': 1.3558179483314, 'hp': 745.6998715822701, 'kJh': 0.2777777777777778, 'kW': 1000.0, 'kcalh': 1.1622222222222223}¶
- _magnitudes = [('EnergyFlow', 'Energy Flow'), ('Power', 'Power')]¶
- class lib.unidades.MassFlow(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Mass Flow measure
- Supported units::
kg/s (kgs) (default)
kg/min (kgmin)
kg/h (kgh)
g/s (gs)
g/min (gmin)
g/h (gh)
Ton/s (Tons)
Ton/min (Tonmin)
Ton/h (Tonh)
lb/s (lbs)
lb/min (lbmin)
lb/h (lbh)
TonUK/min (TonUKmin)
TonUS/min (TonUSmin)
TonUK/h (TonUKh)
TonUS/h (TonUSh)
TonUK/day (TonUKday)
TonUS/day (TonUSday)
Examples
>>> M = MassFlow(1, 'gs') >>> "%g %g %g" % (M.kgh, M.lbh, M.gmin) '3.6 7.93664 60'
- rates = {'TonUKday': 0.011759802185185185, 'TonUKh': 0.2822352524444444, 'TonUKmin': 16.934115146666667, 'TonUKs': 1016.0469088, 'TonUSday': 0.010499823379629628, 'TonUSh': 0.2519957611111111, 'TonUSmin': 15.119745666666665, 'TonUSs': 907.1847399999999, 'Tonh': 0.2777777777777778, 'Tonmin': 16.666666666666668, 'Tons': 1000.0, 'gh': 2.7777777777777776e-07, 'gmin': 1.6666666666666667e-05, 'gs': 0.001, 'kgh': 0.0002777777777777778, 'kgmin': 0.016666666666666666, 'kgs': 1.0, 'lbh': 0.00012599788055555553, 'lbmin': 0.0075598728333333325, 'lbs': 0.45359236999999997}¶
- class lib.unidades.MolarFlow(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Molar Flow measure
- Supported units::
kmol/s (kmols) (default)
kmol/min (kmolmin)
kmol/h (kmolh)
mol/s (mols)
mol/min (molmin)
mol/h (molh)
lbmol/s (lbmols)
lbmol/min (lbmolmin)
lbmol/h (lbmolh)
Examples
>>> M = MolarFlow(1, 'mols') >>> "%g %g %g" % (M.kmolh, M.lbmolh, M.molmin) '3.6 7.93664 60'
- rates = {'kmolh': 0.0002777777777777778, 'kmolmin': 0.016666666666666666, 'kmols': 1.0, 'lbmolh': 0.00012599788055555553, 'lbmolmin': 0.0075598728333333325, 'lbmols': 0.45359236999999997, 'molh': 2.7777777777777776e-07, 'molmin': 1.6666666666666667e-05, 'mols': 0.001}¶
- class lib.unidades.VolFlow(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Volumetric Flow measure
- Supported units::
m³/s (m3s) (default)
m³/min (m3min)
m³/h (m3h)
l/s (ls)
l/min (lmin)
l/h (lh)
cm³/s (ccs)
cm³/min (ccmin)
cm³/h (cch)
ft³/s (ft3s)
ft³/min (ft3min)
kft³/min (kft3min)
ft³/h (ft3h)
Mft³/day (mft3day)
galon UK/h (galUKh)
galon US/h (galUSh)
galon UK/min (galUKmin)
galon US/min (galUSmin)
galon UK/s (galUKs)
galon US/s (galUSs)
barril/s (bbls)
barril/min (bblmin)
barril/h (bblh)
barril/day (bblday)
Examples
>>> V = VolFlow(1, 'lmin') >>> "%g %g %g" % (V.m3h, V.ft3min, V.ccs) '0.06 0.0353147 16.6667'
- rates = {'bblday': 1.8401307283333331e-06, 'bblh': 4.416313748e-05, 'bblmin': 0.0026497882488, 'bbls': 0.15898729492799998, 'cch': 2.7777777777777777e-10, 'ccmin': 1.6666666666666667e-08, 'ccs': 1e-06, 'cm3s': 1e-06, 'ft3h': 7.865790719999997e-06, 'ft3min': 0.0004719474431999998, 'ft3s': 0.02831684659199999, 'galUKh': 1.2628027777777779e-06, 'galUKmin': 7.576816666666667e-05, 'galUKs': 0.00454609, 'galUSh': 1.0515032733333332e-06, 'galUSmin': 6.309019639999999e-05, 'galUSs': 0.0037854117839999997, 'kft3min': 0.4719474431999998, 'lh': 2.7777777777777776e-07, 'lmin': 1.6666666666666667e-05, 'ls': 0.001, 'm3h': 0.0002777777777777778, 'm3min': 0.016666666666666666, 'm3s': 1.0, 'mft3day': 0.3277412799999999}¶
- _magnitudes = [('VolFlow', 'Volumetric Flow'), ('QLiq', 'Liquid Flow'), ('QGas', 'Gas Flow')]¶
- class lib.unidades.Diffusivity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Diffusivity measure
- Supported units::
m²/s (m2s) (default)
cm²/s (cm2s)
mm²/s (mm2s)
ft²/s (ft2s)
inch²/s (inch2s)
m²/h (m2h)
ft²/h (ft2h)
inch²/h (inch2h)
Stokes (St)
Centistokes (cSt)
Examples
>>> D = Diffusivity(5, 'St') >>> "%g %g" % (D.m2s, D.ft2s) '0.0005 0.00538196'
- rates = {'St': 0.0001, 'cSt': 1e-06, 'cm2s': 0.0001, 'ft2h': 2.5806399999999994e-05, 'ft2s': 0.09290303999999998, 'inch2h': 1.7921111111111112e-07, 'inch2s': 0.00064516, 'm2h': 0.0002777777777777778, 'm2s': 1.0, 'mm2s': 1e-06}¶
- _magnitudes = [('Diffusivity', 'Diffusivity'), ('KViscosity', 'Kinematic viscosity')]¶
- class lib.unidades.HeatFlux(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Heat Flux measure
- Supported units::
W/m² (Wm2) (default)
kW/m² (kWm2)
cal/hm² (calhm2)
cal/sm² (calsm2)
cal/scm² (calscm2)
kcal/hm² (kcalhm2)
Btu/hft² (Btuhft2)
Btu/sft² (Btusft2)
Examples
>>> H = HeatFlux(1, 'Btuhft2') >>> "%g %g" % (H.Wm2, H.kcalhm2) '3.15459 2.71428'
- rates = {'Btuhft2': 3.1545907450630497, 'Btusft2': 11356.526682226979, 'Wm2': 1.0, 'calhm2': 0.0011622222222222223, 'calscm2': 41840.0, 'calsm2': 4.184, 'kWm2': 1000.0, 'kcalhm2': 1.1622222222222223}¶
- class lib.unidades.ThermalConductivity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Thermal Conductivity measure
- Supported units::
W/m·K (WmK) (default)
mW/m·K (mWmK)
kW/m·K (kWmK)
J/h·m·K (JhmK)
cal/s·cm·K (calscmK)
cal/h·cm·K (calhcmK)
kcal/h·m·K (kcalhmK)
lbf/s·F (lbfsF)
lb/ft·s³·F (lbfts3F)
Btu/h·ft·F (BtuhftF)
Examples
>>> T = ThermalConductivity(50, 'WmK') >>> "%g %g" % (T.BtuhftF, T.kcalhmK) '28.8895 43.021'
- rates = {'BtuhftF': 1.7307346663713912, 'JhmK': 0.0002777777777777778, 'WmK': 1.0, 'calhcmK': 0.11622222222222223, 'calhmmK': 1.1622222222222223, 'calscmK': 418.40000000000003, 'kJhmK': 0.2777777777777778, 'kWmK': 1000.0, 'kcalhmK': 1.1622222222222223, 'lbfsF': 8.006798907468898, 'lbfts3F': 0.24885891787679992, 'mWmK': 0.001}¶
- class lib.unidades.UA(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a UA measure
- Supported units::
W/K (WK) (default)
kW/K (kWK)
mW/K (mWK)
J/h·K (JhK)
kJ/h·K (kJhK)
cal/h·K (calhK)
kcal/h·K (kcalhK)
cal/s·K (calsK)
kcal/s·K (kcalsK)
Btu/h·F (BtuhF)
Btu/s·F (BtusF)
Examples
>>> U = UA(1, 'BtuhF') >>> "%g %g" % (U.WK, U.kcalhK) '5.67826 4.8857'
- rates = {'BtuhF': 5.678263341113489, 'BtusF': 20441.748028008562, 'JhK': 0.0002777777777777778, 'WK': 1.0, 'calhK': 0.0011622222222222223, 'calsK': 4.184, 'kJhK': 0.2777777777777778, 'kWK': 1000.0, 'kcalhK': 1.1622222222222223, 'kcalsK': 4184.0, 'mWK': 0.001}¶
- class lib.unidades.HeatTransfCoef(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Heat Transfer Coefficient measure
- Supported units::
W/m²·K (Wm2K) (default)
kW/m²·K (kWm2K)
J/h·m²·K (Jhm2K)
kJ/h·m²·K (kJhm2K)
cal/h·m³·K (calhm2K)
kcal/h·m²·K (kcalhm2K)
cal/s·m²·K (calsm2K)
kcal/s·m²·K (kcalsm2K)
cal/s·cm²·K (calscm2K)
kcal/s·cm²·K (kcalscm2K)
Btu/h·ft²·F (Btuhft2F)
Btu/s·ft²·F (Btusft2F)
Examples
>>> H = HeatTransfCoef(1, 'Btuhft2F') >>> "%g %g" % (H.Wm2K, H.kcalhm2K) '5.67826 4.8857'
- rates = {'Btuhft2F': 5.678263341113489, 'Btusft2F': 20441.748028008562, 'Jhm2K': 0.0002777777777777778, 'Wm2K': 1.0, 'calhm2K': 0.0011622222222222223, 'calscm2K': 8.006798907468898, 'calsm2K': 4.184, 'kJhm2K': 0.2777777777777778, 'kWm2K': 1000.0, 'kcalhm2K': 1.1622222222222223, 'kcalscm2K': 41840000.0, 'kcalsm2K': 4184.0}¶
- class lib.unidades.Fouling(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Fouling Factor measure
- Supported units::
m²·K/W (m2KW) (default)
m²·K/kW (m2KkW)
h·m²·K/J (hm2KJ)
h·m²·K/kJ (hm2KkJ)
h·m³·K/cal (hm2Kcal)
h·m²·K/kcal (hm2Kkcal)
s·m²·K/cal (sm2Kcal)
s·m²·K/kcal (sm2Kkcal)
s·cm²·K/cal (scm2Kcal)
s·cm²·K/kcal (scm2Kkcal)
h·ft²·F/Btu (hft2FBtu)
s·ft²·F/Btu (sft2FBtu)
Examples
>>> F = Fouling(1, 'hft2FBtu') >>> "%g %g" % (F.m2KW, F.hm2Kkcal) '0.17611 0.204679'
- rates = {'hft2FBtu': 0.17611018368230583, 'hm2KJ': 3600.0, 'hm2Kcal': 860.4206500956022, 'hm2KkJ': 3.6, 'hm2Kkcal': 0.8604206500956023, 'm2KW': 1.0, 'm2KkW': 0.001, 'scm2Kcal': 0.12489385727761695, 'scm2Kkcal': 2.390057361376673e-08, 'sft2FBtu': 4.8919495467307173e-05, 'sm2Kcal': 0.2390057361376673, 'sm2Kkcal': 0.0002390057361376673}¶
- class lib.unidades.Tension(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Surface Tension measure
- Supported units::
N/m (Nm) (default)
mN/m (mNm)
dyn/cm (dyncm)
lbf/ft (lbfft)
Examples
>>> T = Tension(1, 'lbfft') >>> "%g %g" % (T.Nm, T.dyncm) '14.5939 14593.9'
- rates = {'Nm': 1.0, 'dyncm': 0.001, 'lbfft': 14.593902937206366, 'mNm': 0.001}¶
- class lib.unidades.Viscosity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Viscosity measure
- Supported units::
Pascal per second (Pas) (default)
Milipascal per second (mPas)
Micropascal per second (muPas)
Poise (P)
Centipoise (cP)
dyn/s·cm² (dynscm2)
microPoise (microP)
Reyn (reyn)
lb/ft·s (lbfts)
lbf/ft² (lbfft2)
lbf/in² (lbfinch2)
lb/ft·h (lbfth)
Examples
>>> V = Viscosity(1, 'P') >>> "%g %g %g" % (V.cP, V.Pas, V.lbfth) '100 0.1 241.909'
- rates = {'P': 0.1, 'Pas': 1.0, 'cP': 0.001, 'dynscm2': 0.001, 'lbfft2': 1.488163943569554, 'lbfinch2': 6894.757293168361, 'lbfth': 0.00041337887321376497, 'lbfts': 4.4482216152605, 'mPas': 0.001, 'microP': 1e-07, 'muPas': 1e-06, 'reyn': 6894.757293168361}¶
- class lib.unidades.SolubilityParameter(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Solubility Parameter measure
- Supported units::
(J/m³)^0.5 (Jm3) (default)
(cal/cm³)^0.5 (calcc)
(Btu/ft³)^0.5 (Btuft3)
Examples
>>> S = SolubilityParameter(1, 'Btuft3') >>> "%g %g" % (S.Jm3, S.calcc) '193.026 0.0943668'
- rates = {'Btuft3': 193.02576462180198, 'Jm3': 1.0, 'calcc': 2045.4828280872953}¶
- class lib.unidades.PotencialElectric(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Electric Potencial measure
- Supported units::
V/m (Vm) (default)
kV/m (kVm)
MV/m (MVm)
V/cm (Vcm)
kV/cm (kVcm)
MV/cm (MVcm)
statV/m (statVm)
statV/cm (statVcm)
Examples
>>> P = PotencialElectric(3, 'statVcm') >>> "%g" % (P.Vm) '90000'
- rates = {'MVcm': 100000000.0, 'MVm': 1000000.0, 'Vcm': 0.01, 'Vm': 1.0, 'kVcm': 100000.0, 'kVm': 1000.0, 'statVcm': 30000.0, 'statVm': 300}¶
- class lib.unidades.DipoleMoment(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Dipole Moment measure
- Supported units::
Coulomb per meter (Cm) (default)
Debye (Debye)
Examples
>>> D = DipoleMoment(1, 'Debye') >>> "%g %g" % (D.Cm, D.Debye) '3.33564e-30 1'
- rates = {'Cm': 1.0, 'Debye': 3.33564095198152e-30}¶
- class lib.unidades.CakeResistance(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Cake Resistance measure
- Supported units::
m/kg (mkg) (default)
c/gr (cmg)
ft/lb (ftlb)
Examples
>>> C = CakeResistance(1, 'ftlb') >>> "%g" % (C.mkg) '0.671969'
- rates = {'cmg': 1e-05, 'ftlb': 0.6719689751395068, 'mkg': 1.0}¶
- class lib.unidades.PackingDP(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Packing Pressure drop measure
- Supported units::
mmH2O/m (mmH2Om) (default)
inH2O/ft (inH2Oft)
Examples
>>> P = PackingDP(1, 'inH2Oft') >>> "%g" % (P.mmH2Om) '83.3333'
- rates = {'inH2Oft': 83.33333333333334, 'mmH2Om': 1.0}¶
- class lib.unidades.V2V(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Gas-Oil ratio measure
- Supported units::
m³/m³ (m3m3) (default)
cubic foot/oil barrel (ft3bbl)
Examples
>>> V = V2V(1, 'ft3bbl') >>> "%g" % (V.m3m3) '0.178108'
- rates = {'ft3bbl': 0.17810760667903522, 'ft3ft3': 1.0, 'll': 1.0, 'm3m3': 1.0}¶
- class lib.unidades.InvTemperature(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Temperature inverse measure
- Supported units::
1/Kelvin (K) (default)
1/Celsius (C)
1/Rankine (R)
1/Fahrenheit (F)
1/Reaumur (Re)
Examples
>>> I = InvTemperature(25, 'C') >>> "%g %g" % (I.K, I.F) '25 13.8889'
- rates = {'C': 1.0, 'F': 1.7999999999999998, 'K': 1.0, 'R': 1.7999999999999998, 'Re': 0.8}¶
- class lib.unidades.InvPressure(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Pressure inverse measure
- Supported units::
Pascal (Pa) (default)
Hectopascal (hPa)
Kilopascal (kPa)
Megapascal (MPa)
bar (bar)
Bar gauge (barg)
Milibar (mbar)
Pound per square inch (psi)
Pound per square inch gauge (psig)
Atmosphere (atm)
Atmosphere technical, kg/cm² (kgcm2)
Atmosphere technical gauge, kg/cm²g (kgcm2g)
Milimeter of water column (mmH2O)
Centimeter of water column (cmH2O)
Meter of water column (mH2O)
Inch of water column (inH2O)
Foot of water column (ftH2O)
Milimeter of mercury column (mmHg)
Centimeter of mercury column (cmHg)
Inch of mercury column (inHg)
Foot of mercury column (ftHg)
Pound per square centimeter (lbcm2)
Pound per square foot (lbft2)
Dyn per square centimeter (dyncm2)
Examples
>>> I = InvPressure(1, 'mmHg') >>> "%g %g %g" % (I.bar, I.atm, I.psi) '750.062 760 51.7149'
- rates = {'MPa': 1e-06, 'Pa': 1.0, 'atm': 9.869232667160129e-06, 'bar': 1e-05, 'barg': 1e-05, 'baria': 10.0, 'cmH2O': 0.010197162129779284, 'cmHg': 0.0007500616827041697, 'dyncm2': 10.0, 'ftH2O': 0.00033455256331296865, 'ftHg': 2.460832292336515e-05, 'hPa': 0.01, 'inH2O': 0.004014630759755623, 'inHg': 0.0002952998750803818, 'kPa': 0.001, 'kgcm2': 1.0197162129779284e-05, 'kgcm2g': 1.0197162129779284e-05, 'lbcm2': 2.248089430997105e-05, 'lbft2': 0.020885434233150122, 'mH2O': 0.00010197162129779283, 'mbar': 0.01, 'mmH2O': 0.10197162129779283, 'mmHg': 0.007500616827041697, 'psi': 0.00014503773773020924, 'psig': 0.00014503773773020924, 'torr': 0.007500616827041697}¶
- class lib.unidades.EnthalpyPressure(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Enthalpy per pressure measure
- Supported units::
J/kgPa (JkgPa) (default)
kJ/kgkPa (kJkgkPa)
kJ/kgMPa (kJkgMPa)
J/kgatm (Jkgatm)
kJ/kgatm (kJkgatm)
Btu/lb psi (Btulbpsi)
Examples
>>> E = EnthalpyPressure(5, 'JkgPa') >>> "%g %g" % (E.JkgPa, E.kJkgMPa) '5 5000'
- rates = {'Btulbpsi': 0.3373577779604667, 'JkgPa': 1.0, 'Jkgatm': 9.869232667160129e-06, 'kJkgMPa': 0.001, 'kJkgatm': 0.009869232667160128, 'kJkgkPa': 1.0}¶
- class lib.unidades.EnthalpyDensity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Enthalpy per density measure
- Supported units::
J/kgkgm³ (Jkgkgm3) (default)
kJ/kgkgm³ (kJkgkgm3)
Btulb/lbft³ (Btulb2ft3)
Examples
>>> E = EnthalpyDensity(5, 'Jkgkgm3') >>> "%g" % (E.kJkgkgm3) '0.005'
- rates = {'Btulb2ft3': 145.20743630011233, 'Jkgkgm3': 1.0, 'kJkgkgm3': 1000.0}¶
- class lib.unidades.TemperaturePressure(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Temperature per pressure measure
- Supported units::
K/Pa (KPa) (default)
K/kPa (KkPa)
K/bar (Kbar)
K/MPa (KMPa)
K/atm (Katm)
F/psi (Fpsi)
Examples
>>> T = TemperaturePressure(1, 'KPa') >>> "%g %g" % (T.KPa, T.KkPa) '1 1000'
- rates = {'Fpsi': 8.057652096122735e-05, 'KMPa': 1e-06, 'KPa': 1.0, 'Katm': 9.869232667160129e-06, 'Kbar': 1e-05, 'KkPa': 0.001}¶
- class lib.unidades.PressureTemperature(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Pressure per Temperature measure
- Supported units::
Pa/K (PaK) (default)
kPa/K (kPaK)
bar/K (barK)
MPa/K (MPaK)
atm/K (atmK)
psi/F (psiF)
Examples
>>> P = PressureTemperature(1000, 'PaK') >>> "%g %g" % (P.kPaK, P.atmK) '1 0.00986923'
- rates = {'MPaK': 1000000.0, 'PaK': 1.0, 'atmK': 101325.0, 'barK': 100000.0, 'kPaK': 1000.0, 'psiF': 12410.563127703048}¶
- class lib.unidades.PressureDensity(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Pressure per density measure
- Supported units::
Pa/kgm³ (Pakgm3) (default)
kPa/kgm³ (kPakgm3)
bar/kgm³ (barkgm3)
MPa/kgm³ (MPakgm3)
atm/kgm³ (atmkgm3)
Pa/gcm³ (Pagcc)
psi/lbft³ (psilbft3)
Examples
>>> P = PressureDensity(1000, 'Pakgm3') >>> "%g %g" % (P.kPakgm3, P.atmkgm3) '1 0.00986923'
- rates = {'MPakgm3': 1000000.0, 'Pagcc': 0.001, 'Pakgm3': 1.0, 'atmkgm3': 101325.0, 'barkgm3': 100000.0, 'kPakgm3': 1000.0, 'psilbft3': 430.4256364799998}¶
- class lib.unidades.DensityPressure(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Density per pressure measure
- Supported units::
kg/m³Pa (kgm3Pa) (default)
kg/m³kPa (kgm3kPa)
kg/m³MPa (kgm3MPa)
kg/m³bar (kgm3bar)
kg/m³atm (kgm3atm)
gcm³/Pa (gccPa)
lb/ft³psi (lbft3psi)
Examples
>>> D = DensityPressure(5, 'lbft3psi') >>> "%g %g" % (D.kgm3Pa, D.kgm3atm) '0.0116164 1177.03'
- rates = {'gccPa': 1000.0, 'kgm3MPa': 1e-06, 'kgm3Pa': 1.0, 'kgm3atm': 9.869232667160129e-06, 'kgm3bar': 1e-05, 'kgm3kPa': 0.001, 'lbft3psi': 0.002323281689673394}¶
- class lib.unidades.DensityTemperature(data, unit='', magnitud='')[source]¶
Bases:
unidadClass to model a Density per temperature measure
- Supported units::
kg/m³K (kgm3K) (default)
g/cm³K (gccK)
lb/ft³F (lbft3F)
Examples
>>> D = DensityTemperature(1, 'gccK') >>> "%g %g" % (D.kgm3K, D.lbft3F) '1000 34.6822'
- rates = {'gccK': 1000.0, 'kgm3K': 1.0, 'lbft3F': 28.83323407312826}¶
- class lib.unidades.Currency(data, unit='', magnitud='')[source]¶
Bases:
unidadClass that models a currency rate Supported many currency codes from ISO 4217 using the currencyscoop web service
>>> S=Currency(5, "eur")
- Attributes:
strReturn a string representation of class
- filename = '/home/docs/.pychemqt/moneda.dat'¶
- archivo = <_io.TextIOWrapper name='/home/docs/.pychemqt/moneda.dat' mode='r' encoding='UTF-8'>¶
- rates = {'ada': 0.44510225414202814, 'aed': 0.27229407760381213, 'afn': 0.011293423255756897, 'all': 0.008548681321551318, 'amd': 0.002417285539222066, 'ang': 0.5588193492786735, 'aoa': 0.0023342143209055008, 'ars': 0.00691396046434403, 'ats': 0.07264737398300823, 'aud': 0.6700179804685202, 'awg': 0.5586592178770949, 'azm': 0.00011747855529565852, 'azn': 0.5873927759276243, 'bam': 0.5111127540546638, 'bbd': 0.5, 'bch': 112.45115402996824, 'bdt': 0.009641255650236784, 'bef': 0.024780667777753666, 'bgn': 0.5111127540546638, 'bhd': 2.6595744680851063, 'bif': 0.0004854774101139462, 'bmd': 1.0, 'bnd': 0.7092028071098149, 'bob': 0.14488192320298374, 'brl': 0.1934663294140976, 'bsd': 1.0, 'btc': 18989.7455374098, 'btn': 0.012540423655928883, 'bwp': 0.07658773094480749, 'byn': 0.3967008831228116, 'byr': 3.967008825993937e-05, 'bzd': 0.4970599500426915, 'cad': 0.7496920021605223, 'cdf': 0.0004919913543334626, 'chf': 1.0364877906402459, 'clf': 26.259821501489323, 'clp': 0.00108008861092803, 'cnh': 0.1422621831004064, 'cny': 0.14245034983512467, 'cop': 0.00022650882345947476, 'crc': 0.0015843595776538963, 'cuc': 1.0, 'cup': 0.041731807409795395, 'cve': 0.009065472568228485, 'cyp': 1.7080028404770438, 'czk': 0.0405676687601197, 'dem': 0.5111127540546638, 'djf': 0.00562379894480206, 'dkk': 0.13441714649208206, 'doge': 0.05882805162790755, 'dop': 0.018745525942057258, 'dot': 6.328368938846439, 'dzd': 0.007110804040677704, 'eek': 0.06388909442010564, 'egp': 0.05145471427811788, 'ern': 0.06666666666666667, 'esp': 0.006008015458764122, 'etb': 0.019033412254933133, 'eth': 1358.1605074087656, 'eur': 0.9996496627791824, 'fim': 0.16812900342057785, 'fjd': 0.4438935547872113, 'fkp': 1.1416352799733231, 'frf': 0.15239560836820623, 'gbp': 1.1416352799733231, 'gel': 0.3521524593644586, 'ggp': 1.1416352799733231, 'ghc': 9.926245394311841e-06, 'ghs': 0.09926245396031196, 'gip': 1.1416352799733231, 'gmd': 0.018317064797469747, 'gnf': 0.00011592845985605796, 'grd': 0.002933674717902089, 'gtq': 0.12842788818835343, 'gyd': 0.00479090284457221, 'hkd': 0.12739539425953347, 'hnl': 0.04059123721858861, 'hrk': 0.13291486399830127, 'htg': 0.008465246873976724, 'huf': 0.0025079629854985615, 'idr': 6.657891711806422e-05, 'iep': 1.2692932414031626, 'ils': 0.28987371512461213, 'imp': 1.1416352799733231, 'inr': 0.012540423655928883, 'iqd': 0.0006854033945426366, 'irr': 2.3743344763762064e-05, 'isk': 0.007087115187852098, 'itl': 0.0005162759636512176, 'jep': 1.1416352799733231, 'jmd': 0.006609114447388926, 'jod': 1.4104372355430184, 'jpy': 0.0069578873311261025, 'kes': 0.008296057838834341, 'kgs': 0.01232528084753157, 'khr': 0.00024341839488717972, 'kmf': 0.002031941443588205, 'kpw': 0.0011111155223878838, 'krw': 0.000717365995547469, 'kwd': 3.2354227542493876, 'kyd': 1.2195149910831502, 'kzt': 0.0020967502518901824, 'lak': 6.282476731964433e-05, 'lbp': 0.0006633499170812604, 'link': 7.139773780551628, 'lkr': 0.0027509350783614613, 'lrd': 0.006491544346245003, 'lsl': 0.05648001587422807, 'ltc': 51.80375494337331, 'ltl': 0.2895185528815828, 'luf': 0.024780667777753666, 'lvl': 1.4223814075633225, 'lyd': 0.20173973651007035, 'mad': 0.09392713498244618, 'mdl': 0.05164393914081758, 'mga': 0.00023741702436415338, 'mgf': 4.748340487287578e-05, 'mkd': 0.01619633983946551, 'mmk': 0.0004770177290428917, 'mnt': 0.00030594335539461313, 'mop': 0.12368484864574374, 'mro': 0.002645407255266315, 'mru': 0.026454072554762606, 'mtl': 2.3285573457892523, 'mur': 0.022762611298487893, 'mvr': 0.0646717722500036, 'mwk': 0.000976338871526527, 'mxn': 0.05005802586195445, 'mxv': 0.34901343917431127, 'myr': 0.21941169637720812, 'mzm': 1.566153000249007e-05, 'mzn': 0.015661530002389505, 'nad': 0.05648001587422807, 'ngn': 0.0023282522101831706, 'nio': 0.027795926162629343, 'nlg': 0.4536212383867066, 'nok': 0.09702148023846456, 'npr': 0.007834092554188207, 'nzd': 0.5908128297747357, 'omr': 2.5971702687167415, 'pab': 1.0, 'pen': 0.25796276895585235, 'pgk': 0.28449986714282954, 'php': 0.017354662028312526, 'pkr': 0.004196792996684683, 'pln': 0.21143571012641144, 'pte': 0.004986231482856211, 'pyg': 0.00014378263457588, 'qar': 0.2747252747252747, 'rol': 2.0232491182479718e-05, 'ron': 0.2023249119210362, 'rsd': 0.008520791785040154, 'rub': 0.016441023248796052, 'rwf': 0.0009503049910990875, 'sar': 0.26666666666666666, 'sbd': 0.12349073162727339, 'scr': 0.06837346826747955, 'sdd': 1.7414167151636817e-05, 'sdg': 0.0017414167151664109, 'sek': 0.09203379271767817, 'sgd': 0.7092028071098149, 'shp': 1.1416352799733231, 'sit': 0.004171464113373095, 'skk': 0.033182289718444564, 'sle': 0.07104708421139419, 'sll': 7.104708420584172e-05, 'sos': 0.0017606871067094897, 'spl': 5.9999998800000025, 'srd': 0.03580865022960481, 'srg': 3.580865023329772e-05, 'std': 4.0824918556252186e-05, 'stn': 0.04082491855963554, 'svc': 0.11428571428571428, 'syp': 0.00039810023966514946, 'szl': 0.05648001587422807, 'thb': 0.02698860555944002, 'tjs': 0.09928896866038227, 'tmm': 5.70832748642842e-05, 'tmt': 0.2854163746262537, 'tnd': 0.31203809780477204, 'top': 0.4201667837762529, 'trl': 5.460520302742813e-08, 'try': 0.054605203022477934, 'ttd': 0.14759724307832767, 'tvd': 0.6700179804685202, 'twd': 0.0318728824386, 'tzs': 0.00042885786185881814, 'uah': 0.027062902847157594, 'ugx': 0.00026200710761726853, 'uni': 0.054296750903927424, 'usd': 1.0, 'uyu': 0.024387346180121505, 'uzs': 9.108977325075034e-05, 'val': 0.0005162759636512176, 'veb': 1.2458168780578317e-09, 'ved': 0.12460482778190438, 'vef': 1.246048277954418e-06, 'ves': 0.12460482778190438, 'vnd': 4.2190826808166516e-05, 'vuv': 0.008331311360862678, 'wst': 0.36318335249446326, 'xaf': 0.0015239560827066366, 'xag': 19.202928677058395, 'xau': 1665.1957437596789, 'xbt': 18989.7455374098, 'xcd': 0.37035313386118485, 'xdr': 1.2934140404724517, 'xlm': 0.11523082500160213, 'xof': 0.0015239560827066366, 'xpd': 2205.2175447107857, 'xpf': 0.008377064152042141, 'xpt': 920.9120713154308, 'xrp': 0.3958879968881303, 'yer': 0.003996829312268987, 'zar': 0.05648001587422807, 'zmk': 6.315729833489506e-05, 'zmw': 0.06315729833250175, 'zwd': 0.002763194252555955, 'zwl': 0.0016439484143148558}¶
- date = '2022-09-20'¶
- _uMain = [('usd', 'United States dollar', '$'), ('eur', 'Euro', '€'), ('gbp', 'Pound sterling', '£'), ('jpy', 'Japanese yen', '¥'), ('cny', 'Chinese yuan', '¥'), ('rub', 'Russian rouble', 'руб'), ('aud', 'Australian dollar', 'A$'), ('brl', 'Brazilian real', 'R$'), ('cad', 'Canadian dollar', 'C$'), ('chf', 'Swiss franc', 'Fr.')]¶
- _uEurope = [('dkk', 'Danish krone', 'kr'), ('isk', 'Icelandic króna', 'Íkr'), ('nok', 'Norwegian krone', 'kr'), ('sek', 'Swedish krona', 'kr'), ('all', 'Albanian lek', 'L'), ('bgn', 'Bulgarian lev', 'лв'), ('czk', 'Czech koruna', 'Kč'), ('huf', 'Hungarian forint', 'Ft'), ('pln', 'Polish złoty', 'zł'), ('ron', 'Romanian new leu', 'RON'), ('bam', 'Bosnia and Herzebgovina convertible mark', 'KM'), ('hrk', 'Croatian kuna', 'kn'), ('mkd', 'Macedonian denar', 'ден'), ('mdl', 'Moldovan leu', 'lei'), ('rsd', 'Serbian dinar', 'дин.'), ('byn', 'Belarusian ruble', 'p.'), ('uah', 'Ukrainian hryvnia', '₴'), ('try', 'Turkish lira', 'TL')]¶
- _uAmerica = [('ars', 'Argentine peso', '$'), ('bob', 'Bolivian boliviano', 'Bs'), ('clf', 'Chilean Unit of Account', 'UF'), ('clp', 'Chilean peso', '$'), ('cop', 'Colombian peso', '$'), ('crc', 'Costa Rican colon', '₡'), ('cuc', 'Cuban convertible peso', 'CUC$'), ('cup', 'Cuban peso', '₱'), ('dop', 'Dominican peso', 'RD$'), ('gtq', 'Guatemalan quetzal', 'Q'), ('hnl', 'Honduran lempira', 'L'), ('mxn', 'Mexican peso', '$'), ('mxv', 'Mexican UDI', '$'), ('nio', 'Nicaraguan córdoba', 'C$'), ('pab', 'Panamanian balboa', '฿'), ('pyg', 'Paraguayan guaraní', '₲'), ('pen', 'Peruvian nuevo sol', 'S/.'), ('svc', 'Salvadoran colón', '₡'), ('uyu', 'Uruguayan peso', '$U'), ('ved', 'Venezuelan digital bolívar', 'Bs.D'), ('ves', 'Venezuelan sovereign bolívar', 'Bs.S'), ('awg', 'Aruban florin', 'Afl.'), ('bsd', 'Bahamian dollar', 'B$'), ('bbd', 'Barbados dollar', 'Bds$'), ('bzd', 'Belize dollar', 'BZ$'), ('bmd', 'Bermudean dollar', 'BD$'), ('kyd', 'Cayman Islands dollar', 'CI$'), ('xcd', 'East Caribbean dollar', 'EC$'), ('gyd', 'Guyanese dollar', 'GY$'), ('htg', 'Haitian gourde', 'G'), ('jmd', 'Jamaican dollar', 'J$'), ('ang', 'Netherlands Antillean guilder', 'f'), ('srd', 'Surinamese dollar', '$'), ('ttd', 'Trinidad and Tobago dollar', 'TT$')]¶
- _uAsia = [('afn', 'Afghan afghani', 'Af'), ('bhd', 'Bahraini dinar', 'BD'), ('bnd', 'Brunei dollar', 'B$'), ('ils', 'Israeli new shekel', '₪'), ('iqd', 'Iraqi dinar', 'د.ع'), ('irr', 'Iranian rial', '﷼'), ('jod', 'Jordanian dinar', 'JD'), ('kwd', 'Kuwaiti dinar', 'د.ك'), ('lbp', 'Lebanese pound', 'ل.ل.'), ('omr', 'Omani rial', '﷼'), ('pkr', 'Pakistani rupee', 'Rs'), ('qar', 'Qatari riyal', 'QR'), ('sar', 'Saudi riyal', 'ر.س'), ('syp', 'Syrian pound', '£S'), ('aed', 'United Arab Emirates dirham', 'إ.د'), ('yer', 'Yemeni rial', '﷼'), ('amd', 'Armenian dram', '֏'), ('azn', 'Azerbaijan manat', '₼'), ('gel', 'Georgian lari', 'ლ'), ('kzt', 'Kazakhstani tenge', '₸'), ('kgs', 'Kyrgyzstani som', 'som'), ('tjs', 'Tajikistani somoni', 'som'), ('tmt', 'Turkmenistan manat', 'T'), ('uzs', 'Uzbekistan som', 'som'), ('bdt', 'Bangladeshi taka', 'bdt'), ('btn', 'Bhutanese ngultrum', 'Nu.'), ('cnh', 'Renminbi', '¥'), ('khr', 'Cambodian riel', 'khr'), ('kpw', 'North Korean won', '₩'), ('hkd', 'Hong Kong dollar', 'HK$'), ('inr', 'Indian rupee', '₨'), ('idr', 'Indonesian rupiah', 'Rp'), ('lak', 'Lao kip', '₭'), ('mop', 'Macanese pataca', 'MOP$'), ('myr', 'Malaysian ringgit', 'RM'), ('mnt', 'Mongolian tögrög', '₮'), ('mmk', 'Myanmar kyat', 'K'), ('npr', 'Nepalese rupee', 'npr'), ('twd', 'New Taiwan dollar', 'NT$'), ('php', 'Philippine peso', 'PhP'), ('sgd', 'Singapore dollar', 'S$'), ('krw', 'South Korean won', '₩'), ('lkr', 'Sri Lankan rupee', '₨'), ('thb', 'Thai baht', '฿'), ('vnd', 'Vietnamese dong', '₫')]¶
- _uAfrica = [('dzd', 'Algerian dinar', 'دج'), ('aoa', 'Angolan kwanza', 'Kz'), ('bwp', 'Botswana pula', 'P'), ('bif', 'Burundian franc', 'FBu'), ('cve', 'Cape Verde escudo', '$'), ('kmf', 'Comoro franc', 'CF'), ('cdf', 'Congolese franc', 'FC'), ('djf', 'Djiboutian franc', 'Fdj'), ('egp', 'Egyptian pound', 'E£'), ('ern', 'Eritrean nakfa', 'Nfk'), ('etb', 'Ethiopian birr', 'Br'), ('gmd', 'Ghambian dalasi', 'D'), ('ghs', 'Ghanaian cedi', 'GH₵'), ('gnf', 'Guinean franc', 'GFr'), ('kes', 'Kenyan shilling', 'KSh'), ('lsl', 'Lesotho loti', 'L'), ('lrd', 'Liberian dollar', 'L$'), ('lyd', 'Libyan dinar', 'ل.د'), ('mru', 'Mauritanian ouguiya', 'UM'), ('mur', 'Mauritian rupee', '₨'), ('mga', 'Malagasy ariary', 'Ar'), ('mwk', 'Malawian kwacha', 'MK'), ('mvr', 'Maldivian rufiyaa', 'MRf'), ('mad', 'Moroccan dirham', 'درهم'), ('mzn', 'Mozambican metical', 'MT'), ('nad', 'Namibian dollar', 'N$'), ('ngn', 'Nigerian naira', '₦'), ('rwf', 'Rwandan franc', 'FRw'), ('stn', 'São Tomé and Príncipe dobra', 'Db'), ('scr', 'Seychelles rupee', 'SR'), ('sll', 'Sierra Leonean leone', 'Le'), ('sos', 'Somali shilling', 'Sh.So.'), ('zar', 'South African rand', 'R'), ('sdg', 'Sudanese pound', 'ج.س'), ('szl', 'Swazi lilangeni', 'L'), ('tzs', 'Tanzanian shilling', 'TSh'), ('tnd', 'Tunisian dinar', 'د.ت'), ('ugx', 'Ugandan shilling', 'USh'), ('zmw', 'Zambian kwacha', 'ZK'), ('zwl', 'Zimbabwean dollar', 'Z$'), ('xaf', 'Central AFrican CFA franc', 'FCFA'), ('xof', 'West African CFA franc', 'CFA')]¶
- _uOceania = [('fjd', 'Fiji dollar', 'FJ$'), ('nzd', 'New Zealand dollar', 'NZ$'), ('pgk', 'Papua New Guinean kina', 'K'), ('sbd', 'Salomon Islands dollar', 'SI$'), ('wst', 'Samoan tala', 'WS$'), ('top', "Tongan pa'anga", 'T$'), ('tvd', 'Tuvalu dollar', 'TV$'), ('vuv', 'Vanuatu vatu', 'VT'), ('xpf', 'CFP franc', 'F')]¶
- _uCrypto = [('ada', 'Cardano', '₳'), ('bch', 'Bitcoin Cash', 'bch'), ('xbt', 'Bitcoin', '₿'), ('ltc', 'Litecoin', 'Ł'), ('doge', 'Dogecoin', 'Ð'), ('xrp', 'Ripple', 'xrp'), ('xlm', 'Stellar', 'xlm'), ('eth', 'Ethereum', 'Ξ'), ('dot', 'Polkadot', 'dot'), ('uni', 'Uniswap', 'uni'), ('link', 'Chainlink', 'link')]¶
- _uUnused = ['fkp', 'ggp', 'gip', 'imp', 'jep', 'shp', 'ats', 'azm', 'bef', 'btc', 'byr', 'cyp', 'dem', 'eek', 'esp', 'fim', 'frf', 'ghc', 'grd', 'iep', 'itl', 'ltl', 'luf', 'lvl', 'mgf', 'mtl', 'mzm', 'mro', 'nlg', 'pte', 'rol', 'sdd', 'sit', 'skk', 'sle', 'spl', 'srg', 'std', 'tmm', 'trl', 'val', 'veb', 'vef', 'xag', 'xau', 'xdr', 'xpd', 'xpt', 'zmk', 'zwd']¶
- _uTotal = [('usd', 'United States dollar', '$'), ('eur', 'Euro', '€'), ('gbp', 'Pound sterling', '£'), ('jpy', 'Japanese yen', '¥'), ('cny', 'Chinese yuan', '¥'), ('rub', 'Russian rouble', 'руб'), ('aud', 'Australian dollar', 'A$'), ('brl', 'Brazilian real', 'R$'), ('cad', 'Canadian dollar', 'C$'), ('chf', 'Swiss franc', 'Fr.'), ('dkk', 'Danish krone', 'kr'), ('isk', 'Icelandic króna', 'Íkr'), ('nok', 'Norwegian krone', 'kr'), ('sek', 'Swedish krona', 'kr'), ('all', 'Albanian lek', 'L'), ('bgn', 'Bulgarian lev', 'лв'), ('czk', 'Czech koruna', 'Kč'), ('huf', 'Hungarian forint', 'Ft'), ('pln', 'Polish złoty', 'zł'), ('ron', 'Romanian new leu', 'RON'), ('bam', 'Bosnia and Herzebgovina convertible mark', 'KM'), ('hrk', 'Croatian kuna', 'kn'), ('mkd', 'Macedonian denar', 'ден'), ('mdl', 'Moldovan leu', 'lei'), ('rsd', 'Serbian dinar', 'дин.'), ('byn', 'Belarusian ruble', 'p.'), ('uah', 'Ukrainian hryvnia', '₴'), ('try', 'Turkish lira', 'TL'), ('ars', 'Argentine peso', '$'), ('bob', 'Bolivian boliviano', 'Bs'), ('clf', 'Chilean Unit of Account', 'UF'), ('clp', 'Chilean peso', '$'), ('cop', 'Colombian peso', '$'), ('crc', 'Costa Rican colon', '₡'), ('cuc', 'Cuban convertible peso', 'CUC$'), ('cup', 'Cuban peso', '₱'), ('dop', 'Dominican peso', 'RD$'), ('gtq', 'Guatemalan quetzal', 'Q'), ('hnl', 'Honduran lempira', 'L'), ('mxn', 'Mexican peso', '$'), ('mxv', 'Mexican UDI', '$'), ('nio', 'Nicaraguan córdoba', 'C$'), ('pab', 'Panamanian balboa', '฿'), ('pyg', 'Paraguayan guaraní', '₲'), ('pen', 'Peruvian nuevo sol', 'S/.'), ('svc', 'Salvadoran colón', '₡'), ('uyu', 'Uruguayan peso', '$U'), ('ved', 'Venezuelan digital bolívar', 'Bs.D'), ('ves', 'Venezuelan sovereign bolívar', 'Bs.S'), ('awg', 'Aruban florin', 'Afl.'), ('bsd', 'Bahamian dollar', 'B$'), ('bbd', 'Barbados dollar', 'Bds$'), ('bzd', 'Belize dollar', 'BZ$'), ('bmd', 'Bermudean dollar', 'BD$'), ('kyd', 'Cayman Islands dollar', 'CI$'), ('xcd', 'East Caribbean dollar', 'EC$'), ('gyd', 'Guyanese dollar', 'GY$'), ('htg', 'Haitian gourde', 'G'), ('jmd', 'Jamaican dollar', 'J$'), ('ang', 'Netherlands Antillean guilder', 'f'), ('srd', 'Surinamese dollar', '$'), ('ttd', 'Trinidad and Tobago dollar', 'TT$'), ('dzd', 'Algerian dinar', 'دج'), ('aoa', 'Angolan kwanza', 'Kz'), ('bwp', 'Botswana pula', 'P'), ('bif', 'Burundian franc', 'FBu'), ('cve', 'Cape Verde escudo', '$'), ('kmf', 'Comoro franc', 'CF'), ('cdf', 'Congolese franc', 'FC'), ('djf', 'Djiboutian franc', 'Fdj'), ('egp', 'Egyptian pound', 'E£'), ('ern', 'Eritrean nakfa', 'Nfk'), ('etb', 'Ethiopian birr', 'Br'), ('gmd', 'Ghambian dalasi', 'D'), ('ghs', 'Ghanaian cedi', 'GH₵'), ('gnf', 'Guinean franc', 'GFr'), ('kes', 'Kenyan shilling', 'KSh'), ('lsl', 'Lesotho loti', 'L'), ('lrd', 'Liberian dollar', 'L$'), ('lyd', 'Libyan dinar', 'ل.د'), ('mru', 'Mauritanian ouguiya', 'UM'), ('mur', 'Mauritian rupee', '₨'), ('mga', 'Malagasy ariary', 'Ar'), ('mwk', 'Malawian kwacha', 'MK'), ('mvr', 'Maldivian rufiyaa', 'MRf'), ('mad', 'Moroccan dirham', 'درهم'), ('mzn', 'Mozambican metical', 'MT'), ('nad', 'Namibian dollar', 'N$'), ('ngn', 'Nigerian naira', '₦'), ('rwf', 'Rwandan franc', 'FRw'), ('stn', 'São Tomé and Príncipe dobra', 'Db'), ('scr', 'Seychelles rupee', 'SR'), ('sll', 'Sierra Leonean leone', 'Le'), ('sos', 'Somali shilling', 'Sh.So.'), ('zar', 'South African rand', 'R'), ('sdg', 'Sudanese pound', 'ج.س'), ('szl', 'Swazi lilangeni', 'L'), ('tzs', 'Tanzanian shilling', 'TSh'), ('tnd', 'Tunisian dinar', 'د.ت'), ('ugx', 'Ugandan shilling', 'USh'), ('zmw', 'Zambian kwacha', 'ZK'), ('zwl', 'Zimbabwean dollar', 'Z$'), ('xaf', 'Central AFrican CFA franc', 'FCFA'), ('xof', 'West African CFA franc', 'CFA'), ('afn', 'Afghan afghani', 'Af'), ('bhd', 'Bahraini dinar', 'BD'), ('bnd', 'Brunei dollar', 'B$'), ('ils', 'Israeli new shekel', '₪'), ('iqd', 'Iraqi dinar', 'د.ع'), ('irr', 'Iranian rial', '﷼'), ('jod', 'Jordanian dinar', 'JD'), ('kwd', 'Kuwaiti dinar', 'د.ك'), ('lbp', 'Lebanese pound', 'ل.ل.'), ('omr', 'Omani rial', '﷼'), ('pkr', 'Pakistani rupee', 'Rs'), ('qar', 'Qatari riyal', 'QR'), ('sar', 'Saudi riyal', 'ر.س'), ('syp', 'Syrian pound', '£S'), ('aed', 'United Arab Emirates dirham', 'إ.د'), ('yer', 'Yemeni rial', '﷼'), ('amd', 'Armenian dram', '֏'), ('azn', 'Azerbaijan manat', '₼'), ('gel', 'Georgian lari', 'ლ'), ('kzt', 'Kazakhstani tenge', '₸'), ('kgs', 'Kyrgyzstani som', 'som'), ('tjs', 'Tajikistani somoni', 'som'), ('tmt', 'Turkmenistan manat', 'T'), ('uzs', 'Uzbekistan som', 'som'), ('bdt', 'Bangladeshi taka', 'bdt'), ('btn', 'Bhutanese ngultrum', 'Nu.'), ('cnh', 'Renminbi', '¥'), ('khr', 'Cambodian riel', 'khr'), ('kpw', 'North Korean won', '₩'), ('hkd', 'Hong Kong dollar', 'HK$'), ('inr', 'Indian rupee', '₨'), ('idr', 'Indonesian rupiah', 'Rp'), ('lak', 'Lao kip', '₭'), ('mop', 'Macanese pataca', 'MOP$'), ('myr', 'Malaysian ringgit', 'RM'), ('mnt', 'Mongolian tögrög', '₮'), ('mmk', 'Myanmar kyat', 'K'), ('npr', 'Nepalese rupee', 'npr'), ('twd', 'New Taiwan dollar', 'NT$'), ('php', 'Philippine peso', 'PhP'), ('sgd', 'Singapore dollar', 'S$'), ('krw', 'South Korean won', '₩'), ('lkr', 'Sri Lankan rupee', '₨'), ('thb', 'Thai baht', '฿'), ('vnd', 'Vietnamese dong', '₫'), ('fjd', 'Fiji dollar', 'FJ$'), ('nzd', 'New Zealand dollar', 'NZ$'), ('pgk', 'Papua New Guinean kina', 'K'), ('sbd', 'Salomon Islands dollar', 'SI$'), ('wst', 'Samoan tala', 'WS$'), ('top', "Tongan pa'anga", 'T$'), ('tvd', 'Tuvalu dollar', 'TV$'), ('vuv', 'Vanuatu vatu', 'VT'), ('xpf', 'CFP franc', 'F'), ('ada', 'Cardano', '₳'), ('bch', 'Bitcoin Cash', 'bch'), ('xbt', 'Bitcoin', '₿'), ('ltc', 'Litecoin', 'Ł'), ('doge', 'Dogecoin', 'Ð'), ('xrp', 'Ripple', 'xrp'), ('xlm', 'Stellar', 'xlm'), ('eth', 'Ethereum', 'Ξ'), ('dot', 'Polkadot', 'dot'), ('uni', 'Uniswap', 'uni'), ('link', 'Chainlink', 'link')]¶
- property str¶
Return a string representation of class
- tip = 'Chainlink'¶
- txt = 'link'¶
- unit = 'link'¶