No project description provided
Project description
Package Overview
This contains functions to help me get data from several sources:
- OpenAI's ChatGPT
- Bureau of Labor Statistics (BLS)
- See example here: https://www.bls.gov/developers/api_python.htm#python2
- Signatures: https://www.bls.gov/developers/api_signature_v2.htm
API Keys
You'll need to make sure that you obtain API keys. Store them as environment variables so that you do not have to share your API key in your code. An environment variable resides on your computer, so you'll have to save them on each computer that you use.
The way you set it differs between Mac/Linux and Windows.
Approach using terminal for Mac
This creates a line in the .zshrc file:
echo "export OPEN_API_KEY=<apiKey>" >> ~/.zshrc
Test if it exists: cat ~./zshrc
Set it permanently: source ~/.zshrc
Get environment variables like this:
os.environ['OPENAI_KEY']
or
os.environ.get("OPEN_API_KEY")
Other useful notes
Github workflow
git status git pull git add file.txt or git add . git commit -m "message" git push
Finding folder where packages are located
import sys; sys.path help('modules')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file my_apis-0.1.0.tar.gz.
File metadata
- Download URL: my_apis-0.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2128f5d202da1985a448521c83e43de6f8245c2e9752cf5c237384912aff83b
|
|
| MD5 |
7f013dc81198185ddae675aecb24a6c8
|
|
| BLAKE2b-256 |
ebf2395b40dce0df190c4830302b13ce5bcf91b7d47daa8d268278cd91ede791
|
File details
Details for the file my_apis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: my_apis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
745d8ba2b88c60b0e2f091c73df60032d525a57491e492758ff665d5faa9ba9b
|
|
| MD5 |
b53126f0e638b01223ed11200c626e22
|
|
| BLAKE2b-256 |
d48735fe29a0f4d691104f64e68e210f196679a783226387df8476f73d96f75a
|