Skip to content

Releases: Cumulocity-IoT/cumulocity-python-api

Release 3.3.0-beta.5

15 Apr 12:41
Compare
Choose a tag to compare
Release 3.3.0-beta.5 Pre-release
Pre-release
  • Added get_count operation to Operations API.

Release 3.3.0-beta.4

15 Apr 06:22
68eb2bf
Compare
Choose a tag to compare
Release 3.3.0-beta.4 Pre-release
Pre-release

Switched as_tuples parameter in select and get_all functions to as_values allowing a non-tuple, single value extract.

Release 3.3.0-beta.3

18 Mar 14:26
Compare
Choose a tag to compare
Release 3.3.0-beta.3 Pre-release
Pre-release
  • Added as_tuples parameter to get_all and select functions of the Inventory, DeviceInventory,
    DeviceGroupInventory, Events, Alarms, Users, Operations, and AuditRecords API.

  • Added code coverage reporting to test target for invoke.

Release 3.3.0-beta.2

10 Mar 18:22
a5502dc
Compare
Choose a tag to compare
Release 3.3.0-beta.2 Pre-release
Pre-release

Optimized integration with analytics tools

  • Added code coverage reporting to test target for invoke.
  • Updated as_tuple for complex objects as well as the as_tuples parameter for select
    and get_all functions to work with strings or 2-tuples. The use of a dictionary
    was removed as dictionaries don't define an order.
  • Added as_tuples parameter to the Measurements API select and get_all functions.
  • Adding c8y_tk.analytics package with to_numpy, to_series and to_data_frame functions to
    ease incorporating Cumulocity data into standard analytics pipelines.

Release 3.3.0-beta.1

06 Mar 19:00
Compare
Choose a tag to compare
Release 3.3.0-beta.1 Pre-release
Pre-release

Adding c8y_tk.analytics package with to_numpy, to_series and to_data_frame functions to ease incorporating Cumulocity data into standard analytics pipelines.

Release 3.2.1

05 Mar 17:49
Compare
Choose a tag to compare

Some essential fixes and improvements for dealing with Measurements and Series.

Release 3.2

24 Feb 09:52
Compare
Choose a tag to compare

Version 3.2 features major usability improvements:

  • Added __repr__ function to relevant object classes to ease development and debugging
  • Added reload function to inventory object classes
  • Added delete_tree function to inventory object classes, implicitly using cascade or
    forceCascade parameters depending on the use case.
  • Added a as_tuple function to all complex objects which can be used to extract multiple nested values
    as a tuple using path-like expressions (complementing the generic get function).
  • Added as_tuples parameter to select and get_all functions in all inventory API as well
    as Events and Alarms API. This parameter can be used to directly extract specific values from
    the results instead of parsing the JSON.

Release 3.1.1

04 Feb 12:40
704a651
Compare
Choose a tag to compare
Merge pull request #66 from Cumulocity-IoT/feature/python37-support

Feature/python37 support

Release 3.1

04 Feb 12:31
704a651
Compare
Choose a tag to compare

Broad Python version support & improved fragment access

  • Adding support for Python 3.7 as this is still widely used in the industry. New code can now safely used with Python 3.7 throughout Python 3.13. Added invoke task for docker-based tests with different Python versions.
  • Greatly improved dot notation access to all complex Cumulocity objects (Managed Objects, Events, Alarms, Operations, etc.) This now also supports mixed access, e.g. obj.fragment[3].sub["name"].
  • Publicly releasing a generic get function to complex objects which allows accessing a nested value without the need to check for null values, e.g. obj.get('fragment.sub.name', default='N/A').

Release 3.0.1

21 Nov 18:30
Compare
Choose a tag to compare

Fixed packaging in version. 3.0.1

Major release as there are potentially some breaking changes.

This release improves heavily on selecting/filtering for all available sub APIs (Events, Alarms, etc.). All select-like functions now feature an expression argument (always the first argument so it can safely be used unnamed). If this argument is defined, its value is used as-is within the respective REST requests to the API. Developers can use this to fine-tune filter parameters as desired. Additionally, most select-like functions support adding kwargs which are added to the query as well. These options are automatically converted from Python's snake_case to Cumulocity's pascalCase.

Other changes:

  • Incorporated pull request to remove dependency on deprecated pkg_resources package (thanks @reubenmiller).
  • Incorporated pull request to support context handlers.
  • Many additional unit tests and integration tests.
  • Fixed issue #63 (tenant option select function did not filter categories correctly).