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 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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26b585ed2c9879830b16d7abd8aa7fed29be1cfbc0bc5f333c8787107415c42 |
|
MD5 | 3e71edb65d3f5f2278b5fe2790168f9f |
|
BLAKE2b-256 | 9d6506bf641c9319c1d87a48e9a880b089fabc44ce41f9c4561ed0874493f0c2 |
Close
Hashes for backstage_catalog_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cdabe7f68af34d0a7591c16b359a5d6fbc32986c06dd06826d09199331b8e32 |
|
MD5 | 1dab56f1bf088f84b1f1b197f759748d |
|
BLAKE2b-256 | 4a654681af3545be40d8cc189de45235e61307341757c4f19b10187865005b04 |