Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • issue4
2 results

b2share_depositer

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Benedikt von St. Vieth / b2share_depositer
    11 commits ahead of the upstream repository.

    B2SHARE_DEPOSITOR

    python script for (more or less) automatically depositing files to B2SHARE Version 2

    python run.py --apitoken $TOKEN --filenames <file_a.txt,file_b.txt>

    Command Line Arguments

    --author (whether authors should be uploaded as creators)


    --b2shareurl (change the current default b2share url https://b2share.fz-juelich.de)


    --community <ID> (e.g. e9b9792e-79fb-4b07-b6b4-b9c2bd06d095)


    --debug (to get some debug output)

    ATTENTION: Tokens are shown in debug mode because they are part of the query string.


    --filenames <file_a.txt::newname_a.txt,file_b.txt>

    A comma separated list of files to upload. Filenames may contain Unix wildcards. HTTP/HTTPS URLs are also supported.

    If you want to rename a file showing up in the deposit, write filename_a::newfilename_a (use two double points)

    Streaming from http resource to b2share should work for http/https resources, tested against a OpenStack Swift proxy server...

    python run.py --apitoken $TOKEN --filenames https://swift.zam.kfa-juelich.de:8889/v1/AUTH_acf10a23f9af48ec961c5354888cc212/public/unicore-servers-7.4.0.tgz::unicore-servers-7.4.0.tgz


    --finalize (whether to finalize the deposit, not always possible without additional metadata)


    --insecure (whether to use a insecure API endpoint)