Releases: up42/up42-py
Releases · up42/up42-py
V2.2.0
What's Changed
Added
- Validate process exists after
JobTemplate
initialisation - Added sorting fields to
QuotationSorting
. - Added
region
as an optional input type tobase::authenticate
with the possible values beingeu
andsa
- When authenticating the region gets set globally and used in
host::user_info_endpoint
,host::token_endpoint
,host::endpoint
accordingly - Added
up42
property topystac::Item
andpystac::Collection
to get and set UP42 STAC extensions data. - Added
update
extension method topystac::Item
. - Publish
stac_client
function toup42
namespace. - Added
file
property toAsset
class to unify withpystac::Asset
experience. - Use unauthenticated session for signed url image file in
FileProvider
module withFileProvider
class. - Experiment
stac
module withFileProvider
descriptor forpystac::Asset
. - Added STAC object dynamic extension on
up42
import. - Added
Asset::save
method. - Added model fields to
Asset
class. - Added coverage for
Asset::all
method. - Exported
AssetSorting
toup42
namespace. - Enabled access to authenticated image files via extraction session to a parameter.
- Generalized downloadable images to
ImageFile
inutils
module. - Added
quicklook
property toScene
class. - Added
is_host
property toProvider
class. - Added
search
method toProvider
class. - Added
schema
property toDataProduct
class. - Added
Quotation
active record totasking
module. - Exported
Quotation
andQuotationSorting
toup42
namespace. - Added
order_template
module withBatchOrderTemplate
and supporting classes. - Add missing properties to
Order
data class and auxiliary classes. - Introduced
Order::all
method to filter and list orders. - Added
Order::get
class method as part of conversion to active record pattern. - Added
Order::track
method.
Changed
- Adjust
Provider::search
to allowstart_date
andend_date
, combine them and add to payload as datetime - Adjust
Order
representation to remove redundant fields. - Adjust
BatchOrderTemplate
to exclude tags from the payload when not provided, preventing400 Bad Request
errors from the API. - Update
AssetSorting
with possible sorting fields - Adjust
FileProvider::_get_
to check href url that starts with the current region base api url. - Updated feasibility endpoint URL.
- Relax dependency constraint to allow geopandas 1.0.1.
- Switched to using stac client descriptor in
Asset
class and reduced duplication. - Made
BatchOrderTemplate::tags
optional. - Converted
Asset
to a data class withget
andall
methods. - Simplified
Catalog::download_quicklooks
to useImageFile
class internally. - Simplified
CatalogBase::estimate_order
to a static method. - Simplified
CatalogBase::place_order
to a class method. - Modified
Storage::get_orders
testing to eliminate dependency on order data. - Modified
up42::initialize_order
testing to eliminate dependency on order data. - Modified
CatalogBase::place_order
testing to eliminate dependency on order data. - Converted
Order
to dataclass. - Extended
Order::order_details
to cover archive orders as well.
Deprecated
- Deprecated
Asset::download
method in favour ofAsset.file::download
. - Deprecated
Asset::download_stac_asset
in favour ofpystac::Asset.file::download
. - Deprecated
Asset::get_stac_asset_url
in favour ofpystac::Asset.file.url
. - Deprecated
up42::initialize_tasking
. - Deprecated
Tasking::get_feasibility
. - Deprecated
Tasking::choose_feasibility
. - Deprecated
Asset::update_metadata
in favour ofpystac::Item.update
. - Deprecated
Asset.asset_id
in favour ofAsset.id
. - Deprecated
up42::initialize_catalog
since allCatalog
andCatalogBase
methods are deprecated. - Deprecated
Storage::get_assets
in favour ofAsset::all
. - Deprecated
up42::initialize_asset
in favour ofAsset::get
. - Deprecated
up42::initialize_storage
. - Deprecated
Catalog::download_quicklooks
in favour ofProvider::search
. - Deprecated
Catalog::construct_search_parameters
in favour ofProvider::search
. - Deprecated
Catalog::search
in favour ofProvider::search
. - Deprecated
Tasking::get_quotations
in favour ofQuotation::all
. - Deprecated
Tasking::decide_quotation
in favour ofQuotation
class methods. - Deprecated
Tasking.construct_order_parameters
in favour ofBatchOrderTemplate
. - Deprecated
Catalog.construct_order_parameters
in favour ofBatchOrderTemplate
. - Deprecated
CatalogBase::estimate_order
in favour ofBatchOrderTemplate.estimate
. - Deprecated
CatalogBase::place_order
in favour ofBatchOrderTemplate::place
. - Deprecated
Order::estimate
in favour ofBatchOrderTemplate.estimate
. - Deprecated
Order::place
in favour ofBatchOrderTemplate::place
. - Deprecated
CatalogBase::get_data_product_schema
in favour ofDataProduct.schema
. - Deprecated
up42::initiliaze_order
in favour ofOrder::get
. - Deprecated
Order.order_id
in favour ofOrder.id
. - Deprecated
Order.order_details
in favour ofOrder.details
. - Deprecated
Storage::get_orders
method. - Deprecated
Order::track_status
method.
Removed
- Remove deprecated viz dependencies.
- Reduced test dependencies on
Asset
structure. - Dropped eager loading of
Order::info
. - Dropped
Order::__repr__
in favour of native dataclass implementation.
Fixed
- Fix authenticated download in
Catalog::download_quicklooks
. - Fixed
Order::place
method to retrieve order info via additional call and not from response.
V2.1.1
What's Changed
Changed
- Restore accepting string instead of enum in Storage::get_orders.
- Improve coverage for Tasking::decide_quotation.
- Improve coverage for Tasking::get_feasibility.
- Improve coverage for Tasking::choose_feasibility.
- Updating endpoint for base::get_credits_balance.
- Switched workspace id retrieval from the deprecated endpoint to the user info endpoint.
- Added requesting openid scope when retrieving token.
- Move tests/fixtures/fixtures_globals.py to tests/constants.py.
- Move collection_credentials from auth.py to client.py.
- Switched to base descriptors in Storage class and drop the dependencies from auth.py module.
Fixed
- Fixed bug with passing enum entries instead of values in Storage::get_orders.
- Fixed Catalog::construct_search_parameters limit description in the documentation.
- Fixed paging bug for case of empty response.
- Fixed confusing name for type FeasibilityDecision to FeasibilityStatus.
- Fixed test coverage for Tasking::get_quotations.
- Fixed test coverage for Tasking::construct_order_parameters.
- Fixed types of Asset::asset_id and Asset::_get_info.
- Unified paging between Order, Tasking and Storage classes.
Removed
- Drop process template DetectionTreesHeightsSpacept.
- Dropped limiting false statuses in Storage::get_orders since the type hinting is enabled.
- Dropped failing wrong sortby value in Storage::get_orders since the type hinting is enabled.
- Dropped Tasking::auth property.
- Dropped legacy auth.py.
- Dropped legacy fixtures for storage test coverage.
- Dropped asset_searcher.py module.
- Dropped unused Auth::request and the corresponding test coverage.
- Dropped unneeded Storage::repr.
- Dissolve auth.Auth in _Workspace::authenticate.
Full Changelog: v2.1.0...v2.1.1
V.2.1.0
What's Changed
- Improve order test coverage by @javidq in #669
- improve order test coverage - track_status, estimate, and place methods by @andher1802 in #668
- [PT-5591] Switching Asset to use session descriptor by @andher1802 in #670
- PT-5591 Order get_assets to add BEING_FULLFILLED by @andher1802 in #667
- [PT-5597] Remove and inline utils::autocomplete_order_parameters by @andher1802 in #672
- [PT-5597] Fix test for
CatalogBase
by @andher1802 in #673 - [PT-5597] Fixing test for catalog class by @andher1802 in #671
- [PT-5597] moving estimate_order to CatalogBase by @andher1802 in #677
- Improve CatalogBase class by @javidq in #678
Full Changelog: v2.0.1...v2.1.0
V2.0.1
What's Changed
-
[PT-5505] ProductGlossary V2 get_collections by @andher1802 in #656
-
[PT-5547] Moved ProductGlossary to glossary.py by @javidq in #661
-
V.2.0.0 by @andher1802 in #662
-
BUGFIX Switch glossary::IntegrationValue to Literal by @andher1802 in #663
-
V.2.0.1 by @andher1802 in #666
Full Changelog: v1.1.1...v2.0.1
V1.1.1
Changes
- Added EULA acceptance check to processing job templates.
- Added EULA related statuses to processing jobs.
- Added various failure statuses to job tracking stop list.
- Added session descriptor to
CatalogBase
. - Deprecated
get_data_products
method inCatalogBase
class. - Extract
CollectionType
type alias. - Extract
ProductGlossary
incatalog.py
. - Provide type hints for
ProductGlossary
methods. - Switch to new token endpoint in
auth.py
andoauth.py
.
Fixes
- Fix type hint for
get_webhook_events
.
Improvements
- Drop unused return_text parameter in
Auth::request
. - Improve test coverage for
Catalog::search
. - Improve
Catalog::download_quicklooks
code. - Improve test coverage for Catalog::download_quicklooks type alias.
- Reduce the usage
auth::request
in base.py. - Simplify the usage of
get_data_products
inCatalogBase
. - Simplify pagination in
Catalog::search
code. - Use token duration information from token data instead of static configuration.
- Use expiry offset to refresh token 30s earlier.
Dependencies:
- Bumped dependencies
certifi
from 2024.2.2 to 2024.7.4. - Bumped dependencies
setuptools
from 69.1.1 to 70.0.0. - Bumped dependencies
urllib
from 2.2.1 to 2.2.2. - Bumped dependencies
zipp
from 3.17.0 to 3.19.1.
Full Changelog: v1.1.0...v1.1.1
1.1.0
What's Changed
Job
,JobSorting
andJobStatus
classes now available inup42
namespace.- Change default created and credits ordering as descending.
- Change default status ordering to descending.
- Rename
templates.py
toprocessing_templates.py
.
Fixes
- Fix multiple process id value query parameter to use concatenation with commas.
- Fix multiple status value query parameter to use concatenation with commas.
- Fix processing job tracking to wait until credits are captured or released.
- Fix missing process ids for processing templates.
Improvements
- Trim off milliseconds in job metadata timestamps to avoid rounding errors.
- Trim nanoseconds in job metadata timestamps since not supported by native Python datetime.
- Update processing template names.
- Add missing
workspace_id
query param to job execution. - Convert relative paths in processing job page links to absolute ones.
Full Changelog: v1.0.4...v1.1.0
1.0.4
New Features
Processing Module:
- Introduced the
Job
class for interacting with processing jobs. - Implemented job querying capabilities (processing.py).
- Added a collection attribute to the
Job
class. - Introduced processing job tracking.
Job Templates:
- Created basic single and multi-item processing job templates in templates.py.
- Enabled job template execution (templates.py).
- Added specialized templates for
SpaceptAugmentation
,NSUpsamling
, andPansharpening
. - Added cost evaluation to the JobTemplate class (number comparison).
- Implemented
SingleItemJobTemplate
andMultiItemJobTemplate
helper classes.
Improvements
Base Module (formerly main):
- Renamed the
main
module tobase
for clarity. - Added descriptors:
Session
,WorkspaceId
, andStacClient
tobase
module for improved access within classes.
Webhooks:
- Refactored webhooks as active records.
- Consolidated webhook code into a dedicated module/class.
- Enhanced test coverage for webhooks.
- Deprecated legacy webhook code.
Dependencies:
- Updated requests to 2.32.0.
- Relaxed geopandas version constraint to < 1.
- Upgraded tornado to 6.4.1.
Bugfixes:
- Enabled deep copy in Up42Auth for compatibility.
- Fix
tenacity not Found
Error by upgradingtenacity
dependency. - Removed deprecated Catalog::construct_parameters method.
Full Changelog: v1.0.3...v1.0.4
1.0.3
What's Changed
- Improve stac resilience by @javidq in #611
- Added
tenacity
as dependency. - Added resilience on
asset::stac_info
andasset::stac_items
- Dropped
pystac
client subclassing - Cleaned up fixtures
- Improved test coverage
- Dropped unneeded exposure of token
Full Changelog: v1.0.2...v1.0.3
1.0.2
1.0.1
What's Changed
- Increased retries and backoff in http resilience.
- Fixed bug with temporary storage overfill when downloading archives.
- Bumped dependencies jinja2, tqdm, geojson.
New Contributors
- @up42-backstage made their first contribution in #592
Full Changelog: v1.0.0...v1.0.1