pyproject

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pyproject provides a way to parse a pyproject.toml file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PyProject

type PyProject struct {
	Project struct {
		Name    string
		Version string
	}
	Tool struct {
		Poetry struct {
			Packages []any
		}
	}
}

PyProject represents a pyproject.toml file.

func Open

func Open(name string) (PyProject, error)

Open opens and parses a pyproject.toml file.

func (PyProject) IsPoetry

func (p PyProject) IsPoetry() bool

func (PyProject) Name

func (p PyProject) Name() string

Name returns the project name.

Jump to

Keyboard shortcuts

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