Skip to content

Latest commit

 

History

History
213 lines (145 loc) · 6.06 KB

File metadata and controls

213 lines (145 loc) · 6.06 KB

Getting Started

Tag API

Overview

The :class:`.TagManager` class is the primary entry point of the Tag API.

When constructing a :class:`.TagManager`, you can pass an :class:`.HttpConfiguration` (like one retrieved from the :class:`.HttpConfigurationManager`), or let :class:`.TagManager` use the default connection. The default connection depends on your SystemLink Client settings.

With a :class:`.TagManager` object, you can:

If you have a :class:`.TagSelection`, you can use it to :meth:`create <.TagSelection.create_subscription>` a :class:`.TagSubscription` that will trigger a :attr:`~.TagSubscription.tag_changed` event any time one of the tags' values is changed.

Examples

Read and write individual tags

.. literalinclude:: ../examples/tag/read_write_one_tag.py
   :language: python
   :linenos:

Subscribe to tag changes

.. literalinclude:: ../examples/tag/subscribe_to_tag_changes.py
   :language: python
   :linenos:

DataFrame API

Overview

The :class:`.DataFrameClient` class is the primary entry point of the DataFrame API.

When constructing a :class:`.DataFrameClient`, you can pass an :class:`.HttpConfiguration` (like one retrieved from the :class:`.HttpConfigurationManager`), or let :class:`.DataFrameClient` use the default connection. The default connection depends on your environment.

With a :class:`.DataFrameClient` object, you can:

  • Create and delete data tables.
  • Modify table metadata and query for tables by their metadata.
  • Append rows of data to a table, query for rows of data from a table, and decimate table data.
  • Export table data in a comma-separated values (CSV) format.

Examples

Create and write data to a table

.. literalinclude:: ../examples/dataframe/create_write_data.py
   :language: python
   :linenos:

Query and read data from a table

.. literalinclude:: ../examples/dataframe/query_read_data.py
   :language: python
   :linenos:

Export data from a table

.. literalinclude:: ../examples/dataframe/export_data.py
   :language: python
   :linenos:

Spec API

Overview

The :class:`.SpecClient` class is the primary entry point of the Specification Compliance API.

When constructing a :class:`.SpecClient`, you can pass an :class:`.HttpConfiguration` (like one retrieved from the :class:`.HttpConfigurationManager`), or let :class:`.SpecClient` use the default connection. The default connection depends on your environment.

With a :class:`.SpecClient` object, you can:

  • Create and delete specifications under a product.
  • Modify any fields of an existing specification
  • Query for specifications on any fields using DynamicLinq syntax.

Examples

Create and Query Specifications

.. literalinclude:: ../examples/spec/query_specs.py
   :language: python
   :linenos:

Update and Delete Specifications

.. literalinclude:: ../examples/spec/update_and_delete_specs.py
   :language: python
   :linenos:


File API

Overview

The :class:`.FileClient` class is the primary entry point of the File API.

When constructing a :class:`.FileClient`, you can pass an :class:`.HttpConfiguration` (like one retrieved from the :class:`.HttpConfigurationManager`), or let :class:`.FileClient` use the default connection. The default connection depends on your environment.

With a :class:`.FileClient` object, you can:

  • Get the list of files, download and delete files

Examples

Get the metadata of a File using its Id and download it.

.. literalinclude:: ../examples/file/download_file.py
   :language: python
   :linenos:


Result API

Overview

The :class:`.ResultClient` class is the primary entry point of the Result API.

When constructing a :class:`.ResultClient`, you can pass an :class:`.HttpConfiguration` (like one retrieved from the :class:`.HttpConfigurationManager`), or let :class:`.ResultClient` use the default connection. The default connection depends on your environment.

With a :class:`.ResultClient` object, you can:

  • Create, update, query, and delete results

Examples

Create, query, update, and delete some results

.. literalinclude:: ../examples/result/results.py
   :language: python
   :linenos: