Skip to content

Releases: civisanalytics/civis-python

v1.13.1

06 Mar 22:07
9a777a5
Compare
Choose a tag to compare

1.13.1 - 2020-03-06

Added

  • Suppressed FutureWarning from sklearn.externals.joblib. (#375)

v1.13.0

05 Mar 19:50
ab19a8a
Compare
Choose a tag to compare

Added

  • Add civis jobs follow-log and civis jobs follow-run-log CLI commands. (#359)
  • Add documentation for follow-log CLI Commands to main docs. (#367)

Fixed

  • Fixed a bug related to duplicating parent job parameters when using civis.parallel.infer_backend_factory. (#363)
  • Fixed crashing on NULL fields in civis sql CLI command. (#366)
  • Fixed hidden parameter not getting used in civis.io.civis_file_to_table. (#364)
  • Fixed effective_n_jobs to account for n_jobs=None, which is a default for the LogisticsRegression in sklearn=0.22.x. (#365)
  • Fixed crashing on NULL fields in civis sql CLI command (#366)
  • Fixed a bug related to creating a ModelPipeline from a registered model. (#369)
  • Fixed readme and setup.py to appease twine. (#373)

Changed

  • Made repeated invocations of civis.tests.create_client_mock faster by caching the real APIClient that the mock spec is based on (#371)

v1.12.1

10 Feb 17:44
94da3a0
Compare
Choose a tag to compare

1.12.1 - 2020-02-10

Fixed

  • Fixed issue where client did not generate functions for deprecated API endpoints. (#353)

Changed

  • Changed ServiceClient to raise CivisAPIError. (#355)
  • Updated documentation language for CivisML version. (#358)

v1.12.0

14 Jan 18:52
925d05c
Compare
Choose a tag to compare

1.12.0 - 2020-01-14

Added

  • Added method get_storage_host_id to the APIClient. (#328)
  • Added debug logging to some civis.io functions. (#325)
  • Added ServiceClient and ServiceEndpoint class. (#343)
  • Added new arguments to civis.io.civis_to_multifile_csv to expose max_file_size parameter. (#342)

Fixed

  • Removed incorrect "optional" marker for the sql argument in I/O
    functions. (#338)
  • Raise a more informative exception when calling file_to_dataframe
    on an expired file. (#337)
  • ModelPipeline.register_pretrained_model should persist the user-supplied
    estimator object indefinitely. (#331)
  • Fixed requirements.txt listing for cloudpickle -- >=0.2, not <=0.2. (#323)
  • Fixed issue in civis.io.read_civis_sql when returning data that contains
    double quotes. (#328)
  • Fixed issue with pyyaml version for Python 3.4 by requiring pyyaml version <=5.2

Changed

  • Updated cloudpickle and joblib dependencies. (#349)
  • CivisML uses platform aliases instead of hard-coded template IDs. (#341, #347)
  • CivisML versions and pre-installed packages are documented on Zendesk instead. (#341)
  • Issue a FutureWarning on import for Python 2 and 3.4 users. (#333,
    #340)
  • Pass headers and delimiter to Civis API endpoint for cleaning files in civis.io.civis_file_to_table. (#334)
  • Issue a FutureWarning on import for Python 2 users. (#333)
  • Update the Civis logo in the Sphinx documentation. (#330)
  • Allow the name arg to be optional in civis.io.file_to_civis. (#324)
  • Refactor civis.io.civis_file_to_table to use a new set of Civis API endpoints for cleaning and importing CSV files. (#328)
  • Added new arguments to civis.io.civis_file_to_table to expose additional functionality from new Civis API endpoints. (#328)
  • Added new arguments from civis.io.civis_file_to_table to dataframe_to_civis and csv_to_civis methods. (#328)

v1.11.0

26 Aug 21:33
6cf4ac8
Compare
Choose a tag to compare

1.11.0 - 2019-08-26

Added

  • Add CLI command "sql" for command line SQL query execution. (#319)
  • Add helper function (run_template) to run a template given its id and return
    either the JSON output or the associated file ids. (#318)
  • Add helper function to list CivisML models. (#314)
  • Added helper functions to share CivisML models with users or groups,
    patterned after the existing API sharing endpoints. (#315)
  • Allow the base URL of the CLI to be configured through the
    CIVIS_API_ENDPOINT environment variable, like the civis Python module. (#312)
  • Allow the CLI log level to be configured with the CIVIS_LOG_LEVEL
    environment variable with the standard logging module levels.
    For example: CIVIS_LOG_LEVEL=DEBUG civis users list-me (#312)
  • Allow users to access civis.utils.run_job after an import civis. (#305)
  • civis.io.dataframe_to_file and civis.io.json_to_file convenience functions.
    (#262, #304)
  • Add the user's Python version to the User-Agent string. (#255, #301)
  • Added a last_response parameter to the APIClient object. (#153, #302)
  • The deprecate_param decorator can take multiple parameter names, to allow
    Python 2.7 compatibility for multiple deprecations. (#311)

Fixed

  • Added missing docs for json_to_file and dataframe_to_file (#320).
  • Fix unintentional dependency on scikit-learn for parallel module tests. (#245, #303)
  • Deprecate the headers parameter of dataframe_to_civis and always tell Civis
    whether the import has headers or not, rather than autodetecting. (#263, #307)
  • Set cloudpickle requirements to <1.2 on Python v3.4. (#309)
  • Fixed an issue in the CLI which prevented users from accessing GET /aliases/{id}
    and simultaneously generated a warning message. (#298, #316)

Changed

  • Loosened version requirements of pyyaml to include pyyaml<=5.99. (#293)
  • Loosened version requirement of jsonref to include 0.2 to fix a
    DeprecationWarning under Python 3.7. (#295)
  • Changed pubnub version requirement in requirements.txt to match setup.py
    (#295)
  • Loosened version requirements of click to include v7 and jsonschema
    to include v3. (#286, #300)
  • Surfaced civis.io.split_schema_tablename in the Sphinx docs. (#294)
  • Loosen joblib version requirement to include v0.13 and add code to
    the Civis joblib backend which newer versions of joblib can take
    advantage of. Also loosened version requirement on cloudpickle to
    include v1. (#296, #299)
  • Run all tests in Ubuntu Xenial. (#310)

v1.10.0

09 Apr 20:38
18e9f9b
Compare
Choose a tag to compare

Added

  • CivisFuture has the job_id and run_id property attributes. (#290)

Fixed

  • Polling will treat None responses generated by spotty internet connections
    like responses with a non-DONE state. (#289)

v1.9.4

28 Feb 20:02
6b9ccf7
Compare
Choose a tag to compare

Fixed

  • get_table_id will correctly handle quoted schema.tablename. (#285)
  • Fix parsing of empty responses from run cancellation endpoints. (#287)

1.9.3 - 2019-02-05

05 Feb 21:46
971ae09
Compare
Choose a tag to compare

Fixed

  • Correct prediction template id for CivisML 1.0 (#278)
  • civis.ml.ModelFuture.table checks for primary key before reading in
    data. (#276)

Added

  • Test for Python 3.7 compatibility (#277)

Changed

  • Updated mock API specs (#281)

v1.9.2

03 Dec 20:12
eb5d46c
Compare
Choose a tag to compare

1.9.2 - 2018-12-03

Fixed

  • civis.io.civis_to_file will now retry on S3 connection errors (#273)
  • Buffers will be reset appropriately on connection failures during
    civis.io.file_to_civis (#273)

v1.9.1

15 Nov 17:38
7a08b8c
Compare
Choose a tag to compare

1.9.1 - 2018-11-15

Fixed

  • _stash_dataframe_as_csv in civis/ml/_model.py now uses a StringIO
    object which has the getvalue method (required by pandas v0.23.1
    if a file-like object is passed into df.to_csv). (#259)
  • civis_to_multifile_csv fully respects the client keyword argument

Added

  • Added instructions in the README for adding an API key to a Windows 10
    environment
  • Configured Windows CI using AppVeyor. (#258)

Changed

  • Coalesced README.rst and index.rst. (#254)
  • joblib documentation has moved to readthedocs. (#267)