Difference between revisions of "PySemanticSlides"

From BITPlan Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
|since=2023-02-14
 
|since=2023-02-14
 
}}
 
}}
=tickets=
+
{{pip|pySemanticSlides}}
  
=Freitext=
+
= Open Source access =
 +
<source lang='bash'>
 +
git clone https://github.com/WolfgangFahl/pySemanticSlides
 +
cd pySemanticSlides
 +
pip install .
 +
</source>
 +
== Testing ==
 +
<source lang='bash' highlight='1-2'>
 +
# scripts/tests will also work ...
 +
pip install green
 +
green
 +
...
 +
OK (passes=14)
 +
</source>
 +
 
 +
= Usage =
 +
== Command line ==
 +
<source lang='bash'>
 +
slidewalker -h
 +
usage: slidewalker [-h] [-d] [-f FORMAT] [--includeHidden] [--rootPath ROOTPATH]
 +
 
 +
SlideWalker - get meta information for all powerpoint presentations in a certain folder
 +
 
 +
options:
 +
  -h, --help            show this help message and exit
 +
  -d, --debug          show debug info
 +
  -f FORMAT, --format FORMAT
 +
                        output format to create: csv,json or txt
 +
  --includeHidden      exclude hidden slides
 +
  --rootPath ROOTPATH
 +
</source>
 +
== Example ==
 +
<source lang='bash'>
 +
slidewalker --rootPath examples -f json
 +
</source>
 +
=== Json output ===
 +
<source lang='json'>
 +
{
 +
  "SemanticSlides.pptx": {
 +
    "title": "pySemanticSlides",
 +
    "author": "Wolfgang Fahl",
 +
    "created": "2023-02-14 06:41:31",
 +
    "path": "examples/semanticslides/SemanticSlides.pptx",
 +
    "slides": [
 +
      {
 +
        "page": 1,
 +
        "pdf_page": 1,
 +
        "title": "pySemanticSlides",
 +
        "name": "",
 +
        "text": [
 +
          "pySemanticSlides",
 +
          "Semantify• •your• •Presentations",
 +
          ""
 +
        ],
 +
        "notes": []
 +
      },
 +
      {
 +
        "page": 2,
 +
        "pdf_page": 2,
 +
        "title": "Why semantify your slides?",
 +
        "name": "",
 +
        "text": [
 +
          "Why• •semantify• •your• •slides•?",
 +
          "The •valuable• •content• •of• •your• •presentation• •is• •hidden• •if• •it• •is• not •FAIR:•Findable•\t•Accessible•Interoperable•Reusable",
 +
          ""
 +
        ],
 +
        "notes": [
 +
          "",
 +
          "Name:• •Why_semantify•Title: •Why• •semantify• •your• •slides•?•Keywords:  •Semantification•, FAIR•Literature•: Furth2018, Fair2016",
 +
          "",
 +
          ""
 +
        ]
 +
      }
 +
    ]
 +
  }
 +
}
 +
</source>

Revision as of 14:52, 14 February 2023

OsProject

OsProject
id  PySemanticSlides
state  active
owner  WolfgangFahl
title  PySemanticSlides
url  https://github.com/WolfgangFahl/pySemanticSlides
version  0.0.1
description  
date  2023-02-14
since  2023-02-14
until  


Installation

pip install pySemanticSlides
# alternatively if your pip is not a python3 pip
pip3 install pySemanticSlides 
# local install from source directory of pySemanticSlides 
pip install .

upgrade

pip install pySemanticSlides  -U
# alternatively if your pip is not a python3 pip
pip3 install pySemanticSlides -U


Open Source access

git clone https://github.com/WolfgangFahl/pySemanticSlides
cd pySemanticSlides
pip install .

Testing

# scripts/tests will also work ...
pip install green
green
...
OK (passes=14)

Usage

Command line

slidewalker -h
usage: slidewalker [-h] [-d] [-f FORMAT] [--includeHidden] [--rootPath ROOTPATH]

SlideWalker - get meta information for all powerpoint presentations in a certain folder

options:
  -h, --help            show this help message and exit
  -d, --debug           show debug info
  -f FORMAT, --format FORMAT
                        output format to create: csv,json or txt
  --includeHidden       exclude hidden slides
  --rootPath ROOTPATH

Example

slidewalker --rootPath examples -f json

Json output

{
  "SemanticSlides.pptx": {
    "title": "pySemanticSlides",
    "author": "Wolfgang Fahl",
    "created": "2023-02-14 06:41:31",
    "path": "examples/semanticslides/SemanticSlides.pptx",
    "slides": [
      {
        "page": 1,
        "pdf_page": 1,
        "title": "pySemanticSlides",
        "name": "",
        "text": [
          "pySemanticSlides",
          "Semantify• •your• •Presentations",
          ""
        ],
        "notes": []
      },
      {
        "page": 2,
        "pdf_page": 2,
        "title": "Why semantify your slides?",
        "name": "",
        "text": [
          "Why• •semantify• •your• •slides•?",
          "The •valuable• •content• •of• •your• •presentation• •is• •hidden• •if• •it• •is• not •FAIR:•Findable•\t•Accessible•Interoperable•Reusable",
          ""
        ],
        "notes": [
          "",
          "Name:• •Why_semantify•Title: •Why• •semantify• •your• •slides•?•Keywords:  •Semantification•, FAIR•Literature•: Furth2018, Fair2016",
          "",
          ""
        ]
      }
    ]
  }
}