tehzor


Nametehzor JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/gritsyuk/tehzor
SummaryA Python API wrapper for Tehzor API
upload_time2024-04-26 15:51:14
maintainerNone
docs_urlNone
authorIgor Gritsyuk
requires_python>=3.6
licenseNone
keywords tehzor api tehzorapi construction supervision operation inspections constarctionsite building management
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ![logo Tehzor](https://tehzor.com/images/components/Header/logo.svg)
![PyPI - Version](https://img.shields.io/pypi/v/tehzor)
## Обертка над  API системы Техзор на python (async/await)
Официальная документация [https://api.tehzor.ru/docs](https://api.tehzor.ru/docs)

## Установка
```bash
pip install tehzor
```

## Примеры
Обновления параметров квартир (площадь, плащадь БТИ, тип отделки ...). Предварительно необходимо знать id квартир и id типа отделки:
```python
from tehzor import TehzorAPI
from 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())
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gritsyuk/tehzor",
    "name": "tehzor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "tehzor api tehzorapi construction supervision operation inspections constarctionsite building management",
    "author": "Igor Gritsyuk",
    "author_email": "gritsyuk.igor@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/75/82/5b9a0b8316d130fe90aad24bfbf497e786c32be630057b619b9b51f5569b/tehzor-0.0.5.tar.gz",
    "platform": null,
    "description": "# ![logo Tehzor](https://tehzor.com/images/components/Header/logo.svg)\r\n![PyPI - Version](https://img.shields.io/pypi/v/tehzor)\r\n## \u041e\u0431\u0435\u0440\u0442\u043a\u0430 \u043d\u0430\u0434  API \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0422\u0435\u0445\u0437\u043e\u0440 \u043d\u0430 python (async/await)\r\n\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [https://api.tehzor.ru/docs](https://api.tehzor.ru/docs)\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\n```bash\r\npip install tehzor\r\n```\r\n\r\n## \u041f\u0440\u0438\u043c\u0435\u0440\u044b\r\n\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043a\u0432\u0430\u0440\u0442\u0438\u0440 (\u043f\u043b\u043e\u0449\u0430\u0434\u044c, \u043f\u043b\u0430\u0449\u0430\u0434\u044c \u0411\u0422\u0418, \u0442\u0438\u043f \u043e\u0442\u0434\u0435\u043b\u043a\u0438 ...). \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u043d\u0430\u0442\u044c id \u043a\u0432\u0430\u0440\u0442\u0438\u0440 \u0438 id \u0442\u0438\u043f\u0430 \u043e\u0442\u0434\u0435\u043b\u043a\u0438:\r\n```python\r\nfrom tehzor import TehzorAPI\r\nfrom excel_apartments import result_flats\r\n\r\n\r\nAPI_KEY = \"00000000-0000-0000-0000-000000000000\"\r\nUSER_ID = \"123d7cdfc7ea123d123456ab\"\r\n\r\n\r\nasync def main():     \r\n    thz = await TehzorAPI.create(api_key=API_KEY, user_id=USER_ID)\r\n    \r\n    async with asyncio.TaskGroup() as tg:\r\n        for id, data in result_flats.items():\r\n            tg.create_task(thz.update_spaces(id, data.model_dump_json()))\r\n\r\n    await thz.session_close()\r\n\r\n\r\nif __name__ == \"__main__\":    \r\n    asyncio.run(main())\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python API wrapper for Tehzor API",
    "version": "0.0.5",
    "project_urls": {
        "Download": "https://github.com/gritsyuk/tehzor/archive/refs/heads/develop.zip",
        "GitHub": "https://github.com/gritsyuk/tehzor",
        "Homepage": "https://github.com/gritsyuk/tehzor"
    },
    "split_keywords": [
        "tehzor",
        "api",
        "tehzorapi",
        "construction",
        "supervision",
        "operation",
        "inspections",
        "constarctionsite",
        "building",
        "management"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5485511ab9f3f6285cc79d51b6c1ca2dcad2528b7d25484508b812b8c917f089",
                "md5": "e74a280e5b1f836488c00a198a3d4cc0",
                "sha256": "841504f18874e8c1ff17376f42e737ddc4f624701b72180184b3c3709a4743dd"
            },
            "downloads": -1,
            "filename": "tehzor-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e74a280e5b1f836488c00a198a3d4cc0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6589,
            "upload_time": "2024-04-26T15:51:13",
            "upload_time_iso_8601": "2024-04-26T15:51:13.182337Z",
            "url": "https://files.pythonhosted.org/packages/54/85/511ab9f3f6285cc79d51b6c1ca2dcad2528b7d25484508b812b8c917f089/tehzor-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75825b9a0b8316d130fe90aad24bfbf497e786c32be630057b619b9b51f5569b",
                "md5": "0bb4a8776dea3ca3ced4ec11c33b5ad8",
                "sha256": "5bc9ee7d89fbcd30d332689f02151084f59632ee82a6667aa4d16552261b9c5b"
            },
            "downloads": -1,
            "filename": "tehzor-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0bb4a8776dea3ca3ced4ec11c33b5ad8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7400,
            "upload_time": "2024-04-26T15:51:14",
            "upload_time_iso_8601": "2024-04-26T15:51:14.387484Z",
            "url": "https://files.pythonhosted.org/packages/75/82/5b9a0b8316d130fe90aad24bfbf497e786c32be630057b619b9b51f5569b/tehzor-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-26 15:51:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gritsyuk",
    "github_project": "tehzor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tehzor"
}
        
Elapsed time: 0.25963s