Helper for your tty interactions
Project description
prompt
Version: 9.0.1
Helper for your tty interactions
Table of Contents
- Tests
- Suite Integration
- Dependencies
- Versioning
- License
- Suite Integration
- Suite Signature
- Basic Usage
- Introduction
- Roadmap
- Status Compatibility
- Useful Links
- Migration Notes
Tests
Run the test suite:
pytest tests/
With coverage:
pytest --cov=prompt tests/
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
Dependencies
- attrs: >=23.1.0
- cattrs: >=23.1.0
- colorama:
- inquirerpy:
- readchar:
- wcwidth:
- wexample-helpers: >=13.0.0
Versioning & Compatibility Policy
Wexample packages follow Semantic Versioning (SemVer):
- MAJOR: Breaking changes
- MINOR: New features, backward compatible
- PATCH: Bug fixes, backward compatible
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use in both personal and commercial projects.
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
About us
Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
Prompt IO Quickstart
WithIoManager: owning or sharing the IoManager
- Any class that needs prompt output should inherit
WithIoManager. - Call
self.ensure_io_manager()to lazily create or reuse anIoManager. - To inherit a parent’s indentation/verbosity, call
self.set_parent_io_handler(parent); every context you create is automatically nested +1. - If someone else instantiates the manager, call
self.use_io_manager(io)to reuse it instead of creating a new instance.
WithIoMethods: direct method proxies
- Mix in
WithIoMethodswhen you want to callself.log(...),self.separator(...), etc., without reaching intoself.io. - The mixin delegates missing attribute lookups to the underlying
IoManager, and it automatically injectscontext=self.create_io_context()so nested logging just works.
Typical pattern
from wexample_prompt.mixins.with_io_methods import WithIoMethods
class Worker(WithIoMethods):
def __attrs_post_init__(self):
self.ensure_io_manager() # Owns an IoManager
def run(self):
self.log("top level message") # via WithIoMethods
class Child(WithIoMethods):
def __attrs_post_init__(self, parent):
self.set_parent_io_handler(parent) # reuse & indent
def run(self):
self.log("nested message")
The executor or parent decides whether to create a fresh manager or cascade an existing one; children only call ensure_io_manager() and never worry about the init order.
prompt
Version: 6.1.2
Helper for your tty interactions
Table of Contents
- Tests
- Suite Integration
- Dependencies
- Versioning
- License
- Suite Integration
- Suite Signature
- Basic Usage
- Introduction
- Roadmap
- Status Compatibility
- Useful Links
- Migration Notes
Tests
Run the test suite:
pytest tests/
With coverage:
pytest --cov=prompt tests/
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
Dependencies
- attrs: >=23.1.0
- cattrs: >=23.1.0
- colorama:
- inquirerpy:
- readchar:
- wcwidth:
- wexample-helpers: >=8.0.0
Versioning & Compatibility Policy
Wexample packages follow Semantic Versioning (SemVer):
- MAJOR: Breaking changes
- MINOR: New features, backward compatible
- PATCH: Bug fixes, backward compatible
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use in both personal and commercial projects.
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
About us
Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
Prompt IO Quickstart
WithIoManager: owning or sharing the IoManager
- Any class that needs prompt output should inherit
WithIoManager. - Call
self.ensure_io_manager()to lazily create or reuse anIoManager. - To inherit a parent’s indentation/verbosity, call
self.set_parent_io_handler(parent); every context you create is automatically nested +1. - If someone else instantiates the manager, call
self.use_io_manager(io)to reuse it instead of creating a new instance.
WithIoMethods: direct method proxies
- Mix in
WithIoMethodswhen you want to callself.log(...),self.separator(...), etc., without reaching intoself.io. - The mixin delegates missing attribute lookups to the underlying
IoManager, and it automatically injectscontext=self.create_io_context()so nested logging just works.
Typical pattern
from wexample_prompt.mixins.with_io_methods import WithIoMethods
class Worker(WithIoMethods):
def __attrs_post_init__(self):
self.ensure_io_manager() # Owns an IoManager
def run(self):
self.log("top level message") # via WithIoMethods
class Child(WithIoMethods):
def __attrs_post_init__(self, parent):
self.set_parent_io_handler(parent) # reuse & indent
def run(self):
self.log("nested message")
The executor or parent decides whether to create a fresh manager or cascade an existing one; children only call ensure_io_manager() and never worry about the init order.
prompt
Version: 2.0.0
Helper for your tty interactions
Table of Contents
- Tests
- Suite Integration
- Dependencies
- Versioning
- License
- Suite Integration
- Suite Signature
- Basic Usage
- Roadmap
- Status Compatibility
- Useful Links
- Migration Notes
Tests
Run the test suite:
pytest tests/
With coverage:
pytest --cov=prompt tests/
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
Dependencies
- attrs: >=23.1.0
- cattrs: >=23.1.0
- colorama:
- inquirerpy:
- readchar:
- wcwidth:
- wexample-helpers: >=1.1.0
Versioning & Compatibility Policy
Wexample packages follow Semantic Versioning (SemVer):
- MAJOR: Breaking changes
- MINOR: New features, backward compatible
- PATCH: Bug fixes, backward compatible
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use in both personal and commercial projects.
Integration in the Suite
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
Related Packages
The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
Visit the Wexample Suite documentation for the complete package ecosystem.
About us
Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
Prompt IO Quickstart
WithIoManager: owning or sharing the IoManager
- Any class that needs prompt output should inherit
WithIoManager. - Call
self.ensure_io_manager()to lazily create or reuse anIoManager. - To inherit a parent’s indentation/verbosity, call
self.set_parent_io_handler(parent); every context you create is automatically nested +1. - If someone else instantiates the manager, call
self.use_io_manager(io)to reuse it instead of creating a new instance.
WithIoMethods: direct method proxies
- Mix in
WithIoMethodswhen you want to callself.log(...),self.separator(...), etc., without reaching intoself.io. - The mixin delegates missing attribute lookups to the underlying
IoManager, and it automatically injectscontext=self.create_io_context()so nested logging just works.
Typical pattern
from wexample_prompt.mixins.with_io_methods import WithIoMethods
class Worker(WithIoMethods):
def __attrs_post_init__(self):
self.ensure_io_manager() # Owns an IoManager
def run(self):
self.log("top level message") # via WithIoMethods
class Child(WithIoMethods):
def __attrs_post_init__(self, parent):
self.set_parent_io_handler(parent) # reuse & indent
def run(self):
self.log("nested message")
The executor or parent decides whether to create a fresh manager or cascade an existing one; children only call ensure_io_manager() and never worry about the init order.
Known Limitations & Roadmap
Current limitations and planned features are tracked in the GitHub issues.
See the project roadmap for upcoming features and improvements.
Status & Compatibility
Maturity: Production-ready
Python Support: >=3.10
OS Support: Linux, macOS, Windows
Status: Actively maintained
Useful Links
- Homepage: https://github.com/wexample/python-prompt
- Documentation: docs.wexample.com
- Issue Tracker: https://github.com/wexample/python-prompt/issues
- Discussions: https://github.com/wexample/python-prompt/discussions
- PyPI: pypi.org/project/prompt
Migration Notes
When upgrading between major versions, refer to the migration guides in the documentation.
Breaking changes are clearly documented with upgrade paths and examples.
Known Limitations & Roadmap
Current limitations and planned features are tracked in the GitHub issues.
See the project roadmap for upcoming features and improvements.
Status & Compatibility
Maturity: Production-ready
Python Support: >=3.10
OS Support: Linux, macOS, Windows
Status: Actively maintained
Useful Links
- Homepage: https://github.com/wexample/python-prompt
- Documentation: docs.wexample.com
- Issue Tracker: https://github.com/wexample/python-prompt/issues
- Discussions: https://github.com/wexample/python-prompt/discussions
- PyPI: pypi.org/project/prompt
Migration Notes
When upgrading between major versions, refer to the migration guides in the documentation.
Breaking changes are clearly documented with upgrade paths and examples.
Known Limitations & Roadmap
Current limitations and planned features are tracked in the GitHub issues.
See the project roadmap for upcoming features and improvements.
Status & Compatibility
Maturity: Production-ready
Python Support: >=3.10
OS Support: Linux, macOS, Windows
Status: Actively maintained
Useful Links
- Homepage: https://github.com/wexample/python-prompt
- Documentation: docs.wexample.com
- Issue Tracker: https://github.com/wexample/python-prompt/issues
- Discussions: https://github.com/wexample/python-prompt/discussions
- PyPI: pypi.org/project/prompt
Migration Notes
When upgrading between major versions, refer to the migration guides in the documentation.
Breaking changes are clearly documented with upgrade paths and examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wexample_prompt-9.0.1.tar.gz.
File metadata
- Download URL: wexample_prompt-9.0.1.tar.gz
- Upload date:
- Size: 99.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.12.3 Linux/6.8.0-110-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
580aa2b02239c806ecffd435d6ffea10cdb3cf289051dc2c2c762e11a1cc887d
|
|
| MD5 |
cbe93a70104ceeffc2f7e779a570ae2d
|
|
| BLAKE2b-256 |
07f0b4115950eab8a6ffe5f41b15c4fa082a5412184fa22e3fcc5d65ac3ec2c3
|
File details
Details for the file wexample_prompt-9.0.1-py3-none-any.whl.
File metadata
- Download URL: wexample_prompt-9.0.1-py3-none-any.whl
- Upload date:
- Size: 160.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.12.3 Linux/6.8.0-110-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
802dcf431b0a6a82ead9a104d621a13412cf8de21c7558ff1ce4bf5b89a86593
|
|
| MD5 |
3260f61f05b666ccacb570bbf416d370
|
|
| BLAKE2b-256 |
b404a33af10d72a457fd66cf3ab322c4c2edccbba46754311d024856645d8c99
|