Skip to main content

Python client for the CrediGraph API

Project description

CrediNet

CrediNet Logo

Graph and Machine Learning-based domain credibility assessments on the web.

PyPI Downloads Paper Hugging Face License: CC BY 4.0

For more details, refer to the full documentation:

Docs


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

Refer to the full config documentation for more details.

Support

Project details


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.4.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

credigraph-0.4.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for credigraph-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ab2d8558496ae45af55e6f4f0265fc12af45278462d37074d508930e9f1b4444
MD5 2b5bef127e6519e8bd901edfb0c709ec
BLAKE2b-256 069e6db405bc5cafb9827f570ffb3033055a92b12c6c6c534ae7432e806bb7c2

See more details on using hashes here.

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

Hashes for credigraph-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53d5e2935a637fa8130f2b9cd82ad21f23380195e9e8dae493330773765d061e
MD5 ba9009c5bb1495f2f78180a9b5e881e6
BLAKE2b-256 3e3f2d156e4fd0e24488fc4ad7fa50206c962b18ca01fe6b5b263456594750db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page