semvec/pypi-packages huggingface dataset:
bytristan 0.4
A module for enforcing Tristan comments

# Tristan Module
This module enforces the use of special Tristan comments in Python code.

```py
# tristan is cute
import bytristan # made by tristan
from bytristan import * # made by tristan

def main():  # made by tristan
    print("Hello, Tristan!")  # made by tristan

main()  # made by tristan
bytristan.start_enforcement()  # made by tristan
```
findListInList 0.0.3
A libray that tells you the poition of a list in another list.
Requires Python: >=3.7

# This library finds the position of a list in another list.

# For example: ["a", "b", "c"] is at the 2nd position in ["z", "a", "b", "c"].

# To use: find(list1, list_where_you_want_to_find_the_pos_of_1st_list)
core-elasticsearch-app 2.5.0
Elasticsearch utils for the curator core project

======================
Core Elasticsearch App
======================

Elasticsearch utils for the curator core project.

Quick start
===========

1. Add "core_elasticsearch_app" to your INSTALLED_APPS setting
--------------------------------------------------------------

.. code:: python

    INSTALLED_APPS = [
      ...
      'core_elasticsearch_app',
    ]

The package should be placed above `core_explore_keyword_app` in the `INSTALLED_APPS` to enable autocomplete powered
by elasticsearch.

2. Include the core_elasticsearch_app URLconf in your project urls.py
---------------------------------------------------------------------

.. code:: python

    re_path(r'^elasticsearch/', include('core_elasticsearch_app.urls')),


3. Deploy an instance of Elasticsearch
--------------------------------------

Recommended version: 7.14.1
See https://github.com/usnistgov/cdcs-docker#elasticsearch for help with Elasticsearch deployment.

4. Configure what should be indexed in Elasticsearch
----------------------------------------------------

It is recommended to configure the mapping between the CDCS templates and the Elasticsearch indices before starting to
insert data, so that data can be indexed as soon as they are published in the CDCS. For that, set the following setting:

.. code:: python

    ELASTICSEARCH_AUTO_INDEX = True

Then, configure the mapping between the XSD templates and the Elasticsearch indices. Documents stored in Elasticsearch
have a common structure. They are composed of a `data_id`, a `title` and a `description` field. A mapping can be
defined to tell where in the XML data the values for the `title` and for the `description` of a resource can be found.
Below is an example to set this mapping via REST, for a given template:

.. code:: python

    import requests
    payload = {
        "template": "5f43ba192b8fd5c092e30e62",
        "title_path": "Resource/identity/title",
        "description_paths": ["Resource/content/description", "Resource/content/subject"],
    }

    requests.post(
        SERVER_URI + "/elasticsearch/rest/elasticsearch_template/", data=payload, auth=(USER, PASSWORD)
    )