semvec/pypi-packages huggingface dataset:
paramath-lang 2.2.6
A differentiable programming language for continuous computation
Requires Python: >=3.8

# The Paramath Programming Language

Paramath is a Domain-Specific Language (DSL) that transforms procedural math code into mathematical expressions. Paramath compiles into math expressions with operations that are commonly found on standard scientific calculators, allowing evaluation of logical code on mathematical hardware.

All this, powered by Python!

> **Why the name "Paramath"? </br>**
> The word "paramath" comes from the portmanteau of "parenthesis" and "mathematics".

## Features

-   **S-expression syntax**: Clean, unambiguous structure
-   **Automatic optimization**: Duplicate detection and subexpression extraction
-   **Loop unrolling**: Compile-time iteration for performance
-   **Flexible output**: Display or store results in variables

## Documentation

Full documentation is available [here](docs/paramath_docs.md)!

## Installation

### Method 1 (PyPI):

To install the latest release, just install it fron PyPI using:

```
pip install paramath-lang
```

Afterwards, run this to ensure Paramath is correctly installed:

```
paramath --version
```

To update, just run:

```
pip install --upgrade paramath-lang
```

### Method 2 (Direct Git Clone):

Clone this repository by running the following commands in a shell:

```
git clone https://github.com/kaemori/paramath.git
cd paramath
```

Then, run the following command to install Paramath:

```
python -m pip install .
```

> Note: We recommend installing via PyPI for easier updates. Direct git installs are snapshots and require reinstalling for each update.

## Usage

The compiler can be accessed with the following command:

```
paramath [-h] [-v] [-o FILE] [-D] [-V] [-O] [-S] [-L FILE] [filepath]

positional arguments:
  filepath            Input paramath file

options:
  -h, --help          show this help message and exit
  -v, --version       prints the Paramath version number and exits
  -o, --output FILE   output file (default: math.txt)
  -D, --debug         enable debug output
  -V, --verbose       enable verbose output
  -O, --print-output  print out the compiled output
  -m, --math-output   format output for calculators (use ^, implicit multiplication, ANS)
  -S, --safe-eval     prints and blocks python code from evaluating and exits, used for safely running unknown scripts
  -L, --logfile FILE  write logs to FILE
```

This help message can also be displayed later by running `paramath --help`

## License

This project is licensed under the [MIT License](LICENSE).
codeanim 0.3.3
A tool that automates presentation of software demos.
Requires Python: >=3.13

# CodeAnim

CodeAnim is a tool to help you animate VS Code. It provides methods that enable you to type, move the cursor, and send commands to VS Code. It works by sending keystrokes using the pynput library.

## Installation

We recommend install CodeAnim using [uv](https://docs.astral.sh/uv/).

```shell
uv tool install codeanim
```

## Usage

CodeAnim runs commands from Markdown files where codeanim commands are enclosed in a `python codeanim` fence.

### Example

Create a Markdown file called `codeanim-markdown-demo.md` with the following contents:

````markdown
# A Markdown Header

Some text to be read.

```python codeanim
# Bring VS Code to the front
vscode.activate()

# Open myfile.py
vscode.focus("myfile.py")

# Insert print("Hello, World!") into myfile.py
write('print("Hello, World!")\n')

# Execute the script
vscode.run()
```
````

To execute the CodeAnim commands in the Markdown file:

```shell
codeanim run codeanim-markdown-demo.md
```

### Flags

- Set `-v` or `--verbose` to enable verbose mode. Commands will be printed out as they are executed.
- Set `--live` to enable presentation mode. In this mode, a wait() will be injected after every codeanim fence.

## Development

### Formatting

This project adopts the Ruff formatter and is enforced by a GitHub action.

### VS Code

Useful extensions when developing CodeAnim:

- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff)

## Tests

There aren't any unit tests yet. In the tests folder, there is an end-to-end test that uses CodeAnim to open the `scratch.py` file, types out some code, and executes it. To run the test:

```sh
./e2e-test.sh
```

Then, validate that it worked by observing that the animation runs, types out:

```python
print("Hello, World!")
```

And executes the script.

## Limitations

CodeAnim currently only works on MacOS because of a dependency on AppleScript, which is used to switch to the VS Code window. Also, many of the commands send Mac specific keystrokes. With some effort, CodeAnim can be made to work on other platforms.