This is a library for prompting input on the command line.
Project description
Python Prompt Package
=====================
|PyPI Version| |PyPI Downloads| |Travis| |Documentation Status|
| Prompt and verify user input on the command line.
| Python 3.2+ and Wheels are supported.
The project was initiated by Stefan Fischer.
- `Documentation <https://readthedocs.org/projects/prompt>`__ is
available on PythonHosted.
- `Questions <mailto:sfischer13@ymail.com>`__ can be asked via e-mail.
.. raw:: html
<!-- nothing -->
- `Changes <https://github.com/sfischer13/python-prompt/blob/master/CHANGELOG.rst>`__
between releases are documented.
.. raw:: html
<!-- nothing -->
- `Source code <https://github.com/sfischer13/python-prompt>`__ is
tracked on GitHub.
- `Bugs <https://github.com/sfischer13/python-prompt/issues>`__ can be
reported on the issue tracker.
Install
-------
|PyPI Python Versions| |PyPI Wheel|
The package is available on
`PyPI <https://pypi.python.org/pypi/prompt>`__:
::
$ pip install prompt
Use
---
An extensive `documentation <https://readthedocs.org/projects/prompt>`__
is available.
::
import prompt
email = prompt.email()
# modify default prompt
integer = prompt.integer(prompt="Please enter a number: ")
# allow empty response
real = prompt.real(empty=True)
# require a two digit number using a regular expression
regex = prompt.regex("^\d\d$")
Contribute
----------
| Write a bug report or send a pull request.
| Other
`contributors <https://github.com/sfischer13/python-prompt/graphs/contributors>`__
have done so before.
- `Roadmap <https://github.com/sfischer13/python-prompt/blob/master/TODO.rst>`__
of planned improvements
- `Issues <https://github.com/sfischer13/python-prompt/issues>`__ that
have been reported
License
-------
| Copyright (c) 2015 Stefan Fischer
| The source code is available under the **MIT License**.
| See
`LICENSE <https://github.com/sfischer13/python-prompt/blob/master/LICENSE>`__
for further details.
.. |PyPI Version| image:: https://img.shields.io/pypi/v/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |Travis| image:: https://img.shields.io/travis/sfischer13/python-prompt.svg
:target: https://travis-ci.org/sfischer13/python-prompt
.. |Documentation Status| image:: https://readthedocs.org/projects/prompt/badge/?version=latest
:target: http://prompt.readthedocs.org/en/latest/?badge=latest
.. |PyPI Python Versions| image:: https://img.shields.io/pypi/pyversions/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |PyPI Wheel| image:: https://img.shields.io/pypi/wheel/prompt.svg
:target: https://pypi.python.org/pypi/prompt
=====================
|PyPI Version| |PyPI Downloads| |Travis| |Documentation Status|
| Prompt and verify user input on the command line.
| Python 3.2+ and Wheels are supported.
The project was initiated by Stefan Fischer.
- `Documentation <https://readthedocs.org/projects/prompt>`__ is
available on PythonHosted.
- `Questions <mailto:sfischer13@ymail.com>`__ can be asked via e-mail.
.. raw:: html
<!-- nothing -->
- `Changes <https://github.com/sfischer13/python-prompt/blob/master/CHANGELOG.rst>`__
between releases are documented.
.. raw:: html
<!-- nothing -->
- `Source code <https://github.com/sfischer13/python-prompt>`__ is
tracked on GitHub.
- `Bugs <https://github.com/sfischer13/python-prompt/issues>`__ can be
reported on the issue tracker.
Install
-------
|PyPI Python Versions| |PyPI Wheel|
The package is available on
`PyPI <https://pypi.python.org/pypi/prompt>`__:
::
$ pip install prompt
Use
---
An extensive `documentation <https://readthedocs.org/projects/prompt>`__
is available.
::
import prompt
email = prompt.email()
# modify default prompt
integer = prompt.integer(prompt="Please enter a number: ")
# allow empty response
real = prompt.real(empty=True)
# require a two digit number using a regular expression
regex = prompt.regex("^\d\d$")
Contribute
----------
| Write a bug report or send a pull request.
| Other
`contributors <https://github.com/sfischer13/python-prompt/graphs/contributors>`__
have done so before.
- `Roadmap <https://github.com/sfischer13/python-prompt/blob/master/TODO.rst>`__
of planned improvements
- `Issues <https://github.com/sfischer13/python-prompt/issues>`__ that
have been reported
License
-------
| Copyright (c) 2015 Stefan Fischer
| The source code is available under the **MIT License**.
| See
`LICENSE <https://github.com/sfischer13/python-prompt/blob/master/LICENSE>`__
for further details.
.. |PyPI Version| image:: https://img.shields.io/pypi/v/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |Travis| image:: https://img.shields.io/travis/sfischer13/python-prompt.svg
:target: https://travis-ci.org/sfischer13/python-prompt
.. |Documentation Status| image:: https://readthedocs.org/projects/prompt/badge/?version=latest
:target: http://prompt.readthedocs.org/en/latest/?badge=latest
.. |PyPI Python Versions| image:: https://img.shields.io/pypi/pyversions/prompt.svg
:target: https://pypi.python.org/pypi/prompt
.. |PyPI Wheel| image:: https://img.shields.io/pypi/wheel/prompt.svg
:target: https://pypi.python.org/pypi/prompt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prompt-0.3.0.tar.gz
(5.0 kB
view details)
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 prompt-0.3.0.tar.gz.
File metadata
- Download URL: prompt-0.3.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
897d70dc7b945373c9f5ee26e884c0893e2c1974f8e17664030aab59c8c8486c
|
|
| MD5 |
4805594608255091f7dcd94a5319405d
|
|
| BLAKE2b-256 |
1e6370b4e8be6082f8bf101e68f953b9db067efbc59dd09a7b0d4676fe87c250
|
File details
Details for the file prompt-0.3.0-py3-none-any.whl.
File metadata
- Download URL: prompt-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d1d4fd3cd90f84057eb942b7a2aa1103cf4ac76ab0718ca209e300d5df401a
|
|
| MD5 |
28b65128bbb9be14d627cd3b591ede02
|
|
| BLAKE2b-256 |
b000107122993e0f5fe955aea46965e99f4b39de87c4019f5356bbb4d437e2e9
|