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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file backstage_catalog_client-0.1.0.tar.gz.

File metadata

  • Download URL: backstage_catalog_client-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for backstage_catalog_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b26b585ed2c9879830b16d7abd8aa7fed29be1cfbc0bc5f333c8787107415c42
MD5 3e71edb65d3f5f2278b5fe2790168f9f
BLAKE2b-256 9d6506bf641c9319c1d87a48e9a880b089fabc44ce41f9c4561ed0874493f0c2

See more details on using hashes here.

File details

Details for the file backstage_catalog_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for backstage_catalog_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cdabe7f68af34d0a7591c16b359a5d6fbc32986c06dd06826d09199331b8e32
MD5 1dab56f1bf088f84b1f1b197f759748d
BLAKE2b-256 4a654681af3545be40d8cc189de45235e61307341757c4f19b10187865005b04

See more details on using hashes here.

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