Snip out code section from a string or text file
Project description
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
Release history Release notifications | RSS feed
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.0.4.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for code_snipper-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34f8543ccba1201474286a887de58d971f8d5867feebce873473657b9dccdd4 |
|
MD5 | 7ba9fa5026a8adf03964b6c78da8f265 |
|
BLAKE2b-256 | 5b4606d6870fcb99c0da55a83927a6c644cb6d1fb700b603cae0734e2315e9ec |