prjpython

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

README

PrjPython

Analyse python project and find all imported packages

This project is inspired by https://github.com/bndr/pipreqs

changes have been made in file "mapping"

    ADD cv2:opencv_python

Documentation

Overview

Generate a blueprint for python project folder or single python file

Index

Constants

This section is empty.

Variables

View Source
var Embed embed.FS

Functions

func PythonProjectBlueprint

func PythonProjectBlueprint(
	rootDir string,
	version string,
	requirementsPath string,
	excludeDirs []string,
	symlink bool,
	onlyLocal bool,
	onlyOnline bool,
	pythonVersionStrict bool,
) (bp prefab.Blueprint, err error)

rootDir must be an absolute path requirementsPath could be an absolute path or a relative path to the rootDir

Types

type Channel

type Channel struct {
	Items []Item `xml:"item"`
}

type Item

type Item struct {
	Title string `xml:"title"`
}

type RSS

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Channel Channel  `xml:"channel"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL