GPTZero API Wrapper
This wrapper provides a simple way to interact with the GPTZero API using Python.
Featured on https://gptzero.me/docs
Getting started
To use the GPTZero API, you'll need to have an API key. If you don't have an API key yet, you can sign up for one on the GPTZero website.
Once you have your API key, you can install the gptzero package and use it.
from gptzero import GPTZeroAPI
api_key = 'your_api_key_here' # Your API Key from https://gptzero.me
gptzero_api = GPTZeroAPI(api_key)
Making a text prediction
document = 'Hello world!'
response = gptzero_api.text_predict(document)
print(response)
Making a file prediction
file_path = 'path/to/your/file'
response = gptzero_api.file_predict(file_path)
print(response)
Metadata
Release files for gptzero 0.1.2
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 |
|---|---|---|---|---|
| gptzero-0.1.2.tar.gz | 3.1 kB | Without provenance | Details for gptzero-0.1.2.tar.gz |
Release files / gptzero-0.1.2.tar.gz
| Download URL | gptzero-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9808a091afccc6004350f6b539c97450dfa1382268485fe69c031d088a0f1d87
|
|
BLAKE2b-256 checksum How to use checksums |
f19549207ef324bfa340e7708a6a7668e5bbb01abd16764389454ab6d4983166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for gptzero 0.1.2
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.