conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Tell me about `pyATS`."
},
{
"from": "gpt",
"value": "A vendor agnostic test automation framework by Cisco Systems, used for network and systems testing.\nMore information: <https://developer.cisco.com/pyats/>.\n"
}
] |
[
{
"from": "human",
"value": "Run a `pyATS` subcommand via the `pyats` command"
},
{
"from": "gpt",
"value": "`pyats {{subcommand}}`"
}
] |
[
{
"from": "human",
"value": "Display help via the `pyats` command"
},
{
"from": "gpt",
"value": "`pyats --help`"
}
] |
[
{
"from": "human",
"value": "Display help about a specific subcommand via the `pyats` command"
},
{
"from": "gpt",
"value": "`pyats {{subcommand}} --help`"
}
] |
[
{
"from": "human",
"value": "Display version via the `pyats` command"
},
{
"from": "gpt",
"value": "`pyats version check`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyats shell`."
},
{
"from": "gpt",
"value": "Start a pre-loaded pyATS interactive Python Shell to save time in prototyping.\nMore information: <https://pubhub.devnetcloud.com/media/genie-docs/docs/cli/genie_shell.html>.\n"
}
] |
[
{
"from": "human",
"value": "Open pyATS shell with a defined Testbed file via the `pyats-shell` command"
},
{
"from": "gpt",
"value": "`pyats shell --testbed-file {{path/to/testbed.yaml}}`"
}
] |
[
{
"from": "human",
"value": "Open pyATS shell with a defined Pickle file via the `pyats-shell` command"
},
{
"from": "gpt",
"value": "`pyats shell --pickle-file {{path/to/pickle.file}}`"
}
] |
[
{
"from": "human",
"value": "Open pyATS with IPython disabled via the `pyats-shell` command"
},
{
"from": "gpt",
"value": "`pyats shell --no-ipython`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyats version`."
},
{
"from": "gpt",
"value": "View and upgrade the pyATS installation.\nMore information: <https://developer.cisco.com/pyats/>.\n"
}
] |
[
{
"from": "human",
"value": "Display version of all packages via the `pyats-version` command"
},
{
"from": "gpt",
"value": "`pyats version check`"
}
] |
[
{
"from": "human",
"value": "Display outdated packages via the `pyats-version` command"
},
{
"from": "gpt",
"value": "`pyats version check --outdated`"
}
] |
[
{
"from": "human",
"value": "Update packages to the most recent version via the `pyats-version` command"
},
{
"from": "gpt",
"value": "`pyats version update`"
}
] |
[
{
"from": "human",
"value": "Update or downgrade packages to a specific version via the `pyats-version` command"
},
{
"from": "gpt",
"value": "`pyats version update {{version}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pycodestyle`."
},
{
"from": "gpt",
"value": "Check Python code against PEP 8 style conventions.\nMore information: <https://pycodestyle.readthedocs.io>.\n"
}
] |
[
{
"from": "human",
"value": "Check the style of a single file via the `pycodestyle` command"
},
{
"from": "gpt",
"value": "`pycodestyle {{file.py}}`"
}
] |
[
{
"from": "human",
"value": "Check the style of multiple files via the `pycodestyle` command"
},
{
"from": "gpt",
"value": "`pycodestyle {{file1.py file2.py ...}}`"
}
] |
[
{
"from": "human",
"value": "Show only the first occurrence of an error via the `pycodestyle` command"
},
{
"from": "gpt",
"value": "`pycodestyle --first {{file.py}}`"
}
] |
[
{
"from": "human",
"value": "Show the source code for each error via the `pycodestyle` command"
},
{
"from": "gpt",
"value": "`pycodestyle --show-source {{file.py}}`"
}
] |
[
{
"from": "human",
"value": "Show the specific PEP 8 text for each error via the `pycodestyle` command"
},
{
"from": "gpt",
"value": "`pycodestyle --show-pep8 {{file.py}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pydoc`."
},
{
"from": "gpt",
"value": "Display offline Python documentation.\nMore information: <https://docs.python.org/3/library/pydoc.html>.\n"
}
] |
[
{
"from": "human",
"value": "Print documentation on a subject (Python keyword, topic, function, module, package, etc.) via the `pydoc` command"
},
{
"from": "gpt",
"value": "`pydoc {{subject}}`"
}
] |
[
{
"from": "human",
"value": "Start an HTTP server on an arbitrary unused port and open a [b]rowser to see the documentation via the `pydoc` command"
},
{
"from": "gpt",
"value": "`pydoc -b`"
}
] |
[
{
"from": "human",
"value": "Display help via the `pydoc` command"
},
{
"from": "gpt",
"value": "`pydoc`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pydocstyle`."
},
{
"from": "gpt",
"value": "Statically check Python scripts for compliance with Python docstring conventions.\nMore information: <https://www.pydocstyle.org/en/latest/>.\n"
}
] |
[
{
"from": "human",
"value": "Analyze a Python script or all the Python scripts in a specific directory via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Show an explanation of each error via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle {{[-e|--explain]}} {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Show debug information via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle {{[-d|--debug]}} {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Display the total number of errors via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle --count {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Use a specific configuration file via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle --config {{path/to/config_file}} {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Ignore one or more errors via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle --ignore {{D101,D2,D107,...}} {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Check for errors from a specific convention via the `pydocstyle` command"
},
{
"from": "gpt",
"value": "`pydocstyle --convention {{pep257|numpy|google}} {{file.py|path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyenv`."
},
{
"from": "gpt",
"value": "Switch between multiple versions of Python easily.\nSee also: `asdf`.\nMore information: <https://github.com/pyenv/pyenv>.\n"
}
] |
[
{
"from": "human",
"value": "List all available commands via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv commands`"
}
] |
[
{
"from": "human",
"value": "List all Python versions under the `${PYENV_ROOT}/versions` directory via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv versions`"
}
] |
[
{
"from": "human",
"value": "List all Python versions that can be installed from upstream via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv install --list`"
}
] |
[
{
"from": "human",
"value": "Install a Python version under the `${PYENV_ROOT}/versions` directory via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv install {{2.7.10}}`"
}
] |
[
{
"from": "human",
"value": "Uninstall a Python version under the `${PYENV_ROOT}/versions` directory via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv uninstall {{2.7.10}}`"
}
] |
[
{
"from": "human",
"value": "Set Python version to be used globally in the current machine via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv global {{2.7.10}}`"
}
] |
[
{
"from": "human",
"value": "Set Python version to be used in the current directory and all directories below it via the `pyenv` command"
},
{
"from": "gpt",
"value": "`pyenv local {{2.7.10}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyenv virtualenv`."
},
{
"from": "gpt",
"value": "Create virtual environments based on one's installed Python distributions.\nMore information: <https://github.com/pyenv/pyenv-virtualenv>.\n"
}
] |
[
{
"from": "human",
"value": "Create a new Python 3.6.6 virtual environment via the `pyenv-virtualenv` command"
},
{
"from": "gpt",
"value": "`pyenv virtualenv {{3.6.6}} {{virtualenv_name}}`"
}
] |
[
{
"from": "human",
"value": "List all existing virtual environments via the `pyenv-virtualenv` command"
},
{
"from": "gpt",
"value": "`pyenv virtualenvs`"
}
] |
[
{
"from": "human",
"value": "Activate a virtual environment via the `pyenv-virtualenv` command"
},
{
"from": "gpt",
"value": "`pyenv activate {{virtualenv_name}}`"
}
] |
[
{
"from": "human",
"value": "Deactivate the virtual environment via the `pyenv-virtualenv` command"
},
{
"from": "gpt",
"value": "`pyenv deactivate`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyflakes`."
},
{
"from": "gpt",
"value": "Checks Python source code files for errors.\nMore information: <https://pypi.org/project/pyflakes>.\n"
}
] |
[
{
"from": "human",
"value": "Check a single Python file via the `pyflakes` command"
},
{
"from": "gpt",
"value": "`pyflakes check {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Check Python files in a specific directory via the `pyflakes` command"
},
{
"from": "gpt",
"value": "`pyflakes checkPath {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Check Python files in a directory recursively via the `pyflakes` command"
},
{
"from": "gpt",
"value": "`pyflakes checkRecursive {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Check all Python files found in multiple directories via the `pyflakes` command"
},
{
"from": "gpt",
"value": "`pyflakes iterSourceCode {{path/to/directory_1}} {{path/to/directory_2}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pygmentize`."
},
{
"from": "gpt",
"value": "Python-based syntax highlighter.\nMore information: <https://pygments.org/docs/cmdline/>.\n"
}
] |
[
{
"from": "human",
"value": "Highlight file syntax and print to `stdout` (language is inferred from the file extension) via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize {{file.py}}`"
}
] |
[
{
"from": "human",
"value": "Explicitly set the language for syntax highlighting via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize -l {{javascript}} {{input_file}}`"
}
] |
[
{
"from": "human",
"value": "List available lexers (processors for input languages) via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize -L lexers`"
}
] |
[
{
"from": "human",
"value": "Save output to a file in HTML format via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize -f html -o {{output_file.html}} {{input_file.py}}`"
}
] |
[
{
"from": "human",
"value": "List available output formats via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize -L formatters`"
}
] |
[
{
"from": "human",
"value": "Output an HTML file, with additional formatter options (full page, with line numbers) via the `pygmentize` command"
},
{
"from": "gpt",
"value": "`pygmentize -f html -O \"full,linenos=True\" -o {{output_file.html}} {{input_file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pyinfra`."
},
{
"from": "gpt",
"value": "Automates infrastructure at a large scale.\nMore information: <https://docs.pyinfra.com>.\n"
}
] |
[
{
"from": "human",
"value": "Execute a command over SSH via the `pyinfra` command"
},
{
"from": "gpt",
"value": "`pyinfra {{target_ip_address}} exec -- {{command_name_and_arguments}}`"
}
] |
[
{
"from": "human",
"value": "Execute contents of a deploy file on a list of targets via the `pyinfra` command"
},
{
"from": "gpt",
"value": "`pyinfra {{path/to/target_list.py}} {{path/to/deploy.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute commands on locally via the `pyinfra` command"
},
{
"from": "gpt",
"value": "`pyinfra @local {{path/to/deploy.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute commands over Docker via the `pyinfra` command"
},
{
"from": "gpt",
"value": "`pyinfra @docker/{{container}} {{path/to/deploy.py}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pylint`."
},
{
"from": "gpt",
"value": "A Python code linter.\nMore information: <https://pylint.pycqa.org/en/latest/>.\n"
}
] |
[
{
"from": "human",
"value": "Show lint errors in a file via the `pylint` command"
},
{
"from": "gpt",
"value": "`pylint {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Lint a package or module (must be importable; no `.py` suffix) via the `pylint` command"
},
{
"from": "gpt",
"value": "`pylint {{package_or_module}}`"
}
] |
[
{
"from": "human",
"value": "Lint a package from a directory path (must contain an `__init__.py` file) via the `pylint` command"
},
{
"from": "gpt",
"value": "`pylint {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Lint a file and use a configuration file (usually named `pylintrc`) via the `pylint` command"
},
{
"from": "gpt",
"value": "`pylint --rcfile {{path/to/pylintrc}} {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Lint a file and disable a specific error code via the `pylint` command"
},
{
"from": "gpt",
"value": "`pylint --disable {{C,W,no-error,design}} {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pypy`."
},
{
"from": "gpt",
"value": "Fast and compliant alternative implementation of the Python language.\nMore information: <https://doc.pypy.org>.\n"
}
] |
[
{
"from": "human",
"value": "Start a REPL (interactive shell) via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy`"
}
] |
[
{
"from": "human",
"value": "Execute script in a given Python file via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute script as part of an interactive shell via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy -i {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute a Python expression via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy -c \"{{expression}}\"`"
}
] |
[
{
"from": "human",
"value": "Run library module as a script (terminates option list) via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy -m {{module}} {{arguments}}`"
}
] |
[
{
"from": "human",
"value": "Install a package using pip via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy -m pip install {{package}}`"
}
] |
[
{
"from": "human",
"value": "Interactively debug a Python script via the `pypy` command"
},
{
"from": "gpt",
"value": "`pypy -m pdb {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `py-spy`."
},
{
"from": "gpt",
"value": "A sampling profiler for Python programs.\nMore information: <https://github.com/benfred/py-spy>.\n"
}
] |
[
{
"from": "human",
"value": "Show a live view of the functions that take the most execution time of a running process via the `py-spy` command"
},
{
"from": "gpt",
"value": "`py-spy top --pid {{pid}}`"
}
] |
[
{
"from": "human",
"value": "Start a program and show a live view of the functions that take the most execution time via the `py-spy` command"
},
{
"from": "gpt",
"value": "`py-spy top -- python {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Produce an SVG flame graph of the function call execution time via the `py-spy` command"
},
{
"from": "gpt",
"value": "`py-spy record -o {{path/to/profile.svg}} --pid {{pid}}`"
}
] |
[
{
"from": "human",
"value": "Dump the call stack of a running process via the `py-spy` command"
},
{
"from": "gpt",
"value": "`py-spy dump --pid {{pid}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pystun3`."
},
{
"from": "gpt",
"value": "Classic STUN client written in Python.\nMore information: <https://github.com/talkiq/pystun3>.\n"
}
] |
[
{
"from": "human",
"value": "Make a STUN request via the `pystun3` command"
},
{
"from": "gpt",
"value": "`pystun3`"
}
] |
[
{
"from": "human",
"value": "Make a STUN request and specify the stun server via the `pystun3` command"
},
{
"from": "gpt",
"value": "`pystun3 --stun-host {{stun.1und1.de}}`"
}
] |
[
{
"from": "human",
"value": "Make a STUN request and specify the source port via the `pystun3` command"
},
{
"from": "gpt",
"value": "`pystun3 --source-port {{7932}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `pytest`."
},
{
"from": "gpt",
"value": "Run Python tests.\nMore information: <https://docs.pytest.org/>.\n"
}
] |
[
{
"from": "human",
"value": "Run tests from specific files via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest {{path/to/test_file1.py path/to/test_file2.py ...}}`"
}
] |
[
{
"from": "human",
"value": "Run tests with names matching a specific [k]eyword expression via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest -k {{expression}}`"
}
] |
[
{
"from": "human",
"value": "Exit as soon as a test fails or encounters an error via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest --exitfirst`"
}
] |
[
{
"from": "human",
"value": "Run tests matching or excluding markers via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest -m {{marker_name1 and not marker_name2}}`"
}
] |
[
{
"from": "human",
"value": "Run until a test failure, continuing from the last failing test via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest --stepwise`"
}
] |
[
{
"from": "human",
"value": "Run tests without capturing output via the `pytest` command"
},
{
"from": "gpt",
"value": "`pytest --capture=no`"
}
] |
[
{
"from": "human",
"value": "Tell me about `python3`."
},
{
"from": "gpt",
"value": "This command is an alias of `python`.\n"
}
] |
[
{
"from": "human",
"value": "View documentation for the original command via the `python3` command"
},
{
"from": "gpt",
"value": "`tldr python`"
}
] |
[
{
"from": "human",
"value": "Tell me about `python`."
},
{
"from": "gpt",
"value": "Python language interpreter.\nMore information: <https://www.python.org>.\n"
}
] |
[
{
"from": "human",
"value": "Start a REPL (interactive shell) via the `python` command"
},
{
"from": "gpt",
"value": "`python`"
}
] |
[
{
"from": "human",
"value": "Execute a specific Python file via the `python` command"
},
{
"from": "gpt",
"value": "`python {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute a specific Python file and start a REPL via the `python` command"
},
{
"from": "gpt",
"value": "`python -i {{path/to/file.py}}`"
}
] |
[
{
"from": "human",
"value": "Execute a Python expression via the `python` command"
},
{
"from": "gpt",
"value": "`python -c \"{{expression}}\"`"
}
] |
[
{
"from": "human",
"value": "Run the script of the specified library module via the `python` command"
},
{
"from": "gpt",
"value": "`python -m {{module}} {{arguments}}`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.