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.3

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.3
File Size Uploaded Provenance Actions
simpleworkernet-1.1.3.tar.gz 194.2 kB With provenance Details for simpleworkernet-1.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 433.4 kB

Release files / simpleworkernet-1.1.3.tar.gz

Download URL simpleworkernet-1.1.3.tar.gz
Size 194.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dd6415574b2c9348275d058d70ea3cf8358f083dbdeaac0529b4fa986693ca75
BLAKE2b-256 checksum
How to use checksums
e35b1d11ac0cada1f872e382a04f98fe82681e6b03d1c6819f5b082d6f163982
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 21, 2026.

Transparency log

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

Download URL simpleworkernet-1.1.3-py3-none-any.whl
Size 239.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fbcf980508bb33e24617f347f5329af40802d30fe5951b39cd5357562c7b93b
BLAKE2b-256 checksum
How to use checksums
59c22699ed9873eb1e8eec929bc665bc424549a46334343e84ba1365ddb7b6d5
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 21, 2026.

Transparency log

Security for simpleworkernet 1.1.3

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.3.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 21, 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