Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dictionary to pretty json util #14

Merged
merged 1 commit into from
Apr 17, 2019
Merged

Conversation

dmytrostriletskyi
Copy link
Contributor

@dmytrostriletskyi dmytrostriletskyi commented Apr 16, 2019

Description

The util allows you to print the data, not in the way:

$ remme blocks list
[{'header_signature': '...', ...}, {'header_signature': '...', ...}, {'header_signature': '...', ...}]

But in the way:

$ remme blocks list
[
    {
        'header_signature': '...', 
        ...
    }, 
    {
        'header_signature': '...', 
        ...
    }
]

Usage:

data = fetch_data(...)
click.echo(dict_to_pretty_json(data))

@codecov-io
Copy link

Codecov Report

Merging #14 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #14   +/-   ##
========================================
  Coverage    78.78%   78.78%           
========================================
  Files            7        7           
  Lines           66       66           
========================================
  Hits            52       52           
  Misses          14       14

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a312f8...756d8f1. Read the comment docs.

@dmytrostriletskyi dmytrostriletskyi merged commit 09a98df into develop Apr 17, 2019
@dmytrostriletskyi dmytrostriletskyi deleted the pretty-json-util branch April 22, 2019 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants