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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b434cfc2c172aa15e2dc97f1457862388fc15595f5642fa8a694b50ba72c123 |
|
MD5 | 110e1c5a40e506b5c3f2e411d5fc40f7 |
|
BLAKE2b-256 | e8c25c6aa3ef0ea57b5b4d7f23e178e76f12404dbab9dec51bbcc813a70bfaa8 |
Close
Hashes for backstage_catalog_client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c37d97ddad07118c2ecadd8fc9305adea0e37eec4cc55514270a03331ced0ef |
|
MD5 | def3e348db2a97f534d8c3e184d025ed |
|
BLAKE2b-256 | 1abaddb16f5aec496e05393ab57264b7440fa789ea78cbe7d0a31541c56fffb0 |