pub struct PythonParser;Expand description
Parses Python dependencies from pyproject.toml and requirements.txt
Implementations§
Source§impl PythonParser
impl PythonParser
Sourcepub fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
pub fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
Parses dependencies from pyproject.toml or requirements.txt
Sourcepub fn has_manifest(&self, root: &Path) -> bool
pub fn has_manifest(&self, root: &Path) -> bool
Checks if Python manifest files exist
Trait Implementations§
Source§impl Debug for PythonParser
impl Debug for PythonParser
Auto Trait Implementations§
impl Freeze for PythonParser
impl RefUnwindSafe for PythonParser
impl Send for PythonParser
impl Sync for PythonParser
impl Unpin for PythonParser
impl UnwindSafe for PythonParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more