Skip to content

Releases: RavenPack/python-api

Version 1.0.27

09 Jul 14:45
cc1367d

Choose a tag to compare

Added

  • New ApiConnectionError
  • request_realtime method now supports keep_alive

Version 1.0.26

09 Jul 14:45
484e77c

Choose a tag to compare

Added

New common_request_params attribute on the RPApi object to send extra
params to the requests library

Version 1.0.25

09 Jul 14:45

Choose a tag to compare

Improved

request_realtime now doesn't buffer RT requests to avoid waiting for chunks.

Version 1.0.24

09 Jul 14:45

Choose a tag to compare

Added

Support for the job cancellation endpoint (while a job is in the ENQUEUED
state)

job = ds.request_datafile(...)
job.cancel()

Improved

Job.wait_for_completion raises an exception if the job goes in ERROR so we
don't wait forever.

Version 1.0.23

09 Jul 14:45

Choose a tag to compare

Fixed

Fixed encoding issues with differences in Python2 and Python3

Improved

Jobs are now iterable

Version 1.0.22

09 Jul 14:45

Choose a tag to compare

Added

Created EntityTypeReference to query the whole of entity reference

Version 1.0.21

09 Jul 14:45

Choose a tag to compare

Changed

Requesting Ad-Hoc json() will use the dataset frequency as the default one

Version 1.0.20

09 Jul 14:45

Choose a tag to compare

Changed

Saving job to file raises an exception when there is an error in the API call

Version 1.0.19

09 Jul 14:45

Choose a tag to compare

Added

Added 2 more options (SPLIT_WEEKLY and SPLIT_DAILY) to the method time_intervals, used to download a datafile in chunks:

from ravenpackapi.util import (
  SPLIT_YEARLY,
  SPLIT_MONTHLY,
  SPLIT_WEEKLY,
  SPLIT_DAILY,
  time_intervals
)
split = SPLIT_DAILY
for range_start, range_end in time_intervals(start_date, end_date, split=split):
    job = ds.request_datafile(
        start_date=range_start,
        end_date=range_end,
        compressed=GET_COMPRESSED,
    )
    ...

Version 1.0.18

09 Jul 14:45

Choose a tag to compare

Added

Now datasets can not only be created but updated as well via the
dataset.save() method.