-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 19 #22
Conversation
@itepifanio @nymarya @diegodiogenes para facilitar o review de vocês, vou fazer um resumo dos métodos e atributos de cada classe a seguir: EnvEnv(ABC)
# Atributos
self.url_base = 'http://dados.ufrn.br/'
self.url_action = self.url_base + 'api/action/'
# Métodos
def _print_exception(self, ex: Exception):
def _print_list(self, name: str, variable: list):
def _load_list(self, option: str) -> list:
def _make_dir(self, path: str) -> str:
def _request_get(self, url: str) -> requests.Response: DatasetDataset(Env)
# Atributos
self.url_dataset = self.url_base + 'api/rest/dataset/'
self.available_datasets = []
# Métodos
def load_datasets(self):
def list_datasets(self):
def download_dataset(self, name: str, path: str = os.getcwd(), dictionary: bool = True):
def download_datasets(self, datasets: list, path: str = os.getcwd(), dictionary: bool = True): GroupGroup(Dataset)
# Atributos
self.url_group = self.url_base + 'api/rest/group/'
self.available_groups = []
# Métodos
def load_groups(self):
def list_groups(self):
def download_group(self, name: str, path: str = os.getcwd(), dictionary: bool = True):
def download_groups(self, groups: list, path: str = os.getcwd(), dictionary: bool = True): FileFile(Dataset)
# Métodos
def download_from_file(self, filename: str, path: str = os.getcwd(), dictionary: bool = True): ODUFRNDownloaderODUFRNDownloader(Group, File) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testado 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show de bola! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mais 🔝 que o mar
Criado as classes: