a python client for the Backstage catalog API
Project description
backstage-catalog-client
a python client for the Backstage catalog API
- Github repository: https://github.com/mspiegel31/backstage-catalog-client/
- Documentation https://mspiegel31.github.io/backstage-catalog-client/
Getting started with your project
First, create a repository on GitHub with the same name as this project, and then run the following commands:
git init -b main
git add .
git commit -m "init commit"
git remote add origin git@github.com:mspiegel31/backstage-catalog-client.git
git push -u origin main
Finally, install the environment and the pre-commit hooks with
make install
You are now ready to start development on your project! The CI/CD pipeline will be triggered when you open a pull request, merge to main, or when you create a new release.
To finalize the set-up for publishing to PyPi or Artifactory, see here. For activating the automatic documentation with MkDocs, see here. To enable the code coverage reports, see here.
Releasing a new version
- Create an API Token on Pypi.
- Add the API Token to your projects secrets with the name
PYPI_TOKEN
by visiting this page. - Create a new release on Github.
- Create a new tag in the form
*.*.*
.
For more details, see here.
Repository initiated with fpgmaas/cookiecutter-poetry.
Generating entities
TODO: script
- run
scripts/generate-models.py
to fetch jsonschemas in a pydantic-friendly way - run datamodel-codegen:
datamodel-codegen --input schemas/ --input-file-type jsonschema --output backstage_catalog_client/entity --output-model-type pydantic_v2.BaseModel --use-title-as-name
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
Hashes for backstage_catalog_client-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a3fa0b416aaa89e9afae134c1c0b333faa725c524039dc22de7d6bb330291a |
|
MD5 | 1bbf8c1ef5080f2e9e7e85742d84696a |
|
BLAKE2b-256 | 4676f1d4dbeb94fa960cc1bf7a05b715366f46354f43d5440046914feacabf1d |
Hashes for backstage_catalog_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdec5d3e5047c27c93e04945e8442073f961eb8051acf96eee57c2d491b76a4f |
|
MD5 | e977325b3052c8db99b42e6235a4ed1a |
|
BLAKE2b-256 | 31a664a8c3dfff8a9771d1a3ef1c06e2aa9e924a7e347424d1a4963745159390 |