Skip to main content

Perigon API

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

perigon-sdk

The Perigon API provides access to comprehensive news and web content data. To use the API, simply sign up for a Perigon Business Solutions account to obtain your API key. Your available features may vary based on your plan. See the Authentication section for details on how to use your API key.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://docs.perigon.io/discuss

Requirements.

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import perigon_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import perigon_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import perigon_sdk
from perigon_sdk import ApiException
from pprint import pprint


# Initialize the API client with your API key
client = perigon_sdk.ApiClient(api_key="YOUR_API_KEY")

# Create an instance of the API class
api_instance = perigon_sdk.V1Api(client)
id = 'id_example' # str | 

# Synchronous API call
try:
    # Journalists ID
    api_response = api_instance.get_journalist_by_id(id)
    print("The response of V1Api->get_journalist_by_id:\n")
    pprint(api_response)
except ApiException as e:
    print("Exception when calling V1Api->get_journalist_by_id: %s\n" % e)

# Asynchronous API call
import asyncio

async def call_api_async():
    try:
        api_response = await api_instance.get_journalist_by_id_async(id)
        print("The async response of V1Api->get_journalist_by_id_async:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling V1Api->get_journalist_by_id_async: %s\n" % e)

# Run the async function
asyncio.run(call_api_async())

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

perigon_sdk-0.5.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

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

perigon_sdk-0.5.0-py3-none-any.whl (86.3 kB view details)

Uploaded Python 3

File details

Details for the file perigon_sdk-0.5.0.tar.gz.

File metadata

  • Download URL: perigon_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for perigon_sdk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f27a019b72ba05b64117e26c43c10c00de3dcf64b4bb291a2633b0f4cb7e0323
MD5 73ef1d727e47e3b75c3a1f4f9782392c
BLAKE2b-256 0ec91f35d2f139470768409d30dc77ec88fb6399fc53a6d303d96f1c019f1f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for perigon_sdk-0.5.0.tar.gz:

Publisher: publish.yml on goperigon/perigon-sdks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file perigon_sdk-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: perigon_sdk-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 86.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for perigon_sdk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bbc3da7966c7a8ac057a284b02a59b3d2b3235fffb9c13e2d95ade608302424
MD5 0f51c3e694f589e128a11792b6e60066
BLAKE2b-256 0c26e7fd5197620c4078ff46abdd3c0799b64633ee9f1c0bc2d485a3f8e894e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for perigon_sdk-0.5.0-py3-none-any.whl:

Publisher: publish.yml on goperigon/perigon-sdks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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