semvec/pypi-packages huggingface dataset:
param-info 0.2.1
A python package for parsing parameters.
License: MIT
Keywords: validate

=====
About
=====

A python package for parsing parameters

*****
Usage
*****

>>> from param_info import *
>>> params = ParamList()
>>> params.add( ParamInfoInt("a1",7,min=5) )
>>> params.add( ParamInfoVal("a2",['aa','bb','cc']) )
>>> params.add( ParamInfoStr("a3",' hallo ') )
>>> def doSomething(param,values):
...    if params.validate(values):
...        # Do something with values
...        for name,param in params.params.items():
...            print( '{0} ==> {1}'.format(name,param.value))
...    else:
...        # Handle errors
...        for name,param in params.errors.items():
...            print( 'Error. {0} ==> {1}'.format(name,param.errorText))
>>> doSomething(params,{'a1':3})
Error. a1 ==> a1=3 should be integer >= 5
Error. a2 ==> a2 is required
>>> doSomething(params,{'a1':8,'a2':'bb'})
a1 ==> 8
a2 ==> bb
a3 ==> hallo
>>> doSomething(params,{'a2':'zz'})
Error. a2 ==> a2=zz should be one of ['aa', 'bb', 'cc']
>>> doSomething(params,{'a2':'aa','a3':'hola'})
a1 ==> 7
a2 ==> aa
a3 ==> hola
jsl-elasticsearch 0.1.dev0
Generate ElasticSearch templates from JSL
License: MIT
Keywords: jsl,elasticsearch

JSL -> ElasticSearch
====================

``jsl_elasticsearch`` generates ElasticSearch mappings from JSL definitions.

It requires Python 3.4 or later (mainly for ``functools.singledispatch``).

It is specifically aimed at use cases where ElasticSearch is being used as a
time series database for JSON data with schemas defined using the
`jsl <http://jsl.readthedocs.io>`__ Python library.

The main API is ``jsl_elasticsearch.render_es_template``::

   def render_es_template(document, title, role, doc_type="content"):
       """Render an ElasticSearch time series template for given JSL document

       Template name is generated from the given *title* and *role*
       Document variables are resolved using the given *role*
       *doc_type* specifies the ElasticSearch mapping name (default: "content")
       """

The ``@timestamp`` field expected by Kibana is added automatically, and
string fields are flagged as ``not_analyzed`` by default (so ElasticSearch
treats them as opaque tokens, rather than as plain text fields to be
analyzed for full text search)

The following JSL field types are currently supported:

* ``jsl.StringField``
* ``jsl.NumberField``
* ``jsl.IntField``
* ``jsl.ArrayField``
* ``jsl.DictField``
* ``jsl.DocumentField``

An additional field type is also defined:

* ``jsl_elasticsearch.TextField``

With string fields being flagged as opaque tokens by default, ``TextField``
is a new ``StringField`` subclass that flags the field for full text search
in the ElasticSearch mapping, but is otherwise handled exactly like
``StringField`` by JSL.
sample-project-h 0.1.2
The funniest joke in the world
License: MIT

A sample Python project
=======================

A sample project that exists as an aid to the `Python Packaging User Guide
<https://packaging.python.org>`_'s `Tutorial on Packaging and Distributing
Projects <https://packaging.python.org/en/latest/distributing.html>`_.

This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.

----

This is the README file for the project.

The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple "What's New" section for the most recent version
may be appropriate.