METADATA 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Metadata-Version: 2.1
  2. Name: pyreadline3
  3. Version: 3.5.4
  4. Summary: A python implementation of GNU readline.
  5. Author-email: Bassem Girgis <brgirgis@gmail.com>, Jorgen Stenarson <jorgen.stenarson@kroywen.se>, Gary Bishop <unknwon@unknown.com>, Jack Trainor <unknwon@unknown.com>
  6. Maintainer-email: Bassem Girgis <brgirgis@gmail.com>
  7. License: BSD
  8. Project-URL: Homepage, https://github.com/pyreadline3/pyreadline3
  9. Project-URL: Documentation, https://github.com/pyreadline3/pyreadline3
  10. Project-URL: Repository, https://github.com/pyreadline3/pyreadline3.git
  11. Project-URL: Issues, https://github.com/pyreadline3/pyreadline3/issues
  12. Project-URL: Changelog, https://github.com/pyreadline3/pyreadline3/blob/master/doc/ChangeLog
  13. Keywords: readline,pyreadline,pyreadline3
  14. Classifier: Development Status :: 5 - Production/Stable
  15. Classifier: Environment :: Console
  16. Classifier: Operating System :: Microsoft :: Windows
  17. Classifier: License :: OSI Approved :: BSD License
  18. Classifier: Programming Language :: Python :: 3.8
  19. Classifier: Programming Language :: Python :: 3.9
  20. Classifier: Programming Language :: Python :: 3.10
  21. Classifier: Programming Language :: Python :: 3.11
  22. Classifier: Programming Language :: Python :: 3.12
  23. Requires-Python: >=3.8
  24. Description-Content-Type: text/markdown
  25. License-File: LICENSE.md
  26. Provides-Extra: dev
  27. Requires-Dist: build ; extra == 'dev'
  28. Requires-Dist: flake8 ; extra == 'dev'
  29. Requires-Dist: mypy ; extra == 'dev'
  30. Requires-Dist: pytest ; extra == 'dev'
  31. Requires-Dist: twine ; extra == 'dev'
  32. # pyreadline3
  33. [![PyPi Badge](https://img.shields.io/pypi/v/pyreadline3)](https://pypi.org/project/pyreadline3/)
  34. ![Publish](https://github.com/pyreadline3/pyreadline3/workflows/Publish/badge.svg)
  35. ![Test](https://github.com/pyreadline3/pyreadline3/workflows/Test/badge.svg)
  36. [![Downloads](https://static.pepy.tech/personalized-badge/pyreadline3?period=week&units=international_system&left_color=black&right_color=orange&left_text=Last%20Week)](https://pepy.tech/project/pyreadline3)
  37. [![Downloads](https://static.pepy.tech/personalized-badge/pyreadline3?period=month&units=international_system&left_color=black&right_color=orange&left_text=Month)](https://pepy.tech/project/pyreadline3)
  38. [![Downloads](https://static.pepy.tech/personalized-badge/pyreadline3?period=total&units=international_system&left_color=black&right_color=orange&left_text=Total)](https://pepy.tech/project/pyreadline3)
  39. The `pyreadline3` package is based on the stale package `pyreadline` located
  40. [here](https://github.com/pyreadline/pyreadline).
  41. The original `pyreadline` package is a Python implementation of GNU `readline`
  42. functionality.
  43. It is based on the `ctypes` based UNC `readline` package by Gary Bishop.
  44. It is not complete.
  45. It has been tested for use with Windows 10.
  46. Version 3.4+ of pyreadline3 runs on Python 3.8+.
  47. `pyreadline3` is available on PyPI and can be installed with
  48. pip install pyreadline3
  49. ## Features
  50. - keyboard text selection and copy/paste
  51. - Shift-arrowkeys for text selection
  52. - Control-c can be used for copy activate with allow_ctrl_c(True) in config file
  53. - Double tapping ctrl-c will raise a KeyboardInterrupt, use ctrl_c_tap_time_interval(x)
  54. - where x is your preferred tap time window, default 0.3 s.
  55. - paste pastes first line of content on clipboard.
  56. - ipython_paste, pastes tab-separated data as list of lists or numpy array if all data is numeric
  57. - paste_mulitline_code pastes multi line code, removing any empty lines.
  58. The latest development version is always available at the project git
  59. [repository](https://github.com/pyreadline3/pyreadline3)
  60. ## Development
  61. To clone the library for development:
  62. git clone git@github.com:pyreadline3/pyreadline3.git
  63. or
  64. git clone https://github.com/pyreadline3/pyreadline3.git
  65. ### Build The Virtual Environment
  66. The current earliest Python version supported is `3.8`. You need to be able to create a virtual environment at this version to make sure any changes you make is combatible.
  67. If you are using `conda`:
  68. conda create --prefix=.venv python=3.8 --yes
  69. If you are using `venv`, make sure you have the right base package:
  70. >> python --version
  71. Python 3.8.x
  72. Once you verify your base Python, you can then create a virtual environment using:
  73. virtualenv -p py3.8 .venv
  74. ### Setup
  75. Once you have created your virtual environment and made sure it is active in your current command line:
  76. pip install -e .[dev]
  77. This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
  78. pytest
  79. ### Debugging
  80. WIP