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.3.1

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.3.4.tar.gz (9.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.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file credigraph-0.3.4.tar.gz.

File metadata

  • Download URL: credigraph-0.3.4.tar.gz
  • Upload date:
  • Size: 9.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.4.tar.gz
Algorithm Hash digest
SHA256 c8ac7c11b66a59ef5cbb542d0ceedea0ae0855295761a6cb7ceb3ee098c214cc
MD5 c4b62800b6c8a14e41c22eeaec77301b
BLAKE2b-256 11bcdb0d7ed76ea1a556635a6a23eac5b7c503574e615388399a7860418d96fd

See more details on using hashes here.

File details

Details for the file credigraph-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: credigraph-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2bc1aac8086a17a9054310ae2cc7a2b2c6c16d7a0298cda7ea232dfd2c54f955
MD5 1b5b9eca0057e66fd309f961ebb75ab0
BLAKE2b-256 48b6bc4b34e71898f06e36cd87c9d082ad02f68ac7bdfa0c5e3f435579cdf660

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