Civis

Latest version: v1.16.1

Safety actively analyzes 621521 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.0.0

(Changes documented in this section are not repeated in the following sections.)

- A `civis.response.Response` object is no longer mutable.
More concretely, both the "setitem" (e.g., `response["foo"] = "bar"`)
and "setattr" (e.g., `response.foo = "bar"`) operations
would now raise an `CivisImmutableResponseError` exception. (463)
- Instantiating a `civis.response.Response` object no longer
accepts the boolean `snake_case` keyword argument;
snake-case keys at a `Response` object are now always available (and preferred). (463)

Added
- Added error handling of file_id with type string passed to `civis.io.civis_file_to_table`. (454)
- Added support for Python 3.10 and 3.11 (462)

Changed
- Updated references from 'master' to 'main' (460)
- Clarified the usage example for `civis.io.civis_to_multifile_csv`. Updated
circleci config so dev-requirements is only used when needed. (452)
- Removed unneeded time.sleep calls and pytest.mark calls and mocked time.sleep calls to optimize tests. (453)
- Refactored tests to remove dependency on the vcr library. (456)
- Fixed typo in "Testing Your Code" example of the User Guide (458)
- Adding try-except to catch JSONDecodeErrors in CivisAPIError (459)
- civis.io.file_id_from_run_output now works for all job types (461)
- A nested `civis.response.Response` object now supports both snake-case and camel-case
for key access. Previously, only the non-Pythonic camel-case keys were available. (463)

Deprecated
Removed
- Dropped support for Python 3.7 (462)

Fixed
Security

1.16.0

Added
- Added documentation around testing code using mocking (447)
- Added the type of `civis.response.Response` and `civis.response.PaginatedResponse`
returned in the API resources documentation (438)
- Added job ID and run ID as custom headers in API calls (437)
- Added support for Python 3.9 (436)
- Added job ID and run ID to the exception message of `CivisJobFailure`
coming from a `CivisFuture` object (426)
- Added the `encoding` parameter to both `civis.io.read_civis` and `civis.io.read_civis_sql`,
so that these two functions can retrieve non-UTF-8 data when `use_pandas` is `False`. (424)
- `ContainerFuture` propagates error messages from logs (416)
- Added EmptyResultError to `civis.io.read_civis` docs (412)
- Added default values from swagger in client method's signature (417)

Changed
- Added a warning message when using `civis.io.file_to_civis` with file size of 0 bytes (451)
- Specified that `civis.io.civis_file_to_table` can handle compressed files (450)
- Explicitly stated CSV-like civis file format requirement in
`civis.io.civis_file_to_table`'s docstring (445)
- Called out the fact that `joblib.Parallel`'s `pre_dispatch` defaults to `"2*n_jobs"`
in the Sphinx docs (443)
- Updated `civis_api_spec.json`, moved it to under `civis/resources/`, and checked in
a script to facilitate updating it again (440, 441)
- Bumped version numbers for dependencies to allow their latest major releases (436)
- Switched from TravisCI to CircleCI (432)
- Moved the changes from 416 for propagating error messages
from `ContainerFuture` to `CivisFuture` (426)
- Updated the docstrings for `file_to_civis` (for `buf` and `expires_at`),
`dataframe_to_file` (for `expires_at`), and `json_to_file` (for `expires_at`). (427)
- Ability to use joblib 1.1.x (429)

Fixed
- Relaxed SQL type checking in `civis.io.civis_file_to_table` by casting to `VARCHAR`
when type inconsistency is detected for a given column and at least one input file
has `VARCHAR` (439)
- Updated info about MacOS shell configuration file to be `~/.zshrc` (444)
- Fixed the Sphinx docs to show details of multi-word API endpoints (442)
- Dropped the buggy/unnecessary `_get_headers` in `civis.io.read_civis_sql` (415)
- Clarified the `table_columns` parameter in `civis.io.*` functions (434)
- Warned about the `retry_total` parameter of `civis.APIClient` being inactive and deprecated (431)
- Converted `assert` statements in non-test code into proper error handling (430, 435)
- Handled the index-out-of-bounds error when CSV preprocessing fails in `civis_file_to_table`
by raising a more informative exception (428)
- Corrected camel to snake case for "sql_type" in `io` docstrings, and added an input check to catch misspellings in the `table_columns` input (419).

Removed
- Dropped support for Python 3.6 (436)
- Removed no-longer-used PubNub code (425)
- Removed no-longer-supported Python 2 option for notebook creation in the CLI (421)

Security
- Turned on `safety` and `bandit` checks at CircleCI builds (446)

1.15.1

Fixed
- fixes bug whereby calls with iterate=True do not retry (413)

1.15.0

Changed
- Bump minimum pubnub version to `4.1.12` (397)
- In `civis.io.civis_file_to_table`, ensure that data types are detected when table_columns are provided with no sql_types. Additionally, throw an error if some sql_types are provided and not others. (400)
- Retain specific sql types when there are multiple input files and `table_columns` specified in `civis.io.civis_file_to_table` (402)
- Removed Python 3.5 support (404)
- Updated list of base API resources to include `aliases`, `git_repos`, `json_values`, `services`, and `storage_hosts` so that they show up in the sphinx docs (406)
- Update the API spec at `civis/tests/civis_api_spec.json` so that new endpoints are included (e.g., `/exports/files/csv`) (407)
- Refactor file cleaning logic for `civis.io.civis_file_to_table` (405)
- Refactored retry logic to use tenacity package, added random jitter on retries, and retry on POST 429 and 503s. (401)

Fixed
- Fixed a workflows usage example in `docs/source/client.rst` that had an incorrect endpoint. (409)
- Fixed a bug in parsing responses that included "update" as a key (e.g., in column information from `client.tables.get(...)`). (410)

1.14.2

Added
- Added support for Python 3.8 (391)

Fixed
- Fixed a bug in the CLI tool which caused failed commands to exit with a 0 exit status. (389)
- Fixed some issues that the newly-released flake8 3.8 complained about, including a buggy print statement for logging in run_joblib_func.py. (394)
- Fixed a bug when cancelling jobs while using the Civis joblib backend. (395)

Changed
- Added additional detail to `civis.io.dataframe_to_civis`, `civis.io.csv_to_civis`, and `civis.io.civis_file_to_table`'s docstrings on the primary key parameter. (388)
- Made polling threads for Civis futures be daemon threads so that Python processes will shut down properly in Python 3.8 (391)
- Removed deprecation warning on the `file_id` parameter of `civis.io.civis_file_to_table`. The parameter name will be kept in v2. (360, 393)
- Show tables of methods for each set of endpoints in the API Resources pages. (396)

1.14.1

Fixed
- Fixed a bug in the `ServiceClient` where the API root path was not passed when generating classes. (384)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.