Metadata-Version: 2.1
Name: pycomment
Version: 0.0.0
Summary: with repr value at comment
Home-page: https://github.com/podhmo/pycomment
Author: podhmo
Author-email: ababjam61+github@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Provides-Extra: testing
Provides-Extra: docs
Provides-Extra: docs
Provides-Extra: testing

pycomment
========================================

Inserting repr value on commen with marker (marker is `# =>`).
This is heavily inspired by xmpfilter of ruby's `rocodetools <https://github.com/rcodetools/rcodetools>`_

install
----------------------------------------

warning: in the future (not yet)

.. code-block:: console

  $ pip install pycomment


how to use
----------------------------------------


code.py

.. code-block:: python

  import sys

  print("stderr", file=sys.stderr)
  print("hello")
  1 + 2 + 3 + 3 + 4 + 5  # =>
  1 + 2 + 3 + 3 + 4 + 5  # =>
  print("bye")


.. code-block:: console

  $ pycomment --inplace code.py

.. code-block:: python

  import sys

  print("stderr", file=sys.stderr)
  print("hello")
  1 + 2 + 3 + 3 + 4 + 5  # => 18
  1 + 2 + 3 + 3 + 4 + 5  # => 18
  print("bye")


  # -- stdout --------------------
  # >> hello
  # >> bye





