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
File details
Details for the file petronas-common-utils-0.0.4.tar.gz
.
File metadata
- Download URL: petronas-common-utils-0.0.4.tar.gz
- Upload date:
- Size: 94.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d1b30e559297c8f4baea625f38dad713c483c0b61cb8764ecc40714cd25a29 |
|
MD5 | 72181a5987b241b34d82fde3ff22e75b |
|
BLAKE2b-256 | bbf97c5e328d66beb9befe09276d39e5d8c2a750b36c6c630f4560dacb73a03b |
File details
Details for the file petronas_common_utils-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: petronas_common_utils-0.0.4-py3-none-any.whl
- Upload date:
- Size: 94.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bfe6acfa2367462806629081cb783cf38b8577b7cab3716b9a78b3810d6909 |
|
MD5 | 0b236b1236638df1f3a836dac27daf79 |
|
BLAKE2b-256 | a5fcf0bd6b97445d99209aa5451a5adf48c7c3eccce261a0537c3cbccd85581d |