Skip to content

Adding more columns to the display #4 - #9

Open
dionysio wants to merge 2 commits into
abduhbm:mainfrom
dionysio:main
Open

Adding more columns to the display #4#9
dionysio wants to merge 2 commits into
abduhbm:mainfrom
dionysio:main

Conversation

@dionysio

@dionysio dionysio commented Dec 3, 2021

Copy link
Copy Markdown

I've added a new command line argument called columns which allows the user to retrieve more than just license information. An example call

deplic /home/user/myproject --format json --columns Name Version Meta "Project Url"

which would output:

[
    {
        "Name": "pdf2image",
        "Version": "1.16.0",
        "Meta": "MIT",
        "Project Url": "https://pypi.org/project/pdf2image/"
    },
    {
        "Name": "blowfish",
        "Version": "0.6.1",
        "Meta": "GPLv3",
        "Project Url": "https://pypi.org/project/blowfish/"
    }
]

I've checked and it works in json/csv/tabulated formats. Also by default, the output is still the same - only license information shows

@dionysio

dionysio commented Dec 3, 2021

Copy link
Copy Markdown
Author

hey @abduhbm sorry I've never seen these pre-commit hooks used, can you explain how can this https://github.com/abduhbm/dep-license/runs/4406447331?check_suite_focus=true be fixed?

@abduhbm

abduhbm commented Dec 5, 2021

Copy link
Copy Markdown
Owner

Hey @dionysio ... Thanks for the PR
This runs a pre commit hook to check the code format using black formatter
You can install it locally and run it to reformat the code (https://pre-commit.com)

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.

2 participants