Changelog¶
Notable changes to Alteia Python SDK are documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[2.16.1] - 2025-02-06¶
Added¶
Changed¶
Fix readthedoc generation (DAI-33841)
Deleted¶
[2.16.0] - 2025-02-04¶
Added¶
Add search generator support for fields (DAI-32120) (#3)
Add python support for version 3.12 and 3.13
Add new field
credentialsin analytic (DAI-32371):Change signature of
sdk.analytics.create()to add optionalcredentialsparameterAdd
sdk.analytics.assign_credentials()to assign credentials to an analytic for a specific companyAdd
sdk.analytics.unassign_credentials()to unassign credentials from an analytic for a specific company
Add original response contents in
ResponseErrorcore class (DAI-33566):data: response data (json loaded if json contents)shortcuts from
datafor internal services only:service,code,message,details
Changed¶
Change python default version to 3.11 (DAI-31431)
Deleted¶
Python version lower than 3.11 are not maintained anymore
[2.15.0] - 2024-11-29¶
Added¶
Add new field
docker_credential_namein analytic (DAI-31873):Change signature of
sdk.analytics.create()to add mandatorydocker_credential_nameparameterAdd
sdk.analytics.set_docker_credentials()to set docker credentials for an analytic
Changed¶
Support of python < 3.11 dropped
Deleted¶
[2.14.1] - 2024-10-12¶
Added¶
Changed¶
Deleted¶
Fix credentials creation without labels (DAI-31437)
[2.14.0] - 2024-10-04¶
Added¶
Add new routes (DAI-28937):
set-credentials: set credentials based on existing credentials
set-labels: set labels based on existing credentials
Changed¶
Support new credentials architecture (DAI-28937)
Deleted¶
[2.13.0] - 2024-09-17¶
Added¶
Changed¶
Change
sdk.credentials.create()Allow GCP credentials creation in SDK (DAI-29535)
Deleted¶
[2.12.1] - 2024-07-01¶
Changed¶
Fix
sdk.assessment_parameters_variables.describe()(DAI-28782)Fix
sdk.estimation_methods.update()about crops update (DAI-28782)
Deleted¶
Remove useless
sdk.trials.delete_generated_tasks_on_trial()for trials (DAI-28782)
[2.12.0] - 2024-05-24¶
Added¶
Add new function of data-capture API (DAI-26970)
Support creation/description/deletion/search/update for pilots
sdk.pilotsSupport creation/description/deletion/search for sensors
sdk.sensorsSupport creation/description/deletion/search for sensors models
sdk.sensor_models
Support season-planner API (DAI-26970)
Support export_report_entries/search/start_analysis_on_ape/start_reporting_on_ape for assessment parameters estimations
sdk.assessment_parameters_estimationsSupport creation/description/deletion/search/update for assessment parameters variables
sdk.assessment_parameters_variablesSupport creation/description/deletion/search/update for crops
sdk.cropsSupport creation/description/deletion/search/update/list_deliverables_definitions for estimation methods
sdk.estimation_methodsSupport creation/description/deletion/search/update for fields
sdk.fieldsSupport creation/description/deletion/search/update for growth stages
sdk.growth_stagesSupport add_mission_to_trial/description/deletion/search/update for season planner missions
sdk.season_planner_missionsSupport creation/description/deletion/search/update/set_plots_on_trial/set_dtm_dataset_on_trial/delete_generated_tasks_on_trial for trials
sdk.trials
Changed¶
Deleted¶
[2.11.0] - 2024-04-23¶
Added¶
Add argument
parse_metadataforsdk.datasets.create_image_dataset(), to populate dataset attributes with parsed Exif & XMP metadata (DAI-27217)
Changed¶
sdk.datasets.upload_file()now uploads directly through the storage provider by default (DAI-25775)use env variable
USE_LEGACY_UPLOADER=1to use the legacy upload method (deprecated)
Deleted¶
[2.10.0] - 2024-01-16¶
Added¶
Changed¶
improve
sdk.datasets.search_generator()by not asking for count on each search call (DAI-24705)Now
Provider.postsupport header overload (DAI-25000)
Deleted¶
[2.9.1] - 2023-11-14¶
Changed¶
Fix bug on Windows about using
vertical_srs_wkton dataset creation (DAI-24752)
[2.9.0] - 2023-09-12¶
Added¶
Stac credentials handling for credentials creation (DAI-22278)
Changed¶
Deleted¶
[2.8.0] - 2023-06-08¶
Added¶
Add status code to ResponseError, default to 0 when not used
Changed¶
Fix bug in
sdk.credentials.createuse the correct type of credentials (DAI-19718)Contextualization and transformation are now optionnal for datastream template creation (DAI-21227)
Deleted¶
[2.7.0] - 2023-03-14¶
Added¶
Add
sdk.analytics.expose()andsdk.analytics.unexpose()(DAI-16466)Add
sdk.analytics.enable()andsdk.analytics.disable()instead (DAI-17814)
Changed¶
Deprecate
sdk.analytics.share_with_company(), useexpose()andenable()instead (DAI-16466, DAI-17814)Deprecate
sdk.analytics.unshare_with_company(), useunexpose()ordisable()instead (DAI-16466, DAI-17814)
Deleted¶
[2.6.0] - 2023-02-03¶
Added¶
Add
sdk.datastreamswith create/describe/search/search-generator/delete (DAI-17176)Add
sdk.datastreamsfileswith search/search-generator (DAI-17176)Add
sdk.datastreamsassetsmonitoredwith search/search-generator (DAI-17176)
Changed¶
Deleted¶
[2.5.1] - 2022-10-25¶
Added¶
Add
sdk.datastreamtemplateswith create/describe/describes/search/delete/ (DAI-16691)Add
sdk.analytic_configurationswith create/describe/search/update/delete/assign/unassign (DAI-15894, DAI-17064)Change
external-provider-serviceprovider bycredentials-serviceprovider, the sdk will now use the credential service in order to store and interact with credential ressources (DAI-16717)
[2.4.0] - 2022-09-27¶
Added¶
Add
features.remove_attachments()(DAI-16196)Add
features.update_feature_properties()(DAI-16106)Add
features.delete_feature_properties()(DAI-16106)Add
features.delete_features_properties()(DAI-16106)Add
geometrytomissions.create_survey()+ update doc aboutcoordinates(DAI-15520)
Changed¶
Change
features.update_features_properties()return, now return a list ofResource(DAI-16106)
Deleted¶
[2.3.0] - 2022-06-20¶
Added¶
Add
collection_tasks.set_task_status(DAI-15351)Add
pilots.describeandcollection_tasks.describenow accept afieldsparameter to include or exclude fields from the response (DAI-15383)
[2.2.0] - 2022-06-06¶
Added¶
Add
core.resources.datamngt.upload.cfg_multipart_upload()(DAI-15147 DAI-15167)
[2.1.0] - 2022-04-13¶
Added¶
Add
features.add_attachments()(DAI-14397)
[2.0.0] - 2022-02-02¶
Changed¶
Improve documentation readability (DAI-13485)
Change the default UserAgent value by adding Python and OS versions. Now is like this:
alteia-sdk/x.x.x Python/x.x.x (Linux-x.x.x-x-amd64-x86_64)(DAI-12882)Change signature
flights.describe(): handle one or many IDs, and returnsResourceor list ofResource(DAI-11598)Change signature
flights.search(): new usage withfilterparameter. Deleteprojectandmissionparameters (DAI-11598)Change signature
missions.describe(): handle one or many IDs, and returnsResourceor list ofResource(DAI-11598)Change signature
missions.search(): new usage withfilterparameter. Deletemissions,flights,projectanddeletedparameters (DAI-11598)Change signature
projects.describe(): handle one or many IDs, and returnsResourceor list ofResource(DAI-11598)Change signature
projects.search(): new usage withfilterparameter. Deletenameanddeletedparameters (DAI-11598)Improve all
describe()methods when using a very big list of IDs (DAI-13548)Improve all
delete()methods when using a very big list of IDs (DAI-13607)Initialization of
Resourcedo not remove fields equals toNoneby default.
Added¶
Add argument
kindfordatasets.download_preview(), allowing to download small previews, not only tiny (DAI-13014)Add
AbstractConnection.set_user_agent(): allow to add multiples information to UserAgent request’s headers (DAI-12882)New argument
servicefor SDK init, to add a service name in UserAgent (DAI-12882)Upload big file: fix chunk size calculation if more than 10000 parts (DAI-12669)
Add
utils.human_bytes()to display bytes as human readable (DAI-12669)Add
fieldsparameter inutils.search()andutils.search_generator()Add
flights.describe_uploads_status()(DAI-11598)Add
flights.search_generator()(DAI-11598)Add
flights.update_name()(DAI-11598)Add
flights.update_survey_date()(DAI-11598)Add
flights.update_geodata()(DAI-11598)Add
flights.update_bbox()(DAI-11598)Add
flights.update_status()(DAI-11598)Add
missions.search_generator()(DAI-11598)Add
missions.update_name()(DAI-11598)Add
missions.update_survey_date()(DAI-11598)Add
missions.update_geometry()(DAI-11598)Add
missions.update_bbox()(DAI-11598)Add
missions.compute_bbox()(DAI-11598)Add
missions.create_archive()(DAI-11598)Add
projects.search_generator()(DAI-11598)Add
projects.update_name()(DAI-11598)Add
projects.update_geometry()(DAI-11598)Add
projects.update_bbox()(DAI-11598)Add
projects.compute_bbox()(DAI-11598)Add
projects.update_units()(DAI-11598)Add
projects.update_srs()(DAI-11598)Add
projects.update_local_coordinates_dataset()(DAI-11598)Add
projects.update_location()(DAI-11598)Add “How to upgrade” section in the documentation (DAI-13510)
Deleted¶
Remove legacy
secretargument in SDK init. Useclient_secretinstead.Remove legacy
companyargument inshare_tokens.search(). Usefilterinstead.Replaced
UIServicesAPIby a newProjectManagerAPI(DAI-11598)Delete
missions.complete_survey_upload(): useflights.update_status()instead (DAI-11598)Delete
missions.rename(): usemissions.update_name()instead (DAI-11598)Delete
projects.rename(): useprojects.update_name()instead (DAI-11598)
[1.3.7] - 2022-01-26¶
Changed¶
Fix bug in
sdk.datasets.share_tilesfunction when sharing tiles for several datasets (DAI-13735)Display a warning or raise an exception if too many datasets are requested in
sdk.datasets.share_tiles(DAI-13735)
[1.3.6] - 2022-01-13¶
Changed¶
Use “importlib” instead of “pkg_resources” to retrieve WKT strings (DAI-13330)
Fix failure to parse some timestamps while retrieving products logs (DAI-13266)
[1.3.5] - 2021-12-07¶
Changed¶
Instantiating
SDKusing thesecretargument is deprecated, use theclient_secretargument (DAI-12191)Increase timeout for upload multipart requests (DAI-13066)
Increase timeout for API requests from 30s to 600s (10 min) (DAI-12673)
Added¶
New manager
sdk.oauth_clientsto manage OAuth clients (DAI-12191)New
sdk.featuresandsdk.collectionsresource managers (DAI-13206)Allow
sdk.analytics.order()to order an analytic by name and version (DAI-13133)New
sdk.analytics.describe_by_name()to describe an analytic by name and version (DAI-13133)Method to revoke a token on
TokenManagerclass (DAI-13004)Support
sortparameter insdk.*.search_generator(DAI-12813)
Deleted¶
Support for specifying OAuth client secret in configuration file under the
secretkey has been removed, useclient_secret(DAI-12191)
[1.3.4] - 2021-11-09¶
Changed¶
Do not pass unset parameters for the dataset creation (DAI-12690)
[1.3.3] - 2021-10-20¶
Changed¶
Fix mypy errors (DAI-4205)
Convert all formatted strings to the f-string syntax (DAI-12253)
[1.3.2] - 2021-09-22¶
Changed¶
Use new logo (DAI-11977)
Use type aliases instead of
NewTypeinalteia.core.utils.typing(DAI-11769)Add missing JSON serialization in
describe_token()(DAI-11767)
Added¶
Add an option
force_promptto ask the user to confirm or modify his credentials when instantiating theSDK(DAI-12083)
[1.3.1] - 2021-08-09¶
Changed¶
Set minimum version of
urllib3to 1.26, to fixunexpected keyword argument 'allowed_methods'error (DAI-11501)
[1.3.0] - 2021-07-28¶
Changed¶
sdk.datasets.share_tiles()now supports creating tile URL for multiple raster datasets (DAI-11058)Harmonize
sdk.share_tokens.create()andsdk.share_tokens.search()instance ofResourceclass (DAI-10818)Deprecates
companyargument ofsdk.share_tokens.search()(DAI-10818)Use
allowed_methodsinstead ofmethod_whitelistto remove deprecation warning when instantiating SDK (DAI-11056)sdk.share_tokens.create()now support creating share tokens for multiple datasets (DAI-10782)sdk.share_tokens.search()now support usual API search syntax (DAI-10818)
[1.2.1] - 2021-06-23¶
Changed¶
Fix crash in
products.retrieve_logsif the log timestamps does not contain enough digits for microseconds (DAI-10960)
[1.2.0] - 2021-06-15¶
Changed¶
companyis now required when creating a project withsdk.projects.create()(DAI-10595)
Added¶
Add missing API reference in the documentation (DAI-10294)
Add type hints for every resource implementation (DAI-10041)
Add
py.typedto the package to benefit from mypy type hints (DAI-10041)Add 5 new arrow icons in Icons enum (DAI-10680)
[1.1.0] - 2021-05-17¶
Changed¶
Share token actions don’t use current company anymore (DAI-9417)
projectorcompanyrequired to create a dataset (DAI-9679)companyrequired to create an analytic (DAI-8800)versionrequired to create an analytic (DAI-9746)
Added¶
Add
sdk._connection._token_manager.describe_token()to describe an access token (DAI-10281)Add
sdk.companiesandsdk.usersto search or describe user and companies (DAI-10281)Add
timeoutparameter in providers for get/post/put/delete methods (DAI-10100)
[1.0.4] - 2021-03-31¶
Added¶
Add
keyset_paginationoption in search generator to optimize searches (DAI-8987)
[1.0.3] - 2021-03-30¶
Changed¶
Sort logs chronologically in
products.retrieve_logsto avoid duplicated log entries inproducts.follow_logs(DAI-9522)Sort by
_idinsearch_generatorascreation_datemay be missing sometimes (DAI-9144)
Added¶
Add
sdk.collection_tasks.updateto update a collection task (DAI-9381)Add
sdk.collection_tasks.renameto rename a collection task (DAI-8021)Add
sdk.projects.renameto rename a project (DAI-8021)Add
sdk.collection_tasks.search_generator(DAI-9144)
[1.0.2] - 2021-02-10¶
Changed¶
Fix
sdk.flights.describefunction (DAI-8446)
Added¶
Ability to rename a mission (DAI-8462)
Add search generator in
sdk.annotations(DAI-8446)Add share/unshare an analytic with a company:
sdk.analytics.share,sdk.analytics.unshare(DAI-8746)
[1.0.1] - 2020-12-29¶
Added¶
Add generic search function in
alteia/core/resources(DAI-8219)Add the base url as referear in each request headers (DAI-8283)
[1.0.0] - 2020-12-22¶
Changed¶
Remove dependency to requests-future (DAI-7241)
Update client id and secret (DAI-7978)
Do not require
name='*'when searching for all the projects (DAI-7043)Simplify
Resourceclass (DAI-7043)Several code modifications to improve readability and reduce abstractions (DAI-7043)
Drop support of Python versions < 3.6.1 because they officially reached the end of support deadlines (DAI-7043)
Use poetry for dependency management (DAI-7043)
Fix exception when using
utils.sanitize_dictwith Python 3.8 due to dict keys modified in loop on dict keys (DAI-6572)
Added¶
Support creation/description/deletion/search for carriers
sdk.carriers(DAI-6933)Support creation/description/deletion/search/renaming and setting leader of teams
sdk.teams(DAI-6933)Parameter to specify the access token
scopeat SDK instantiation (DAI-7805)Add
sdk.collection_tasks.create_flight_log(DAI-7165)Support creation/deletion/search of data collection tasks
sdk.collection_tasks(DAI-6863)Support creation/deletion/search of carrier models
sdk.carrier_models(DAI-6863)Add pre-commit hooks for just-in-time code quality checks (DAI-7043)
Add pylint and flake8 linting pipelines (DAI-7043)
Common implementation of search generator for action based APIs (DAI-6925)
Deleted¶
Remove parameter to specify the
domainat SDK instantiation, usescope(DAI-7805)Remove deprecated usage of
nameinsdk.missions.search(DAI-7043)Remove deprecated code in
sdk.annotations(DAI-7043)Remove ResourceBaseManagers (DAI-7043)