A collection of reusable components and utilities for streamlining development across Petronas projects and submodules
Project description
Petronas Common Utils
Welcome to the Petronas Common Utils repository. Here, you'll find essential source codes for basic and common utilities that can be applied accross multiple fields and areas within Petronas.
Features
- Gas
Within this category, you'll find functionalities tailored for the natural gas refining sector. Some key components include:
-
Natural Gas - Allows you to define a gas and its composition and other functionalities such as unit conversion, gas treatment or gas blending. Here's an example for unit conversion:
from petronas_common_utils.gas.natural_gas import NaturalGas, Component # Create natural gas object natural_gas = NaturalGas() natural_gas.add_component(Component.C1, 0.9) natural_gas.add_component(Component.C2, 0.05) natural_gas.add_component(Component.C3, 0.03) natural_gas.add_component(Component.C4, 0.01) natural_gas.add_component(Component.C5, 0.005) natural_gas.add_component(Component.CO2, 0.035) natural_gas.build() # Calculate amount for given component for a total flow of 10 tph calculated_amount = natural_gas.get_amount(component=Component.C1, total_flow=(10, 'tph'), to_units='mmscfd')
- More categories and functionalities to be added soon.
Installation and usage
To install this package, simply use pip install petronas-common-utils
.
Additional detailed documentation on the different modules is expected to be included in subsequent versions.
Contribution
We welcome contributions! If you'd like to add new functionalities or improve existing ones, please follow our contribution guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for petronas-common-utils-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38da1bc878785f28a0c91149ecd4eed2be1247ac5b57140c7d1c1ebdca65b045 |
|
MD5 | 211a3b9496cfac8e9c7163c720bdda23 |
|
BLAKE2b-256 | 29b772fdf177b3aabf99862fbd3df9cdf930ce66a6cc25330197956d0546ef16 |
Hashes for petronas_common_utils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668b1d0ef40f03ef9dc0648a3e05eca8a95363ea87563c8a6b9321fd0bcc3fdd |
|
MD5 | d7c77be25e09eb2ab19b536429fd29d5 |
|
BLAKE2b-256 | e09b38ace4808c1147a1501dd209ac816d6881b0e6725d92e3a306f3be9dae7c |