Giter Club home page Giter Club logo

dillpickle's Introduction

DillPickle

DillPickle is a Python program that generates a company diligence report for a list of companies located in towns.csv. The program uses OpenAI's GPT-3 language model to generate text for each section of the report. The generated text is then saved to a text file and converted to a Microsoft Word document using the python-docx library.

Installation

  1. Clone this repository
git clone https://github.com/nitebyte/DillPickle.git
  1. Install the required modules:

    • openai
    • ebooklib
    • docx
    • requests
    • json
  2. Get an OpenAI API key here.

  3. Replace the api_key in the PR function and the headers dictionary with your OpenAI API key.

  4. Run the program with the command:

python TripTeller.py
  1. Your completed reports(s) will be saved as a .docx file in the same directory.

Usage

  1. Add the names of the towns and states you want to generate reports for to towns.csv.
  2. Run DillPickle.py: python DillPickle.py
  3. The program will generate a text file for each town in the format "Town Name State.txt".
  4. The text files will be converted to Microsoft Word documents in the format "Town Name State.docx".

Example

Suppose towns.csv contains the following entries:

Boeing Co, Null
Weyland-Yutani, Null

Running DillPickle.py will generate the following files:

Boeing Co, Null.txt
Boeing Co, Null.docx
Weyland-Yutani, Null.txt
Weyland-Yutani, Null.docx

The text files will contain the generated text for each section of the company diligence report for the respective town. The Microsoft Word documents will contain the same text formatted as a book with a title page, copyright page, dedication page, and table of contents.

Credits

  • OpenAI
  • ebooklib
  • csv
  • requests
  • json
  • io
  • python-docx

License

DillPickle is licensed under the MIT License. See LICENSE for more information.

dillpickle's People

Contributors

nitebyte avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.