diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a947926 --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/AutoPPT/__init__.py b/AutoPPT/__init__.py new file mode 100644 index 0000000..33f7c69 --- /dev/null +++ b/AutoPPT/__init__.py @@ -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. + +from AutoPPT.presentation import * +## but if you add a that import here in this file then you can import that class using +## import AutoPPT. \ No newline at end of file diff --git a/AutoPPT/__main__.py b/AutoPPT/__main__.py new file mode 100644 index 0000000..66adbad --- /dev/null +++ b/AutoPPT/__main__.py @@ -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') diff --git a/AutoPPT/presentation.py b/AutoPPT/presentation.py new file mode 100644 index 0000000..24732b8 --- /dev/null +++ b/AutoPPT/presentation.py @@ -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. + +def generate_presentation(query): + print(f"Searching for {query}") \ No newline at end of file diff --git a/README.md b/README.md index 46e755f..d4a11e6 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,17 @@ # AutoPPT +![Generic badge](https://img.shields.io/badge/Status-Work_in_progress-.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. - diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b322a1f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +setuptools +wheel +beatifulsoup4 +python-pptx +requests \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bbbf3d7 --- /dev/null +++ b/setup.py @@ -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" + ], +) \ No newline at end of file