How to use the gc3pie.gc3libs.quantity.Memory function in gc3pie

To help you get started, we’ve selected a few gc3pie examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
hrs = h
hours = h

d = Duration.d
days = d
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
hrs = h
hours = h

d = Duration.d
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
hrs = h
hours = h
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
('secs1',    1,        Duration.s),
    ('days2',    24*60*60, Duration.day),
    ('hours2',   60*60,    Duration.hour),
    ('minutes2', 60,       Duration.minute),
    ('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
hrs = h
hours = h

d = Duration.d
days = d
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
# |          |         corresponding `Duration` unit
    # |          |         |
    ('days1',    24*60*60, Duration.day),
    ('hours1',   60*60,    Duration.hour),
    ('minutes1', 60,       Duration.minute),
    ('secs1',    1,        Duration.s),
    ('days2',    24*60*60, Duration.day),
    ('hours2',   60*60,    Duration.hour),
    ('minutes2', 60,       Duration.minute),
    ('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
('days2',    24*60*60, Duration.day),
    ('hours2',   60*60,    Duration.hour),
    ('minutes2', 60,       Duration.minute),
    ('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
('hours2',   60*60,    Duration.hour),
    ('minutes2', 60,       Duration.minute),
    ('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m

h = Duration.h
hrs = h
github gc3pie / gc3pie / gc3pie / gc3libs / quantity.py View on Github external
('minutes1', 60,       Duration.minute),
    ('secs1',    1,        Duration.s),
    ('days2',    24*60*60, Duration.day),
    ('hours2',   60*60,    Duration.hour),
    ('minutes2', 60,       Duration.minute),
    ('secs2',    1,        Duration.s),
    ]


## aliases for common units

B = Memory.B
byte = B
bytes = B

kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB

KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB

s = Duration.s
secs = s
seconds = s

m = Duration.m
mins = m
minutes = m