semvec/pypi-packages huggingface dataset:
seclang_parser 0.3.2
SecLang Parser using ANTLR
Requires Python: >=3.11
Keywords: CRS, Coraza, ModSecurity, OWASP, SecLang

# SecLang ANTLR based parser

This repo contains the ANTLR files for a SecLang parser.

## Why a new parser?

There has been efforts towards having parsers in different languages. Using ANTLR would allow us to have a common parser and generate parsing engines for different languages easily.
This way we would consolidate efforts, and we can have a more robust parser.

## Features we (might) want

- Agnostic: no language dependent, parser should be independent of the destination language.
- High Level: writing low level dependent parsing rules is prone to error and makes the language more difficult.
- Can be used from native code, e.g, no dependencies or CGo (this might hurt Coraza, for example)
- Can generate in many languages, and be read and extended by everyone.
- We choose one base implementation language (Python/Go?) and anyone can contribute others.

## Usage

Right now this repo contains the ANTLR files and golang and python 3 basic tests.

To run the tests:

```bash
go generate ./...
go test ./...
```

Or for python:

- Get [uv](https://github.com/astral-sh/uv) first
```bash
cd parser
./generate.sh
cd ..
uv sync --all-extras --dev
uv run pytest -vs
```

## Authors

Felipe Zipitria <felipe.zipitria@owasp.org>
DecimalCalculator 0.0.5
计算库（整合decimal）
Requires Python: >=3.10

# 强大的计算工具（整合decimal）

### 解决de问题
* 使用decimal库，防止0.1+0.2=0.30...4的局面
* 每个方法皆可输入多个数字，拒绝addition(1, addition(2, 3))

### 调用方法
```
from DecimalCalculator import *

"""
nc / NC / NumbersCalculator : 计算数字运算的类
addition : 加法
subtraction : 减法
multiplication : 乘法
division : 除法
power : 乘方
factorial : 阶乘
sqrt : 开根号
"""

print(nc().addition(1, 2, 3, 4)) 
```
unname 0.4.0
A simple CLI for anonymizing Python codebases for blind review.
Requires Python: >=3.13

# unname

A simple CLI for anonymizing Python codebases for blind review.

It anonymizes `pyproject.toml` and `README.md` in your project (see below for details).
If your project is a [uv workspace](https://docs.astral.sh/uv/concepts/projects/workspaces), it anonymizes all workspace members.

## Prerequisite

Your project must be a git repository since `unname` internally uses `git ls-files` to filter out `.gitignore`d files.

## Usage

Using [uv](https://docs.astral.sh/uv):

```sh
uvx unname -o <OUTPUT_DIRECTORY>
```

This will create an _anonymized copy_ of your project in `<OUTPUT_DIRECTORY>`.

You can also run `grep -r "Your Name" <OUTPUT_DIRECTORY>` to verify your name is not accidentally left in the git repository.

## What it does

### 1. Make a copy of your project

First of all, `unname` will create a copy of your project in the directory specified by the `-o` or `--output` option.

`unname` only copies git-tracked files so that you don't have to manually filter out irrelevant files such as `.venv` from your code submission.

Furthermore, you can provide a list of file paths or glob patterns to exclude from output by the `--exclude` option.
By default, `unname` excludes license files (`**/LICEN[CS]E`, `**/LICEN[CS]E.*`) and `**/.gitignore`.

### 2. pyproject.toml anonymization

`project.authors`, `project.maintainers` and `project.urls` fields will be removed (if they exist).

### 3. README.md anonymization

The content between `<!-- begin-unname -->` and `<!-- end-unname -->` will be removed.
For example:

#### Input

```md
# My Awesome Project

Code for the paper "My Awesome Method."

<!-- begin-unname -->
- Authors: Alice & Bob
- arXiv link: https://arxiv.org/abs/1234.56789
<!-- end-unname -->

## Install

...
```

#### Output

```md
# My Awesome Project

Code for the paper "My Awesome Method."

## Install

...
```