Metadata-Version: 2.3
Name: tp-shared
Version: 0.2.413
Summary: 
Author: Developer
Author-email: front-gold@mail.ru
Requires-Python: >=3.12,<=3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pydantic (>=2.11.7,<3.0.0)
Requires-Dist: tp-helper (>=0.4.62,<0.5.0)
Description-Content-Type: text/markdown

# 🧩 tp-shared

Общий репозиторий схем для использования в нескольких проектах.

---

## Установка:
`poetry add tp-shared`

## Очистка при обновлении
```
poetry cache clear pypi --all --no-interaction; poetry add tp-shared@latest
```

```
poetry cache clear pypi --all --no-interaction && poetry add tp-shared@latest
```

## Публикация:
Собирает и загружает собранный пакет в PyPI.

`poetry publish --build`

## Структура проекта

**messages** 
-------------------------
Схемы сообщений от сервисов

Пример импорта  

from tp_shared_schemas.messages import GibddDcResultMessage

В каждой папке лежат соответствующие Pydantic-схемы, сгруппированные по функционалу.
--------------------------
---

## Как подключить репозиторий к существующему проекту

Если у вас есть локальный проект и вы хотите добавить репозиторий с общими схемами, выполните команды:
в файле pyproject.toml прописать зависимость:
1) 

```Python
[tool.poetry.dependencies]
tp-shared = { git = "https://gitlab.8525.ru/modules/tp-shared.git", rev = "main" }
```

poetry add git

```python
poetry add git+https://gitlab.8525.ru/modules/tp-shared.git
```

2) Выполнить команду poetry install или poetry update


## Репозиторий
```
cd existing_repo
git remote add origin https://gitlab.8525.ru/modules/tp-shared.git
git branch -M main
git push -uf origin main
```


