Git Product home page Git Product logo

amun-client's Introduction

Amun Client

Autogenerated library for communication with Amun API

The swagger definition that is used for generating this swagger client can be found in Amun API repository in file amun/swagger.yaml.

Installation

This library is automatically released on changes to PyPI, so you can install it using pip or Pipenv (recommended):

pipenv install amun
# or use pip
# pip3 install amun

Usage

You can find autogenerated documentetion in the Amun client repository, under the Documentation directory.

To adjust client for a desired remote, you can use the following configuration chages:

from amun.swagger_client import InspectionApi
from amun.swagger_client import InspectionSpecification
from amun.swagger_client import Configuration
from amun.swagger_client import ApiClient
from pprint import pprint

# Adjust remote to communicate with:
configuration = Configuration()
configuration.host = 'http://amun-api.your-cluster.redhat.com/api/v1'

# Apply this configuration to API client:
api_client = ApiClient(configuration)

# Use the customized API client to talk to the remote API:
api_instance = InspectionApi(api_client)
specification = InspectionSpecification(base='fedora:28')

api_response = api_instance.post_inspection(specification)
pprint(api_response)

Or you can use the prepared wrapper for this purpose:

from amun import inspect

inspect('http://amun-api.your-cluster.redhat.com/api/v1', base='fedora:28')

amun-client's People

Contributors

fridex avatar goern avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.