Coder Social home page Coder Social logo

ii's Introduction

ii

ii - Command line utilities for iRODS

Summary

ii is a collection of commandline utilities for iRODS. The current version is a functional prototype, in the sense that the interface is still subject to change and that it hasn't been tested extensively yet.

Requirements and installation

ii supports Python 3.6 and higher. It has currently been tested with iRODS 4.2.7. The eventual goal is to support all recent iRODS versions.

If you want to try it out, you can install it in a virtualenv:

virtualenv --no-site-packages --python /usr/bin/python3 venv
source venv/bin/activate
pip3 install --upgrade git+https://github.com/UtrechtUniversity/ii.git

Commands

ii cd

Equivalent to the icd command in the iCommands. Changes the current working directory. If no argument is given, it goes back to the home directory.

usage: ii cd [-h] [--verbose] [directory]

positional arguments:
  directory      Directory to change to

optional arguments:
  -h, --help     show this help message and exit
  --verbose, -v  Print verbose information for troubleshooting

ii find

Finds data objects, and returns names of data objects matching the specified properties. The basic idea is similar to the Unix find command.

usage: ii find [-h] [--verbose] [--print0] [--dname DNAME]
               [--owner-name OWNER_NAME] [--owner-zone OWNER_ZONE]
               [--resc-name RESC_NAME] [--minsize MINSIZE] [--maxsize MAXSIZE]
               [--size SIZE]
               [queries [queries ...]]

positional arguments:
  queries               Collection, data object or data object wildcard

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Print verbose information for troubleshooting
  --print0, -0          Use 0 byte delimiters between results
  --dname DNAME         Wildcard filter for data object name
  --owner-name OWNER_NAME
                        Filter for data object owner name (excluding zone)
  --owner-zone OWNER_ZONE
                        Filter for data object owner zone
  --resc-name RESC_NAME
                        Filter for data object resource
  --minsize MINSIZE     Filter for minimum data object size (you can
                        optionally use human-readable sizes, like "2g" for 2
                        gigabytes)
  --maxsize MAXSIZE     Filter for maximum data object size (you can
                        optionally use human-readable sizes, like "2g" for 2
                        gigabytes)
  --size SIZE           Filter for (exact) data object size (you can
                        optionally use human-readable sizes, like "2g" for 2
                        gigabytes)

ii ls

Equivalent to the ils command in the iCommands. Lists data objects or collections.

usage: ii ls [-h] [--verbose] [-m {plain,json,csv,yaml}]
             [-s {name,ext,size,date,unsorted}] [-H {default,yes,no}]
             [--recursive] [-l] [-L]
             [queries [queries ...]]

positional arguments:
  queries               Collection, data object or data object wildcard

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Print verbose information for troubleshooting
  -m {plain,json,csv,yaml}, --format {plain,json,csv,yaml}
                        Output format
  -s {name,ext,size,date,unsorted}, --sort {name,ext,size,date,unsorted}
                        Propery to use for sorting
  -H {default,yes,no}, --hr-size {default,yes,no}
                        Whether to print human-readable sizes
                        [yes,no,default].By default, enable human-readable for
                        text output, disable for other formats.
  --recursive, -r       Include contents of subcollections
  -l                    Display replicas with size, resource, owner, date
  -L                    like -l, but also display checksum and physical path

ii pwd

Equivalent to the ipwd command in the iCommands. Prints the current working directory.

usage: ii pwd [-h] [--verbose]

optional arguments:
  -h, --help     show this help message and exit
  --verbose, -v  Print verbose information for troubleshooting

Known limitations

  • ls command: sorting only has effect for the contents of collection arguments (e.g. ii ls .), but not for other arguments (e.g. ii ls "*" or ii ls foo.dat bar.dat baz.dat).
  • ls command: human-readable output is not yet supported for JSON and YAML output.
  • ls command: this command currently supports dataobject-only wildcards (e.g. *.dat), but not yet wildcards with collection names (e.g. foo/*.dat or */foo.dat).

ii's People

Contributors

stsnel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jaguc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.