semvec/pypi-packages huggingface dataset:
django-admin-inline-paginator-plus 0.1.4
The 'Django Admin Inline Paginator Plus' is simple way to paginate your inlines in Django admin
License: MIT
Requires Python: >=3.8
Keywords: django, admin, paginator, inlines, pagination

Django Admin Inline Paginator Plus ⏩
=====================================

**🍴 This is a forked and updated version based on original library [django-admin-inline-paginator](https://github.com/shinneider/django-admin-inline-paginator).**

> *As for 10.07.2024 nobody took responsibility, so I decided to take it since we need additional functionlity like AJAX for pagination.*

The **"Django Admin Inline Paginator Plus"** is simple way to paginate your inline in django admin

To keep Django ecosystem fresh and updated, please share your love and support, click `Star` 🫶

## Features
- **Easy Inline Pagination:** Quickly paginate inlines in the Django admin.
- **AJAX Support:** Smooth and dynamic pagination without page reloads with `htmx`.
- **Multiple Inline Pagination:** Manage multiple paginated inlines seamlessly.


Here's a screenshot of the paginated inlines in action:

![Django Admin Inline Paginator Plus screenshot](https://github.com/DmytroLitvinov/django-admin-inline-paginator-plus/blob/bd4d0eb435ae86b37473044a6d192405c3f0c86f/example/django-admin-inline-paginator-plus.png "Screenshot of Django Admin Inline Paginator Plus")


# Install:

Install the package via pip:

```bash
pip install django-admin-inline-paginator-plus
```

# Usage:

1. Add to your INSTALLED_APPS, in settings.py:

   ```python
   INSTALLED_APPS = [
       ...
       'django_admin_inline_paginator_plus',
       ...
   ]
   ```
2. Create your model inline:

   You can use `TabularInlinePaginated` ot `StackedInlinePaginated`. In our example we use `TabularInlinePaginated`.

   ```python
   from django_admin_inline_paginator_plus.admin import TabularInlinePaginated

   class ModelWithFKAdminInline(TabularInlinePaginated):
       model = ModelWithFK
       fields = (...)
       per_page = 5
   ```

3. Create main model admin and use inline:

   ```python
   @register(YourModel)
   class YourModelAdmin(ModelAdmin):
       model = YourModel
       fields = (...)
       inlines = (ModelWithFKAdminInline, )
   ```

# Advanced Usage:

1. Paginate multiples inlines:

   ```python
   from django_admin_inline_paginator_plus.admin import TabularInlinePaginated, StackedInlinePaginated

   class ModelWithFKInline(TabularInlinePaginated):
      model = ModelWithFK
      fields = ('name', 'active')
      per_page = 2
      pagination_key = 'page-model'  # make sure it's unique for page inline

   class AnotherModelWithFKInline(StackedInlinePaginated):
      model = AnotherModelWithFK
      fields = ('name', 'active')
      per_page = 2
      pagination_key = 'page-another-model'  # make sure it's unique for page inline
   ```

2. Use inlines from step 1. and add to your main model admin:

   ```python
   @register(YourModel)
   class YourModelAdmin(ModelAdmin):
       model = YourModel
       fields = (...)
       inlines = (ModelWithFKAdminInline, AnotherModelWithFKInline)
   ```
vibez 0.1.0
Lightweight CLI tool to extract file contents for LLMs
License: MIT
Requires Python: >=3.6

<p align="center">
  <img src="https://github.com/user-attachments/assets/58a0f433-2271-49c8-ad80-3f56f060fce4" alt="Demo" />
</p>

## Overview

`vibez` is a command-line tool that extracts file contents for use with LLMs.

## Motivation

The developer AI workflow is messy. There are _many_ tools that integrate across the different stages of development and layers of the stack. Some are more powerful, but heavyweight and expensive. For most prompts, you only need a limited amount of [context](https://en.wikipedia.org/wiki/Large_language_model#Prompt_engineering,_attention_mechanism,_and_context_window). `vibez` is a pragmatic solution to this problem. Simply copy the file contents you need and use whatever AI tool you prefer.

## Installation

Install with `pip`:

```sh
pip install vibez
```

Or install from source:

```sh
git clone https://github.com/williamgrosset/vibez.git
cd vibez
pip install .
```

## Usage

```sh
vibez [OPTIONS] <file|file:range|directory> [...]
```

### Options

- `[-r | --recursive]`: Recursively process directories.
- `[-i | --ignore] "item1,item2,..."`: Ignore files or directories.
- `[-o | --output] <output.md>`: Save output to a file.
- `[-s | --summary] "Your summary"`: Add a summary.

### Examples

#### Extract a single file to clipboard

```sh
vibez file.py
```

#### Extract specific lines from a file

```sh
vibez file.py:5-15
```

#### Extract multiple files and directories

```sh
vibez notes.md file.py src/
```

#### Recursively extract from a directory

```sh
vibez -r src/
```

#### Ignore files or directories

```sh
vibez -r dir/ -i "dir/.gitignore,dir/.git"
```

#### Save output to a file

```sh
vibez -o output.md file.py
```

#### Add a summary

```sh
vibez -s "Add login functionality" auth.py
```

### Output Format

````md
<summary>

<file-1> (line range):

```
<content>
```

<file-2> (line range):

```
<content>
```

...

<file-n> (line range):

```
<content>
```
````

## License

MIT