Skip to content

Releases: shawnbrown/squint

0.1.0

11 Jan 19:46
Compare
Choose a tag to compare
  • Added a Query preview feature for interactive use:

    >>> select({'fruit': 'kilograms'}).sum()
    Query(<squint.Select object at 0x7f209c30>, {'fruit': ['kilograms']}).sum()
    ---- preview ----
    {'apple': 50,
     'pair': 20,
     'grape': 10,
     ...
    

    Previews provide immediate feedback when building queries interactively.
    Once the query is finished, you can evaluate it with the fetch() or
    execute() methods as before.

    The preview feature works with the standard interactive prompt, IPython,
    bpython, and Jupyter. However, at the time of this release, ptpython does
    not support this type of customization.

  • Added rewritten and expanded tutorial documentation.

  • Changed Result attribute from "evaluation_type" to "evaltype" (the old
    name is now deprecated).

  • Added Python 3.9 testing and support.

  • Removed support for very old versions of Python (2.6, 3.2, and 3.3).

0.0.2

15 Sep 07:35
Compare
Choose a tag to compare
  • Added a package description.
  • Added 'get-reader[excel,dbf]' to installation requirements.

0.0.1

22 Sep 20:47
Compare
Choose a tag to compare
  • First public release of squint as its own repository.
  • Added traceback handling to create_index() method.
  • Removed datatest-specific/non-squint commits from version history.

0.0.1.dev9 (from datatest 0.9.5)

22 Sep 20:48
Compare
Choose a tag to compare
  • Changed name of Selector class to Select ("Selector" is now deprecated).

0.0.1.dev8 (from datatest 0.9.4)

22 Sep 20:50
Compare
Choose a tag to compare
  • Added Python 3.8 testing and support.
  • Added Predicate class to formalize behavior--also provides inverse-matching
    with the inversion operator (~).
  • Added new methods to Query class:
    • Added unwrap() to remove single-element containers and return their
      unwrapped contents.
    • Added starmap() to unpack grouped arguments when applying a function
      to elements.

0.0.1.dev7 (from datatest 0.9.2)

22 Sep 20:51
Compare
Choose a tag to compare
  • Changed Query class:
    • Added flatten() method to serialize dictionary results.
    • Added to_csv() method to quickly save results as a CSV file.
    • Changed reduce() method to accept "initializer_factory" as
      an optional argument.
    • Changed filter() method to support predicate matching.
  • Added True and False as predicates to support "truth value testing" on
    arbitrary objects (to match on truthy or falsy).
  • Changed Selector class keyword filtering to support predicate matching.

0.0.1.dev6 (from datatest 0.9.0)

22 Sep 20:52
Compare
Choose a tag to compare
  • Added more formal predicate object handling.
  • Changed DataSource to Selector, DataQuery to Query, and DataResult to
    Result.

0.0.1.dev5 (from datatest 0.8.3)

22 Sep 20:53
Compare
Choose a tag to compare
  • Changed DataQuery selections now default to a list type when no
    outer-container is specified.
  • Added DataQuery.apply() method for group-wise function application.
  • Added support for user-defined functions to narrow DataSource selections.
  • Fixed bug in DataQuery.map() method--now converts set types into lists.

0.0.1.dev4 (from datatest 0.8.2)

22 Sep 20:54
Compare
Choose a tag to compare
  • Added proper __repr__() support to DataSource and DataQuery.
  • Changed DataQuery so it fails early if bad "select" syntax is used or if
    unknown columns are selected.
  • Added __copy__() method to DataQuery.

0.0.1.dev3 (from datatest 0.8.1)

22 Sep 20:54
Compare
Choose a tag to compare
  • Changed DataQuery select behavior to fail immediately when invalid syntax is
    used (rather than later when attempting to execute the query).