thomasdenecker / IronYeasts

IronYeasts is a tool suite dedicated to the analysis of iron in pathogenic yeasts :microscope: :books:
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Modify file import from databases #11

Open thomasdenecker opened 6 years ago

thomasdenecker commented 6 years ago

Purpose

Change import type in python code (system("wget [...]")))

Proposal

To import data, we can use these commands (proposed here) :

>>> import wget
>>> url = 'http://www.futurecrew.com/skaven/song_files/mp3/razorback.mp3'
>>> filename = wget.download(url)
100% [................................................] 3841532 / 3841532>
>> filename
'razorback.mp3'

or

import urllib.request
pierrepo commented 6 years ago

For a first implementation, avoid adding extra dependencies to the project.