Python SDK для дизайн-системы 1409
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
1409sdk-0.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 1409sdk-0.1.0.tar.gz.
File metadata
- Download URL: 1409sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0adb5df2ac0fd1d4522c1cb5c47f7e0f54e6b252b66714384e8ac4a614fb6dca
|
|
| MD5 |
8fb8d7d3ec851f3f48f31c384a7388ef
|
|
| BLAKE2b-256 |
5c19f2bbc2bd842d6027ab775a134898bf7e19817346858a4a7bd68df2fa4c98
|
File details
Details for the file 1409sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: 1409sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd87856a0402e0bb622ffaba332de3aafa07f6da32a0ad486e69c04ac19c738a
|
|
| MD5 |
1318cc67b685a5af406d945b6386f6d0
|
|
| BLAKE2b-256 |
1ccc3643e32a62a4ebbff0efd308004693c6593f9fda145aaecee1f2a25c6390
|