Python client for the CrediGraph API
Project description
Install
pip install credigraph
Quick Start
from credigraph import query, query_batch
# Single domain
result = query("apnews.com")
print(result["credible"])
# Multiple domains
results = query_batch(["apnews.com", "cnn.com", "reuters.com"])
for result in results:
print(result["credible"])
Input Normalization
The client handles various input formats:
query("example.com")
query("www.example.com")
query("https://example.com/article?x=1")
query("EXAMPLE.COM")
# will all resolve to example.com
Response Format
For one domain's credibility score, use the query() endpoint:
{
"domain": "apnews.com",
"credible": true
}
For a list of domains, use the query_batch() batch endpoint:
[
{"domain": "apnews.com", "credible": true},
{"domain": "cnn.com", "credible": true},
{"domain": "example.com", "credible": false}
]
Versioning
The CrediGraph API follows semantic versioning:
import credigraph
print(credigraph.__version__) # 0.3.1
API Contract
- OpenAPI spec: openapi.yaml
- Developing guide (versioning, testing): credigraph/README.md
Support
- Issues: GitHub Issues
- Documentation: read the official CrediGraph documentation or the repo's README (client usage) + credigraph/README.md (developer workflow)
- Further issues: contact the developers.
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
credigraph-0.3.3.tar.gz
(8.1 kB
view details)
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 credigraph-0.3.3.tar.gz.
File metadata
- Download URL: credigraph-0.3.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b078b569a12633c608fe869571ac59d31226dd4a452b6ac30e04671ba610f357
|
|
| MD5 |
16f3159fdaad44f406a7193831a7a6d2
|
|
| BLAKE2b-256 |
0377734e781b03496cc1ca1d05795d66fd0827bffb3095f3ef85b2d6b13ea739
|
File details
Details for the file credigraph-0.3.3-py3-none-any.whl.
File metadata
- Download URL: credigraph-0.3.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1146ac76169d4aff74ae7b3dd426bea492875f9995fbc240fe01e19b7a8c450a
|
|
| MD5 |
2dcaf9ac754abd45e9aa45af7f1f7356
|
|
| BLAKE2b-256 |
a3ede83e9c00bd97fcfa5270ee80492c8916725cdf72a2714b1a9656d4d61d78
|