pypicloud.models module

Model objects

class pypicloud.models.Package(name, version, filename, last_modified=None, summary=None, **kwargs)[source]

Bases: object

Representation of a versioned package

Parameters
namestr

The name of the package (will be normalized)

versionstr

The version number of the package

filenamestr

The name of the package file

last_modifieddatetime, optional

The datetime when this package was uploaded (default now)

summarystr, optional

The summary of the package

**kwargs

Metadata about the package

get_metadata()[source]

Returns the package metadata as a dict

get_url(request)[source]

Create path to the download link

property is_prerelease[source]

Returns True if the version is a prerelease version

property parsed_version[source]

Parse and cache the version using pkg_resources

static read_metadata(blob)[source]

Read metadata from a blob

search_summary()[source]

Data to return from a pip search