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:

name : str

The name of the package (will be normalized)

version : str

The version number of the package

filename : str

The name of the package file

last_modified : datetime, optional

The datetime when this package was uploaded (default now)

summary : str, optional

The summary of the package

**kwargs : dict

Metadata about the package

get_url(request)[source]

Create path to the download link

is_prerelease[source]

Returns True if the version is a prerelease version

parsed_version[source]

Parse and cache the version using pkg_resources

search_summary()[source]

Data to return from a pip search