pypi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package pypi defines the structures to parse PyPI JSON API response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name   string `json:"filename"`
	URL    string `json:"url"`
	Yanked Yanked `json:"yanked"`
}

File holds the information of a file in index response.

type IndexResponse

type IndexResponse struct {
	Name     string   `json:"name"`
	Files    []File   `json:"files"`
	Versions []string `json:"versions"`
}

IndexResponse defines the response of Index API. https://docs.pypi.org/api/index-api/

type Yanked

type Yanked struct {
	Value bool
}

Yanked represents the yanked field in the index response. This can either be false or a string representing the yanked reason.

func (*Yanked) UnmarshalJSON

func (y *Yanked) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for BoolOrString

Jump to

Keyboard shortcuts

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