semvec/pypi-packages huggingface dataset:
PyGWP 0.0.32
A CO2-equivalent computer based on static or dynamic CO2-relative global warming potentials coded in Python27, PyGWP.
License: MIT
Keywords: Global Warming Potential,Static Global Warming Potential,Dynamic Global Warming Potential

# [PyGWP](https://github.com/lfaucheux/PyGWP) - A **CO2-equivalent computer** based on static or dynamic CO2-relative global warming potentials.

## Sources 
- **[IPCC WG1 Fourth Assessment Report, 2007](https://www.ipcc.ch/publications_and_data/ar4/wg1/en/ch2s2-10-2.html)**
- **[Levasseur et al, 2010](http://pubs.acs.org/doi/abs/10.1021/es9030003)**

## Installation

We are going to use a package management system to install and manage software packages written in Python, namely [pip](https://en.wikipedia.org/wiki/Pip_(package_manager)). Open a session in your OS shell prompt and type

    pip install pygwp

Or using a non-python-builtin approach, namely [git](https://git-scm.com/downloads),

    git clone git://github.com/lfaucheux/PyGWP.git
    cd PyGWP
    python setup.py install

## Requirements

- **[numpy](http://www.numpy.org/)**

## Use cases

- **Scientific modelling**

## Example usage:

    >>> from PyGWP import GWPBasedCO2eq
    >>> dyn_gwp20 = GWPBasedCO2eq(
    ...     first_year      = 2020,
    ...     project_horizon = 5,
    ...     GWP_horizon     = 20,
    ...     static          = False
    ... )
    >>> ghgs_weight_per_weight_of_output_inventory_flow = {'CO2':1., 'N2O':.0, 'CH4':.0}
    >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer(
    ...     ghgs_weight_per_weight_of_output_inventory_flow,
    ...     as_row_array=False
    ... )
    >>> co2eq_traj['as_array']
    array([[1.        ],
           [0.95764081],
           [0.91469171],
           [0.87112496],
           [0.82691128]])
    >>> co2eq_traj['as_dict']
    {2024: 0.82691127746144444, 2020: 1.0, 2021: 0.95764080833063492, 2022: 0.91469171438570718, 2023: 0.87112496115582216}

    >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer({'CO2':.0,'N2O':1.,'CH4':.0})
    >>> co2eq_traj['as_array']
    array([[292.33637282, 278.90543843, 265.35617058, 251.68752668,
            237.89845498]])


    >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer({'CO2':.0,'N2O':.0,'CH4':1.})
    >>> co2eq_traj['as_array']
    array([[72.2209832 , 70.75950679, 69.17102216, 67.44449179, 65.56791893]])

    >>> sta_gwp20  = GWPBasedCO2eq(
    ...     first_year      = 2020,
    ...     project_horizon = 5,
    ...     GWP_horizon     = 20,
    ...     static          = True
    ... )                                           
    >>> co2eq_traj = sta_gwp20.co2eq_yields_trajectory_computer({'CO2':.0, 'N2O':.0, 'CH4':1.})
    >>> co2eq_traj['as_array']
    array([[72.2209832, 72.2209832, 72.2209832, 72.2209832, 72.2209832]])


## License
Distributed under the [MIT license](https://opensource.org/licenses/MIT)
mdcat 1.0.0
Markdown-friendly variant of cat
License: MIT
Keywords: markdown cat dump file

# mdcat - Markdown-friendly variant of cat

Ever struggling quickly documenting your server configuration files in a Git repo or sharing them with your colleagues for the future reference? Welcome to **mdcat**.

It is a simple Python 3 command line utility, ingesting file path(s) arguments, and printing their content in Markdown-friendly format.

Moreover, it prints the file's absolute path, mode (permissions), and owner (user + group).

## Requirements

* Python3 + PIP

## Installation

Install/upgrade the tool from PyPI using:

    $ pip3 install --upgrade mdcat

## Usage

    $ mdcat --help
    Usage: mdcat [OPTIONS] [FILES]...

    Options:
      --version  Show the version and exit.
      --help     Show this message and exit.

Example:

    $ echo foo >> bar
    $ mdcat bar

Output:

    File: `/home/pavel/mdcat/bar` (`0644 pavel:users`):

        foo

## Contributing

Please read [**CONTRIBUTING.md**](https://github.com/hubpav/mdcat/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [**SemVer**](https://semver.org/) for versioning. For the versions available, see the [**tags on this repository**](https://github.com/hubpav/mdcat/tags).

## Authors

* [**Pavel Hübner**](https://github.com/hubpav) - Initial work

## License

This project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](https://github.com/hubpav/mdcat/blob/master/LICENSE) file for details.