Documentation ¶
Index ¶
- func DetectMarkdownLanguages(base util.AbsolutePath) (bool, bool, error)
- func DetectMarkdownLanguagesInContent(content []byte) (bool, bool)
- func GetNotebookFileInputs(path util.AbsolutePath) (string, error)
- func GetNotebookInputs(r io.Reader) (string, error)
- func GetQuartoFilePythonCode(path util.AbsolutePath) (string, error)
- func GetQuartoPythonCode(content string) string
- func NewDependencyScanner(log logging.Logger) *defaultDependencyScanner
- func NewImportScanner(log logging.Logger) *defaultImportScanner
- func NewPackageMapper(log logging.Logger) *defaultPackageMapper
- func NewProjectImportScanner(log logging.Logger) *defaultProjectImportScanner
- type DependencyScanner
- type ImportName
- type ImportScanner
- type MockDependencyScanner
- type PackageMap
- type PackageMapper
- type PackageName
- type PackageSpec
- type ProjectImportScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectMarkdownLanguages ¶
func DetectMarkdownLanguages(base util.AbsolutePath) (bool, bool, error)
func GetNotebookFileInputs ¶
func GetNotebookFileInputs(path util.AbsolutePath) (string, error)
func GetQuartoFilePythonCode ¶
func GetQuartoFilePythonCode(path util.AbsolutePath) (string, error)
func GetQuartoPythonCode ¶
func NewDependencyScanner ¶
func NewImportScanner ¶
func NewPackageMapper ¶
func NewProjectImportScanner ¶
Types ¶
type DependencyScanner ¶
type DependencyScanner interface {
ScanDependencies(base util.AbsolutePath, pythonExecutable string) ([]*PackageSpec, error)
}
type ImportName ¶
type ImportName string
type ImportScanner ¶
type ImportScanner interface {
ScanImports(code string) []ImportName
}
type MockDependencyScanner ¶
func NewMockDependencyScanner ¶
func NewMockDependencyScanner() *MockDependencyScanner
func (*MockDependencyScanner) ScanDependencies ¶
func (m *MockDependencyScanner) ScanDependencies(base util.AbsolutePath, pythonExecutable string) ([]*PackageSpec, error)
type PackageMap ¶
type PackageMap map[ImportName]*PackageSpec
type PackageMapper ¶
type PackageMapper interface {
GetPackageMap(pythonExecutable string) (PackageMap, error)
}
type PackageName ¶
type PackageName string
type PackageSpec ¶
type PackageSpec struct { Name PackageName Version string }
func (*PackageSpec) String ¶
func (s *PackageSpec) String() string
type ProjectImportScanner ¶
type ProjectImportScanner interface {
ScanProjectImports(base util.AbsolutePath) ([]ImportName, error)
}
Click to show internal directories.
Click to hide internal directories.