Skip to main content

a python client for the Backstage catalog API

Project description

backstage-catalog-client

Release Build status codecov Commit activity License

A python client for the Backstage catalog API. Only uses native python datatypes.

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

  1. JS Catalog Client: backstage-catalog-client
  2. 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

backstage_catalog_client-0.1.0.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

backstage_catalog_client-0.1.0-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page