Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# Alan's test file
DevTest.ipynb
10 changes: 10 additions & 0 deletions AutoPPT/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file is what initialises your code as a python package
# this file is generally left empty but you can use this to shorten your import paths

## For example
## lets say you have a class in presentation.py which you will import it like
## import AutoPPT.presentation.<class name>

from AutoPPT.presentation import *
## but if you add a that import here in this file then you can import that class using
## import AutoPPT.<class name>
7 changes: 7 additions & 0 deletions AutoPPT/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Add your executable code here
## When you run python execute code , code written here will run

from AutoPPT.presentation import generate_presentation

if __name__ == "__main__":
generate_presentation('rocks')
6 changes: 6 additions & 0 deletions AutoPPT/presentation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# add the classes and functions required by your code here
# whatever you add to these files can be imported using
# import AutoPPT.presentation.<class>

def generate_presentation(query):
print(f"Searching for {query}")
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# AutoPPT
![Generic badge](https://img.shields.io/badge/Status-Work_in_progress-<COLOR>.svg)

using web scraping to make a ppt on any topic.
the code generates a basic ppt using beautiful soup, requests and python pptx packages.
the following points are what i felt , can be added.
1.add paragraphs of content from wiki
2.add images
3.add tkinter interface
4.remove numbers from the articles.
5. be able to put selective information in the slide. not just the first sentence.

I have also attatched a ppt so you can se what it makes, on putting the input as per the jupyter notebook.

### Future updates would involve features like

1. Implement python package and command line interface
2. add paragraphs of content from wiki
3. add images
4. add tkinter interface
5. remove numbers from the articles.
6. be able to put selective information in the slide. not just the first sentence.

# the code is i python
# i have also attatched a ppt so you can se what it makes, on putting the input as per the jupyter notebook.

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
setuptools
wheel
beatifulsoup4
python-pptx
requests
27 changes: 27 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os
import setuptools

with open("README.md", "r") as fh:
long_description = fh.read()


setuptools.setup(
name="AutoPPT",
version="0.0.1",
author="Beetleguese",
description='''
Make your PPTs
''',
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
],
python_requires='>=3.6',
install_requires=[
"beautifulsoup4",
"requests",
"python-pptx"
],
)