
    Mg	                     :    S SK J r   \ " S5       " S S5      5       rg)    )plugin	speedconvc                   B    \ rS rSrSr/ SQrSSSSSS.rS	 rS
 rS r	Sr
g)r      a  
speedconv is a speed converter.
The supported input speed measurement units are:
    m/s  : meter per second
    km/h : kilometer per hour
    ft/s : foot per second
    mi/h : miles per hour
    kn   : knot
    use the abreviated forms for input
    for instance m/s for meter per second
First you enter the value you want to convert.
Second you enter the speed unit of the current value.
And then you enter to which speed unit you want to convert to.
The program shows the conversion
)zm/szkm/hzft/szmi/hkng      ?g'c`?gׁ?g> M?gsCSv?c                 F   UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        UR                  S5        S	nU(       aW  UR                  S
5      nU R                  US5      nU R                  US5      nXV:w  a  SnOUR                  S5        U(       a  MW  U R                  WWW5      n[	        US5      nUR                  [        U5      5        g )NzThe supported units are:zm/s  : meter per second zkm/h : kilometer per hourzft/s : foot per secondzmi/h : miles per hourzkn   : knotz"use the abreviated forms for inputz%for instance m/s for meter per secondTzvalue to convert : zfrom which unit : zto which unit : FzPlease enter different units   )sayinput_numberunits_inputconvert_speedroundstr)selfjarvissflagvalunit_inunit_outconvertedvals           @/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/speed_conv.py__call__speedconv.__call__!   s    

-.

-.

./

+,

*+

=!

78

:;%%&;<C&&v/CDG''0BCH#

9: d ))#wA\1-

3|$%    c                 D    XR                   U   -  U R                   U   -  $ )N)conv_to_mpers)r   valueinsideouts       r   r   speedconv.convert_speed=   s&    ))&11D4F4Fs4KKKr   c                 l     UR                  U5      R                  5       nX0R                  ;   a  U$ SnM4  )NzNot a valid unit. Try again: )inputlowerunits)r   r   textunits       r   r   speedconv.units_input@   s5    <<%++-Dzz!6 r    N)__name__
__module____qualname____firstlineno____doc__r%   r   r   r   r   __static_attributes__r)   r   r   r   r      s6    E
 M&8L7r   N)r   r   r)   r   r   <module>r0      s)     B7 B7 B7r   