semvec/pypi-packages huggingface dataset:
django-qs-lsp 1.4.5
Language Server Protocol implementation for Django ORM operations
License: MIT
Requires Python: >=3.10

# Django ORM Language Server Protocol (LSP)

[![CI](https://github.com/JBSK8NC/django-lsp/actions/workflows/ci.yml/badge.svg)](https://github.com/JBSK8NC/django-lsp/actions/workflows/ci.yml)

A Language Server Protocol implementation for Django ORM that provides intelligent autocompletion for model queries, field lookups, and related field navigation.

## Features

- **Smart Completions**: Field lookups (`__exact`, `__contains`, `__startswith`) and related field navigation (`user__profile__bio`)
- **Multi-App Support**: Works with Django projects that have multiple apps
- **Django Integration**: Uses Django's built-in field lookup APIs

## Installation

```bash
pip install django-qs-lsp
```

## Usage

### Running the Server

```bash
django-qs-lsp-server
```

### Neovim Setup

1. Install via Mason:
   ```vim
   :MasonInstall django-qs-lsp
   ```

2. Configure LSPConfig:
   ```lua
   require("lspconfig").django_qs_lsp.setup({
     filetypes = { "python" },
     root_dir = require("lspconfig.util").root_pattern("manage.py"),
   })
   ```

## Supported Contexts

The LSP provides completions for:
- `Model.objects.filter(...)`
- `Model.objects.exclude(...)`
- `Model.objects.get(...)`
- `Model.objects.annotate(...)`
- `Model.objects.order_by(...)`

## Example

```python
from django.contrib.auth.models import User

# Field completions
User.objects.filter(username  # Suggests: username=
User.objects.filter(email__   # Suggests: email__exact, email__contains, etc.

# Related field completions
User.objects.filter(profile__  # Suggests: profile__bio, profile__user, etc.
```

## Configuration

```bash
# Debug logging
export DJANGO_QS_LSP_DEBUG=true
```

## Development

```bash
# Install dependencies
pip install -e ".[dev]"

# Run tests
python -m pytest tests/ -v

# Code quality
ruff check .
mypy src/django_lsp/
```

## License

MIT License
kc-ohlc 0.2.1
Authenticated client + CLI for KC Trading OHLC API (pandas/polars). Optional HMAC signing.
License: MIT
Requires Python: >=3.9

# kc-ohlc (v0.2.1)

Changes:
- **Embedded default base URL**: `https://ohlc.kctradings.com` (no need to pass `base_url`).
- **Per-call library override**: `get_bars(..., library="pd")` / `get_symbols(..., library="pd")`, default is **pandas**.

## Quickstart
```python
from kc_ohlc import KCClient

c = KCClient(api_key="YOUR_KEY")       # base_url defaults internally
df = c.get_bars("EURUSD", "h1", "2024-01-01", "2025-01-01")            # pandas by default
df_pl = c.get_bars("EURUSD", "h1", "2024-01-01", "2025-01-01", library="pl")  # per-call polars
```

CLI still works with env vars; default base URL embedded.
semverish 1.0.0
Python wrapper around Go module `github.com/rng70/versions` for parsing and sorting semver and non-semver-ish versions and constraints.
License: MIT
Requires Python: >=3.8

# semverish

`semverish` is a simple go module designed to manage version information for different ecosystem like pypi.org, maven.org,
npmjs.com, crates.io ect. in a structured manner.

## Motivation

There are a lot of tools in different ecosystem .e.g `github.com/go-simpler/goversion` and `github.com/Masterminds/semver`
in golang, `semver` in python and obviously there will be ecosystem specific package available to manage, parse and do a
lot of operations on version strings of any package.

But the real life scenario is different, when dealing with multiple ecosystem and encountered different versioning
of different packages, it becomes difficult to manage and parse them in a structured manner dut to non-semverish
versioning followed by different maintainers.

So, here comes `versions` to rescue, it provides a structured way to manage version information for different ecosystem
in a structured manner, do operations on them and parse them that cannot be parsed by these packages.

## Installation

```bash
  pip install semverish
```

## Usage
```python
    import semverish
    
    print(semverish.natural_sorted_versions(
        ['1.0.0', '2.0.0', '1.2.0', '1.0.0-alpha', '1.0.0-beta.1', '1.0.0.beta2', 'rel-1.3.3', '1.3.4'],
        descending=False)
    )
    # output: ['1.0.0-alpha', '1.0.0-beta.1', '1.0.0.beta2', '1.0.0', '1.2.0', 'rel-1.3.3', '1.3.4', '2.0.0']
    
    print(semverish.analyze_constraints(
        'npm',
        '>1.1 <=2.9',
        ['1.1.1', '3.0', '2.9.9', '2.9.0', '1.9.0', '2.8.1', '1.0.0', '2.0.0', '1.2.0', '1.0.0-alpha', '1.0.0-beta.1', '1.0.0.beta2'])
    )
    # output: ['1.1.1', '3.0', '2.9.9', '2.9.0', '1.9.0', '2.8.1', '2.0.0', '1.2.0']
    
    print(semverish.analyze_constraints(
        language='python',
        constraints='>1.1,<=4.9',
        versions=['1.1.1', '3.0', '2.9.9', '2.9.0', '1.9.0', '2.8.1', '1.0.0', 'rel-2.0.0', '1.2.0', '1.0.0-alpha', '1.0.0-beta.1', 'rel_1.0.0.beta2'])
    )
```

## Supported Ecosystem
- pypi.org
- maven.org
- npmjs.com
- crates.io
- golang.org
- rubygems.org