semvec/pypi-packages huggingface dataset:
pycredits 0.0.3
A package for running data analyses around credit risk.
License: MIT
Requires Python: >=3.9


# pycredits 

[![codecov](https://codecov.io/gh/DSCI-310-2024/pycredits/graph/badge.svg?token=L68Uui9hpr)](https://codecov.io/gh/DSCI-310-2024/pycredits)


pycredits is DSCI310 Group 12's package for conducting data analyses related to credit risk. This package offers functions designed to facilitate common tasks in credit risk analysis, including data preprocessing, exploratory data analysis, data cleaning, and hyper-parameter tuning. Building off of packages [matplotplib](https://github.com/matplotlib/matplotlib) and [scikit-learn](https://github.com/scikit-learn/scikit-learn), pycredits streamlines the use of scikit-learn's functions as well as simplifys the creation of specific matplotlib plots relevant to credit analysis.

## Installation

```bash
$ pip install pycredits
```

## Usage

`pycredits` provides several useful functions for data preprocessing and analysis in understanding credit risk, such as, preprocess data, create histograms, transform labels, and create parameter grids for grid search.

```python
from pycredits import preprocess_data, column_histogram, map_labels_to_binary, param_grid_for_grid_search
import matplotlib.pyplot as plt

# Preprocess data
X_transformed, y, preprocessor = preprocess_data(df, numeric_features, categorical_features)

# Create histogram for a column
column_plot = column_histogram(fig_width, fig_height, data_frame, column_name)
plt.show()

# Transform label values
y_transformed = map_labels_to_binary(y)

# Create parameter grid for grid search
param_grid = param_grid_for_grid_search(n_estimators_range, max_depth_range)
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pycredits` was created by Jade Bouchard, Shahrukh Islam Prithibi, Sophie Yang, and Yovindu Don. It is licensed under the terms of the MIT license.

## Credits

`pycredits` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
yowasp-wavedrom 3.5.0.8
WaveDrom generates diagrams for digital waveforms, bit fields, and simple combinational circuits
License: MIT
Requires Python: ~=3.8

YoWASP WaveDrom package
=======================

This package provides a self-contained [WaveDrom] renderer for JavaScript and Python applications. See the [overview of the YoWASP project][yowasp] for details.

[WaveDrom]: https://wavedrom.com/
[yowasp]: https://yowasp.org/

Command-line tool
-----------------

This package installs a command-line tool `yowasp-wavedrom`.

```
Usage: yowasp-wavedrom [<input.json>] [<output.svg>]
```

API reference (JavaScript)
--------------------------

The [@yowasp/wavedrom] package has one entry point, `render(source): string`. It accepts a JavaScript object in the WaveJSON format and returns an SVG image serialized as a string:

```js
import { render } from '@yowasp/wavedrom';

console.log(render({signal: [{ name: "clk", wave: "p..." }, { name: "data", wave: "01.0" }]}));
// => <svg.../svg>
```

[@yowasp/wavedrom]: https://www.npmjs.com/package/@yowasp/wavedrom

API reference (Python)
----------------------

The [yowasp-wavedrom] package has one entry point, `render(source) -> str`. It accepts a Python dictionary in the WaveJSON format and returns an SVG image serialized as a string:

```py
from yowasp_wavedrom import render

print(render({"signal": [{ "name": "clk", "wave": "p..." }, { "name": "data", "wave": "01.0" }]}))
# => <svg.../svg>
```

[yowasp-wavedrom]: https://pypi.org/project/yowasp-wavedrom

Implementation notes
--------------------

This package embeds the [upstream WaveDrom library][upstream] bundled with the minimal amount of dependencies necessary to produce a serialized SVG, and, for the Python package, with a JavaScript runtime. In addition, the output is post-processed compared to the upstream library as follows:

* The `id` attribute of the root `<svg>` element is removed.
* The stylesheets are altered to take into account dark color scheme preference via media queries. If the user agent reports dark color scheme preference, the colors in the diagram are inverted.
    * In case of the `dark` waveform diagram skin, this will cause it to use light colors.
    * When the SVG image is embedded in an HTML document using the `<img>` tag, the color scheme preference can be set per-image using a CSS rule such as `img { color-scheme: light; }`. This can be used to make the images responsive to dynamic theming, or simply to override the default behavior.
* Several otherwise blocking bugs are worked around.

[upstream]: https://npmjs.org/package/wavedrom

Updates
-------

Unlike most [YoWASP] packages, this package does not automatically track upstream releases. Please [open a pull request](https://github.com/YoWASP/wavedrom/pulls) bumping the version of `wavedrom` in `package-in.json` if you need a feature from a newer version of [WaveDrom].

License
-------

This package is covered by the [MIT license](LICENSE.txt).
dump-psql-roles-grants 0.3.1
Dump Postgres Roles and Grants
License: MIT
Requires Python: <4.0,>=3.12
Keywords: postgres, psql, roles, grants, dump

# Dump Postgres Roles and Grants

## Install

You can choose

- plain python package `dump-psql-roles-grants` that requires `libpq` system library
- or package `dump-psql-roles-grants[binary]` that have binaries included

### pipx (preferred)

```shell
pipx install 'dump-psql-roles-grants[binary]'
dump_psql_roles_grants --help
```

### brew

```shell
brew install rgeraskin/homebrew/dump-psql-roles-grants
dump_psql_roles_grants --help
```

### pip

```shell
pip install 'dump-psql-roles-grants[binary]'
python -m dump_psql_roles_grants --help
```

### docker

```shell
docker pull rgeraskin/dump_psql_roles_grants
docker run --name dump_psql_roles_grants --rm rgeraskin/dump_psql_roles_grants --help
```

## Usage

1. Generate an example config file `dump_psql_roles_grants gen-example-config -o config.yaml`
1. Place instances connection info to `_inputs` dir

   ```shell
   _inputs/
   ├── dev.yaml
   ├── prod.yaml
   ├── stage.yaml
   └── test.yaml
   ```

   File format: yaml or json

   ```yaml
   <INSTANCE NAME 1>:
     dbname: <DB TO CONNECT>
     host: <INSTANCE HOSTNAME>
     password: <PASSWORD>
     user: <USER NAME>

   <INSTANCE NAME X>:
     dbname: <DB TO CONNECT>
     host: <INSTANCE HOSTNAME>
     password: <PASSWORD>
     user: <USER NAME>
   ```

1. Review `config.yaml`

1. Run

   ```shell
   dump_psql_roles_grants --help
   ```