Mercurial > pyshada
view images/integrate-python-shell.svg @ 15:df271f46caad REL_0_9_0
Diagram for concept of integrating Pyton code to Shell
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 29 Mar 2011 15:47:49 +0800 |
parents | |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="744.09448819" height="1052.3622047" id="svg2" version="1.1" inkscape:version="0.48.1 r9760" sodipodi:docname="integrate-python-shell.svg"> <defs id="defs4" /> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.65091659" inkscape:cx="372.04724" inkscape:cy="526.18109" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" inkscape:window-width="1440" inkscape:window-height="900" inkscape:window-x="-1" inkscape:window-y="-1" inkscape:window-maximized="0" /> <metadata id="metadata7"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> <dc:title></dc:title> </cc:Work> </rdf:RDF> </metadata> <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1"> <g id="g3047" inkscape:export-filename="/usr/home/thinker/progm/pyshada/images/integrate-python-shell.png" inkscape:export-xdpi="400" inkscape:export-ydpi="400"> <rect inkscape:bbox-height="157.45061" inkscape:bbox-width="169.74097" inkscape:bbox-y="798.49923" inkscape:bbox-x="38.033129" inkscape:transform-center-y="0" inkscape:transform-center-x="0" y="97.044807" x="38.665592" height="156.18568" width="168.47604" id="rect2985" style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.26492572" /> <text inkscape:bbox-height="13.658203" inkscape:bbox-width="119.91602" inkscape:bbox-y="909.53784" inkscape:bbox-x="82.708801" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text2987" y="124.4399" x="55.306629" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="13.658203" inkscape:bbox-width="119.91602" inkscape:bbox-y="909.53784" inkscape:bbox-x="82.708801" y="124.4399" x="55.306629" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan2989" sodipodi:role="line">Python process</tspan></text> <rect inkscape:bbox-height="85.496227" inkscape:bbox-width="151.55693" inkscape:bbox-y="807.59126" inkscape:bbox-x="47.125151" inkscape:transform-center-y="0" inkscape:transform-center-x="0" y="159.82631" x="47.676769" height="84.39299" width="150.45369" id="rect2991" style="fill:#aa8800;fill-opacity:1;stroke:#000000;stroke-width:1.10323703" /> <text inkscape:bbox-height="28.136719" inkscape:bbox-width="117.3457" inkscape:bbox-y="853.57935" inkscape:bbox-x="75.278465" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text2993" y="181.28284" x="58.379219" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="12.482422" inkscape:bbox-width="116.7168" inkscape:bbox-y="869.23364" inkscape:bbox-x="75.907372" y="181.28284" x="58.379219" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan2995" sodipodi:role="line">def lineno(....):</tspan><tspan id="tspan2997" inkscape:bbox-height="2.6455078" inkscape:bbox-width="50.018555" inkscape:bbox-y="853.57935" inkscape:bbox-x="75.278465" y="198.78284" x="58.379219" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:role="line"> ......</tspan></text> <rect inkscape:bbox-height="157.45061" inkscape:bbox-width="169.74097" inkscape:bbox-y="796.96294" inkscape:bbox-x="357.5825" inkscape:transform-center-y="0" inkscape:transform-center-x="0" y="98.5811" x="358.21497" height="156.18568" width="168.47604" id="rect2985-7" style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.26492572" /> <text inkscape:bbox-height="13.548828" inkscape:bbox-width="103.43457" inkscape:bbox-y="926.54647" inkscape:bbox-x="420.41345" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text3019" y="124.4399" x="391.75525" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="13.548828" inkscape:bbox-width="103.43457" inkscape:bbox-y="926.54647" inkscape:bbox-x="420.41345" y="124.4399" x="391.75525" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan3021" sodipodi:role="line">Shell process</tspan></text> <text inkscape:bbox-height="14" inkscape:bbox-width="124.18848" inkscape:bbox-y="850.87834" inkscape:bbox-x="366.81403" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text3023" y="185.89172" x="382.53751" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="14" inkscape:bbox-width="124.18848" inkscape:bbox-y="850.87834" inkscape:bbox-x="366.81403" y="185.89172" x="382.53751" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan3025" sodipodi:role="line">ls -l | $py lineno</tspan></text> <path inkscape:bbox-height="27.96141" inkscape:bbox-width="151.55692" inkscape:bbox-y="942.78522" inkscape:bbox-x="206.89985" inkscape:transform-center-y="0" inkscape:transform-center-x="0" inkscape:connector-curvature="0" id="path3027" d="m 207.39985,109.07696 c 67.59698,-56.842925 150.55692,-6.14518 150.55692,-6.14518" style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <text inkscape:bbox-height="13.644531" inkscape:bbox-width="90.890625" inkscape:bbox-y="943.33633" inkscape:bbox-x="261.77173" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text3029" y="109.07697" x="239.66203" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="13.644531" inkscape:bbox-width="90.890625" inkscape:bbox-y="943.33633" inkscape:bbox-x="261.77173" y="109.07697" x="239.66203" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan3031" sodipodi:role="line">os.system()</tspan></text> <path transform="translate(193.57319,-241.19834)" inkscape:bbox-height="14.565681" inkscape:bbox-width="16.513626" inkscape:bbox-y="947.39411" inkscape:bbox-x="343.47944" inkscape:transform-center-y="-2.1739552" inkscape:transform-center-x="0.075337004" d="m 165.91988,345.66641 -15.51363,-0.26097 7.98283,-13.30471 z" inkscape:randomized="0" inkscape:rounded="0" inkscape:flatsided="true" sodipodi:arg2="1.5876171" sodipodi:arg1="0.5404195" sodipodi:r2="4.4790316" sodipodi:r1="8.9580631" sodipodi:cy="341.05753" sodipodi:cx="158.2384" sodipodi:sides="3" id="path3033" style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1" sodipodi:type="star" /> <rect inkscape:bbox-height="22.508133" inkscape:bbox-width="90.105118" inkscape:bbox-y="859.82529" inkscape:bbox-x="425.05377" inkscape:transform-center-y="0" inkscape:transform-center-x="0" y="170.52876" x="425.55377" height="21.508133" width="89.105118" id="rect3035" style="fill-opacity:1;stroke:#800000;stroke-width:1.5;fill:none" /> <path inkscape:bbox-height="67.043276" inkscape:bbox-width="286.7509" inkscape:bbox-y="798.3909" inkscape:bbox-x="188.4643" inkscape:transform-center-y="0" inkscape:transform-center-x="0" inkscape:connector-curvature="0" id="path3037" d="M 474.7152,193.57319 C 367.17454,331.83975 188.9643,187.42801 188.9643,187.42801" style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> <path transform="translate(32.262198,-162.84729)" inkscape:bbox-height="17.465648" inkscape:bbox-width="17.987598" inkscape:bbox-y="853.12877" inkscape:bbox-x="184.01708" inkscape:transform-center-y="1.5362952" inkscape:transform-center-x="-0.9739721" d="m 168.99248,348.73899 -11.16572,12.59171 -5.32188,-15.96564 z" inkscape:randomized="0" inkscape:rounded="0" inkscape:flatsided="true" sodipodi:arg2="0.725447" sodipodi:arg1="-0.32175055" sodipodi:r2="4.858192" sodipodi:r1="9.7163839" sodipodi:cy="351.81158" sodipodi:cx="159.7747" sodipodi:sides="3" id="path3039" style="fill:#000000;stroke:#000000;stroke-width:1.5" sodipodi:type="star" /> <text inkscape:bbox-height="29.435547" inkscape:bbox-width="200.07422" inkscape:bbox-y="761.6391" inkscape:bbox-x="226.43697" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:linespacing="125%" id="text3041" y="271.92426" x="225.8354" style="font-size:14px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve"><tspan inkscape:bbox-height="10.834961" inkscape:bbox-width="149.61133" inkscape:bbox-y="780.23969" inkscape:bbox-x="226.43697" y="271.92426" x="225.8354" inkscape:transform-center-y="0" inkscape:transform-center-x="0" id="tspan3043" sodipodi:role="line">call lineno function</tspan><tspan id="tspan3045" inkscape:bbox-height="11.935547" inkscape:bbox-width="200.07422" inkscape:bbox-y="761.6391" inkscape:bbox-x="226.43697" y="289.42426" x="225.8354" inkscape:transform-center-y="0" inkscape:transform-center-x="0" sodipodi:role="line">also redirect stdin/stdout</tspan></text> </g> </g> </svg>