Releases: shawnbrown/squint
Releases · shawnbrown/squint
0.1.0
-
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 thefetch()
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
- Added a package description.
- Added
'get-reader[excel,dbf]'
to installation requirements.
0.0.1
- 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)
- Changed name of
Selector
class toSelect
("Selector" is now deprecated).
0.0.1.dev8 (from datatest 0.9.4)
- 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.
- Added
0.0.1.dev7 (from datatest 0.9.2)
- 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
- Added
True
andFalse
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)
- Added more formal predicate object handling.
- Changed
DataSource
toSelector
,DataQuery
toQuery
, andDataResult
to
Result
.
0.0.1.dev5 (from datatest 0.8.3)
- 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)
- Added proper
__repr__()
support toDataSource
andDataQuery
. - Changed
DataQuery
so it fails early if bad "select" syntax is used or if
unknown columns are selected. - Added
__copy__()
method toDataQuery
.
0.0.1.dev3 (from datatest 0.8.1)
- Changed
DataQuery
select behavior to fail immediately when invalid syntax is
used (rather than later when attempting to execute the query).