Skip to main content

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

  1. 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')
    
  1. 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.

Metadata

Release files for petronas-common-utils 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for petronas-common-utils 0.0.4
File Size Uploaded Provenance Actions
petronas-common-utils-0.0.4.tar.gz 94.9 MB Without provenance Details for petronas-common-utils-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for petronas-common-utils 0.0.4
File Interpreter ABI Platform Actions
petronas_common_utils-0.0.4-py3-none-any.whl Python 3 none any Details for petronas_common_utils-0.0.4-py3-none-any.whl

Total release size: 189.9 MB

Release files / petronas-common-utils-0.0.4.tar.gz

Download URL petronas-common-utils-0.0.4.tar.gz
Size 94.9 MB
Tags Source
SHA-256 checksum
How to use checksums
b5d1b30e559297c8f4baea625f38dad713c483c0b61cb8764ecc40714cd25a29
BLAKE2b-256 checksum
How to use checksums
bbf97c5e328d66beb9befe09276d39e5d8c2a750b36c6c630f4560dacb73a03b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / petronas_common_utils-0.0.4-py3-none-any.whl

Download URL petronas_common_utils-0.0.4-py3-none-any.whl
Size 94.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
98bfe6acfa2367462806629081cb783cf38b8577b7cab3716b9a78b3810d6909
BLAKE2b-256 checksum
How to use checksums
a5fcf0bd6b97445d99209aa5451a5adf48c7c3eccce261a0537c3cbccd85581d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for petronas-common-utils 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page