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

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}
]

Versioning

The CrediGraph API follows semantic versioning:

import credigraph
print(credigraph.__version__)  # 0.3.1

API Contract

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.3.3.tar.gz (8.1 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.3.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for credigraph-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b078b569a12633c608fe869571ac59d31226dd4a452b6ac30e04671ba610f357
MD5 16f3159fdaad44f406a7193831a7a6d2
BLAKE2b-256 0377734e781b03496cc1ca1d05795d66fd0827bffb3095f3ef85b2d6b13ea739

See more details on using hashes here.

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

Hashes for credigraph-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1146ac76169d4aff74ae7b3dd426bea492875f9995fbc240fe01e19b7a8c450a
MD5 2dcaf9ac754abd45e9aa45af7f1f7356
BLAKE2b-256 a3ede83e9c00bd97fcfa5270ee80492c8916725cdf72a2714b1a9656d4d61d78

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