Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into feature/textanalytics5.2

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  fix cog preparer (#15454)
  [text analytics] update changelog and classifiers (#15452)
  Some README tweaks (#15449)
  Re-Add ChangeLog Verification with packaging installed (#15373)
  • Loading branch information
iscai-msft committed Nov 19, 2020
2 parents e4c489d + 62fdd23 commit f650444
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 14 deletions.
13 changes: 6 additions & 7 deletions eng/pipelines/templates/stages/archetype-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ stages:
workingDirectory: $(Build.SourcesDirectory)
filePath: eng/scripts/SetTestPipelineVersion.ps1
arguments: '-BuildID $(Build.BuildId)'
# TEMPORARILY DISABLING 11/16. Will re-enable after patch to common tooling.
# - ${{if ne(artifact.skipVerifyChangeLog, 'true')}}:
# - template: /eng/common/pipelines/templates/steps/verify-changelog.yml
# parameters:
# PackageName: ${{artifact.name}}
# ServiceName: ${{parameters.ServiceDirectory}}
# ForRelease: true
- ${{if ne(artifact.skipVerifyChangeLog, 'true')}}:
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- template: /eng/pipelines/templates/steps/stage-filtered-artifacts.yml
parameters:
SourceFolder: ${{parameters.ArtifactName}}
Expand Down
1 change: 1 addition & 0 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=con

function Get-python-PackageInfoFromRepo ($pkgPath, $serviceDirectory, $pkgName)
{
pip install packaging==20.4 -q -I
$pkgName = $pkgName.Replace('_', '-')
if (Test-Path (Join-Path $pkgPath "setup.py"))
{
Expand Down
24 changes: 19 additions & 5 deletions sdk/tables/azure-data-tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,28 @@ use of a dedicated client object.

### Clients
Two different clients are provided to interact with the various components of the Table Service:
1. `TableServiceClient` -
1. **`TableServiceClient`** -
this client represents interaction with the Azure account itself, and allows you to acquire preconfigured
client instances to access the tables within. It provides operations to retrieve and configure the account
properties as well as query, create, and delete tables within the account. To perform operations on a specific table,
retrieve a client using the `get_table_client` method.
2. `TableClient` -
2. **`TableClient`** -
this client represents interaction with a specific table (which need not exist yet). It provides operations to
create, delete, or update a table and includes operations to query, get, and upsert entities
within it.

### Entities
Entities are similar to rows. An entity has a primary key, a row key and a set of properties. A property is a name value pair, similar to a column.
Entities are similar to rows. An entity has a **`PartitionKey`**, a **`RowKey`** and a set of properties. A property is a name value pair, similar to a column.
Entities can be represented as dictionaries like this as an example:
```python
entity = {
'PartitionKey': 'color',
'RowKey': 'brand',
'text': 'Marker',
'color': 'Purple',
'price': '5'
}
```
* **Create** - Adds an entity to the table.
* **Delete** - Deletes an entity from the table.
* **Update** - Updates an entities information by either merging or replacing the existing entity.
Expand Down Expand Up @@ -179,9 +189,13 @@ table_service_client.create_table(table_name="myTable")
Create entities in the table

```python
from azure.data.tables import TableClient
from azure.data.tables import TableServiceClient

my_entity = {'PartitionKey':'part','RowKey':'row'}
table_client = TableClient.from_connection_string(conn_str="<connection_string>", table_name="myTable")

table_service_client = TableServiceClient.from_connection_string(conn_str="<connection_string>")
table_client = table_service_client.get_table_client(table_name="myTable")

entity = table_client.create_entity(entity=my_entity)
```

Expand Down
6 changes: 5 additions & 1 deletion sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release History

## 5.1.0b3 (Unreleased)
## 5.1.0b3 (2020-11-19)

**New Features**
- We have added method `begin_analyze`, which supports long-running batch process of Named Entity Recognition, Personally identifiable Information, and Key Phrase Extraction. To use, you must specify `api_version=TextAnalyticsApiVersion.V3_1_PREVIEW_3` when creating your client.
- We have added method `begin_analyze_healthcare`, which supports the service's Health API. Since the Health API is currently only available in a gated preview, you need to have your subscription on the service's allow list, and you must specify `api_version=TextAnalyticsApiVersion.V3_1_PREVIEW_3` when creating your client.


## 5.1.0b2 (2020-10-06)
Expand Down
1 change: 1 addition & 0 deletions sdk/textanalytics/azure-ai-textanalytics/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def create_resource(self, name, **kwargs):
def remove_resource(self, name, **kwargs):
if self.is_live:
group = self._get_resource_group(**kwargs)
self.client.accounts.delete(group.name, name, polling=False)
self.client.accounts.delete(group.name, name)

def _get_resource_group(self, **kwargs):
try:
Expand Down

0 comments on commit f650444

Please sign in to comment.