{"id":24282143,"url":"https://github.com/pbelskiy/quickbuild","last_synced_at":"2025-08-08T15:35:33.331Z","repository":{"id":47276480,"uuid":"327059661","full_name":"pbelskiy/quickbuild","owner":"pbelskiy","description":"Python client for PMEase QuickBuild","archived":false,"fork":false,"pushed_at":"2023-11-15T20:10:34.000Z","size":266,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-13T04:47:59.681Z","etag":null,"topics":["python","quickbuild","rest-api"],"latest_commit_sha":null,"homepage":"https://quickbuild.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pbelskiy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-01-05T16:44:08.000Z","updated_at":"2024-01-12T18:17:17.000Z","dependencies_parsed_at":"2023-11-15T21:26:47.626Z","dependency_job_id":"b777d51a-9c0f-4be3-a81d-3ad2c420645e","html_url":"https://github.com/pbelskiy/quickbuild","commit_stats":{"total_commits":275,"total_committers":2,"mean_commits":137.5,"dds":"0.0036363636363636598","last_synced_commit":"2313f8723cc987c49067ae96bbade2025e86f061"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbelskiy%2Fquickbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbelskiy%2Fquickbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbelskiy%2Fquickbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbelskiy%2Fquickbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbelskiy","download_url":"https://codeload.github.com/pbelskiy/quickbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234143349,"owners_count":18786140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","quickbuild","rest-api"],"created_at":"2025-01-16T03:02:06.815Z","updated_at":"2025-01-16T03:03:09.754Z","avatar_url":"https://github.com/pbelskiy.png","language":"Python","readme":"Python client for PMEase `QuickBuild \u003chttps://www.pmease.com/quickbuild\u003e`_\n==========================================================================\n\n|Build status|\n|Docs status|\n|Coverage status|\n|Version status|\n|Downloads status|\n\n.. |Build status|\n   image:: https://github.com/pbelskiy/quickbuild/workflows/Tests/badge.svg\n.. |Docs status|\n   image:: https://readthedocs.org/projects/quickbuild/badge/?version=latest\n.. |Coverage status|\n   image:: https://img.shields.io/coveralls/github/pbelskiy/quickbuild?label=Coverage\n.. |Version status|\n   image:: https://img.shields.io/pypi/pyversions/quickbuild?label=Python\n.. |Downloads status|\n   image:: https://img.shields.io/pypi/dm/quickbuild?color=1\u0026label=Downloads\n\n----\n\nPackage supports sync and async syntax with same code base.\n\n.. code:: python\n\n    from quickbuild import AsyncQBClient, QBClient\n\nDocumentation\n-------------\n\n`Package Read the Docs \u003chttps://quickbuild.readthedocs.io/en/latest/\u003e`_\n\n`Official REST API documentation \u003chttps://wiki.pmease.com/display/QB12/RESTful+API\u003e`_\n\n`Available REST API Clients \u003chttps://wiki.pmease.com/display/QB12/Available+Clients\u003e`_\n\nInstallation\n------------\n\n.. code:: shell\n\n    pip3 install quickbuild\n\nExamples\n--------\n\nGet server version:\n\n.. code:: python\n\n    from quickbuild import QBClient\n\n    client = QBClient('https://server', 'user', 'password')\n    version = client.system.get_version()\n    print(version)\n\nGet server version in async way (be careful ``AsyncQBClient`` must be called inside async function):\n\n.. code:: python\n\n    import asyncio\n    from quickbuild import AsyncQBClient\n\n    async def main():\n        client = AsyncQBClient('https://server', 'user', 'password')\n        version = await client.system.get_version()\n        print(version)\n        await client.close()\n\n    asyncio.run(main())\n\nStop build:\n\n.. code:: python\n\n    from quickbuild import QBClient\n\n    client = QBClient('https://server', 'user', 'password')\n    client.builds.stop(123)\n\n\nUpdate credentials handler:\n\n.. code:: python\n\n    import asyncio\n    import aiohttp\n    from quickbuild import AsyncQBClient\n\n    async def get_credentials():\n        async with aiohttp.ClientSession() as session:\n            async with session.get('...') as resp:\n                response = await resp.json()\n                return response['user'], response['password']\n\n    async def main():\n        client = AsyncQBClient('http://server', 'user', 'password',\n                                auth_update_callback=get_credentials)\n\n        # let's suppose credentials are valid now\n        print(await client.builds.get_status(12345))\n\n        # now, after some time, password of user somehow changed, so our callback\n        # will be called, new credentials will be using for retry and future here\n        # we get also correct build info instead of QBUnauthorizedError exception\n        print(await client.builds.get_status(12345))\n\n        await client.close()\n\n    asyncio.run(main())\n\n\nContent type\n------------\n\nBy default QuickBuild returns XML content, but starting from 10 version it also\nhas native support of JSON content, usually it's much more convenient to use\nnative Python types (parsed XML) instead of pure XML string.\n\nSo, that is why three types of content were indtoduced, this type and behavior\ncan be set globally for client instances, and can be rewritten for some methods.\n\n- PARSE (using by default)\n    - GET: parse XML to native Python types.\n    - POST: pure XML string.\n\n- XML\n    - GET: return native XML without any transformations.\n    - POST: pure XML string.\n\n- JSON (QuickBuild 10+)\n    - GET: parsed JSON string.\n    - POST: dumps object to JSON string.\n\nDevelopment\n-----------\n\nIt's possible to run QuickBuild community edition locally using docker:\n\nBuild locally:\n\n.. code:: shell\n\n    docker build .  -f docker/QB10.Dockerfile -t quickbuild:10\n    docker run --restart always --name qb10 -d -p 8810:8810 quickbuild:10\n\nOr run prepared image:\n\n.. code:: shell\n\n    docker run --restart always --name qb10 -d -p 8810:8810 pbelskiy/quickbuild:10\n\nThen open http://localhost:8810/\n\nTesting\n-------\n\nPrerequisites: `tox`\n\nThen just run tox, all dependencies and checks will run automatically\n\n::\n\n    tox\n\nContributing\n------------\n\nFeel free for any contributions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbelskiy%2Fquickbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbelskiy%2Fquickbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbelskiy%2Fquickbuild/lists"}