semvec/pypi-packages huggingface dataset:
lark-cython 0.0.17
A Lark plugin that optimizes LALR parsing using Cython
License: MIT
Requires Python: >=3.6
Keywords: Lark LALR parser optimized Cython

# Lark-Cython

Cython plugin for [Lark](https://github.com/lark-parser/lark), reimplementing the LALR parser &amp; lexer for better performance on CPython.

Install:

```python
pip install lark-cython
```

Usage:

```python
import lark_cython

parser = Lark(grammar, parser="lalr", _plugins=lark_cython.plugins)

# Use Lark as you usually would, with a huge performance boost
```

See the [examples](https://github.com/lark-parser/lark_cython/tree/master/examples) for more.


## Differences from Lark

- `Token` instances do not inherit from `str`. You must use the `value` attribute to get the string.

## Other caveats

- Postlexer isn't currently implemented

## Speed

In current benchmarks, lark-cython is about 50% to 80% faster than Lark.

We're still in the early stages, and in the future, lark-cython might go a lot faster.

## Other

License: MIT

Author: [Erez Shinan](https://github.com/erezsh/)

Special thanks goes to [Datafold](https://github.com/datafold) for commissioning the draft for lark-cython, and allowing me to release it as open-source.
nb-ui 1.0.0
Beautiful web-style components for Jupyter notebooks
License: MIT
Requires Python: >=3.9
Keywords: jupyter, notebook, ui, components

# nb-ui: Beautiful Components for Jupyter Notebooks

Modern UI components for Jupyter notebooks with auto-rendering support. No HTML/CSS required.

## 🚀 Quick Start

```python
from nb_ui import Header, Card, CodeBlock, Typography, Container
from nb_ui import success, warning, error, info, set_theme

# Set theme and create components
set_theme("material")
Header("My Analysis", subtitle="Data Science Report")
Card("Key findings here", title="Results")
success("Model training completed!")
```

## 📦 Components

- **Header** - Section titles and subtitles
- **Card** - Content containers with titles
- **Alert/success/warning/error/info** - Status messages
- **CodeBlock** - Syntax-highlighted code
- **Typography** - Professional text styling
- **Container** - Centered layout wrapper

## 🎨 Themes

Available themes: `material`, `antd`, `dark`

```python
set_theme("material")  # or "antd", "dark"
```

**Note**: Themes are inspired by Material Design and Ant Design principles and are subject to change in future versions.

## 🧪 Running Tests

```bash
# Install development dependencies
pip install -r requirements-dev.txt

# Run all tests
python -m pytest tests/ -v

# Run specific test file
python -m pytest tests/test_cards.py -v

# Run tests with coverage
python -m pytest tests/ --cov=src --cov-report=term-missing
```

## 📝 Development

```bash
# Install in development mode
pip install -e .

# Run example notebook
jupyter notebook demo_usage.ipynb
```

## 📄 License

MIT License