Analytix

Latest version: v5.2.0

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

Scan your dependencies

Page 2 of 11

5.0.0rc2

Additions

* The clients will now trigger the full auth flow if the scopes your tokens are authorised with aren't sufficient to make the requested fetch operations

Changes

* The `can_use` function now uses `importlib.metadata` instead of the deprecated `pkg_resources`
* Removed the `InvalidFeatures` and `InvalidFeatureSet` exception classes
* The `AnalyticsReport.to_parquet` and `.to_feather` methods no longer return Arrow tables

5.0.0rc1

Changes

* This release changes the client interfaces quite a bit. They are now no longer async (async support may be reintroduced in an extension library), and are significantly simpler under the hood. The base client is now better suited to most web application uses.
* The `oidc` module has been re-written, and is now called `auth`. It performs largely the same tasks, just slightly differently in some cases.
* Shards can no longer refresh tokens -- that's now the client's job.
* The `APIError` exception class now has subclassed for 400, 401, 403, and 404 errors.
* Python 3.7 support has been dropped, but analytix now supports Python 3.12!

A full migration guide will be written nearer the time of full v5 release, but these are the bigger changes for now. Much of the "backend" stuff per se (like request verification, the `AnalyticsReport` class, etc.) remains the same for now, but some of these things will be changed before the final version goes out.

All new features have 100% unit test coverage, but let me know if you run into any issues!

Additional notes

* Live documentation won't be updated, though documentation has been added for new and updated features. To read these docs, run `pip install -r requirements/docs.txt`, then `mkdocs serve`.

4.2.3

Changes

* Logging now shows the time instead of the number of milliseconds since boot

Dependencies

* Added support for PyArrow 13

4.2.2

Largely an admin release.

* Declare PyPy 3.10 support in the README
* Update various base and development requirements

4.2.1

Additions

* Allow for the passing of kwargs to `Report().to_json()`

Changes

* Appease a deprecation in Polars

Dependencies

* Increased the minimum supported version of Polars to 0.17.3
* Added support for PyArrow 12

4.2.0

Additions

The `Client`, `AsyncClient`, and `AsyncBaseClient` now accept a `scopes` parameter, which should be a `Scopes` enum. This fixes an issue detailed in 41 where non-partnered channels would encounter 403 errors when trying to pull revenue data.

All owners non-parnetered channels should implement this change. To do so, configure your client so the scopes is explicitly set:

py
from analytix import Client, Scopes

client = Client(scopes=Scopes.READONLY)


You will need to re-authorise if you alter the scopes.

Changes

* Some miscellaneous updates to warnings
* `python -m analytix` now tells you if the install version of analytix is the latest

Page 2 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.