semvec/pypi-packages huggingface dataset:
pycdc 1.1
This package enables the generation of a DataFrame with Change Data Capture (CDC) flags ('I' for Insert, 'U' for Update, and 'D' for Delete) by comparing historical and source data files
License: MIT
Keywords: cdc,Change Data Capture

This package enables the generation of a DataFrame with Change Data Capture (CDC) flags ('I' for Insert, 'U' for Update, and 'D' for Delete) by comparing historical and source data files

## Installation

Use the package manager `pip` to install pycdc.

```bash
pip install pycdc
```

## Usage
This package enables the generation of a DataFrame with Change Data Capture (CDC) flags ('I' for Insert, 'U' for Update, and 'D' for Delete) by comparing historical and source data files.It achieves this by comparing the structures of historical and source data files to ensure they share the same column structure.
```python
import pandas as pd
from pycdc import CDCGenerator

def read_file(filePath):
    try:
        df=pd.read_csv(filePath)
        return df
    except FileNotFoundError as e:
        raise e

sourceDataFrame=read_file('data/sales_data.csv') # your current source file
previousDataFrame=read_file('history/sales_data.csv') # your history file

cdcDataframe=CDCGenerator(
    keyColumn=['ProductID','Date'],
    sourceDataframe=sourceDataFrame,
    previousDataframe=previousDataFrame).perform_cdc()
print(cdcDataframe)
```
```
Output:-

| Date       | ProductID | Quantity | CDC_Flag |
|------------|-----------|----------|----------|
| 2023-02-03 | 1013      | 20       | I        |
| 2023-02-03 | 1014      | 20       | I        |
| 2023-01-02 | 1002      | 1500     | U        |
| 2023-02-03 | 1012      | 20       | D        |
```



## Contributing
our contributions to this project are encouraged and valued! You have the autonomy to make modifications directly and merge them without the need for a formal review process. You have the freedom to utilize the code in any manner you deem fit.
ytho 0.1.0
Change your REPL prompt.
License: MIT
Requires Python: >=3.8

# ytho

Change Python's prompt with ease. Because `>>>` is boring.

## Installation

```bash
pip install ytho
```

## Usage

Define a file `.ytho.py` in your home directory, with a class `Prompt`.

This will define your prompt. For example:

```python
class Prompt:
    def __init__(self):
        self.counter = 0

    def prompt(self) -> tuple[str, str]:
        self.counter += 1
        ps1 = f"\033[1;32mIn [{self.counter}] \033[m: "
        # The ANSI codes take up 10 chars, remove those
        ps2 = " " * (len(ps1) - 10)
        return ps1, ps2
```

And now you have IPython's prompt. And you can do a lot more than that if you want!.

## Local Development / Testing

- Create and activate a virtual environment
- Run `pip install -r requirements-dev.txt` to do an editable install
- Run `pytest` to run tests

## Type Checking

Run `mypy .`

## Create and upload a package to PyPI

Make sure to bump the version in `setup.cfg`.

Then run the following commands:

```bash
rm -rf build dist
python setup.py sdist bdist_wheel
```

Then upload it to PyPI using [twine](https://twine.readthedocs.io/en/latest/#installation):

```bash
twine upload dist/*
```