Python client for the CrediGraph API
Project description
CrediNet
Graph and Machine Learning-based domain credibility assessments on the web.
For more details, refer to the full documentation:
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}
]
Refer to the full documentation for more details.
Versioning
The CrediGraph API follows semantic versioning:
import credigraph
print(credigraph.__version__) # 0.4.0
Refer to the full versioning documentation for more details.
API Contract
- OpenAPI spec: openapi.yaml
- Developing guide (versioning, testing): credigraph/README.md
Refer to the full config documentation for more details.
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
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.4.1.tar.gz.
File metadata
- Download URL: credigraph-0.4.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab2d8558496ae45af55e6f4f0265fc12af45278462d37074d508930e9f1b4444
|
|
| MD5 |
2b5bef127e6519e8bd901edfb0c709ec
|
|
| BLAKE2b-256 |
069e6db405bc5cafb9827f570ffb3033055a92b12c6c6c534ae7432e806bb7c2
|
File details
Details for the file credigraph-0.4.1-py3-none-any.whl.
File metadata
- Download URL: credigraph-0.4.1-py3-none-any.whl
- Upload date:
- Size: 7.0 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 |
53d5e2935a637fa8130f2b9cd82ad21f23380195e9e8dae493330773765d061e
|
|
| MD5 |
ba9009c5bb1495f2f78180a9b5e881e6
|
|
| BLAKE2b-256 |
3e3f2d156e4fd0e24488fc4ad7fa50206c962b18ca01fe6b5b263456594750db
|