Skip to main content

Library to remove block and line comments.

Project description

pycommremover

Python3 Module to convert from duration to date and time.

Installation

Install with pip

pip3 install -U pycommremover

Usage

In [1]: import pycommremover

In [2]: text = """
print("First line")

\"\"\"

print("Commented line.")

'''
print("Commented line 2.")

print("Commented line 3.")

# Single line comment 1.
'''

# Single line comment.
print("Commented line 4.")

\"\"\"

# Single line comment 2.

print("Commented line 5")
"""

In [3]: output = pycommremover.remove_comments(text=text)


In [4]: print(output)

print("First line")





print("Commented line 5")


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pycommremover-0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pycommremover-0.2-py3-none-any.whl.

File metadata

  • Download URL: pycommremover-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for pycommremover-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86e6dbab5d5abf929adcbad56ce3d8ecc526ee20ec21ef20891d21279d3d6eaa
MD5 c25cc36ca72c4c3eaadc105dfe45a1a1
BLAKE2b-256 718c6e1c2bb4cfe1af6aa1a3d293333dd69de6b0a9d9847da7be26fb51241938

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page