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
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 perigon_sdk-0.4.0.tar.gz.
File metadata
- Download URL: perigon_sdk-0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd0fd95f93394e53abdaab37476b39f48fa13be57b46b483c20eb537b93e697f
|
|
| MD5 |
9acd23c376271a1f4b9fbdc58dcd1b9e
|
|
| BLAKE2b-256 |
a87b377392468ce8e480df5356c9654466ca5239635bb7a58738746479293bc2
|
Provenance
The following attestation bundles were made for perigon_sdk-0.4.0.tar.gz:
Publisher:
publish.yml on goperigon/perigon-sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perigon_sdk-0.4.0.tar.gz -
Subject digest:
bd0fd95f93394e53abdaab37476b39f48fa13be57b46b483c20eb537b93e697f - Sigstore transparency entry: 202179857
- Sigstore integration time:
-
Permalink:
goperigon/perigon-sdks@4f1eb830cab51f483fe4ab1ec5a2f34db8d82e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goperigon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4f1eb830cab51f483fe4ab1ec5a2f34db8d82e41 -
Trigger Event:
push
-
Statement type:
File details
Details for the file perigon_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: perigon_sdk-0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30bff8a3fde8f900345cf86c3e47f32a5e310dbbb1e0f6cb0acbc69eb6dc274e
|
|
| MD5 |
06bf8a40d6908e8af3efb93a49a600a1
|
|
| BLAKE2b-256 |
c42c4646f827eaabfa8875a322adb957a9cc3c075c94fafdcd348415e1e33f15
|
Provenance
The following attestation bundles were made for perigon_sdk-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on goperigon/perigon-sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perigon_sdk-0.4.0-py3-none-any.whl -
Subject digest:
30bff8a3fde8f900345cf86c3e47f32a5e310dbbb1e0f6cb0acbc69eb6dc274e - Sigstore transparency entry: 202179859
- Sigstore integration time:
-
Permalink:
goperigon/perigon-sdks@4f1eb830cab51f483fe4ab1ec5a2f34db8d82e41 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goperigon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4f1eb830cab51f483fe4ab1ec5a2f34db8d82e41 -
Trigger Event:
push
-
Statement type: