Skip to content

verbose param #27

Open

Description

@m1ci

Introduce verbose (-v) param which provides detailed and comprehensive output, e.g.information about the HTTP request and response communicated with the databus or vault.

Activity

  1. added
    downloadIssue related to data download functionality from databus
    deployIssue related to data deploy functionality from databus
    on Oct 27, 2025
  2. spyke7 commented on Oct 29, 2025

    @spyke7

    Hi team! I want to work on this issue
    I will be generating a pull request regarding this please review and check that.

    What I will be doing?

    1. I will be adding the --verbose, -v inside the cli.py and also to the download in cli.py. Update download function signature and pass verbose to client

    2. also will updating deploy function

    3. new set_verbose function I will be adding and verbose logging inside the deploy(), download_file(), vault token exchange, get_vault_access()

    @Integer-Ctrl @kurzum @JJ-Author

  3. spyke7 commented on Oct 29, 2025

    @spyke7

    Can you please specify that what to give in help=" ", so that I can give it and it will be helpful as well.
    and it would be appreciable if you assign me this issue

  4. spyke7 commented on Oct 29, 2025

    @spyke7

    Important update

    Maintainers please see this and tell me if you want anything to update in the below message for the newly implemented verbose output. After that I will generate a pull request.

    command -

    python -m databusclient download https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2 -v

    -v or --verbose can be used
    for both deploy and download

    output -

    SPARQL endpoint https://databus.dbpedia.org/sparql
    Local directory not given, using D:\Code Lab\open source\dbpedia\original databases\databus-python-client\dbpedia\mappings\mappingbased-literals\2022.12.01
    
    
    Download file: https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    
    --- VERBOSE: HTTP HEAD Request ---
    URL: https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    Status Code: 307
    Response Headers: {'Server': 'nginx/1.27.3', 'Date': 'Wed, 29 Oct 2025 19:31:01 GMT', 'Content-Type': 'text/plain; charset=utf-8', 'Content-Length': '157', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Location': 'https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2', 'Vary': 'Accept', 'Set-Cookie': 'connect.sid=s%3ALxwtiSz8DVCdADg6gtX6vydAb4AlyP2W.FRmEjcYqxmc6pXSn8A9wOrmPg54DWVESgxt5u55Li5E; Path=/; HttpOnly'}
    --- End of HTTP HEAD Response ---
    
    Redirects url:  https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    
    --- VERBOSE: HTTP GET Request ---
    URL: https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    Status Code: 200
    WWW-Authenticate Header:
    Response Headers: {'Server': 'nginx/1.24.0 (Ubuntu)', 'Date': 'Wed, 29 Oct 2025 19:31:03 GMT', 'Content-Type': 'application/octet-stream', 'Content-Length': '23069', 'Last-Modified': 'Wed, 08 Mar 2023 22:56:21 GMT', 'Connection': 'keep-alive', 'ETag': '"64091295-5a1d"', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Methods': 'GET, POST, OPTIONS', 'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type', 'Accept-Ranges': 'bytes'}
    --- End of HTTP GET Response ---
    
    100%|██████████████████████████████████████████████████████████████████████████████████████████| 23.1k/23.1k [00:00<00:00, 16.9MiB/s]
    
    
    
    (env) D:\Code Lab\open source\dbpedia\original databases\databus-python-client>python -m databusclient download https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    SPARQL endpoint https://databus.dbpedia.org/sparql
    

    Edits possible

    --- VERBOSE: HTTP HEAD Request ---
    URL: https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2
    Status Code: 307
    Response Headers: {'Server': 'nginx/1.27.3', 'Date': 'Wed, 29 Oct 2025 19:31:01 GMT', 'Content-Type': 'text/plain; charset=utf-8', 'Content-Length': '157', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Location': 'https://downloads.dbpedia.org/repo/dbpedia/mappings/mappingbased-literals/2022.12.01/mappingbased-literals_lang=az.ttl.bz2', 'Vary': 'Accept', 'Set-Cookie': 'connect.sid=s%3ALxwtiSz8DVCdADg6gtX6vydAb4AlyP2W.FRmEjcYqxmc6pXSn8A9wOrmPg54DWVESgxt5u55Li5E; Path=/; HttpOnly'}
    --- End of HTTP HEAD Response ---
    

    Please see this and suggest me what to edit and if anything that can be changed or modified in this message

  5. changed the issue type fromtoon Oct 30, 2025
  6. Integer-Ctrl commented on Oct 30, 2025

    @Integer-Ctrl
    Contributor

    Hi @spyke7, thank you for your interest and the work you’ve done!

    You’ve already started and created a PR, which is very cool. The issue you worked on isn’t very well defined, so it takes a bit more time to review and think about what is needed. It’s on my list but please excuse the delay :)

  7. spyke7 commented on Oct 30, 2025

    @spyke7

    That's great! @Integer-Ctrl I would like to here some improvements and it would be great to work with you

  8. Integer-Ctrl commented on Nov 24, 2025

    @Integer-Ctrl
    Contributor

    Hi @spyke7!

    At the moment we don’t have much capacity to actively collaborate on this repo, sorry about that. However, I took a look and left some comments on the PR. Do you want to keep working on this?

  9. Integer-Ctrl commented on Dec 16, 2025

    @Integer-Ctrl
    Contributor

    User no longer working on issue. Reopened.

  10. Tahoora-Tabassum commented on Dec 25, 2025

    @Tahoora-Tabassum

    Hi @Integer-Ctrl,
    I noticed the issue has been reopened and is currently unassigned.
    I’d like to take this up and work on a clean, minimal implementation of the -v/--verbose flag (properly gated, with sensitive data sanitized, and using the logging module for HTTP/Vault request–response details).
    Please let me know if that sounds okay before I proceed.

  11. Integer-Ctrl commented on Dec 30, 2025

    @Integer-Ctrl
    Contributor

    Hi @Tahoora-Tabassum! That sounds fine

  12. Tahoora-Tabassum commented on Dec 30, 2025

    @Tahoora-Tabassum

    Thanks for assigning this! I’ll start working on a clean implementation of the -v/--verbose flag with proper logging and sensitive data sanitization.
    Please let me know if there are any specific requirements or formats, you’d like me to follow.

  13. added a commit that references this issue on Jan 1, 2026
    8f46d50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

deployIssue related to data deploy functionality from databusdownloadIssue related to data download functionality from databus

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions