-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from pcattori/attributes-module
Attributes module
- Loading branch information
Showing
42 changed files
with
1,408 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# 🐛 Bug Reports & 🙋 Feature Requests | ||
# Submitting Bug Reports and Feature Requests | ||
|
||
Please leave bug reports and feature requests as [Github issues](https://github.com/Datatamer/tamr-client/issues/new/choose) . | ||
Submit bug reports and feature requests as [Github issues](https://github.com/Datatamer/tamr-client/issues/new/choose) . | ||
|
||
--- | ||
|
||
Be sure to check through existing issues (open and closed) to confirm that the bug hasn’t been reported before. | ||
Check through existing issues (open and closed) to confirm that the bug hasn’t been reported before. | ||
|
||
Duplicate bug reports are a huge drain on the time of other contributors, and | ||
should be avoided as much as possible. | ||
If the bug/feature has been submitted already, leave a like 👍 on the Github Issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Attributes | ||
========== | ||
|
||
Attribute | ||
--------- | ||
|
||
.. autoclass:: tamr_client.Attribute | ||
|
||
.. autofunction:: tamr_client.attribute.from_resource_id | ||
.. autofunction:: tamr_client.attribute.to_json | ||
.. autofunction:: tamr_client.attribute.create | ||
.. autofunction:: tamr_client.attribute.update | ||
.. autofunction:: tamr_client.attribute.delete | ||
|
||
Exceptions | ||
^^^^^^^^^^ | ||
|
||
.. autoclass:: tamr_client.ReservedAttributeName | ||
:no-inherited-members: | ||
|
||
.. autoclass:: tamr_client.AttributeExists | ||
:no-inherited-members: | ||
|
||
.. autoclass:: tamr_client.AttributeNotFound | ||
:no-inherited-members: | ||
|
||
AttributeType | ||
------------- | ||
|
||
See https://docs.tamr.com/reference#attribute-types | ||
|
||
.. autodata:: tamr_client.attribute_type.BOOLEAN | ||
.. autodata:: tamr_client.attribute_type.DOUBLE | ||
.. autodata:: tamr_client.attribute_type.INT | ||
.. autodata:: tamr_client.attribute_type.LONG | ||
.. autodata:: tamr_client.attribute_type.STRING | ||
|
||
.. NOTE(pcattori): Manually write docs for complex attribute types | ||
Complex types recursively reference other attribute types or subattributes | ||
sphinx_autodoc_typehints cannot properly parse types recursively | ||
.. class:: tamr_client.attribute_type.Array(inner_type) | ||
|
||
:param inner_type: | ||
:type inner_type: :class:`~tamr_client.AttributeType` | ||
|
||
.. class:: tamr_client.attribute_type.Map(inner_type) | ||
|
||
:param inner_type: | ||
:type inner_type: :class:`~tamr_client.AttributeType` | ||
|
||
.. class:: tamr_client.attribute_type.Record(attributes) | ||
|
||
:param attributes: | ||
:type attributes: :class:`~typing.Tuple` [:class:`~tamr_client.SubAttribute`] | ||
|
||
.. autofunction:: tamr_client.attribute_type.from_json | ||
.. autofunction:: tamr_client.attribute_type.to_json | ||
|
||
Type aliases | ||
^^^^^^^^^^^^ | ||
|
||
.. autodata:: tamr_client.attribute_type_alias.DEFAULT | ||
.. autodata:: tamr_client.attribute_type_alias.GEOSPATIAL | ||
|
||
SubAttribute | ||
------------ | ||
|
||
.. class:: tamr_client.SubAttribute(name, type, is_nullable, description=None) | ||
|
||
:param name: | ||
:type name: :class:`str` | ||
:param type: | ||
:type type: :class:`~tamr_client.AttributeType` | ||
:param is_nullable: | ||
:type is_nullable: :class:`bool` | ||
:param description: | ||
:type description: :class:`~typing.Optional` [:class:`str`] | ||
|
||
.. autofunction:: tamr_client.subattribute.from_json | ||
.. autofunction:: tamr_client.subattribute.to_json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Datasets | ||
======== | ||
|
||
Dataset | ||
------- | ||
|
||
.. autofunction:: tamr_client.dataset.attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[mypy] | ||
mypy_path = ./stubs | ||
check_untyped_defs = True | ||
ignore_errors = False | ||
namespace_packages = True | ||
strict_optional = True | ||
warn_unused_ignores = True | ||
warn_redundant_casts = True | ||
warn_unused_configs = True |
Oops, something went wrong.