From a1b41be271b655daf74905798169ba5bba0a1bcc Mon Sep 17 00:00:00 2001 From: Michael Franklin Date: Mon, 22 Jul 2019 14:05:27 +1000 Subject: [PATCH] Add README + better structure --- README.md | 1 + __init__.py | 2 - data_types/__init__.py | 7 ---- janis_unix/__init__.py | 2 + .../__pycache__/__init__.cpython-37.pyc | Bin 0 -> 216 bytes janis_unix/data_types/__init__.py | 5 +++ .../__pycache__/__init__.cpython-37.pyc | Bin 0 -> 338 bytes .../data_types/__pycache__/csv.cpython-37.pyc | Bin 0 -> 589 bytes .../__pycache__/json.cpython-37.pyc | Bin 0 -> 604 bytes .../__pycache__/tarfile.cpython-37.pyc | Bin 0 -> 610 bytes .../data_types/__pycache__/tsv.cpython-37.pyc | Bin 0 -> 587 bytes .../__pycache__/zipfile.cpython-37.pyc | Bin 0 -> 614 bytes {data_types => janis_unix/data_types}/csv.py | 2 +- {data_types => janis_unix/data_types}/json.py | 2 +- .../data_types}/tarfile.py | 2 +- {data_types => janis_unix/data_types}/tsv.py | 2 +- .../data_types}/zipfile.py | 2 +- janis_unix/tools/__init__.py | 6 +++ .../tools/__pycache__/__init__.cpython-37.pyc | Bin 0 -> 360 bytes .../tools/__pycache__/cat.cpython-37.pyc | Bin 0 -> 1230 bytes .../tools/__pycache__/compile.cpython-37.pyc | Bin 0 -> 1527 bytes .../tools/__pycache__/echo.cpython-37.pyc | Bin 0 -> 1123 bytes .../tools/__pycache__/merge.cpython-37.pyc | Bin 0 -> 1146 bytes .../tools/__pycache__/tar.cpython-37.pyc | Bin 0 -> 1413 bytes .../tools/__pycache__/unixtool.cpython-37.pyc | Bin 0 -> 657 bytes .../tools/__pycache__/untar.cpython-37.pyc | Bin 0 -> 1250 bytes {tools => janis_unix/tools}/cat.py | 7 +--- {tools => janis_unix/tools}/compile.py | 5 +-- {tools => janis_unix/tools}/echo.py | 4 +- {tools => janis_unix/tools}/merge.py | 4 +- {tools => janis_unix/tools}/tar.py | 7 ++-- {tools => janis_unix/tools}/unixtool.py | 2 +- {tools => janis_unix/tools}/untar.py | 6 +-- setup.py | 39 ++++++++++++++++++ tools/__init__.py | 7 ---- 35 files changed, 73 insertions(+), 41 deletions(-) create mode 100644 README.md delete mode 100644 __init__.py delete mode 100644 data_types/__init__.py create mode 100644 janis_unix/__init__.py create mode 100644 janis_unix/__pycache__/__init__.cpython-37.pyc create mode 100644 janis_unix/data_types/__init__.py create mode 100644 janis_unix/data_types/__pycache__/__init__.cpython-37.pyc create mode 100644 janis_unix/data_types/__pycache__/csv.cpython-37.pyc create mode 100644 janis_unix/data_types/__pycache__/json.cpython-37.pyc create mode 100644 janis_unix/data_types/__pycache__/tarfile.cpython-37.pyc create mode 100644 janis_unix/data_types/__pycache__/tsv.cpython-37.pyc create mode 100644 janis_unix/data_types/__pycache__/zipfile.cpython-37.pyc rename {data_types => janis_unix/data_types}/csv.py (82%) rename {data_types => janis_unix/data_types}/json.py (83%) rename {data_types => janis_unix/data_types}/tarfile.py (96%) rename {data_types => janis_unix/data_types}/tsv.py (82%) rename {data_types => janis_unix/data_types}/zipfile.py (75%) create mode 100644 janis_unix/tools/__init__.py create mode 100644 janis_unix/tools/__pycache__/__init__.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/cat.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/compile.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/echo.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/merge.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/tar.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/unixtool.cpython-37.pyc create mode 100644 janis_unix/tools/__pycache__/untar.cpython-37.pyc rename {tools => janis_unix/tools}/cat.py (69%) rename {tools => janis_unix/tools}/compile.py (83%) rename {tools => janis_unix/tools}/echo.py (77%) rename {tools => janis_unix/tools}/merge.py (76%) rename {tools => janis_unix/tools}/tar.py (78%) rename {tools => janis_unix/tools}/unixtool.py (84%) rename {tools => janis_unix/tools}/untar.py (70%) create mode 100644 setup.py delete mode 100644 tools/__init__.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..ded6e60 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Janis - Unix tools diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 43705fa..0000000 --- a/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from .data_types import * -from .tools import * diff --git a/data_types/__init__.py b/data_types/__init__.py deleted file mode 100644 index 9c5a3ba..0000000 --- a/data_types/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from os.path import dirname, basename, isfile -import glob - -modules = glob.glob(dirname(__file__) + "/*.py") -__all__ = [ - basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py") -] diff --git a/janis_unix/__init__.py b/janis_unix/__init__.py new file mode 100644 index 0000000..310b70f --- /dev/null +++ b/janis_unix/__init__.py @@ -0,0 +1,2 @@ +from janis_unix.data_types import * +from janis_unix.tools import * diff --git a/janis_unix/__pycache__/__init__.cpython-37.pyc b/janis_unix/__pycache__/__init__.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3168ff9ac1aaaf3d29460ffcca1d5a51773f55c3 GIT binary patch literal 216 zcmZ?b<>g`kf(l;KSZ5&p7{q}ACLqHBh>JylL<&O+V-7P<4f~0EA&zlOA_NtDhpDJqXdwIOY-w`idQleF$491iC^~mp~b01 z#rkPQiFw&MnR&UH$r*{MIr_!j<1b}p;x909 z=Ta4tT2AF^W&sfeA&e=VK0K}GoFnlAD z0Kx}0jK1&`8}cT+OEaTsu@8Y@jKdQdmT+K6U<7aowrs76igeT-SUIk2up|beH%YIV_iJ6s(8uLB2V>PnJji?ZMBJ?Rgt>0x=7!4 zPjjiF2KZsbq6(#sHjN{1jK literal 0 HcmV?d00001 diff --git a/janis_unix/data_types/__pycache__/json.cpython-37.pyc b/janis_unix/data_types/__pycache__/json.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7735c6f439749b944ae99d799ab815e84dad4af6 GIT binary patch literal 604 zcmZuuJx{|h5Vhk3LX}GVgsvTECN_i$m5S6M3>8ZxWJNhwP02^G6Nz?he+v?SDJv6y zfr&e}rAYK7pPzlFchArF-EN0rjJns)@3?=`;Ser@AuiLy1Ppl23LbOL9vCKcMB~mQrz+y)U;NWc8hQ}@laJMY>z(b<5)}NTF z{KvwPVMHvX3pjQ#Bw!$L&vNJ(?0Y&%jG6*M{FK+4x9$@i7O)JdJC zg{tQj=yRmg#QA5IHH!vn`W>>=`s(w*wKq{;v>oe_Oe?K4z1~1QZ37A{7EI00WduKxxFQ zOalzBV9@!bS1=H5c%By~Y>Q1GS8;k6p5?nHZ#e+u5x!Uukz;= zR34&kv}#^v#wCrm6Z(hY?4=DWT^b4oTtE$iMYQ%duiU>YOh%AZuSyCri{8uu>+;ro>FCv^MY}t)Z<(i z>q+Dq-Q-zmnrV%8i_~nF+wZviKA$A>KHjc~LeGo`vhDf2R90JKIRroWPowP~t&ALV J6yA6wzX3@$fnWdt literal 0 HcmV?d00001 diff --git a/janis_unix/data_types/__pycache__/tsv.cpython-37.pyc b/janis_unix/data_types/__pycache__/tsv.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..922a37ff431e279d695a5bef624368e15275fe8f GIT binary patch literal 587 zcmZuuJx{|h5Vhl^EmbQPen8d^G!q*_1q5tefF%;LOwLsU`6zZ$(XQ@W6s$f0}sTSfzW&< zVh{X#HV8I&iVb+<-=>*PXt4`{V1&aFX%=%}v8M%a@YZa_V;=HP~N0f-d?q4`pz z0fe`#*ZRUP*5gfhWpbU-WfKCy0GB7yEakw`Knvgytk{yLAqWUpENwvxiT0ZP)J*@8 za3r`S5|RZR8-r0Ju=AbS7N)k__f2x=v~|hYs`4o}Wnr?3(s|;lnay=@{S8pU#`GRD~vb7vRQ%Mf9t!Plb#`QP8Pg(kidRjhIh~KUPq2GP*a)by0|e{Yd~vv$jrkG!)RvM|NZE9xEGn4g zgd-`RXDa`#M6On~$qHRhDzN*=W{L98C~qFkv-D5ouD7_&qtItYJ<)W$XELj-wq%4a R?BZzJXKNwnWQP|Xi65tPgsK1l literal 0 HcmV?d00001 diff --git a/data_types/csv.py b/janis_unix/data_types/csv.py similarity index 82% rename from data_types/csv.py rename to janis_unix/data_types/csv.py index fdfef2f..cf72f50 100644 --- a/data_types/csv.py +++ b/janis_unix/data_types/csv.py @@ -1,4 +1,4 @@ -from janis import File +from janis_core import File class Csv(File): diff --git a/data_types/json.py b/janis_unix/data_types/json.py similarity index 83% rename from data_types/json.py rename to janis_unix/data_types/json.py index 76d3b4d..35dea4e 100644 --- a/data_types/json.py +++ b/janis_unix/data_types/json.py @@ -1,4 +1,4 @@ -from janis import File +from janis_core import File class JsonFile(File): diff --git a/data_types/tarfile.py b/janis_unix/data_types/tarfile.py similarity index 96% rename from data_types/tarfile.py rename to janis_unix/data_types/tarfile.py index 7692c81..1632d50 100644 --- a/data_types/tarfile.py +++ b/janis_unix/data_types/tarfile.py @@ -1,4 +1,4 @@ -from janis.types.common_data_types import File +from janis_core import File class TarFile(File): diff --git a/data_types/tsv.py b/janis_unix/data_types/tsv.py similarity index 82% rename from data_types/tsv.py rename to janis_unix/data_types/tsv.py index a8dfb7e..7cf99fa 100644 --- a/data_types/tsv.py +++ b/janis_unix/data_types/tsv.py @@ -1,4 +1,4 @@ -from janis import File +from janis_core import File class Tsv(File): diff --git a/data_types/zipfile.py b/janis_unix/data_types/zipfile.py similarity index 75% rename from data_types/zipfile.py rename to janis_unix/data_types/zipfile.py index f5d0529..b39ef0f 100644 --- a/data_types/zipfile.py +++ b/janis_unix/data_types/zipfile.py @@ -1,4 +1,4 @@ -from janis.types.common_data_types import File +from janis_core import File class ZipFile(File): diff --git a/janis_unix/tools/__init__.py b/janis_unix/tools/__init__.py new file mode 100644 index 0000000..2ad3520 --- /dev/null +++ b/janis_unix/tools/__init__.py @@ -0,0 +1,6 @@ +from .cat import Cat +from .compile import Compile +from .echo import Echo +from .merge import Merge +from .tar import Tar +from .untar import Untar diff --git a/janis_unix/tools/__pycache__/__init__.cpython-37.pyc b/janis_unix/tools/__pycache__/__init__.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6501e39af59c6cbb3961c47bb3d4bf168f718381 GIT binary patch literal 360 zcmXw#J5Izf5QgJ8jBZA0>Q5|=kt1B=4Y!#3tS2V3L=X}=H@T&PCZ?vaOt8d- zDJ>T~F*B8&iCN;(%D)?}hhw|i|AVzKFV9+llGc!>@AC?VEc zH%PdzmlN&e0CBg8cLy8LSQQGLP()-lnt?^8XoE6!$2bBw@>d2YC@KAInr%=JnrD#i z&1h$Jx0A{=!H>|X=2bc!&PJ!-57;Igyf>j~TkZ7Fw&(kgsk*ejAC0<-Zwv8Tm*jZ< E0kx!AN&o-= literal 0 HcmV?d00001 diff --git a/janis_unix/tools/__pycache__/cat.cpython-37.pyc b/janis_unix/tools/__pycache__/cat.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..604a5011b2d423de5c27f145318de631c7602a75 GIT binary patch literal 1230 zcmah|OK;RL5VqsIHoGY;&kKJb2f8ONs6vHGJTB!>dWnRhG~=bAd9=18(Y zuAKT8kdT;hy1U(~2umK1XD0q;zL~s@K@U9qmGFXT-1pkO7!8N|X60aY9Zrkc(bKaRg zBK1>eNcWEnw0L@Nl*%uA_gz`ZYfOhFybq6?@;k*A^u}@tRQ7S}4=5x{Ik41`0ysEV zY{63(1h`i$_0Z;lZ*4vV5TY%B5kz=~=o`bt`bH3Ao?E>*$jt^2WpO}2#0GE-at?b@ zGSB@BQhqmP$`&DsRrJvZ>4BG?&#>x1B2F^jqGP`bCG;3~FXogO%wizPEdh zh11O^GzSH9<{_rDOU8oophf4sIgJn62A`1)ZkrTx=W1Ea))}e^e%!}1Rmujc%dE+3 zN$nrd_38z*OPV>ogRW(<5oIu#H?Rf9SnMrS25dxL z;R>A7#8DKbD9wKW1{g+&k1=G4I3~m!dx7@Vy04$}xI5_@)4i&&pW56i=x%Ay7H3jD z!`GHmV@n&%he_0jneB9z^--49Ep(MceUfDtU0%@)&`q1%ltnGgX$y)vrM5{BW9ku! zCnTPdSSMgLYP1@mpeAU#g?!?Mf_5mZ=P()dk)3~>1to``tteb~uMg>;pm|r}^40s` S`fzWk<26xdf6eE7BK`sq9Qot` literal 0 HcmV?d00001 diff --git a/janis_unix/tools/__pycache__/compile.cpython-37.pyc b/janis_unix/tools/__pycache__/compile.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..da4ccaaa8ffeb9858ce03aa21acc0c0f94d62be1 GIT binary patch literal 1527 zcmah}OKaOe5Z;w!J#0CzJ|HE9TwRELDwI-6(v-d^?ja2YK@o~}?I_X1-IYq?t9|W1 z=pX1`+G{V(U+AebYb&s}*S`iKfAFIo78r-{$agR? z!e~k|8c>S1ks6s9n3)w=StDp*J}dCZ?HJ)vNJe3!(O3RO^gWvI z7Qcz`!MB+Hz3!b#E@W>YqWm&V@+^tZBcAqTQHhxME}}e<2NfhcGed2bkhtu{GYZ|& zm9lW9h0t)PgcxIgj@U&0rTCwBfjF4@AOqmR^N< zl<`einqkuMgBo*X$K47wP@#AUXCaYB^v@#6Lm-z$Ior7bG{*O9z~v2h;*Gsx#PbVw z`TW`Km^LfoOD-NRp>5P?GZ*M%3tm;fwvJ{a?As|ha2Pr5!e5mgrbmf+dvX8wjv0rrAEQ!K1-1Z3`z<@Wb z? zVsu2>im1?{?_IQ(56O3WIDL;bbyKIOmF}!=RG^6UlU6lnw|vbW2J(|LQ>zY|%c3h= zMH#K3`SKt@@0kBv8Z*KGTM)Mu3SjA{(yF4;ZCiFQxxtE-`vGg)x|8kzT|*ZRP;l4> z$5&y@zKe6}iJW^;cMC&hp+Q+_Tf16!S!4vN3>7ouh7h;N1xhi#>z&<4(TfFu~SBc;;qYglbKIwc4;cja1-t>9G@Joxj&`Ogn#G}PsJaHYw6zr literal 0 HcmV?d00001 diff --git a/janis_unix/tools/__pycache__/merge.cpython-37.pyc b/janis_unix/tools/__pycache__/merge.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000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__/untar.cpython-37.pyc b/janis_unix/tools/__pycache__/untar.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..06c7e382c1ae5f518fdaeadd26eec891fe8a2a60 GIT binary patch literal 1250 zcmZ`(O>fgc5Z(3KvEw>W3J3{t;Oa^wCvH_$ip0ky9NG%W60)}5O>6K+*j-mmuIZH@ z!e81er~U;_%&dvhpt6$3v$N}&_ufo$JQ~FW*5T;&mwk_rU$|K>ADkn2^an742wIVv zX0-M)uVxvm{mid}ETBYqf>nb$%tG*e5mZq<%!ZV_Ct@JN8zMqET(K+`(FsY1w~&pb zfeqd$#TRyX+P2llX5JYaqx-2d=mAW2GXc*>RA(|#YF zHRUyaUSRh1V&ELXqYuDHl2Ji2PclJ;cSBY*^92+B4aowC1!CZ0fLKHj3&l{x@Q%a| zpiXRX))=m~(qrwnm>!i96s~zw8+3T@Cs88^Zp`oF$(fc)PiBfY->R~y%i@yDYNFdt z6>{>GH>G~n0gK+vooj%Rp16$T`NI0R53wT3K)hw_K#eh6AR1iwz7N@QGE-3aqE0b6h!7kiNHanFFX*2O)Udi ztap94)Y zlm=)=^H!IpY@5_m3_=Rwrc~{s{|~M~iQ}m;`C5jgN7NtOkL5XB@39zf1=D7j@K#i? z4JOuhW;xg&f8|#kJ8@C9=c%u7niR^Y256Ane}ILM0Fga~D{EwZm&bokrs>c|x$9z{ z+c?kbR&