Motivate Me
This simple Python package leverages ChatGPT to provide motivation to help you out.
This README file serves as the package's documentation.
Installation
Install using pip:
pip install motivate-me
Usage
Ensure that your OpenAI key is an environmental variable. You can do this a few ways:
- Placing it in your
.envfile and sourcing it (. .env) - Exporting the key:
export OPENAI_API_KEY="your_key"
Assuming your OpenAI key is in your environmental variables:
>>> import os
>>> from motivate_me import motivate
>>> motivate(os.environ['OPEN_AI_KEY'])
Believe in yourself and your abilities, success is within your reach. Keep pushing forward with determination and watch your achievements unfold.
This will print out a motivational one-liner. We can change this to a quote by passing in type = "quote" as a parameter
>>> motivate(os.environ['OPEN_AI_KEY'], type = "quote")
"Don't be a pessimist, it won't work anyway!" - Yogi Berra.
You can also increase the number of (maximum) characters for the quote by passing in n_words (default: 30):
>>> motivate(os.environ['OPEN_AI_KEY'], n_words = 100)
Note that this may not necessarily give you a 100 word quote; this just increases the number of words that can be allocated in a quote.
Metadata
Release files for motivate-me 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| motivate-me-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| motivate_me-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / motivate-me-0.1.0.tar.gz
| Download URL | motivate-me-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
031c74449b380b68c014bd932626d990548726756e97e9997b48b3fccf48a07a
|
|
BLAKE2b-256 checksum How to use checksums |
d60981c3c03f0aca2a11b83ae3dbfc7e13c354a9403e68f28bab8e1c4bf57426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / motivate_me-0.1.0-py3-none-any.whl
| Download URL | motivate_me-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32347216624da953bdc4035c4a31d3876bd3a098eb7dd545cc4e2e9065660a35
|
|
BLAKE2b-256 checksum How to use checksums |
c12ecdfbef40423d916acd37672a04b4fcb0d96ceec8570390107c4b10102ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|