Podigee Connector for Podcast Data
Project description
Podigee Connector
This is a simple library for connecting to the Podigee API.
It can be used to export data from your dashboard at
https://app.podigee.com/analytics
Supported Endpoints
/podcasts/{podcast_id}/analytics
/podcasts/{podcast_id}/analytics/episodes
/episodes/{episode_id}/analytics
See __main.py__
for all endpoints.
Credentials
Before you can use the library, you must extract your Podigee session cookie; they are not exposed through your Podigee settings.
Alternatively, you can call the login endpoint with your username and password to get a new session cookie:
from podigeeconnector import PodigeeConnector
connector = PodigeeConnector.from_credentials(
base_url=BASE_URL,
podcast_id=PODCAST_ID,
username=USERNAME,
password=PASSWORD,
)
Installation
pip install podigeeconnector
Usage as a library
from podigeeconnector import PodigeeConnector
connector = PodigeeConnector(
base_url=BASE_URL,
podcast_id=PODCAST_ID,
podigee_session_v5=PODIGEE_SESSION_V5,
)
end = datetime.now()
start = end - timedelta(days=30)
podcast_analytics = connector.podcast_analytics(start, end)
logger.info("Podcast Analytics = {}", json.dumps(podcast_analytics, indent=4))
See __main.py__
for all endpoints.
Development
We use Pipenv for virtualenv and dev dependency management. With Pipenv installed:
- Install your locally checked out code in development mode, including its dependencies, and all dev dependencies into a virtual environment:
pipenv sync --dev
- Create an environment file and fill in the required values:
cp .env.sample .env
- Run the script in the virtual environment, which will automatically load
your
.env
:
pipenv run podigeeconnector
To add a new dependency for use during the development of this library:
pipenv install --dev $package
To add a new dependency necessary for the correct operation of this library, add
the package to the install_requires
section of ./setup.py
, then:
pipenv install
To publish the package:
python setup.py sdist bdist_wheel
twine upload dist/*
or
make publish
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
File details
Details for the file podigeeconnector-0.2.0.tar.gz
.
File metadata
- Download URL: podigeeconnector-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44664607c36025d9a7d4497261c51279fcbf27738f54c5a738a69035549aae4f |
|
MD5 | f89759fd10d7c7a8853df83f2f26994f |
|
BLAKE2b-256 | 59b64b7037577271874bd215a67c0cc5e1d801eb64730d2a9408e44ba78c4007 |
File details
Details for the file podigeeconnector-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: podigeeconnector-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5684dbc0bb1f98cd2dec8b2341e2aa76f15c50eaebbf3aa0f56d5cf69ffce4f4 |
|
MD5 | c35e3338747e86de5243f71a55e4f1d6 |
|
BLAKE2b-256 | 7afbf03966c0f140557f3aede86766b566ca087582edd97885f0725284b69f8a |