Skip to main content

SimpleWorkerNet

SimpleWorkerNet

Python-клиент для REST API WorkerNet с типизацией ответов, SmartData и графовой топологией сети.

Tag Supported Python versions PyPI - Version Downloads Licence


Особенности

Область Что даёт
SmartData Автокастинг JSON → объекты, метаданные пути, fluent-фильтры
BaseModel Рекурсивный кастинг Union / Optional / List / вложенных моделей
WorkerNetClient Сессии, авто-GET/POST при длинном URL, ретраи
Логирование Стандартный logging, без собственного управления
Кэш полей LFU / LRU / FIFO, dirty-flag, предзагрузка из моделей
Топология NetworkTopology, CGraph + FNGraph, единый port, linear, get_linear, simple paths
Attenuation calculate() по запросу, JSON-каталог, PathReport / MultiPathReport, min/calc/max
Координаты WGS84 ↔ Mercator (default) / local ENU / UTM
Графика SVG → PNG (Wand / Cairo / Inkscape / WeasyPrint)
Cleanup CLI cleanup-simpleworkernet — логи, кэш, конфиг

Установка

pip install simpleworkernet

Опционально:

pip install "simpleworkernet[topology]"   # python-igraph (топология и затухания)
pip install pyproj                        # UTM
pip install Wand                          # SVG → PNG

Подробнее: docs/installation.md


Быстрый старт

from simpleworkernet import WorkerNetClient, Where, Operator

with WorkerNetClient("my.workernet.ru", "your-api-key") as client:
    customers = client.Module.get_user_list()
    active = customers.where("state_id", 2)
    print(active.count())

    rich = customers.where("balance", Operator.GE, 1000)

Полный гайд: docs/quickstart.md


Документация

Раздел Описание
Установка pip, опциональные зависимости
Быстрый старт первый клиент, SmartData
Конфигурация config_manager, defaults
Клиент и SmartData WorkerNetClient, фильтры, модели
Логирование stdlib logging
Кэш и каталоги данных SmartDataCache, XDG/AppData пути
Координаты GeoPoint, проекции, legacy AUTOCAD
Топология NetworkTopology, CGraph, FNGraph, port, linear
Затухания Attenuation, каталог JSON, PathReport, MultiPathReport
Графика SVG / PNG
Очистка CLI cleanup-simpleworkernet
Тесты unit / integration

Структура пакета и публичный API: docs/package-structure.md

Полный индекс: docs/


☕ Поддержать проект

YooMoney Boosty


Metadata

Release files for simpleworkernet 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpleworkernet 1.1.2
File Size Uploaded Provenance Actions
simpleworkernet-1.1.2.tar.gz 191.3 kB With provenance Details for simpleworkernet-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpleworkernet 1.1.2
File Interpreter ABI Platform Actions
simpleworkernet-1.1.2-py3-none-any.whl Python 3 none any Details for simpleworkernet-1.1.2-py3-none-any.whl

Total release size: 427.4 kB

Release files / simpleworkernet-1.1.2.tar.gz

Download URL simpleworkernet-1.1.2.tar.gz
Size 191.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e17680074352d11e38b329a4f57adca54885d9043b272db802447cf138c0d8ea
BLAKE2b-256 checksum
How to use checksums
a4aa56b840e7f145e41ec5c7d800279f764d163b3ae953ec4d711218040f2953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release files / simpleworkernet-1.1.2-py3-none-any.whl

Download URL simpleworkernet-1.1.2-py3-none-any.whl
Size 236.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87963a9cc5f1a1da24115570987ee6198782bae435470df6fd2a6e1ac1fcd97b
BLAKE2b-256 checksum
How to use checksums
9755e93c84dc873c9bf7582b1a075993cf5dc363ad949c7d9835ea4818424c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Security for simpleworkernet 1.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simpleworkernet-1.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page