semvec/pypi-packages huggingface dataset:
tree-sitter-json 0.24.8
JSON grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, json

# tree-sitter-json

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-json/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-json)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-json)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-json)

JSON grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-json/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-json?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-json?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-json?logo=pypi&logoColor=ffd242
tree-sitter-html 0.23.2
HTML grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, html

# tree-sitter-html

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-html/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-html)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-html)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-html)

HTML grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

References

- [The HTML5 Spec](https://www.w3.org/TR/html5/syntax.html)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-html/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-html?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-html?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-html?logo=pypi&logoColor=ffd242
tree-sitter-julia 0.23.1
Julia grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, julia

# tree-sitter-julia

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-julia/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-julia)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-julia)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-julia/)

A [tree-sitter](https://github.com/tree-sitter/tree-sitter) parser for [Julia](https://julialang.org/).

## References

- [The Julia Parser](https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm)
- [Julia ASTs documentation](https://docs.julialang.org/en/v1/devdocs/ast/)
- [JuliaSyntax.jl](https://julialang.github.io/JuliaSyntax.jl/dev/)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-julia/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-julia?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-julia?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-julia?logo=pypi&logoColor=ffd242
sample-package-nivin 0.1.0
A sample Python package for PyPI publishing
License: MIT
Requires Python: <4.0,>=3.8

# Sample Package

A sample Python package for demonstration purposes.

## Installation

```bash
pip install sample-package

from sample_package import greet

message = greet("Alice")
print(message)

from sample_package import greet

message = greet("Alice")
print(message)
tree-sitter-c-sharp 0.23.1
C# grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, c-sharp

# tree-sitter-c-sharp

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-c-sharp/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-c-sharp)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-c-sharp)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-c-sharp)

C# grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter) based upon the Roslyn grammar with changes in order to:

- Deal with differences between the parsing technologies
- Work around some bugs in that grammar
- Handle `#if`, `#else`, `#elif`, `#endif` blocks
- Support syntax highlighting/parsing of fragments
- Simplify the output tree
- Reduce parser state count and complexity
- Be in-line with tree-sitter's convention where applicable

### Status

Comprehensive supports C# 1 through 13.0 with the following exception:

- [ ] `async`, `var` and `await` cannot be used as identifiers everywhere they are valid

### References

- [Official C# 6 Language Spec](https://github.com/dotnet/csharplang/blob/master/spec/) provides chapters that formally define the language grammar.
- [Roslyn C# language grammar export](https://github.com/dotnet/roslyn/blob/master/src/Compilers/CSharp/Portable/Generated/CSharp.Generated.g4)
- [SharpLab](https://sharplab.io) (web-based syntax tree playground based on Roslyn)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-c-sharp/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-c-sharp?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-c-sharp?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-c-sharp?logo=pypi&logoColor=ffd242
django-stream-logging 0.2.1
Django stream logging classes for views and commands.
License: MIT
Requires Python: >=3.10
Keywords: Django, logging, stream, views, commands

# Django Stream Logging

A Django logging handler that allows streaming log messages to the console, browser, or other output destinations in real-time, making it easier to monitor what is happening within your Django application.


## Installation

```bash
pip install django-stream-logging
```

## Usage for commands

To stream log messages from custom management commands to the console, use the `BaseLoggingCommand` class as a base for your command. This will enable easy and configurable logging for various log levels.

For example, create a file: `myapp/management/commands/test-command.py`:

```python
from django_stream_logging import BaseLoggingCommand

class Command(BaseLoggingCommand):
    def handle(self, *args, **options):
        # Logging examples using different log levels
        self.logger.info('This is an info message')
        self.write_info('This is an info message (alias)')
        self.logger.error('This is an error message')
        self.write_error('This is an error message (alias)')
        self.logger.warning('This is a warning message')
        self.write_warning('This is a warning message (alias)')
        self.logger.debug('This is a debug message')
        self.write_debug('This is a debug message (alias)')
        self.logger.critical('This is a critical message')
        self.write_critical('This is a critical message (alias)')
```

Now you can run the command, and the logs will be displayed in the console in real-time.

```bash
python manage.py test-command
```

Additionally, you can use the `--log-level` argument to set the desired log level for the command, allowing you to control which messages are shown:

```bash
python manage.py test-command --log-level=WARNING
```

## Usage for views

To stream log messages directly to the browser from a view, inherit from the `EventStreamView` class. This is useful for scenarios where real-time feedback is needed in the browser, such as monitoring tasks or processes.

Example:

```python
from time import sleep

class ExampleEventStreamView(EventStreamView):
    """
    Example view that inherits from EventStreamView and generates log messages
    of different levels to demonstrate its functionality.
    """
    def event_stream(self):
        # Generating log messages with different severity levels
        self.logger.debug("Este es un mensaje de DEBUG.")
        sleep(1)
        self.logger.info("Este es un mensaje de INFO.")
        sleep(1)
        self.logger.warning("Este es un mensaje de WARNING.")
        sleep(1)
        self.logger.error("Este es un mensaje de ERROR.")
        sleep(1)
        self.logger.critical("Este es un mensaje de CRITICAL.")
```
tree-sitter-ruby 0.23.1
Ruby grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, ruby

# tree-sitter-ruby

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-ruby/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-ruby)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-ruby)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-ruby)

Ruby grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

#### References

- [AST Format of the Whitequark parser](https://github.com/whitequark/parser/blob/master/doc/AST_FORMAT.md)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-ruby/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-ruby?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-ruby?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-ruby?logo=pypi&logoColor=ffd242
tree-sitter-ql-dbscheme 0.23.1
QL DBScheme grammar for tree-sitter
License: MIT
Requires Python: >=3.9
Keywords: incremental, parsing, tree-sitter, ql-dbscheme

# tree-sitter-ql-dbscheme

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-ql-dbscheme/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-ql-dbscheme)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-ql-dbscheme)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-ql-dbscheme)

`.dbscheme` grammar for [tree-sitter][] (as used in CodeQL).

[tree-sitter]: https://github.com/tree-sitter/tree-sitter
[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-ql-dbscheme/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-ql-dbscheme?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-ql-dbscheme?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-ql-dbscheme?logo=pypi&logoColor=ffd242