OpenAI Pricing Scraper
This package provides a simple way to fetch and parse the pricing data from the OpenAI pricing page. It can be used as a standalone script or as a module imported into other applications.
Installation
To install the package, you can either clone the repository and install it locally or install it directly from the source using pip:
pip install git+https://github.com/8ByteSword/openai_pricing_scraper.git
or
pip install openai_pricing_scraper
(Github and pypi versions may differ)
Usage
As a module
from openai_pricing_scraper import fetch_pricing_data
pricing_data = fetch_pricing_data()
print(pricing_data)
As a standalone script
Run the fetch_pricing.py script directly:
python fetch_pricing.py
Result
The result will be given as a JSON. At the time of writing would be:
License
This project is licensed under the MIT License.
Metadata
Release files for openai-pricing-scraper 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openai-pricing-scraper-0.1.1.tar.gz | 2.6 kB | Without provenance | Details for openai-pricing-scraper-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openai_pricing_scraper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for openai_pricing_scraper-0.1.1-py3-none-any.whl |
Total release size: 5.6 kB
Release files / openai-pricing-scraper-0.1.1.tar.gz
| Download URL | openai-pricing-scraper-0.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02c278aed7c31d4f5c34c373406be6bb9aed63e9c1c4895f01288acd44700517
|
|
BLAKE2b-256 checksum How to use checksums |
95924abffa193fe08a082123aa4939da5df9ce86f20cf415deaa092fff72ed2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / openai_pricing_scraper-0.1.1-py3-none-any.whl
| Download URL | openai_pricing_scraper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4aa4951ee615ff73edae82a1ab366f241fcd671014cc35f6f63cdec679003d8
|
|
BLAKE2b-256 checksum How to use checksums |
d87bcab41d63702d98239c621131f3b6108666eea9b62c4481e3b9f089445691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for openai-pricing-scraper 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.