This package provides a simple output of python objects.
Project description
※下の方に日本語の説明があります
English description
This package provides a simple output of python objects.
How to use
from sout import sout
large_obj = [{j:"foo" for j in range(i+2)}
for i in range(1000)]
sout(large_obj)
output
[
{0: "foo", 1: "foo"},
{0: "foo", 1: "foo", 2: "foo"},
{0: "foo", 1: "foo", 2: "foo", 3: "foo"},
{
0: "foo",
1: "foo",
2: "foo",
3: "foo",
4: "foo"
},
{
0: "foo",
1: "foo",
2: "foo",
3: "foo",
4: "foo",
... (all_n = 6)
},
... (all_n = 1000)
]
日本語の説明
オブジェクトをわかりやすく表示するためのパッケージです
簡単な使い方
from sout import sout
large_obj = [{j:"foo" for j in range(i+2)}
for i in range(1000)]
sout(large_obj)
出力結果
[
{0: "foo", 1: "foo"},
{0: "foo", 1: "foo", 2: "foo"},
{0: "foo", 1: "foo", 2: "foo", 3: "foo"},
{
0: "foo",
1: "foo",
2: "foo",
3: "foo",
4: "foo"
},
{
0: "foo",
1: "foo",
2: "foo",
3: "foo",
4: "foo",
... (all_n = 6)
},
... (all_n = 1000)
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sout-1.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
sout-1.0.2-py3-none-any.whl
(3.2 kB
view hashes)