semvec/pypi-packages huggingface dataset:
lucyfer 0.7.0
Lucene search for DRF and elasticsearch-dsl

# Lucene way search in django
#### ("Django" AND "DRF") OR "Elasticserach-DSL"

_________________

## Installation

Only for Django with DRF:

```
pip install lucyfer
```

For Django with DRF and Elasticsearch-dsl:

```
pip install lucyfer[full]
```

## Dependencies

|                           | lucyfer | lucyfer[full] |
|---------------------------|---------|-------|
| lucyparser                | +       | +     |
| Django                    | +       | +     |
| djangorestframework       | +       | +     |
| elasticsearch-dsl         | -       | +     |


## Usage Example  
________________
Create your search backend class:

```python
from lucyfer.backend import LuceneSearchFilter, DjangoLuceneSearchFilterMixin, ElasticLuceneSearchFilterMixin


class SearchBackend(DjangoLuceneSearchFilterMixin, ElasticLuceneSearchFilterMixin, LuceneSearchFilter):
    pass
``` 

Copy reference to `SearchBackend` class and include it in `DEFAULT_FILTER_BACKENDS` in `settings.py` instead of default search backend:

```python
REST_FRAMEWORK = {
    'DEFAULT_FILTER_BACKENDS': ('path.to.SearchBackend',)
}
```

Create `searchsets.py` file in your django-application and fill it:
```python
from lucyfer.searchset import DjangoSearchSet
from lucyfer.searchset.fields.django import DjangoCharField

from .models import MyModel


class MyModelSearchSet(DjangoSearchSet):
    some_field = DjangoCharField(sources=["another_field__name"], exclude_sources_from_mapping=True)

    class Meta:
        model = MyModel

    fields_to_exclude_from_mapping = ['field_to_exclude_from_mapping', ]

```

Include searchset class in your `ModelViewSet`:
```python
from rest_framework.viewsets import ModelViewSet

from .searchsets import MyModelSearchSet


class MyModelViewSet(ModelViewSet):
    search_class = MyModelSearchSet
```

You have to save `search_fields` in your `ModelViewSet` if you want to save custom search possibility.

Now you can use lucene-way syntax for your view.


Tests execution:
```
pytest tests/test_* -c tests/pytest.ini 
```
dynocom 0.0.2
Dynamic encryption key changer for security
Requires Python: >=3.6

# Dynamic_command
 Dynamic Encryptor key changer for security


## 1.Installation
```
git clone https://github.com/prasannan-robots/Dynamic_command.git
```

## How it works
First the encrpyted data contains a encrypted string (by current key)
<br>
### 'current key encrypted by previous key (for security), new key encrypted by previous key (for sharing the new key), Data encrypted by new key'
<br>
i.e current key,new key, data
<br>
And decrypted by the same way and stored
metest 0.0.1
Test, check and compare logs and data from meteorological computations.

# metest
Test, check and compare logs and data from meteorological computations. 

# Usage
Submodules can be imported, but this software is designed to be used as a CLI (Command-Line-Interface), by calling the `__main__` module.

`python -m metest`: Prints a help message

`python -m metest logmetric`: Calls the logmetric submodule and prints a help message (as flags are needed for this command to work)

`python -m metest logmetric -m harmonie --individual -f /path/to/log`: Computes standard metrics on a single logfile from Harmonie

# Documentation
Documentation is auto-build from in-line code using sphinx: dmidk.github.io/metest/

# Prerequisites
*metest* is a script tool based on python. Dependencies is defined in `metest.yml` and a python environment can be made using (mini)conda:

`conda env create -f metest.yml`

# For developers

## Build documentation
```shell
cd doc
sphinx-apidoc -f --private --ext-autodoc --separate -o . ../metest/
make html
```
The html source files goes into `doc/_build/html`