Normalize Python block and indentation technique.
Project description
# Npy
Normalize Python block and indentation technique
[](https://pypi.python.org/pypi/npy/)
[](https://twitter.com/ZviWex)
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
[](https://ZviWex.com)
# Usage
## As runner
You can write your program in .npy file with the right way to indexnt and to crate blocks, and then run the normalyze.py parser on the file/repo
```sh
python normalyze.py file_path
python normalyze.py -d dir_path
python normalyze.py -h
```
The normalyze.py file will be at <Python dir>\Scripts
This options is to convert the .npy file (normal indentation file) to a .py file (readable to python interpreter)
## As module
You can write your code this way and run it directly from python interptreter
```python
import npy; exec(npy.run("""
# Your code goes here
"-"-"
Lined raw string will look like this
"-"-"
"""),globals())
```
Note - this supports modules too.
# Installation
```sh
python -m pip install --upgrade pip
python -m pip install --upgrade npy
```
# Contact
If you have any questions feel free to ping me
at [here](https://ZviWex.com/) to connect.
There is also a [mail address](mailto:zvikizviki@gmail.com) for higher latency discussion.
Normalize Python block and indentation technique
[](https://pypi.python.org/pypi/npy/)
[](https://twitter.com/ZviWex)
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
[](https://ZviWex.com)
# Usage
## As runner
You can write your program in .npy file with the right way to indexnt and to crate blocks, and then run the normalyze.py parser on the file/repo
```sh
python normalyze.py file_path
python normalyze.py -d dir_path
python normalyze.py -h
```
The normalyze.py file will be at <Python dir>\Scripts
This options is to convert the .npy file (normal indentation file) to a .py file (readable to python interpreter)
## As module
You can write your code this way and run it directly from python interptreter
```python
import npy; exec(npy.run("""
# Your code goes here
"-"-"
Lined raw string will look like this
"-"-"
"""),globals())
```
Note - this supports modules too.
# Installation
```sh
python -m pip install --upgrade pip
python -m pip install --upgrade npy
```
# Contact
If you have any questions feel free to ping me
at [here](https://ZviWex.com/) to connect.
There is also a [mail address](mailto:zvikizviki@gmail.com) for higher latency discussion.
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
npy-1.0.3.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
npy-1.0.3-py2-none-any.whl
(4.4 kB
view details)
File details
Details for the file npy-1.0.3.tar.gz.
File metadata
- Download URL: npy-1.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
918d52f5b6543c0f78f720a81acdb50a7f8f71a9eb5a7c8bef3c819fa74c351e
|
|
| MD5 |
c27cb605f6288f6fa30445a1e923a422
|
|
| BLAKE2b-256 |
e4fed7cb226c61915af9c6d44742d38cbf980ba08a9e045a36a79a52710e682b
|
File details
Details for the file npy-1.0.3-py2-none-any.whl.
File metadata
- Download URL: npy-1.0.3-py2-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f60a6d0555767b57fec4ad1d04cc311adbc84ebc22192ec75d2c2a26982a9efa
|
|
| MD5 |
de4cb26f1abb4435e7c2956d946c5144
|
|
| BLAKE2b-256 |
2f76d0682f37213814b69c96c29c35ab717035eee7d32d80f05a2c55d97f8a18
|