Coder Social home page Coder Social logo

kontent-linked-report's Introduction

Live Demo

Kontent Konstellations

This is a sample app that uses the Kentico Kontent Python SDK to retrieve content from Kentico Kontent. Plotly and Dash are used to generate a network graph of linked items in a Kontent project.

If you find a bug in the sample or have a feature request, please submit a GitHub issue.

Table of Contents

Getting started

We recommend running this sample application using virtual environment tooling such as virtualenv.

To run the application:

  1. Clone the app repository with your favorite GIT client
  2. Add your Kontent Project ID key to config.py in the project root - detailed instructions available below
  3. Install the project dependencies: pip install -r requirements.txt
  4. Run the application: report.py

Connecting to your Sample Project

If you already have a Kentico Kontent account, you can connect this application to your version of the Sample project.

  1. In Kentico Kontent, choose Project settings from the app menu
  2. Under Development, choose API keys and copy the Project ID
  3. Open the config.py file
  4. Use the values from your Kentico Kontent project as the project_id value
  5. Save the changes

Features

  • Nodes can be moved by clicking and dragging.
  • Move around the canvas by holding down left-mouse-click in blank space and moving your mouse.
  • Hovering over an arrow (edge) between two nodes shows how they are related in the left-hand margin.
  • Zooming in/out can be done with your mousewheel when your cursor is positioned over the graph.
  • Clicking the "Reset" button will reset the zoom.

Filtering

To leverage the Kontent Python SDK's Filtering:

  1. Open network_builder.py
  2. Import the Kontent SDK's Filter
  3. Replace response = client.get_content_items() with your filtered query.

Example:

from kontent_delivery.builders.filter_builder import Filter

# returns all items of the "article" content type
response = client.get_content_items(
    Filter("system.type", "[eq]", "article")
)
  1. Run the application with: report.py

Limitations

kontent-linked-report's People

Watchers

 avatar  avatar

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.