Skip to content

Commit d5d5911

Browse files
Merge pull request #6 from Unity-Technologies/release/0.2.0
Release 0.2.0
2 parents a38b129 + 3546979 commit d5d5911

File tree

16 files changed

+1671
-229
lines changed

16 files changed

+1671
-229
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,29 @@ All notable changes to this package will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.0] - 2024-11-19
9+
10+
### Added
11+
- Introduced validation step
12+
- Introduced a confirmation prompt in the console showing the amount of assets and total size in bytes that is going to be uploaded
13+
- Automatic collection creation
14+
- Added strategy one file equal one asset
15+
- In the folder grouping strategy, added an automatic detection of any picture file named "preview", "previews", "thumbanil or "thumbnails" as the asset preview. Picture files in a sub-folder with those name will also be considered previews.
16+
- In the folder grouping strategy, added the capacity to change the depth sub-folder for where to start the grouping.
17+
- Added the capacity to use a csv to map assets and all other steps.
18+
- Added support for metadata for the asset customization.
19+
- Added the Unity Cloud asset source to allow updating metadata and tags of assets in the cloud.
20+
- Added the support for every custom metadata types in the csv file.
21+
22+
### Changed
23+
- Install command now use the pip command to download and install the python SDK.
24+
- Refactored the bulk_upload_cli tool to use a pipeline pattern
25+
- Various user experience and bug fixes
26+
827
## [0.1.0] - 2024-09-04
928

1029
Initial release
1130

1231
Features:
1332
- Source code of `bulk_upload_cli`
14-
- Source code of `bulk_download_script`
33+
- Source code of `bulk_download_script`

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python SDK samples
22

3-
This repository exposes a few samples that demonstrate the use of Python SDK in real life use-cases:
3+
This repository provides several samples that demonstrate the practical application of the Python SDK in real-life use cases:
44

55
- [Bulk Upload CLI](./bulk_upload_cli/README.md)
66
- [Bulk Download script](./bulk_download_script/README.md)
@@ -9,12 +9,11 @@ This repository exposes a few samples that demonstrate the use of Python SDK in
99
1010
## Licenses
1111

12-
The Unity Cloud Python SDK samples are made available under the [Unity ToS license](./LICENSE.md).
12+
The Unity Cloud Python SDK samples are provided under the [Unity ToS license](./LICENSE.md).
1313

1414
## See also
15+
For more information, see the [Unity Cloud Python SDK documentation](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk).
1516

16-
- [Unity Cloud Python SDK documentation](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk)
17+
## Tell us what you think
1718

18-
## Tell us what you think!
19-
20-
Thank you for taking a look at the project! To help us improve and provide greater value, please consider providing feedback in our [Help & Support page](https://cloud.unity.com/home/dashboard-support). Thank you!
19+
Thank you for exploring our project! Please help us improve and deliver greater value by providing your feedback in our [Help & Support page](https://cloud.unity.com/home/dashboard-support). We appreciate your input!

bulk_download_script/README.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,66 @@
11
# Bulk download script
22

3-
The sample script demonstrates how to use Python SDK to download assets from Unity Cloud Asset Manager.
3+
This sample script demonstrates how you can use Python SDK to download assets from Unity Cloud Asset Manager.
44

5-
To connect and find support, join the [Help & Support page](https://cloud.unity.com/home/dashboard-support)!
5+
Find and connect support services on the [Help & Support](https://cloud.unity.com/home/dashboard-support) page.
66

77
## Table of contents
88
- [Bulk download script](#bulk-download-script)
99
- [Table of contents](#table-of-contents)
1010
- [Prerequisites](#prerequisites)
11-
- [System requirements](#system-requirements)
11+
- [Before you start](#before-you-start)
1212
- [Licenses](#licenses)
13-
- [How do I run the sample ?](#how-do-i-run-the-sample-)
14-
- [1. Edit the `bulk_download.py` script with your requirements](#1-edit-the--bulk_downloadpy-script-with-your-requirements)
15-
- [2. Run the script](#2-run-the-script)
13+
- [Run the sample](#run-the-sample)
1614
- [See also](#see-also)
17-
- [Tell us what you think!](#tell-us-what-you-think)
15+
- [Tell us what you think](#tell-us-what-you-think)
1816

1917
## Prerequisites
2018

21-
### System requirements
19+
> **Note**: To download assets from Asset Manager, you need the [`Asset Manager Admin`](https://docs.unity.com/cloud/en-us/asset-manager/org-project-roles#organization-level-roles) role at the organization level or the [`Asset Manager Contributor`]( https://docs.unity.com/cloud/en-us/asset-manager/org-project-roles#project-level-roles) add-on role at the project level. Asset Manager Contributors can update assets only for the specific projects to which they have access.
2220
23-
To run the script, you need:
24-
- Python installed on your machine
21+
### Before you start
22+
23+
Before you download assets from Unity Cloud Asset Manager, make sure you have the following:
24+
25+
- Python installed on your machine.
2526
- An up-to-date Python SDK wheel installed ( > 0.5.0).
26-
- The right permissions to use Asset Manager. See [Get Started with Asset Manager](https://docs.unity.com/cloud/en-us/asset-manager/get-started) for more details.
27-
- A source project with assets manager enable and assets already uploaded in it.
27+
- The required permissions. Read more about [verifying permissions](https://docs.unity.com/cloud/en-us/asset-manager/org-project-roles#verify-your-permissions).
28+
29+
> **Note**: Asset Manager roles define the permissions that you have for a single Asset Manager project. Depending on your work, permissions may vary across projects.
30+
31+
- A Unity Cloud source project with the Asset Manager service enabled to download assets. Read more about [creating a project in Unity Cloud](https://docs.unity.com/cloud/en-us/asset-manager/new-asset-manager-project) page.
32+
33+
- A Unity Cloud source project with asset manager service enabled to download assets and assets already uploaded in it. For more information on how to create a new project on Unity Cloud, see the [Create a new project](https://docs.unity.com/cloud/en-us/asset-manager/new-asset-manager-project) page.
2834

2935
### Licenses
3036

31-
The bulk download sample script is made available under the [Unity ToS license](../LICENSE.md).
37+
The bulk download sample script is provided under the [Unity ToS license](../LICENSE.md).
3238

33-
## How do I run the sample ?
39+
## Run the sample
3440

3541
To run the sample, follow these steps:
3642

37-
### 1. Edit the `bulk_download.py` script with your requirements
38-
39-
In the `main` conditional section, you must edit some information to link the sample to your project.
43+
1. Link the sample to your project by editing the following information in the `main` conditional section of the `bulk_download.py` script.
4044

41-
- org_id: Your organization id.
42-
- project_id: Your project id.
43-
- download_directory: must be edited with the path where the assets will be downloaded.
44-
- overwrite: When set to `True`, the script will overwrite the files in the download directory if they already exist. Otherwise, it will skip the download.
45-
- include_filter/exclude_filter/any_filter: This dictionary contains the search criteria to fetch the assets. Some example are written in comments, otherwise please refer to [the Python SDK documentation](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk/manage-assets#create-filter-for-a-search-query) to learn how to use search criteria.
46-
- collections: This list contains the collections to fetch the assets from. Leave it empty to search through all the assets in the project.
45+
- org_id: Enter your organization ID.
46+
- project_id: Enter your project ID.
47+
- download_directory: Enter the path to the directory where you download the assets.
48+
- overwrite: Set to `True` to overwrite already existing files in the download directory. If you set it to `False`, the script skips the download process for existing files.
49+
- include_filter, exclude_filter, or any_filter: If you want to add include, exclude, or any filters to your request, build them as described in the [Unity Cloud Python SDK](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk/manage-assets#create-filter-for-a-search-query) documentation.
50+
51+
> **Note**: The script contains commented code that shows an example of filter usage to help you with the integration of custom filters. However, these comments do not cover the entire filter creation process. For comprehensive details, see the [Unity Cloud Python SDK](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk/manage-assets#create-filter-for-a-search-query) documentation.
52+
53+
- collections: Fill the `collections` list with the names of those collections from which you want to fetch your assets. Leave the `collections` list empty if you want to search through the whole project.
4754

48-
### 2. Run the script
55+
2. Run the script:
4956

50-
With you favorite command line tool, run `python bulk_download.py` in this folder.
57+
1. Go to the current folder with a command line tool.
58+
2. Run the following command: `python bulk_download.py`.
5159

5260
## See also
5361

54-
- [Unity Cloud Python SDK documentation](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk)
62+
For more information, see the [Unity Cloud Python SDK](https://docs.unity.com/cloud/en-us/asset-manager/python-sdk) documentation.
5563

56-
## Tell us what you think!
64+
## Tell us what you think
5765

58-
Thank you for taking a look at the project! To help us improve and provide greater value, please consider providing feedback in our [Help & Support page](https://cloud.unity.com/home/dashboard-support). Thank you!
66+
Thank you for exploring our project! Please help us improve and deliver greater value by providing your feedback in our [Help & Support](https://cloud.unity.com/home/dashboard-support) page. We appreciate your input!

0 commit comments

Comments
 (0)