Skip to main content

Contributors

Angela Tao

Luke Bernstein

Charles Hu

James Luo

Python Package: Foo Barstein

Package Link

This package was created so you can have Professor Foo Barstein talk with you straight from your terminal. Professor Barstein can do four things - tell you a joke, tell you a haiku, tell you a compliment, and write you an email. Professor Barstein is a fictional character and powered by GPT-3.

How to Run demo

  1. Set your OpenAI API Key by writing the following command in the shell: export OPENAI_API_KEY=(your key)
  2. Run demo.py with the pipfile with the following command: pipenv run python demo.py

How to run tests

  1. go to tests folder by writing the following command in the shell: cd tests
  2. install all necessary packages by writing the following command in the shell: pip install openai pip install pytest
  3. Set your OpenAI API Key by writing the following command in the shell: export OPENAI_API_KEY=(your key) 4.run tests by writing the following command in the shell: pytest test_functions.py

What the Functions do

  1. gptchat gptchat will take the role of Professor Foo Barstein and use ChatGPT to generate a joke, haiku, compliment, or an email so you don't have to be lonely in your terminal anymore.

  2. cowtalk cowtalk will take the response from ChatGPT-3 and add "moo" every 3 words so you can talk with cows!

  3. onewordperline onewordperline will play around with how the text is displayed. Instead of left to right, you will be reading from top to bottom.

  4. changepreset changepreset will change how ChatGPT answers your question. Use this function to give ChatGPT a different role than Professor Foo Barstein!

Release files for funny-gpt-stuytowners 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for funny-gpt-stuytowners 0.0.3
File Size Uploaded
funny_gpt_stuytowners-0.0.3.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for funny-gpt-stuytowners 0.0.3
File Interpreter ABI Platform
funny_gpt_stuytowners-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 33.9 kB

Release files / funny_gpt_stuytowners-0.0.3.tar.gz

Download URL funny_gpt_stuytowners-0.0.3.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d2facfb4f4b078af9284ba69b7da8cf5629e935c9c3c75ae842dff7f296fa4cf
BLAKE2b-256 checksum
How to use checksums
8c3ac29271a3901e24ff70897c68b3404cbf5944f6303e4e5293fa8329dbd14e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Release files / funny_gpt_stuytowners-0.0.3-py3-none-any.whl

Download URL funny_gpt_stuytowners-0.0.3-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72c6a55673d53f103ceb8d868a1c2f62f7dd47c34f3d6635d4b562ee393baa5f
BLAKE2b-256 checksum
How to use checksums
6e4cddf327c6cf8ec99b7caaef545f67d5a43b8934506ea517a37f230722a0ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page