Skip to main content

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)
]

備考

  • json-stock のDBやTableもわかりやすく表示することが可能です。
from sout import sout

sout(jst_db["test_table"]) # -> <json-stock Table {"test_key": "value"}>

Project details


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.2.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

sout-1.2.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file sout-1.2.1.tar.gz.

File metadata

  • Download URL: sout-1.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for sout-1.2.1.tar.gz
Algorithm Hash digest
SHA256 4f809b581eb27e0315eacec163b9f28b6e69ee03e133f429c4a9f5aba825cb0e
MD5 037dfd26b7057a478a1678ec3222f879
BLAKE2b-256 b3a54727ee0ddcae4ea573de19712f5c8538bc77f92b05fef298f629ecb889d1

See more details on using hashes here.

File details

Details for the file sout-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: sout-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for sout-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f31ce938d7e1727b041fba4e1b2cee376aad1eca98a271cfb540af88423006a7
MD5 b62283c90f8a7cbdce28abf91b64e137
BLAKE2b-256 038f7e0e85375e3b061c0db9ce873acb57d3311fe86e214e9344757a41a050f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page