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.1.14.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file code-snipper-0.1.14.tar.gz
.
File metadata
- Download URL: code-snipper-0.1.14.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8b1114f35c37b936305f2e713cfd3787fbf2d30126ac7ea60ed9bdef19ce98 |
|
MD5 | 7e0268d2dfa4cc6551804cf75a8bdf42 |
|
BLAKE2b-256 | 475324ec266b3702d52e0916d4e72d7ec5a661c72a5610747cde562f7a249df2 |
File details
Details for the file code_snipper-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: code_snipper-0.1.14-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4840b152902e582fdd1a599d796bacbdaa9e7418341f241e76b39bf744936449 |
|
MD5 | 0e7e5644c9ba93b1136eb895ea590697 |
|
BLAKE2b-256 | 04052bf7cf3f4a09f2d02ab15f2813e219952f25fe61db209136f7460e45cc40 |