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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 795fdf5bbf4ce35c17426736e0d7460b07ef7dfc91f4095e9cc91cbea4f0e9e5 |
|
MD5 | e0e5b9f3f3fc5adc37583cb36633b993 |
|
BLAKE2b-256 | 2c66326d15f33bfcfd92731538f02ea8f8572210f5af6c209a9054ae551fee23 |
Close
Hashes for backstage_catalog_client-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a3a869ada304fe681cf5cf467c7914490408a2df0b36ee323cbb609b37e10e4 |
|
MD5 | a2eb216b8b0da9f7469c686b01b35910 |
|
BLAKE2b-256 | 4e9d4c83c699f9dd1a6fa2605863fb890b024aab7ad954066c5729abe5491654 |