Skip to main content

No project description provided

Project description

🧩 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)

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

poetry add git

poetry add git+https://gitlab.8525.ru/modules/tp-shared.git
  1. Выполнить команду 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tp_shared-0.2.422.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tp_shared-0.2.422-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file tp_shared-0.2.422.tar.gz.

File metadata

  • Download URL: tp_shared-0.2.422.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.1.0-40-amd64

File hashes

Hashes for tp_shared-0.2.422.tar.gz
Algorithm Hash digest
SHA256 349b6b3b3fbc4432cfa4e153a51e8ad943f5724f239c6ce62de9d07c7bdaf02c
MD5 3d91af11b6ee44ece95fcc85b3439d0d
BLAKE2b-256 95d02cd1a5e0870d82ce9f1f4d5d7e82934781b20c45cf3bc935a45033b439ba

See more details on using hashes here.

File details

Details for the file tp_shared-0.2.422-py3-none-any.whl.

File metadata

  • Download URL: tp_shared-0.2.422-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.1.0-40-amd64

File hashes

Hashes for tp_shared-0.2.422-py3-none-any.whl
Algorithm Hash digest
SHA256 45f77ee5974dcb7d0b0c1614da1e34cd5c7b3c9823383ea9b91ccfb9fbed05dc
MD5 8a262059db53886a60ec06465de947a9
BLAKE2b-256 28969018ef8e1cbc6ee83ee6d0f95644d389e164d04a22d01d8fedfa23ee3146

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page