shotgun-api3 3.9.1__py2.py3-none-any.whl → 3.9.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- shotgun_api3/shotgun.py +24 -1
- {shotgun_api3-3.9.1.dist-info → shotgun_api3-3.9.2.dist-info}/METADATA +1 -1
- {shotgun_api3-3.9.1.dist-info → shotgun_api3-3.9.2.dist-info}/RECORD +6 -6
- {shotgun_api3-3.9.1.dist-info → shotgun_api3-3.9.2.dist-info}/WHEEL +0 -0
- {shotgun_api3-3.9.1.dist-info → shotgun_api3-3.9.2.dist-info}/licenses/LICENSE +0 -0
- {shotgun_api3-3.9.1.dist-info → shotgun_api3-3.9.2.dist-info}/top_level.txt +0 -0
shotgun_api3/shotgun.py
CHANGED
|
@@ -94,7 +94,7 @@ SHOTGUN_API_DISABLE_ENTITY_OPTIMIZATION = False
|
|
|
94
94
|
|
|
95
95
|
# ----------------------------------------------------------------------------
|
|
96
96
|
# Version
|
|
97
|
-
__version__ = "3.9.
|
|
97
|
+
__version__ = "3.9.2"
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
# ----------------------------------------------------------------------------
|
|
@@ -1882,6 +1882,29 @@ class Shotgun(object):
|
|
|
1882
1882
|
|
|
1883
1883
|
return self._call_rpc("work_schedule_update", params)
|
|
1884
1884
|
|
|
1885
|
+
def export_page(self, page_id, format, layout_name=None):
|
|
1886
|
+
"""
|
|
1887
|
+
Export the specified page to the given format.
|
|
1888
|
+
This method allows you to export a page to CSV.
|
|
1889
|
+
Respective layout or page should be marked as API Exportable in the Flow Production Tracking UI.
|
|
1890
|
+
For more information, see documentation_.
|
|
1891
|
+
.. _documentation: https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_Tutorials_tu_export_csv_html#enable-api-export-for-a-page
|
|
1892
|
+
If ``layout_name`` is not passed in, the default layout name will be used.
|
|
1893
|
+
>>> sg.export_page(12345, "csv", layout_name="My Layout")
|
|
1894
|
+
"ID,Name,Status\\n1,Shot 001,ip\\n2, Shot 002,rev\\n"
|
|
1895
|
+
>>> sg.export_page(12345, "csv")
|
|
1896
|
+
"ID,Name,Status\\n1,Shot 001,ip\\n2,Shot 002,rev\\n"
|
|
1897
|
+
:param int page_id: The ID of the page to export.
|
|
1898
|
+
:param str format: The format to export the page to. Supported format is ``"csv"``.
|
|
1899
|
+
:param str layout_name: Optional layout name. This should be the name of the layout seen in the Flow Production Tracking UI.
|
|
1900
|
+
:returns: string containing data of the given page.
|
|
1901
|
+
:rtype: string
|
|
1902
|
+
"""
|
|
1903
|
+
|
|
1904
|
+
params = dict(format=format, page_id=page_id, layout_name=layout_name)
|
|
1905
|
+
|
|
1906
|
+
return self._call_rpc("export_page", params)
|
|
1907
|
+
|
|
1885
1908
|
def follow(self, user: Dict[str, Any], entity: Dict[str, Any]) -> Dict[str, Any]:
|
|
1886
1909
|
"""
|
|
1887
1910
|
Add the entity to the user's followed entities.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
shotgun_api3/__init__.py,sha256=sjcZn-5eIiTW9XSRVWp_ziuV-7N1E_a-Um8_bWnN0Gk,2192
|
|
2
2
|
shotgun_api3/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
shotgun_api3/shotgun.py,sha256=
|
|
3
|
+
shotgun_api3/shotgun.py,sha256=JqQ6Cjd5S76MxNhJwLzWXzpVt1k0UG_7_cYCA1gaikc,199993
|
|
4
4
|
shotgun_api3/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
shotgun_api3/lib/pyparsing.py,sha256=54nWYMQzZu_Hy9_6Lj8LQGqQLWl4I57o0g2By2eKV-4,273322
|
|
6
6
|
shotgun_api3/lib/sgtimezone.py,sha256=wZsSXq1R2nhtezoWYS6gi_jyuNF2XnBAgfokG0maQdQ,3390
|
|
@@ -20,8 +20,8 @@ shotgun_api3/lib/mockgun/__init__.py,sha256=TxZ__PD9gcayodOWO0v4F1zBOU2a5w2tOlPZ
|
|
|
20
20
|
shotgun_api3/lib/mockgun/errors.py,sha256=BoSgMFKZmknWEGP36fPIaLeUxFt8LaSWBh09So8uIIM,2067
|
|
21
21
|
shotgun_api3/lib/mockgun/mockgun.py,sha256=cGrxPjoJXLHNPt9fhNc7bCiJ8Qz498uLQuka3qhG3Sc,38226
|
|
22
22
|
shotgun_api3/lib/mockgun/schema.py,sha256=sLrgSJC2bNO_wit1f84Xo1IUPvCunP60SpCoxr7w9a4,4875
|
|
23
|
-
shotgun_api3-3.9.
|
|
24
|
-
shotgun_api3-3.9.
|
|
25
|
-
shotgun_api3-3.9.
|
|
26
|
-
shotgun_api3-3.9.
|
|
27
|
-
shotgun_api3-3.9.
|
|
23
|
+
shotgun_api3-3.9.2.dist-info/licenses/LICENSE,sha256=AJTAS7bkObMedmRc5f0ZgWlvoay7p9XkggUQ3odOEeg,2824
|
|
24
|
+
shotgun_api3-3.9.2.dist-info/METADATA,sha256=98p0kfmU1n9t5ncMbGUjlMLzh-HKk16xkjGmekb1JuY,7367
|
|
25
|
+
shotgun_api3-3.9.2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
26
|
+
shotgun_api3-3.9.2.dist-info/top_level.txt,sha256=ySbEY-UvGvCuZYnVDmKpoRC6ROHEuKMppqIjqHHe8T0,13
|
|
27
|
+
shotgun_api3-3.9.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|