Releases: TheItsProjects/ItsPrompt
v1.5
ItsPrompt v1.5
With this update ItsPrompt finally introduces a Documentation, now available here!
We also updated the process of generating visualisation media for ItsPrompt. With 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!
TablePrompt Lists
You can now input data for TablePrompt
as a TablePromptList
:
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.
Separators
Separators
can be used to separate different options in different groups.
To read more, visit Separators.
If you've got any ideas on what could be changed, added, or improved, visit our Discussions, Discord or open an Issue!
What's Changed
- Tableprompt lists by @TheItsNameless in #29
- Additions by @TheItsNameless in #35
- 36: add disabled options by @TheItsNameless in #39
- add separators by @TheItsNameless in #42
- 31: Add Documentation by @TheItsNameless in #43
- Fix/44 updated media by @TheItsNameless in #45
Full Changelog: v1.4...v1.5
v1.4
ItsPrompt v1.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:
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, Discord or open an Issue!
What's Changed
- Table dict by @TheItsNameless in #26
- updated README.md to show new way to use
TablePrompt
by @TheItsNameless in #27
Full Changelog: v1.3...v1.4
v1.3
ItsPrompt v1.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, Discord or open an Issue!
What's Changed
- Update pyproject.toml by @TheItsNameless in #16
- Update Issue Templates by @TheItsNameless in #19
- Add yapf to pre-commit and CI by @andrewthetechie in #22
- Tests by @TheItsNameless in #23
New Contributors
- @andrewthetechie made their first contribution in #22
Full Changelog: v1.2...v1.3
v1.2
ItsPrompt v1.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:
data = DataFrame({
'Food': ['Pizza', 'Burger', 'Salad'],
'Qty': [1, 0, 0],
})
ans = Prompt.table(
'Please fill in your quantity',
data,
)
print(ans)
If you've got any ideas on what could be changed, added, or improved, visit our Discussions, Discord or open an Issue!
What's Changed
- Added TablePrompt by @TheItsNameless in #11
Full Changelog: v1.1...v1.2
v1.1
ItsPrompt v1.1
This is our first update to ItsPrompt.
This version includes Autocompletion for input prompt and some small changes. Read more about Autocompletion in the README!
We also enabled Discussions, feel free to ask questions or share your thoughts!
What's Changed
- Auto complete by @TheItsNameless in #4
- updated readme to include the available completers from prompt_toolkit, e.g. PathCompleter by @TheItsNameless in #5
New Contributors
- @TheItsNameless made their first contribution in #4
Full Changelog: v1.0...v1.1
First Release!
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