-
Bump the minimum Python version from 3.9 to 3.10.
This is in alignment with the status of Python versions.
-
ONC class can get the token by checking an environment variable called
ONC_TOKEN. (#67).This means users can use
onc = ONC()ifONC_TOKENis set correctly (probably in a .env file) -
Added a new method called
getDataAvailability, which matches the new OpenAPI end point/dataAvailability/dataproducts. (#70). -
Change the default value of
showWarningto beTrue.
- Fix 0 file size in the print message when calling
orderDataProduct(#64).
- Change the default value of
showWarningto beFalse.
- Ignore timezone when parsing non-standard datetime like "YYYY-MM-DD". (#60)
-
Added
getArchivefileUrlandgetArchivefileUrlsto only return the download links of the requested archive files. (#56)This is useful because users can use them in their favorite download manager. Check the Code Example for more information.
-
Added warning messages if the response has a "messages" key with a non-empty list value. (#58)
This feature can be turned off by using
onc = ONC(token=TOKEN, showWarning=False).
- Reverted back the incremental downloading files because it might generate invalid files with partial file size (before it was zero file size). (#54)
-
Fixed duplicate downloading issues when the downloaded file exists and the overwrite parameter is False in
downloadArchivefile,downloadDataProduct, andorderDataProduct. (#41) -
Fixed incorrect time estimation when downloading scalardata in multiple pages. (#45)
-
Improved package setup (pyproject.toml, linting and formatter). (#1)
Now you can import the ONC class using
from onc import ONCinstead offrom onc.onc import ONC. The longer version still works. -
Added support of Path type for outPath (instance variable in ONC class). (#12)
-
Added GitHub Actions for continuous integration. (#19)
-
Added Sphinx for generating documentation. (#7)
-
Improved exception types raised and caught. (#17)
-
Added new public methods (
checkDataProduct,cancelDataProduct,restartDataProduct,getSensorCategoryCodes) to match backend API update. (#26) -
Renamed some public methods (old names are still available) to make the naming more consistent with the api end points. (#33)
API End Point Old Name New Name /locations/tree getLocationHierarchy getLocationsTree /scalardata/location getDirectByLocation getScalardataByLocation /scalardata/device getDirectByDevice getScalardataByDevice /rawdata/location getDirectRawByLocation getRawdataByLocation /rawdata/device getDirectRawByDevice getRawdataByDevice /archivefile/location getListByLocation getArchivefileByLocation /archivefile/device getListByDevice getArchivefileByDevice /archivefile/download getFile downloadArchivefile N/A getDirectFiles downloadDirectArchivefile -
Added helper methods to combine
getXXXByLocationandgetXXXByDeviceintogetXXX. (#33)Namely,
getScalardata,getRawdataandgetArchivefile.
- Removed unused modules (onc/ags.py, onc/dap.py, onc/nerc.py, onc/sos.py). (#1)