a python client for the Backstage catalog API
Project description
backstage-catalog-client
A python client for the Backstage catalog API. Only uses native python datatypes.
- Github repository: https://github.com/mspiegel31/backstage-catalog-client/
- Documentation https://mspiegel31.github.io/backstage-catalog-client/
Installation
backstage_catalog_client is available on PyPi. Requires python 3.8+
python3 -m pip install backstage_catalog_client
Usage
to use a ready-made client, import it and make requests
import asyncio
import json
from backstage_catalog_client.httpx_client import HttpxClient
async def main():
catalog = HttpxClient("https://demo.backstage.io/")
data = await catalog.get_entities()
for entity in data.items[:1]:
print(json.dumps(entity, indent=2))
if __name__ == "__main__":
asyncio.run(main())
Documentation
project documentation is available at the main documentation site
Prior Art
- JS Catalog Client: backstage-catalog-client
- Go Catalog Client: go-backstage
Repository initiated with fpgmaas/cookiecutter-poetry.
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
Built Distribution
Close
Hashes for backstage_catalog_client-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb68f7065510579490d28f9578875c29fd3fe9fe7addfb0f25e368fbcaa00d7 |
|
MD5 | 58e00148d718bf872405ab263397794f |
|
BLAKE2b-256 | 81286e764a7f0544851bd5e3ca71d00a7f3a4a10e368b69c5798015d5d6ac18d |
Close
Hashes for backstage_catalog_client-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07a6f7d4a85477f47933f4cacd3634f9ff07ad665a49c34ad30b5cdf3f87dea |
|
MD5 | 954f287e6827e1c64086c34490c1f03e |
|
BLAKE2b-256 | e2b0f7466626bfc9619a8645006d38c55edebcc6f79ab720dbb25a844cc38b08 |