Skip to main content

Python library to remove block and line comments.

Project description

pycommremover

Python module to convert from duration to date and time.

Installation

Install with uv:

uv add 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 Distribution

pycommremover-0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pycommremover-0.3.tar.gz.

File metadata

  • Download URL: pycommremover-0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pycommremover-0.3.tar.gz
Algorithm Hash digest
SHA256 eb4f4b24fd35eb2573b87e191e697477b817d8c83d7b4117a4317dab607e1ecd
MD5 4da3f0fb397b8140ee88a9f76bfe5d05
BLAKE2b-256 59734bd572bfea3587ae103d4b7923feaabaf690eff5674ed7df11fd1b8a3e8b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycommremover-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 67ef3c604d80f0a92fc7c86b9bed94d52f35dc9fa34933e59d9595a51a340892
MD5 1e7e6ea364f39c01957154f2ba2db4ea
BLAKE2b-256 9d7dde850d075d9420606c753687a3693282bc3f0054342cfedce43bd0de7baf

See more details on using hashes here.

Supported by

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