Line observations of young stellar objects (YSOs) at (sub)millimeter wavelengths provide essential information of gas kinematics in star and planet forming environments. For Class 0 and I YSOs, identification of Keplerian rotation is of particular interest, because it reveals presence of rotationally-supported disks that are still being embedded in infalling envelopes and enables us to dynamically measure the protostellar mass. We have developed a python library SLAM (Spectral Line Analysis/Modeling) with a primary focus on analyses of emission line data at (sub)millimeter wavelengths. Here, we present an overview of the pvanalysis tool from SLAM, which is designed to identify Keplerian rotation of a disk and measure the dynamical mass of a central object using a position-velocity (PV) diagram of emission line data. The advantage of this tool is that it analyzes observational features of given data and thus requires few computational time and parameter assumptions, in contrast to detailed radiative transfer modelings. In this article, we introduce the basic concept and usage of this tool, present an application to observational data, and discuss remaining caveats.