Skip to main content

Snip out code section from a string or text file

Project description

PyPI version

codesnipper

This package helps you to extract code sections from a string or a text file.

For example:

If you have a string as follows:

Hello world, this is an example

```python
x = 1
y = 2
```
Exit line

The package can help you extract the code section i.e.

x = 1
y = 2

and it will extract the programming language which is python in the above case. It works with multiple code sections as well within a file or string.

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

code-snipper-0.1.14.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

code_snipper-0.1.14-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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