Skip to main content

PowerPoint Template for python

Project description

PPTT

PowerPoint Template for python

Installation

$ pip install PPTT
✨🍰✨

How to use it?

make master pptx

link how to make master pptx

master.pptx preview

master_preview

make page!

create slide.json like this

{
  "pages": [
    {
      "slide_pos": 1,
      "contents": {
        "title": {
          "text": "PPTT"
        },
        "subtitle": {
          "text": "you don't need to config design"
        }
      }
    },
    {
      "slide_pos": 2,
      "contents": {
        "title": {
          "text": "Replace Table Data"
        },
        "table": {
          "table": {
            "data_type": "key_value",
            "keys": ["Name", "Age", "Hobby", {"name": "Language", "data_key": "language"}],
            "data": [
              {"Name": "sinsky", "Age": 28, "Hobby": "programming", "language": "korean"},
              {"Name": "summer", "Age": 4, "Hobby": "reading", "language": "korean"},
              {"Name": "emmit", "Age": 30, "Hobby": "lego", "language": "english"},
              {"Name": "agent", "Age": 20, "Hobby": "hiding", "language": "english"},
              {"Name": "python", "Age": 38, "Hobby": "making", "language": "python"}
            ]
          }
        }
      }
    },
    {
      "slide_pos": 3,
      "contents": {
        "title": {
          "text": "Replace Chart Data"
        },
        "chart": {
          "chart": {
            "data_type": "category_data",
            "title": "this is new chart",
            "categories": ["list", "dict", "str"],
            "series": {
              "series 1": [5, 13, 8]
            }
          }
        }
      }
    },
    {
      "slide_pos": 4,
      "contents": {
        "body": {
          "text": "support multi-line\ntext\nlike this"
        },
        "table": {
          "table": {
            "data_type": "raw",
            "data": [
              [null, "1Q", "2Q"],
              ["Apple", 10, 20],
              ["Google", 8, 6],
              ["AWS", 20, 15]
            ]
          }
        }
      }
    }
  ]
}

make ppt!

pptt make_ppt master.pptx clone.pptx -i slide.json
clone.pptx preview

master_preview

Change Logs

  • 0.0.1
    • add cli version
    • cli usecase example
  • 0.0.2
  • 0.0.3
    • remove feature : I will refactoring ASAP
      • python api feature
      • template mode
    • add replace mode
    • update simple usecase example
    • support table data replace
      • support data type : raw, key_value
    • support chart data replace
      • support data type : category_data
  • 0.0.4
    • New Feature
      • support all chart data tye : xy_data, bubble_data
    • Docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PPTT-0.0.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

PPTT-0.0.4-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file PPTT-0.0.4.tar.gz.

File metadata

  • Download URL: PPTT-0.0.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for PPTT-0.0.4.tar.gz
Algorithm Hash digest
SHA256 85246823b1fba1d5acc604a360449044addb998e139cd77e4535cfcd86915bf4
MD5 273b3764eb204451bb3f595243e03678
BLAKE2b-256 40b4ee83458eee742eca2c3c85a0a9fdf08450d481baf0fd3a5d7a7365bdb80f

See more details on using hashes here.

File details

Details for the file PPTT-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: PPTT-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for PPTT-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c53e84eab3856f190d4fe3a38b8e6c402889ffd55ff63e9dfa8e568e4065bb07
MD5 0e299217d74fdd31b8123eaa9f31ae03
BLAKE2b-256 6c86ab80c7d73e0daece3dbe655b4b0171a74379b8e720f3f8e99d805a179174

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page