doc-exports/docs/fg/umn/functiongraph_03_0886.html
Chen, Junjie dac566cf2f FG UMN 20230725 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-03 10:30:56 +00:00

140 lines
12 KiB
HTML

<a name="functiongraph_03_0886"></a><a name="functiongraph_03_0886"></a>
<h1 class="topictitle1">What Dependencies Does FunctionGraph Support?</h1>
<div id="body0000001514216453"><p id="functiongraph_03_0886__p7451785119"><strong id="functiongraph_03_0886__b1988791134915">Supported Dependencies</strong></p>
<p id="functiongraph_03_0886__p16615022172715">FunctionGraph supports standard libraries and third-party dependencies.</p>
<ul id="functiongraph_03_0886__ul43795614143652"><li id="functiongraph_03_0886__li3549028143652">Standard libraries<p id="functiongraph_03_0886__p17781284144455"><a name="functiongraph_03_0886__li3549028143652"></a><a name="li3549028143652"></a>When using standard libraries, you can import them to your inline code, or package and upload them to FunctionGraph.</p>
</li><li id="functiongraph_03_0886__li37689144451">Supported non-standard libraries<p id="functiongraph_03_0886__p35942680143727"><a name="functiongraph_03_0886__li37689144451"></a><a name="li37689144451"></a>FunctionGraph provides built-in third-party components, as described in <a href="#functiongraph_03_0886__table143351951242">Table 1</a> and <a href="#functiongraph_03_0886__table39721459145614">Table 2</a>. You can import these components to your inline code in the same way as you import standard libraries.</p>
<div class="tablenoborder"><a name="functiongraph_03_0886__table143351951242"></a><a name="table143351951242"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_03_0886__table143351951242" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Third-party components integrated with the Node.js runtime</caption><thead align="left"><tr id="functiongraph_03_0886__row15336557411"><th align="left" class="cellrowborder" valign="top" width="28.532853285328528%" id="mcps1.3.3.2.2.2.4.1.1"><p id="functiongraph_03_0886__p1033655643">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="38.133813381338136%" id="mcps1.3.3.2.2.2.4.1.2"><p id="functiongraph_03_0886__p233635143">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.2.2.4.1.3"><p id="functiongraph_03_0886__p1733612515413">Version</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_03_0886__row113361153412"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p1336195243">q</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p12336151410">Asynchronous method encapsulation</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p18336851148">1.5.1</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row33369511419"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p123366511415">co</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p17336751942">Asynchronous process control</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p173361651142">4.6.0</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row103361751945"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p833614510419">lodash</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p1633611514410">Common tool and method library</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p14336457412">4.17.10</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row10336550412"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p93361251844">esdk-obs-nodejs</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p143361453415">OBS sdk</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p203383519412">2.1.5</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row99017489112"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p441934817265">express</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p1141984892615">Simplified web-based application development framework</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p1341974802613">4.16.4</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row6439151514"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p5572124552610">fgs-express</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p17572104515268">Provides a Node.js application framework for FunctionGraph and APIG to run serverless applications and REST APIs. This component provides an example of using the Express framework to build serverless web applications or services and RESTful APIs.</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p357334510265">1.0.1</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row74216551117"><td class="cellrowborder" valign="top" width="28.532853285328528%" headers="mcps1.3.3.2.2.2.4.1.1 "><p id="functiongraph_03_0886__p194242051192617">request</p>
</td>
<td class="cellrowborder" valign="top" width="38.133813381338136%" headers="mcps1.3.3.2.2.2.4.1.2 "><p id="functiongraph_03_0886__p0424195115262">Simplifies HTTP invocation and supports HTTPS and redirection.</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.2.2.4.1.3 "><p id="functiongraph_03_0886__p1942410516269">2.88.0</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="functiongraph_03_0886__table39721459145614"></a><a name="table39721459145614"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_03_0886__table39721459145614" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Non-standard libraries supported by the Python runtime</caption><thead align="left"><tr id="functiongraph_03_0886__row38504252145614"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.3.2.4.1.1"><p id="functiongraph_03_0886__p18095115145614">Module</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.3.2.4.1.2"><p id="functiongraph_03_0886__p56418216145614">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.3.2.4.1.3"><p id="functiongraph_03_0886__p6472802145614">Version</p>
</th>
</tr>
</thead>
<tbody><tr id="functiongraph_03_0886__row27527076145614"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p61556839145835">dateutil</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p20048058145835">Date and time processing</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p13280010145835">2.6.0</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row31269908145614"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p20787913145835">requests</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p6099393145835">HTTP library</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p21238847145835">2.7.0</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row49919776145614"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p2253865145835">httplib2</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p48345381145835">httpclient</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p23661785145835">0.10.3</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row62147669142314"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p37098266142327">numpy</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p12907260142336">Mathematical computation</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p25505478142347">1.13.1</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row14959080145614"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p56491286145835">redis</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p12391471145835">Redis client</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p31607657145835">2.10.5</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row51131826145614"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p35946515145835">obsclient</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p25986613145835">OBS client</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p41658471145835">-</p>
</td>
</tr>
<tr id="functiongraph_03_0886__row67511052536"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.1 "><p id="functiongraph_03_0886__p20456111512267">smnsdk</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.2 "><p id="functiongraph_03_0886__p14527042152416">SMN access</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.3.2.4.1.3 "><p id="functiongraph_03_0886__p5530154219246">1.0.1</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="functiongraph_03_0886__ul2307043014379"><li id="functiongraph_03_0886__li3961345914379">Other third-party libraries<p id="functiongraph_03_0886__p13086888114225"><a name="functiongraph_03_0886__li3961345914379"></a><a name="li3961345914379"></a>For other third-party libraries not listed in the preceding tables, package and upload them to an OBS bucket or on the function details page. For details, see <a href="functiongraph_03_0888.html">How Do I Create a Dependency on the FunctionGraph Console?</a> These libraries will then be used in your function code.</p>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_03_0883.html">Dependency Management FAQs</a></div>
</div>
</div>