semvec/pypi-packages huggingface dataset:
python-package-13630 0.0.1
A test python package for class assignment

# Test Package 13630

### Note: This package is a test package uploaded for class assignment.

```diff
- SAP: 590013630
```

_**This package contains 4 functions:**_

```python
def  add(x: int, y: int) -> int
```

```python
def  subtract(x: int, y: int) -> int
```

```python
def  multiply(x: int, y: int) -> int
```

```python
def  divide(x: float, y: float) -> int
```
aporiapy 0.1.2
A compiler which translates a subset of Python to the Aporia language
Requires Python: >=3.10

# Aporia AST

This package compiles a subset of Python to [Aporia](https://github.com/EphraimSiegfried/aporia). The Aporia language is described in [this paper](https://www.arxiv.org/abs/2411.05570).

The Backus-Naur-Form Grammar of the Python source language subset is specified here:
![L_if bnf](lif_bnf.png)


## Installation

You can install the package with

```bash
pip install aporiapy
```

## Usage

### Command Line Interface

You can use the compiler via the command line interface

```bash
aporiapy file_to_be_compiled.py
```
This will generate an spp file containing the Aporia source code. Additional options can be found with `aporiapy -h`


## Contributing

Dependency management and the publishing of packages is managed by [uv](https://github.com/astral-sh/uv).
You can install it with `pip install uv`. The interpreter can be run with `uv run aporiapy`. Tests can be run with `uv run pytest`

## Acknowledgements

This project builds upon the work done in the seminar Interpretation and Compilation of Programming Languages at the University of Basel. Thanks to the contributions of Ruben Hutter, Luca Gloor, and Ephraim Siegfried, as well as the guidance from the seminar instructors Ali Ajorian and Erick Lavoie.
ml3log 0.1.1
A minimal logger and web server
Requires Python: >=3.8

# ML3Log

A minimal Python logging package that provides both console logging and a web interface to view logs.

## Features

- Standard Python logger compatible
- Web server for viewing logs in real-time
- Minimal footprint with no external dependencies
- Configurable port (default: 6020)
- Monkey patching support for standard logging module
- Command-line interface for quick server startup

## Installation

```bash
pip install ml3log
```

## Usage

### Starting the server

#### From Python code

```python
import ml3log

# Start the server on the default port (6020)
ml3log.start_server()

# Or specify a custom port
ml3log.start_server(port=8080)
```

#### From the command line

ML3Log can be started directly from the command line:

```bash
# Using the ml3log command (after installation)
ml3log

# Or with custom host and port
ml3log --host 0.0.0.0 --port 8080

# Alternatively, using the Python module syntax
python -m ml3log
```

### Using the logger

```python
import ml3log
import logging

# Get a logger with default settings
logger = ml3log.get_logger("my_app")

# Or customize the logger
logger = ml3log.get_logger(
    name="my_app",
    level=logging.DEBUG,
    host="localhost",
    port=6020
)

# Alternatively, monkey patch the standard logging module
# to capture logs from libraries using standard logging
ml3log.monkey_patch_logging()

# Use like a standard Python logger
logger.info("This is an info message")
logger.warning("This is a warning")
logger.error("This is an error")
logger.debug("This is a debug message")

# Log exceptions
try:
    1/0
except Exception as e:
    logger.exception("An error occurred")
```

### Sending logs from JavaScript

You can send logs directly from JavaScript to ML3Log using a simple fetch request:

```javascript
// Minimal example to send a log event to ML3Log
async function sendLog(message, level = 'INFO', loggerName = 'js-client') {
  const logEntry = {
    levelname: level,
    name: loggerName,
    message: message,
    created: Date.now() / 1000  // Current time in seconds
  };

  try {
    const response = await fetch('http://localhost:6020/traces', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify(logEntry)
    });
    return response.ok;
  } catch (error) {
    console.error('Failed to send log:', error);
    return false;
  }
}

// Usage examples
sendLog('User clicked submit button');
sendLog('API request failed', 'ERROR');
sendLog('Debug information', 'DEBUG', 'frontend-app');
```

### Viewing logs

Open your browser and navigate to:

```
http://localhost:6020
```

The web interface will automatically update with new logs as they arrive.

<img src="static/screenshot.png" alt="Screenshot" width="800" />

## License

[MIT](LICENSE)
relic-tool-sga 2.0.1
A collection of libraries for reading & writing Relic's SGA archive files.
Requires Python: >=3.9

# Relic Tool - SGA
[![PyPI](https://img.shields.io/pypi/v/relic-tool-sga)](https://pypi.org/project/relic-tool-sga/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/relic-tool-sga)](https://www.python.org/downloads/)
[![PyPI - License](https://img.shields.io/pypi/l/relic-tool-sga)](https://github.com/MAK-Relic-Tool/Relic-Tool-SGA/blob/main/LICENSE.txt)
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/PyCQA/pylint)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Builds](https://github.com/MAK-Relic-Tool/Relic-Tool-SGA/actions/workflows/build-check.yml/badge.svg)](https://github.com/MAK-Relic-Tool/Relic-Tool-SGA/actions/workflows/build-check.yml)

#### Disclaimer
Not affiliated with Sega, Relic Entertainment, or THQ.

#### Description
A collection of libraries for reading & writing Relic's SGA archive files.

## Installation (Pip)
### Installing from PyPI (Recommended)
```
pip install relic-tool-sga
```
Which will install
- [SGA Core](https://github.com/MAK-Relic-Tool/SGA-Core) (Required for other plugins to work)
- [SGA V2](https://github.com/MAK-Relic-Tool/SGA-V2) (Dawn of War I / Impossible Creatures)


### Installing from GitHub
Relic-Tool-SGA only installs pip libraries, and generally shouldn't be installed via GitHub.

If you want to build from GitHub, you should install each repository manually.

Please see instructions for installing  individual repositories on their respective pages.
- [Core](https://github.com/MAK-Relic-Tool/SGA-Core) (Required for other plugins to work)
- [V2](https://github.com/MAK-Relic-Tool/SGA-V2) (Dawn of War I / Impossible Creatures)
pySVCGAL 0.0.25
Python CGAL straight skeleton extrude wrapper
Requires Python: >=3.8
Keywords: extrude, skeleton

## Description

This is a Python wrapper of ctCGAL. See also:

https://www.cgal.org/2023/05/09/improved_straight_skeleton/

https://pypi.org/project/pySVCGAL/

## Usage

```
pip install pySVCGAL
```

For developer
-------------

for local install from package folder:

```
"E:\install\Blender\blender-3.6.12-windows-x64\3.6\python\Scripts\pip.exe" install .
```
D:\install\Blender\blender-3.6.19-windows-x64\3.6\python\Scripts\pip.exe install .

To uninstall write a name (no some folder name):

```
"E:\install\Blender\blender-3.6.12-windows-x64\3.6\python\Scripts\pip.exe" uninstall pySVCGAL
```
D:\install\Blender\blender-3.6.19-windows-x64\3.6\python\Scripts\pip.exe uninstall pySVCGAL

## Publish/Update package on PyPi

1. Update version of library.

```
2. python -m build
3. twine upload dist/*
```

![package_build](images/pypi_package_build.001.png)

![package_build](images/pypi_package_publish.001.png)
chacha20-utils 0.1.1
A simple ChaCha20 encryption/decryption utility.
Requires Python: >=3.6

# ChaCha20 Utils

*A simple ChaCha20 encryption/decryption utility for Python.*

[![PyPI](https://img.shields.io/pypi/v/chacha20-utils.svg)](https://pypi.org/project/chacha20-utils/)
[![Python Version](https://img.shields.io/pypi/pyversions/chacha20-utils.svg)](https://pypi.org/project/chacha20-utils/)
[![License](https://img.shields.io/github/license/SAKIB-SALIM/chacha20_utils)](https://github.com/SAKIB-SALIM/chacha20_utils/blob/main/LICENSE)

---

## Features

✔ Simple API for encryption and decryption  
✔ Uses **ChaCha20** for fast, secure encryption  
✔ **Automatic nonce handling** (prepended to ciphertext)  
✔ Requires a **32-byte key** for security  

---

## Installation

Install the package using pip:

```sh
pip install chacha20-utils
```

---

## Usage

```python
from chacha20_utils import ChaCha20Cipher

# Use a 32-byte secret key
key = b'your_32_byte_secret_key_________________'

cipher = ChaCha20Cipher(key)

# Encrypt
plaintext = b"Hello, ChaCha20!"
encrypted = cipher.encrypt(plaintext)
print("Encrypted:", encrypted)

# Decrypt
decrypted = cipher.decrypt(encrypted)
print("Decrypted:", decrypted)
```

---

## Notes

- **The key must be exactly 32 bytes** (256 bits).  
- The **nonce is randomly generated** and prepended to the ciphertext for decryption.  

---

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

## Author

Developed by **Sakib Salim**  
GitHub: [sakib-salim](https://github.com/SAKIB-SALIM)
openzeppelin-solidity-grammar-parser 0.0.5
Solidity ANTLR4 grammar Python parser
Requires Python: >=3.10

[![Lint and test + coverage](https://github.com/OpenZeppelin/sgp/actions/workflows/lint-and-test.yml/badge.svg?branch=main)](https://github.com/OpenZeppelin/sgp/actions/workflows/lint-and-test.yml) [![ANTLR4 test](https://github.com/OpenZeppelin/sgp/actions/workflows/antlr4-test.yml/badge.svg)](https://github.com/OpenZeppelin/sgp/actions/workflows/antlr4-test.yml)

# Solidity Grammar Parser

**SGP** - is a `Python` package that allows to build an [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) for a given [Solidity](https://solidity.readthedocs.io/)  source code.

## Kudos

- The original grammar [Solidity.g4](./Solidity.g4) was developed and maintained by [solidity-parser-antlr](https://github.com/solidity-parser/antlr).
- The node types system and AST visitor are based on [solidity-parser-parser](https://github.com/solidity-parser/parser).

## Build

Run [build.sh](./build.sh) that does the following:
- checks if `Python` is installed and downloads it if not
  - including `pip`
  - including `antlr4-python3-runtime` package
- checks if `Java` is installed and downloads it if not
  - including `jre`
  - including `jdk`
- checks if `antlr4.jar` is downloaded and downloads it if not
- runs the ANTLR jar file and compiles the [Solidity.g4](./Solidity.g4) file.

The output result can be found in the [./out](./out) directory

## Tests

Run:
- `python -m coverage run -m unittest discover -v && python -m coverage report` for the `Python` tests
- [run-tests.sh](./test/test_parsing/run-tests.sh) to execute `antlr4` parse testing

## License

[MIT](./LICENSE)