Skip to main content

No project description provided

Project description

podping-hivewriter

The Hive writer component of podping.

Linux CLI Install

Using pipx (preferred over pip)

pipx install podping-hivewriter

Using pip

pip install --user podping-hivewriter

Make sure you have ~/.local/bin/ on your PATH.

See the dedicated CLI docs for more information.

Container

docker-compose

TODO

Building the image with Docker

Locally build the podping-hivewriter container with a "develop" tag

docker build -t podpinghivewriter:develop .

Running the image

Run the locally built image in a container, passing local port 9999 to port 9999 in the container. ENV variables can be passed to docker with --env-file option after modifying the .env.EXAMPLE file and renaming it to .env

docker run --rm -p 9999:9999 --env-file .env --name podping podpinghivewriter:develop

Running with command line options, like --dry-run for example, add them with the full podping command. Settings can also be passed with the -e option for Docker. Note, we leave out -p 9999:9999 here because we're not running the server.

docker run --rm \
    -e PODPING_HIVE_ACCOUNT=<account> \
    -e PODPING_HIVE_POSTING_KEY=<posting-key> \
    podpinghivewriter:develop \
    podping --dry-run write https://www.example.com/feed.xml

See the CLI docs for default values.

Development

We use poetry for dependency management. Once you have it, clone this repo and run:

poetry install

Then to switch to the virtual environment, use:

poetry shell

After that you should be able to run the podping command or run the tests:

pytest

To run all tests, make sure to set the necessary environment variables for your Hive account. This can take many minutes:

pytest --runslow

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

podping-hivewriter-1.0.0a0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

podping_hivewriter-1.0.0a0-py3-none-any.whl (20.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page