Module libbottles.components.repository

Expand source code
from glob import glob
from libbottles.utils.request import Request
from libbottles import globals


class Repository:
    
    _index = []

    def __init__(self):
        self.update_index()
    
    def update_index(self):
        r = Request()
        self._index = r.get(globals.Repository.components_index)


Repository()

Classes

class Repository
Expand source code
class Repository:
    
    _index = []

    def __init__(self):
        self.update_index()
    
    def update_index(self):
        r = Request()
        self._index = r.get(globals.Repository.components_index)

Methods

def update_index(self)
Expand source code
def update_index(self):
    r = Request()
    self._index = r.get(globals.Repository.components_index)