Using the Galaxy Upload Data feature through the Web browser
Using the galaxy-upload pyhton script
If you are uploading your files from a Linux environment on which Python is installed, you can use the following Python code
to assist you uploading files directly into your Galaxy histories.
Directly using the Galaxy API (Bioblend) from your code (for advanced users)
BioBlend is a Python library for interacting with the Galaxy API. It’s goal is to make it easier to script and automate the running of Galaxy analyses and administering of a Galaxy server. You can find the full documentation here: Bioblend Full Documentation