Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Fetch list of available versions for a package from The CheeseShop

src/g/0/g-pypi-0.3/gpypi/cli.py   g-pypi(Download)
    def sync(self):
        """"""
        pypi = CheeseShop()
        for package in pypi.list_packages():
            (pn, vers) = pypi.query_versions_pypi(package)

src/g/0/g-pypi-HEAD/gpypi/cli.py   g-pypi(Download)
    def sync(self):
        """"""
        pypi = CheeseShop()
        for package in pypi.list_packages():
            (pn, vers) = pypi.query_versions_pypi(package)

src/v/a/vanity_app-HEAD/src/vanity_app/vanity_app/utils.py   vanity_app(Download)
            return db.get(config.REDIS_KEY_PACKAGE_VERSION % package)
        else:
            version = yolk.query_versions_pypi(package)
            try:
                version = version[1][0]  # annoying

src/g/0/g-pypi-0.3/gpypi/tests/test_pypi.py   g-pypi(Download)
    def setUp(self):
        self.pypi = CheeseShop()
        self.all_packages = []
        for package in self.pypi.list_packages():
            (pn, vers) = self.pypi.query_versions_pypi(package)

src/g/0/g-pypi-HEAD/gpypi/tests/test_pypi.py   g-pypi(Download)
    def setUp(self):
        self.pypi = CheeseShop()
        self.all_packages = []
        for package in self.pypi.list_packages():
            (pn, vers) = self.pypi.query_versions_pypi(package)

src/y/o/yolk-0.4.3/tests/rss_feed.py   yolk(Download)
            if not elem.text.startswith('Cheese Shop recent updates'):
                pkg_name, ver = get_pkg_ver(elem.text, False)
                (pypi_pkg_name, versions) = PyPI.query_versions_pypi(pkg_name)
                if " " in pypi_pkg_name:
                    skipped +=1