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
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
Hashes for podping-hivewriter-1.0.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d8459723fed3d32db2928f0c24a56ceefa5c301601e3631df15393844c2125 |
|
MD5 | 51d00aa1aef49b151c8ecd7d0746b759 |
|
BLAKE2b-256 | f1efee28b5ee635fed9d4c01c3e66e1275ea80c202030679aff0f55147e83ca1 |
Hashes for podping_hivewriter-1.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce77e573ae26c526c77dd5df28077a68fc2132ecf62ecf260bc6dd98f8c855f |
|
MD5 | 7a291aadd8db049ddd54a8eb1da22214 |
|
BLAKE2b-256 | 42f3751afc905018402fee5672ab685f6680f34fce2ace0316f2317f502b07fe |