pypicloud.models module

Model objects

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

Bases: object

Representation of a versioned package


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)

**kwargs : dict

Metadata about the package


Create path to the download link


Returns True if the version is a prerelease version


Parse and cache the version using pkg_resources