semvec/pypi-packages huggingface dataset:
astro-test-package 0.0.2
Astro test package
Requires Python: >=3.8

### Astro test package

### Markdown
.md : m = mark, d = down

Rendering of markdown file `Shift-Ctrl-V`

### How to make python packages
https://packaging.python.org/tutorials/packaging-projects/

1. Список всех уставновленных пакетов на вашем компьютере
```cmd
pip list
```

2. Установка нашей библиотеки из папки:
  - Перейти в папку (cd = change directory):
    ```cmd
    cd astro-test-package
    ```
  - Уставновка пакета из текущей папки (-e = editable = редактируемый):
    ```cmd
    pip install -e .
    ```

### How to use git

1. Создать папку для репозитория
2. Инициализировать репозиторий
```cmd
git init
```
3. Проверить текущий статус репозитория и ветку
```cmd
git status
```
4. Добавить изменения в репозиторий (в состояние staged)
```cmd
git add <имя файла>
```
5. Сделать commit (закоммитить изменения)
```cmd
git commit -m "Commit message"
```
6. Показать историю коммитов (для текущей ветки)
  ```cmd
  git log
  ```


### How to use github
pytest-ditto-pandas 0.0.1
pytest-ditto plugin for pandas snapshots.
Requires Python: >=3.10
Keywords: pytest, testing

# pytest-ditto-pandas
[![PyPI version](https://badge.fury.io/py/pytest-ditto-pandas.svg)](https://badge.fury.io/py/pytest-ditto-pandas)
[![Continuous Integration](https://github.com/owlowlyowl/pytest-ditto-pandas/actions/workflows/ci.yml/badge.svg)](https://github.com/owlowlyowl/pytest-ditto-pandas/actions/workflows/ci.yml)

`pytest-ditto` plugin for pandas snapshots.

## @ditto Marks
If the default persistence format, `pickle`, isn't appropriate different formats can be
specified per test by using `ditto` marks - customised `pytest` mark decorators.


## Usage

### `pd.DataFrame`

```python
import pandas as pd

import ditto


def awesome_fn_to_test(df: pd.DataFrame):
    df.loc[:, "a"] *= 2
    return df


# The following test uses pandas.DataFrame.to_parquet to write the data snapshot to the
# `.ditto` directory with filename:
# `test_fn_with_parquet_dataframe_snapshot@ab_dataframe.pandas.parquet`.

@ditto.pandas.parquet
def test_fn_with_parquet_dataframe_snapshot(snapshot):
    input_data = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 9]})
    result = awesome_fn_to_test(input_data)
    pd.testing.assert_frame_equal(result, snapshot(result, key="ab_dataframe"))


# The following test uses pandas.DataFrame.to_json(orient="table") to write the data
# snapshot to the `.ditto` directory with filename:
# `test_fn_with_json_dataframe_snapshot@ab_dataframe.pandas.json`.

@ditto.pandas.json
def test_fn_with_json_dataframe_snapshot(snapshot):
    input_data = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 9]})
    result = awesome_fn_to_test(input_data)
    pd.testing.assert_frame_equal(result, snapshot(result, key="ab_dataframe"))
```