Git Product home page Git Product logo

har2document-django's Introduction

Har2Document-Django

Build Code style: black pre-commit pre-commit.ci status

Har2Document-Django is a plugin for the har2document package, providing enhanced functionality when combined with Django.

Support for Python 3.10 and later, Django 3.2 and later versions.


Features

  • Django Integration: Seamlessly integrates with Django to provide detailed API documentation.
  • Enhanced URL Analysis: Extracts and displays Django View functions or class names from URLs.
  • Path Parameter Insights: Offers detailed information about path parameters in your Django application.
  • Masking Feature: Offers the ability to mask sensitive information in the documentation, such as passwords and phone numbers.
  • Export to CSV and Markdown: Allows exporting the generated documentation to both CSV and Markdown formats, enabling flexible documentation management.

Usage

from har2document_django import run

har_file_path = "/your/har/file/path.har"
masking_mapping = {
    "mypassword": "1q2w3e4r",  # password
    "01012345678": "010********",  # phone number
}

run(
    har_file_path,
    masking_mapping,
    csv=True,  # Save the result as a CSV file
    markdown=True,  # Save the result as a Markdown file
)

When you execute this code, it will process the specified HAR file and generate documentation. If csv or markdown is set to True, the respective CSV and Markdown files will be created. These files will be saved in the same directory as the provided HAR file.


Installation

To install Har2Document-Django, you can use pip to install directly from the GitHub repository. Run the following command in your terminal:

pip install git+https://github.com/8percent/har2document-django.git

Contributing

Pull requests are always welcome.

Check CONTRIBUTING.md for more details.


License

Distributed under the terms of the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.