Skip to content

Commit

Permalink
Merge pull request #7 from MountainField/pypi
Browse files Browse the repository at this point in the history
Pypi
  • Loading branch information
nogayama authored Jan 29, 2023
2 parents 07fb6ab + 742a194 commit 8e32351
Show file tree
Hide file tree
Showing 14 changed files with 2,164 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ dmypy.json

tmp
.vscode
dev

40 changes: 40 additions & 0 deletions sandbox_dw_dev.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import dw

if False:
m = dw.bytes.cat.cat("tmp/abc", add_number=True)
print("\n cat tmp/abc")
for line in m:
print(line)

if False:
print("\n cat tmp/abc")
dw.consume(
dw.bytes.cat.cat("tmp/abc", add_number=True) | dw.bytes.to_file()
)

if False:
print("\n cat tmp/abc > file()")

dw.bytes.cat.cat("tmp/abc", add_number=True) > dw.bytes.to_file()

if True:
print("\n cat tmp/abc > stdout()")

dw.bytes.cat.cat("tmp/abc", add_number=True) > dw.bytes.to_stdout()

# m = cat("tmp/abc", add_number=True) | grep(b"ab")
# print("\n cat tmp/abc | grep ab")
# for line in m:
# print(line)

# m = grep(file="tmp/abc", pattern=b"d")
# print("\n grep tmp/abc d")
# for line in m:
# print(line)

# m = grep(file="tmp/abc", pattern=b"d") | grep(b"e")
# print("\n grep tmp/abc d | grep e")
# for line in m:
# print(line)


Loading

0 comments on commit 8e32351

Please sign in to comment.