Itsprompt

Latest version: v1.5

Safety actively analyzes 623807 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.5

With this update ItsPrompt finally introduces a Documentation, now available [here](https://itsprompt.readthedocs.io/en/latest/index.html)!

We also updated the process of generating visualisation media for ItsPrompt. With [vhs](https://github.com/charmbracelet/vhs), updating the images is now as simple as running a single command!

Since the last release we also introduced lists in `TablePrompt`, disabled options and separators. To read more about them, visit our documentation!

Documentation
A documentation for `ItsPrompt` is finally available [here](https://itsprompt.readthedocs.io/en/latest/index.html)!

TablePrompt Lists
You can now input data for `TablePrompt` as a [`TablePromptList`](https://itsprompt.readthedocs.io/en/latest/guide/options_and_data.html#data-as-a-tablepromptlist):

py
data = [
["field 1", "field 2"],
["field 3", "field 4"]
]


Disabled Options
All Prompt Types which take a list of options now offer a new `disabled` argument, which takes a list of IDs to be disabled. Those cannot be selected and are grayed out.

To read more, visit [Disabled Options](https://itsprompt.readthedocs.io/en/latest/guide/usage.html#disabled-options).

Separators
`Separators` can be used to separate different options in different groups.

To read more, visit [Separators](https://itsprompt.readthedocs.io/en/latest/guide/options_and_data.html#separators).

---

If you've got any ideas on what could be changed, added, or improved, visit our [Discussions](https://github.com/TheItsProjects/ItsPrompt/discussions), [Discord](https://discord.gg/rP9Qke2jDs) or open an [Issue](https://github.com/TheItsProjects/ItsPrompt/issues)!

What's Changed
* Tableprompt lists by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/29
* Additions by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/35
* 36: add disabled options by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/39
* add separators by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/42
* 31: Add Documentation by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/43
* Fix/44 updated media by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/45


**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/compare/v1.4...v1.5

1.4

Today we are pleased to announce that finally, `TablePrompt` can be used without installing pandas!

To use `TablePrompt` with a dictionary, simply create one in the style of:

py
data = {
"column name": ["field 1", "field 2"],
...
}


Now use this dict as the data attribute of `TablePrompt`. It's that easy!

You can still use `pandas.DataFrame`, either by installing pandas separately or by installing `ItsPrompt` with:


pip install itspromt[df]


We are currently working a way to use `TablePrompt` with lists as well, stay tuned!

If you've got any ideas on what could be changed, added, or improved, visit our [Discussions](https://github.com/TheItsProjects/ItsPrompt/discussions), [Discord](https://discord.gg/rP9Qke2jDs) or open an [Issue](https://github.com/TheItsProjects/ItsPrompt/issues)!

What's Changed
* Table dict by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/26
* updated README.md to show new way to use `TablePrompt` by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/27


**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/compare/v1.3...v1.4

1.3

This new release of `ItsPrompt` brings some small updates, the biggest of which are the added **testing and linting**!

There were some smaller changes made to the `README` as well as some other documentation.

If you've got any ideas on what could be changed, added, or improved, visit our [Discussions](https://github.com/TheItsProjects/ItsPrompt/discussions), [Discord](https://discord.gg/rP9Qke2jDs) or open an [Issue](https://github.com/TheItsProjects/ItsPrompt/issues)!

What's Changed
* Update pyproject.toml by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/16
* Update Issue Templates by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/19
* Add yapf to pre-commit and CI by andrewthetechie in https://github.com/TheItsProjects/ItsPrompt/pull/22
* Tests by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/23

New Contributors
* andrewthetechie made their first contribution in https://github.com/TheItsProjects/ItsPrompt/pull/22

**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/compare/v1.2...v1.3

1.2

This release adds an all-new prompt type: the `TablePrompt`!

To use it, simply create a `pandas.DataFrame` and add it as the data of the prompt:

py
data = DataFrame({
'Food': ['Pizza', 'Burger', 'Salad'],
'Qty': [1, 0, 0],
})

ans = Prompt.table(
'Please fill in your quantity',
data,
)

print(ans)


![](https://raw.githubusercontent.com/TheItsProjects/ItsPrompt/main/media/table.png)

If you've got any ideas on what could be changed, added, or improved, visit our [Discussions](https://github.com/TheItsProjects/ItsPrompt/discussions), [Discord](https://discord.gg/rP9Qke2jDs) or open an [Issue](https://github.com/TheItsProjects/ItsPrompt/issues)!

What's Changed
* Added TablePrompt by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/11


**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/compare/v1.1...v1.2

1.1

This is our first update to **ItsPrompt**.

This version includes [Autocompletion for input prompt](https://github.com/TheItsProjects/ItsPrompt#prompt-completion) and some small changes. Read more about Autocompletion in the README!

We also enabled [Discussions](https://github.com/TheItsProjects/ItsPrompt/discussions), feel free to ask questions or share your thoughts!

What's Changed
* Auto complete by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/4
* updated readme to include the available completers from prompt_toolkit, e.g. PathCompleter by TheItsNameless in https://github.com/TheItsProjects/ItsPrompt/pull/5

New Contributors
* TheItsNameless made their first contribution in https://github.com/TheItsProjects/ItsPrompt/pull/4

**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/compare/v1.0...v1.1

1.0

Hello Everyone!

This is the first release of **ItsPrompt**, so there is not too much to say. Everything you need to know is available in the README.

Have fun!

**Full Changelog**: https://github.com/TheItsProjects/ItsPrompt/commits/v1.0

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.