Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of parsing .pyd files by python?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what is the method of python parsing .pyd file". In the daily operation, I believe that many people have doubts about the method of python parsing .pyd file. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "what is the method of python parsing .pyd file?" Next, please follow the editor to study!

Sometimes, in order to encrypt the python file, the python module is compiled into a .pyd file for others to call. Get a .pyd file, and without documentation, you can try to see the usage of some functions and classes in the module.

First import XXX (file name of pyd)

And then directly.

Print (dir (XXX))

Print (help (xxx))

Where dir () lists the properties and methods

Hlep () lists the functions and parameters directly, and is the function name and type of the source code, which is very intuitive.

For example, in my example here, the output is as follows:

['RC',' _ _ doc__','_ _ file__','_ _ loader__','_ _ name__','_ package__','_ _ spec__', 'call_func',' collision_recover', 'disable_robot',' drag_mode_enable', 'enable_robot',' get_analog_input', 'get_analog_output',' get_collision_level', 'get_current_line' 'get_digital_input', 'get_digital_output',' get_joint_position', 'get_loaded_program',' get_payload', 'get_program_state',' get_rapidrate', 'get_robot_state',' get_sdk_version', 'get_tcp_position',' get_tool_id', 'get_user_frame_id',' is_extio_running', 'is_in_collision' 'is_in_drag_mode', 'is_in_pos',' is_on_limit', 'jog',' jog_stop', 'joint_move',' kine_forward', 'kine_inverse',' linear_move', 'login',' logout', 'power_off',' power_on', 'program_abort',' program_load', 'program_pause',' program_resume', 'program_run' 'quaternion_to_rot_matrix', 'rot_matrix_to_quaternion',' rot_matrix_to_rpy', 'rpy_to_rot_matrix',' servo_j', 'servo_move_enable',' servo_p', 'set_analog_output',' set_collision_level', 'set_digital_output',' set_error_handler', 'set_payload',' set_rapidrate', 'set_tool_data' 'set_tool_id',' set_user_frame_data', 'set_user_frame_id',' shut_down', 'torque_control_enable',' torque_feedforward'] Help on module jkrc:NAME jkrc-Example module that creates an extension type.CLASSES builtins.object RC class RC (builtins.object) | RC objects | | Methods defined here: | | _ _ init__ (self, /, * args * * kwargs) | Initialize self. See help (type (self)) for accurate signature. | | call_func (...) | description | | collision_recover (...) | description | | disable_robot (...) | description | | drag_mode_enable (...) | description | | enable_robot (...) | description | | get_analog_input (..). .) | description | | get_analog_output (...) | description | | get_collision_level (...) | description | | get_current_line (...) | description | | get_digital_input (...) | description | | get_digital_output (...) | Description | | get_joint_position (...) | description | | get_loaded_program (...) | description | | get_payload (...) | description | | get_program_state (...) | description | | get_rapidrate (...) | description | | | get_robot_state (...) | description | | get_sdk_version (...) | description | | get_tcp_position (...) | description | | get_tool_id (...) | description | | get_user_frame_id (...) | description | | is_ | Extio_running (...) | description | | is_in_collision (...) | description | | is_in_drag_mode (...) | description | | is_in_pos (...) | description | | is_on_limit (...) | description | | jog (. ) | description | | jog_stop (...) | description | | joint_move (...) | description | | kine_forward (...) | description | | kine_inverse (...) | description | | linear_move (...) | description | | login (...) | Log in the specified robot | | logout (...) | Log out the specified robot | | power_off (...) | description | | power_on (...) | description | | program_abort (...) | description | | program_load (...) | Description | | program_pause (...) | description | | program_resume (...) | description | | program_run (...) | description | | quaternion_to_rot_matrix (...) | description | | rot_matrix_to_quaternion (...) | description | | | rot_matrix_to_rpy (...) | description | | rpy_to_rot_matrix (...) | description | | servo_j (...) | description | | servo_move_enable (...) | description | | servo_p (...) | description | | set_analog | _ output (...) | description | | set_collision_level (...) | description | | set_digital_output (...) | description | | set_error_handler (...) | description | | set_payload (...) | description | | set_rapidrate (...) | description | | set_tool_data (...) | description | | set_tool_id (...) | description | | set_user_frame_data (...) | description. At this point, the study on "what is the method of parsing .pyd files by python" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report