1409 SDK
Python SDK для работы с дизайн-системой 1409.
Подключай UI-компоненты (лого, фон, кнопки и др.) в любой Python-проект через один импорт.
Установка
pip install 1409sdk
Быстрый старт
from sdk1409.client import Client
client = Client()
# Получить HTML-тег компонента
print(client.link_tag("logo"))
# <img src="https://api.my1409.ru/design?component=logo" alt="logo">
print(client.link_tag("button"))
# <link rel="stylesheet" href="https://api.my1409.ru/design?component=button">
# Вставить в HTML-шаблон
logo_tag = client.link_tag("logo")
html = f"<html><body>{logo_tag}</body></html>"
# Скачать компонент в проект
client.pull("logo", dest="./assets/")
# Скопировать шрифты
client.fonts(dest="./assets/fonts/")
Методы
| Метод | Описание |
|---|---|
link_tag(component) |
Готовый HTML-тег для вставки на страницу |
get(component) |
Содержимое компонента в байтах |
get_text(component) |
Содержимое компонента как строка |
pull(component, dest) |
Скачать и сохранить файл |
list() |
Список доступных компонентов |
fonts(dest) |
Копировать шрифты в проект |
Документация
Подробная документация в docs/Doc.md.
Лицензия
MIT
Metadata
Release files for 1409sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| 1409sdk-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for 1409sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 1409sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for 1409sdk-0.1.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / 1409sdk-0.1.0.tar.gz
| Download URL | 1409sdk-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0adb5df2ac0fd1d4522c1cb5c47f7e0f54e6b252b66714384e8ac4a614fb6dca
|
|
BLAKE2b-256 checksum How to use checksums |
5c19f2bbc2bd842d6027ab775a134898bf7e19817346858a4a7bd68df2fa4c98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / 1409sdk-0.1.0-py3-none-any.whl
| Download URL | 1409sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd87856a0402e0bb622ffaba332de3aafa07f6da32a0ad486e69c04ac19c738a
|
|
BLAKE2b-256 checksum How to use checksums |
1ccc3643e32a62a4ebbff0efd308004693c6593f9fda145aaecee1f2a25c6390
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for 1409sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.