Difference between revisions of "PySemanticSlides"

From BITPlan Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
pip install green
 
pip install green
 
green
 
green
...
+
..
OK (passes=14)
+
Captured stdout for tests.test_doi.TestDOI.testFetchMeta
 +
Starting test testFetchMeta, debug=False ...
 +
test testFetchMeta, debug=False took  1.7 s
 +
 
 +
Captured stdout for tests.test_slidewalker.TestSlideWalker.test_slidewalker
 +
Starting test test_slidewalker, debug=False ...
 +
test test_slidewalker, debug=False took  0.0 s
 +
 
 +
Ran 2 tests in 2.174s using 16 processes
 +
 
 +
OK (passes=2)
 +
 
 
</source>
 
</source>
  

Revision as of 13:54, 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
..
Captured stdout for tests.test_doi.TestDOI.testFetchMeta
Starting test testFetchMeta, debug=False ...
test testFetchMeta, debug=False took   1.7 s

Captured stdout for tests.test_slidewalker.TestSlideWalker.test_slidewalker
Starting test test_slidewalker, debug=False ...
test test_slidewalker, debug=False took   0.0 s

Ran 2 tests in 2.174s using 16 processes

OK (passes=2)

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",
          "",
          ""
        ]
      }
    ]
  }
}