Giter Site home page Giter Site logo

wizzer's Introduction

wizzer logo stability HitCount


# wizzer #### [What's wizzer?](#whats-wizzer) #### [How to use?](#how-to-use) #### [Credits](#credits) ---

What's wizzer?

wizzer is a Python module to help programmers initialise their domain specific variable(s)/configuration(s) using a wizard-like question answer chat scenario. The need for this module began to develope when there was such need for Intent-Based Networking (IBN). Where the user would express their intention and expect the system to translate and trigger setup automatically.

** This is a pre-LLM era repository.

How to use?

  1. import wizzer package.
import wizzer
  1. have your questions (configuration parameters) ready. accepted formats are arrays, dictionaries or a single string. You can also pass the questions to "convert module" to get back a ready to use dictionary.

    • Here we have an array forexample:
q1 = [
        'driver',
        'hostname',
        'username',
        'password',
        'port',
]
  • Now you can ask above attributes from the user. This will return a new dictinary with all answers filled-in as corresponding values.
q = wizzer.ask(q1)
What's the driver ?  iosxr
What's the hostname ?  ios-xe-mgmt.cisco.com
What's the username ?  developer
What's the password ?  C1sco12345
What's the port ?  8181
  • You can review the configurations by running:
wizzer.review(q)
driver :  iosxr
hostname :  ios-xe-mgmt.cisco.com
username :  developer
password :  C1sco12345
port :  8181
  1. Here we have a dictionary forexample:
q2 = {
        'driver': '',
        'hostname': '',
        'username': '',
        'password': '',
        'port': '',
}
  • Now you can ask above attributes from the user. This will return a new dictinary with all answers filled-in as corresponding values.
q = wizzer.ask(q2)
What's the driver ?  iosxr
What's the hostname ?  ios-xe-mgmt.cisco.com
What's the username ?  developer
What's the password ?  C1sco12345
What's the port ?  8181
  • You can review the configurations by running:
wizzer.review(q2)
driver :  iosxr
hostname :  ios-xe-mgmt.cisco.com
username :  developer
password :  C1sco12345
port :  8181

credits

Icon in the wizzer logo by Anatoly Dudko

wizzer's People

Contributors

seekasra avatar

Stargazers

Amin Khalighi Sikaroodi avatar Mohammad Abolhasani avatar Hosein Kazazi avatar

Watchers

James Cloos avatar  avatar

Forkers

mabolhasani

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.