python

package
v0.0.0-...-a6b6bab Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package python @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnPythonCfg

func OnPythonCfg(str string)

OnPythonCfg 初始化配置文件

Types

type PythonConfig

type PythonConfig struct {
	Mirror string `` /* 166-byte string literal not displayed */
}

func GetPythonConfig

func GetPythonConfig() *PythonConfig

GetPythonConfig 获取Python配置的资源文件信息

type PythonProxy

type PythonProxy struct {
	Com *storage.Storage //通用工具类
	// contains filtered or unexported fields
}

func Client

func Client(ctx context.Context) *PythonProxy

Client 仓库连接

func (*PythonProxy) GetProjectSyncList

func (c *PythonProxy) GetProjectSyncList(uri, divHtml string)

GetProjectSyncList 同步官网数据 @param uri http://pypi.tuna.tsinghua.edu.cn/simple/django/ @param divHtml 获取到的html数据

func (*PythonProxy) GetVersion

func (c *PythonProxy) GetVersion(header string) string

GetVersion 根据请求头部获取python版本

func (*PythonProxy) Packages

func (c *PythonProxy) Packages(moduleName string) (u *cacheModel.ObjectsInfo, err error)

Packages 获取文件 存在则直接返回,不存在则缓存再返回 @param moduleName django/Django-3.2.23-py3-none-any.whl

Jump to

Keyboard shortcuts

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