semvec/pypi-packages huggingface dataset:
Pytov 0.3.0
Python with a larger syntax support
License: MIT
Requires Python: >=3.6

# Pytov
The idea was to take all well known syntaxes, and combine them into one programming language with many posabilities.

## Usage

Run using python (requires libraries: run `$ pip install -r requirements.txt`):
```sh
$ cd [folder_of_installation]
$ python pytov.py [path_to_your_pytov_code]
```
Run using executables:
```sh
$ cd [folder_of_installation]
$ cd exe
$ pytov [path_to_your_pytov_code]
```

## Syntax

### Comments:
```cs
# this is a comment
// this is also a comment
/*
and this is a
multi
line
comment
*/
```

### Variables:
```cs
x = 5 // let or var or type is not required
print(x)
```

### If:
```python
if 5 > 1{
    print("5 is greater than 1")
}
elif 1 > 5{ # else if 1 > 5 will work too!
    print("1 is greater than 5")
}
else {
    print("1 is equal to 5")
}
```

### Loops:
#### For:
```cs
for i in range(10){
    print(i)
}
a = [1, 4, 7, 8]
for x in a{
    print(x)
    if x == 4{
        break // loop will stop when x == 4
    }
}

for (i = 5; i<10; i++){
    print(i)
}
// output: 5, 6, 7, 8, 9
```
#### While:
```cs
// loop the the block as long as x < 5
x = 0
while x < 5{
    print(x)
    x += 2
    // (break will work just the same here)
}
```

### Switch:
```js
// for more info about switch take a look at switch in js, it is exactly the same...
a = "hi"
switch a{
    case "hello":
        print("a=='hello'")
        break
    case "hi":
    case "hihi"
        print("a=='hi' or a=='hihi'")
        break
    default:
        print("a!='hi' and a!='hihi' and a!='hello'")
}
```

### Functions:
```cs
(func or function or def) func_name(required_params, not_required_params){
    your_code_here
    // and if you want you can return like this: return value
}
```

```cs
function print_hi(times){ // required parameter
    for i in range(times){
        print("hi")
    }
}

def print_hi_default(times=3){ // not required parameter with default value of 3
    for i in range(times){
        print("hi")
    }
}

func mult(x, y){
    return x*y
}

print_hi(5) // output: hihihihihi
print_hi_default() // output: hihihi
print(mult(5, 2)) // output: 10
```


### Imports:
#### test2.pv:
```java
if __name__ == "main"{ // will be true when file will be runned directly
    x = 5
}
else if __name__ == "imported" { // will be true when file is imported
    x = 7
}
```

#### test1.pv:
```js
x = 6
import test2 // you can also import like this: import "test2.pv"
print(x) // output will be 7
```

---
See [Examples](https://github.com/Yuvix25/Pytov/tree/main/Examples)
tirem 3.0.1
TIREM Python API
License: MIT

.. _tirem_python_api_readme:

:Name: Python API for TIREM
:Author: Idan Miara

.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
   :target: https://github.com/talos-gis/rfmodel/raw/master/LICENSE

.. _RFModel: https://github.com/talos-gis/rfmodel/blob/master/README.rst

.. _TIREM: https://www.alionscience.com/terrain-integrated-rough-earth-model-tirem/

.. _ALION: https://www.alionscience.com/

|license|

Python API for `TIREM`_
=========================

This Python API is part of `RFModel`_.

Notice of Non-Affiliation and Disclaimer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This repository is not affiliated, associated, authorized, endorsed by, or in any way officially connected with `ALION`_,
or any of its subsidiaries or its affiliates.

The names `ALION`_ and `TIREM`_ as well as related names, marks, emblems and images are registered trademarks of their respective owners.

In case I've made a mistake and you believe you've found any copyrighted material here please let me know and I'll take care of that.

TIREM
~~~~~~

The `TIREM`_ Python API package is a Python/Cython API wrapper for the `TIREM`_ model by `ALION`_.

* The `TIREM`_ model itself is not included.
* You have to obtain a license from `ALION`_ in order to be able to use this Python API.
* You would need to install the licensed `TIREM`_ DLL files.
  You can do it by simply copy the DLL files into the `tirem` folder in your `site-packages`
  or by installing the `tirem-bin` wheel that you may build.

Building `tirem` wheel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  > build-tirem-pyd-clean.bat
  > build-tirem-wheel.bat


TIREM-BIN
~~~~~~~~~~~~

After obtaining a `TIREM`_ license you may use the following instructions in order to build the `tirem-bin`
wheel for you own use. This wheel shall be covered by the same license you got with `TIREM`_.

Installing this wheel will simply copy the DLL into the `TIREM`_ folder in your `site-packages`

Building `tirem-bin` wheel:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy the TIREM DLL files to `src\tirem` and run:

  > build-tirem-bin-wheel.bat

License
=======

|license|

This library is released under the MIT license, hence allowing commercial
use of the library. Please refer to the :code:`LICENSE` file.

The license for this library covers all the files in this repository.
Copyrighted material by `ALION`_, such as `TIREM`_ DLL files (or other `ALION`_ material)
are covered by a different license, given by `ALION`_, and are not part of this repository.