semvec/pypi-packages huggingface dataset:
collection-filter 0.5
A small list/dict DSL for field filter specific designed for RESTful API partial response.
License: MIT

Python collection filter
========================

https://github.com/kudo/collection-filter

|Build Status| |Unit Test Coverage|

This library provides a DSL filter for list or dict data.
It is original designed for RESTful API partial response.
Tested with Python 2.6, 2.7. 

Quick Start
-----------

To install, use pip:

::

    $ pip install collection-filter

Then:

.. code:: python

    $ python

    >>> from collection_filter import collection_filter

    # Query a dict
    >>> collection_filter({'foo': 1, 'bar': 2}, 'foo')
    {'foo': 1}

    # Query a dict with multiple elements (seperated by comma)
    >>> collection_filter({'foo': 1, 'bar': 2}, 'foo,bar')
    {'foo': 1, 'bar': 2}

    # Query a dict deeply
    >>> collection_filter({'foo': {'bar': 2, 'orange': 'sweet'}}, 'foo.bar')
    {'foo': {'bar': 2}}

    # Query a list
    >>> collection_filter([{'foo': 1, 'bar': 2}, {'foo': 3, 'bar': 4}], '[].foo')
    [{'foo': 1}, {'foo': 3}]

    # list/dict combination example
    >>> collection_filter({'foo': 'bar', 'aListOfDict': [{'foo': 1, 'bar': 2}], 'aListOfDict[].foo')
    {'aListOfDict': [{'foo': 1}]}


Syntax
---------------

Currently support operators

+----------+------------------------------------------------+
| Operator | Description                                    |  
+==========+================================================+
| ,        | Multiple field query sperated by comma         |
+----------+------------------------------------------------+
| []       | To indicate the data should be handled as list |
+----------+------------------------------------------------+
| .        | Dot notation should follow with a symbol name  |
|          | which to specify a field in current dict data  |
+----------+------------------------------------------------+

 
Copyright and License
---------------------

Copyright 2015, Kudo Chien

Licensed under a `MIT license`_.

.. |Build Status| image:: https://travis-ci.org/Kudo/collection-filter.svg?branch=master
   :target: https://travis-ci.org/Kudo/collection-filter

.. |Unit Test Coverage| image:: https://coveralls.io/repos/Kudo/collection-filter/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/Kudo/collection-filter?branch=master

.. _MIT license: http://opensource.org/licenses/MIT
SESAR-Web-Services-Library 0.9
SESAR web services library for IGSN management.
License: MIT

SESAR-Web-Services-Lib
======================

SESAR web services library for IGSN management (Python)

This project is a work in progress.

Useful links:
- http://www.iedadata.org/services/sesar_api
- http://app.geosamples.org/reference/classifications.php
- https://pypi.python.org/pypi/SESAR-Web-Services-Library/

sample_type:        http://app.geosamples.org/reference/sampletypes.php
name:               string 0 to 255
material:           http://app.geosamples.org/reference/materials.php
parent_igsn:        string 9 (must be valid IGSN)
is_private:         0 = no, 1 = yes
publish_date:       string 10 in format: MM/DD/YYYY
classification:     http://app.geosamples.org/reference/classifications.php
field_name:         http://app.geosamples.org/reference/field_names.php
description:        string 0 to 2000
age_min:            decimal
age_max:            decimal
age_unit:           string 0 to 255
geological_age:     string 0 to 500
geological_unit:    string 0 to 500
collection_method:  string 0 to 255
collection_method_descr:    string 0 to 1000
size:               string 0 to 255
size_unit:          string 0 to 255
sample_comment:     string 0 to 2000
latitude:           decimal -90.0 to 90.0
longitude:          decimal -180.0 to 180.0
latitude_end:       decimal -90.0 to 90.0
longitude_end:      decimal -180.0 to 180.0
elevation:          decimal -6000.0 to 9000.0 (Minimum elevation)
elevation_end:      decimal -6000.0 to 9000.0 (Maximum elevation)
elevation_unit:     string must be "Meters" (case sensitive)
primary_location_type:  string 0 to 255
primary_location_name:  string 0 to 255
location_description:   string 0 to 2000
locality:               string 0 to 255
locality_description:   string 0 to 2000
country:                http://app.geosamples.org/reference/countries.php
province:               string 0 to 255
county:                 string 0 to 255
city:                   string 0 to 255
cruise_field_prgrm:     http://www.rvdata.us/catalog
platform_type:          string 0 to 255
platform_name:          string 0 to 2000
platform_descr:         string 0 to 2000
collector:              string 0 to 255
collector_detail:       string 0 to 2000
collection_start_date:  YYYY-MM-DD-HH-mm-ss  !! TODO: This has to be converted to a datetime object
collection_end_date:    YYYY-MM-DD-HH-mm-ss  !! TODO: This has to be converted to a datetime object
collection_date_precision: year, month, day, time
current_archive:        string 0 to 300
current_archive_contact: string 0 to 1000
original_archive:       string 0 to 300
original_archive_contact: string 0 to 1000
depth_min:              decimal
depth_max:              decimal
depth_scale:            string 0 to 255
other_names:            string 0 to 255
navigation_type:        http://app.geosamples.org/reference/navtypes.php
launch_platform_name:   http://app.geosamples.org/reference/launchtypes.php