pub struct PythonCrawler;Expand description
Python ecosystem crawler for discovering packages in site-packages.
Implementations§
Source§impl PythonCrawler
impl PythonCrawler
Sourcepub async fn get_site_packages_paths(
&self,
options: &CrawlerOptions,
) -> Result<Vec<PathBuf>, Error>
pub async fn get_site_packages_paths( &self, options: &CrawlerOptions, ) -> Result<Vec<PathBuf>, Error>
Get site-packages paths based on options.
Sourcepub async fn crawl_all(&self, options: &CrawlerOptions) -> Vec<CrawledPackage>
pub async fn crawl_all(&self, options: &CrawlerOptions) -> Vec<CrawledPackage>
Crawl all discovered site-packages and return every package found.
Sourcepub async fn find_by_purls(
&self,
site_packages_path: &Path,
purls: &[String],
) -> Result<HashMap<String, CrawledPackage>, Error>
pub async fn find_by_purls( &self, site_packages_path: &Path, purls: &[String], ) -> Result<HashMap<String, CrawledPackage>, Error>
Find specific packages by PURL.
Accepts base PURLs (no qualifiers) — the caller should strip qualifiers before calling.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonCrawler
impl RefUnwindSafe for PythonCrawler
impl Send for PythonCrawler
impl Sync for PythonCrawler
impl Unpin for PythonCrawler
impl UnsafeUnpin for PythonCrawler
impl UnwindSafe for PythonCrawler
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