Skip to main content

A Python API wrapper for Tehzor API

Project description

logo Tehzor

PyPI - Version

Обертка над API системы Техзор на python (async/await)

Официальная документация https://api.tehzor.ru/docs

Установка

pip install -U tehzor

Примеры

Обновления параметров квартир (площадь, плащадь БТИ, тип отделки ...). Предварительно необходимо знать id квартир и id типа отделки:

import asyncio
from tehzor import TehzorAPI
from examples.excel_apartments import result_flats

API_KEY = "00000000-0000-0000-0000-000000000000"
USER_ID = "123d7cdfc7ea123d123456ab"


async def main():
    thz = await TehzorAPI.create(api_key=API_KEY, user_id=USER_ID)

    async with asyncio.TaskGroup() as tg:
        for id, data in result_flats.items():
            tg.create_task(thz.update_spaces(id, data.model_dump_json()))

    await thz.session_close()


if __name__ == "__main__":
    asyncio.run(main())

Внимание

Проект в разработке... Происходят изменения в исходном API (изменяются наименование методов, свойств объектов)

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

tehzor-0.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

tehzor-0.1.3-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file tehzor-0.1.3.tar.gz.

File metadata

  • Download URL: tehzor-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for tehzor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2a45e6a0f45130290a074e20862e3d9df25161cf085b19edb3c3cb3e8c967284
MD5 9b3f231da6544627d401efc3913fed51
BLAKE2b-256 2c5a2bebc041705eecee21efaa55140883ad2c4c16edd82d6c934197478580c2

See more details on using hashes here.

File details

Details for the file tehzor-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tehzor-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for tehzor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35ee0d2824640bbafcdf1d38b0f579600c34a5ca8036f07769a0fa2bc5d72c9c
MD5 f7dc6e73cf5541589bfea96a81ce60c4
BLAKE2b-256 0bbdac50ab08295a605daf13f9cd5190dc1bc931006b98651c490d8d67a5b287

See more details on using hashes here.

Supported by

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