Skip to main content

Small attachment helper script for openBIS registration.

Project description

Copyright (c) 2018 QBiC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: # Attachi
[![Language](https://img.shields.io/github/languages/top/qbicsoftware/attachi-cli.svg)](https://img.shields.io/github/languages/top/qbicsoftware/attachi-cli.svg)
[![Build Status](https://travis-ci.org/qbicsoftware/attachi-cli.svg?branch=master)](https://travis-ci.org/qbicsoftware/attachi-cli)


A small helper script, that creates the folder structure needed to register files as attachment to openBIS.

## Installation

### Stable release from PyPi:

``pip install attachi``

### Current master branch:

``pip install git+https://github.com/qbicsoftware/attachi-cli``

or from a specific branch:

``pip install git+https://github.com/qbicsoftware/attachi-cli@<branch>``

## Run

```pyhton
> attachi --help
Usage: attachi [OPTIONS] PROJECTID FILE COMMENT

Attachi - A helper tool that prepares attachments for openBIS registration

Options:
-u, --user ID Username shown in openbis as uploader
-o, --outdir PATH Output folder path
--version Show the version and exit.
--help Show this message and exit.

```
# Example

Creating the folder structure for an upload:

```python

attachi -u myusername QABCD README.md "this is a test for uploading the readme file"

#--> folder QABCD000AQ_20180627102707758164 is created
```

Use tar and dync to upload the file to openBIS:

```bash
tar -c QABCD000AQ_20180627102707758164 | dync -n QABCD000AQ_20180627102707758164.tar -k untar:True data.qbic.uni-tuebingen.de
```


Keywords: openbis,attachment
Platform: UNKNOWN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attachi-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file attachi-0.1.0.tar.gz.

File metadata

  • Download URL: attachi-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for attachi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b44584f7fa7dc74598a485759d299c452d646af2686c18761064fd2ca8581ee
MD5 24eeb06670993d8bfc5f67156f496b27
BLAKE2b-256 450859f6b97ff8351457d7ccfe20159f43969dad188b613ac31ddc80853b87fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page