In [1]:
%autosave 0


Autosave disabled

suneku.zero


In [2]:
from suneku import *
hello(zero)


module

Constants and functions imported before other modules.

REPO


In [3]:
REPO


Out[3]:
PosixPath('/home/1000/suneku')

In [4]:
for x in REPO.glob('**/*.py'):
    print(x.relative_to(REPO))


setup.py
tests/test_zero.py
suneku/plot.py
suneku/classifier.py
suneku/__init__.py
suneku/zero.py

echo


In [5]:
hello(echo)
echo('Hello, World!')


function
 None: Print timestamped message. 
2018-10-14 10:16:33 Hello, World!

fullpath


In [6]:
hello(fullpath)
fullpath('~/suneku/..')


function

    Path: Expand path relative to current working directory.
    Accepts string or pathlib.Path input. String can include '~'.
    Does not expand absolute paths. Does not resolve dots.
    
Out[6]:
PosixPath('/home/1000/suneku/..')

hello


In [7]:
hello(hello)


function
 None: Print short description of any Python object. 

isonow


In [8]:
hello(isonow)
isonow()


function
 str: Current UTC date and time in ISO-format microseconds. 
Out[8]:
'2018-10-14T10:16:33.810069'

zulutime


In [9]:
hello(zulutime)
zulutime('May 1, 2020 4:34:56 pm')


function

    Timestamp: UTC time from string or timelike input.
    OR Series: Series of UTC Timestamps from Series input.
    OR DatetimeIndex: UTC Timestamps from iterable input.
    
Out[9]:
Timestamp('2020-05-01 16:34:56')

In [10]:
zulutime([ "2000-5-{}".format(x) for x in range(1,10) ])


Out[10]:
DatetimeIndex(['2000-05-01', '2000-05-02', '2000-05-03', '2000-05-04',
               '2000-05-05', '2000-05-06', '2000-05-07', '2000-05-08',
               '2000-05-09'],
              dtype='datetime64[ns]', freq=None)