https://github.com/shollingsworth/pyquanda
An question and answer shell environment based on xonsh using ansible for setup
https://github.com/shollingsworth/pyquanda
interview interview-questions shell
Last synced: about 2 months ago
JSON representation
An question and answer shell environment based on xonsh using ansible for setup
- Host: GitHub
- URL: https://github.com/shollingsworth/pyquanda
- Owner: shollingsworth
- License: mit
- Created: 2021-10-19T15:13:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T16:01:40.000Z (over 3 years ago)
- Last Synced: 2025-05-29T06:24:28.613Z (about 1 year ago)
- Topics: interview, interview-questions, shell
- Language: Python
- Homepage:
- Size: 136 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/shollingsworth/pyquanda/issues) [](https://github.com/shollingsworth/pyquanda) [](https://github.com/shollingsworth/pyquanda/stargazers) [](https://github.com/shollingsworth/pyquanda/network/members)
[](https://pypi.org/project/pyquanda) [](https://pypi.org/project/pyquanda) [](https://pypi.org/project/pyquanda) [](https://pypi.org/project/pyquanda) [](https://pypi.org/project/pyquanda) [](https://pypi.org/project/pyquanda)
# TOC
* [PyQ[u]AndA](#pyq-u-anda-)
* [Installation / Quickstart](#installation---quickstart-)
* [License](#license-)
* [Other Docs](#other-docs-)
* [Command Help](#command-help-)
# PyQ[u]AndA [↑](#toc)
This is an interview environment based around xonsh, meant to be used via
SSH and wrapped around custom hooks you define
Pull requests welcome!
## Installation / Quickstart [↑](#toc)
To install this package from [pypy](https://pypi.org/project/pyquanda/) run the following command.
```
pip3 install pyquanda
```
```
pyquanda-cmd demo
```
## License [↑](#toc)
See: [LICENSE](./LICENSE)
## Other Docs [↑](#toc)
* [Api Docs](./docs/documentation.md)
* [Changelog](./CHANGELOG.md)
## Command Help [↑](#toc)
# Main
## new
```
usage: gendoc.py new [-h] [--overwrite] --destination_directory DESTINATION_DIRECTORY {system,intro,problem} name description
create a new module from templates
positional arguments:
{system,intro,problem}
module type
name module name
description module name
optional arguments:
-h, --help show this help message and exit
--overwrite automatically overwrite destination directory
--destination_directory DESTINATION_DIRECTORY, -d DESTINATION_DIRECTORY
src_module_dir help
```
## a_single
```
usage: gendoc.py a_single [-h] [-c INTERVIEW_CONFIG_YAML] -s SRC_MODULE_DIR [--debug]
run ansible on a single module based on path
optional arguments:
-h, --help show this help message and exit
-c INTERVIEW_CONFIG_YAML, --interview_config_yaml INTERVIEW_CONFIG_YAML
starting configuration yaml
-s SRC_MODULE_DIR, --src_module_dir SRC_MODULE_DIR
source module directory
--debug debug output, do not execute
```
## a_all
```
usage: gendoc.py a_all [-h] [-c INTERVIEW_CONFIG_YAML] -s SRC_MODULE_DIR [--debug]
run all ansible modules in path
optional arguments:
-h, --help show this help message and exit
-c INTERVIEW_CONFIG_YAML, --interview_config_yaml INTERVIEW_CONFIG_YAML
starting configuration yaml
-s SRC_MODULE_DIR, --src_module_dir SRC_MODULE_DIR
source module directory
--debug debug output, do not execute
```
## q_save
```
usage: gendoc.py q_save [-h] [-c INTERVIEW_CONFIG_YAML] -s SRC_MODULE_DIR [--destination_directory DESTINATION_DIRECTORY]
convert questions to pyquanda questions config file
optional arguments:
-h, --help show this help message and exit
-c INTERVIEW_CONFIG_YAML, --interview_config_yaml INTERVIEW_CONFIG_YAML
starting configuration yaml
-s SRC_MODULE_DIR, --src_module_dir SRC_MODULE_DIR
source module directory
--destination_directory DESTINATION_DIRECTORY, -d DESTINATION_DIRECTORY
src_module_dir help
```
## q_test
```
usage: gendoc.py q_test [-h] -s SRC_MODULE_DIR [-c INTERVIEW_CONFIG_YAML] [--keep_state]
test question set
optional arguments:
-h, --help show this help message and exit
-s SRC_MODULE_DIR, --src_module_dir SRC_MODULE_DIR
source module directory
-c INTERVIEW_CONFIG_YAML, --interview_config_yaml INTERVIEW_CONFIG_YAML
starting configuration yaml
--keep_state, -k keep state (defaults to False)
```
## userdata
```
usage: gendoc.py userdata [-h] [-c INTERVIEW_CONFIG_YAML] -s SRC_MODULE_DIR --destination_directory DESTINATION_DIRECTORY
save userdata zip file in directory (filename: userdata.zip)
optional arguments:
-h, --help show this help message and exit
-c INTERVIEW_CONFIG_YAML, --interview_config_yaml INTERVIEW_CONFIG_YAML
starting configuration yaml
-s SRC_MODULE_DIR, --src_module_dir SRC_MODULE_DIR
source module directory
--destination_directory DESTINATION_DIRECTORY, -d DESTINATION_DIRECTORY
src_module_dir help
```
## bootstrap
```
usage: gendoc.py bootstrap [-h] userdata_file
bootstrap host given userdata.zip file
positional arguments:
userdata_file
optional arguments:
-h, --help show this help message and exit
```
## demo
```
usage: gendoc.py demo [-h] [--destination_directory DESTINATION_DIRECTORY] [--overwrite]
demonstrate the xonsh question environment
optional arguments:
-h, --help show this help message and exit
--destination_directory DESTINATION_DIRECTORY, -d DESTINATION_DIRECTORY
src_module_dir help
--overwrite automatically overwrite destination directory
```