diff --git a/scratch/producer.py b/scratch/producer.py new file mode 100644 index 0000000..ab2ea14 --- /dev/null +++ b/scratch/producer.py @@ -0,0 +1,12 @@ +from swh.loader.dir.tasks import LoadTarRepository + +# Create a load tar instance (this will load a potential configuration file +# from ~/.config/swh/loader/tar.ini) +loadertar = LoadTarRepository() + +tar_path = '/home/tony/Downloads/org2jekyll-0.1.8.tar' +info = { + 'dir_path': '/tmp/swh/loader/tar/org2jekyll', +} + +loadertar.run(tar_path)