tagcollector (0.3.0rc49+dockerize.a50aa68.dirty)
Installation
pip install --index-url tagcollector
About this package
See tags that are popular across Mastodon
mastodon-tagcollector
Collect the tags used on public Mastodon posts, on a variety of instances. Summarize by a count of how many times each tag is used. Guide users in picking tags to attach to their posts.
Installing the Service
With thanks to How To Add Your Own Services to systemd For Easier Management
`cp tagcollector.service /etc/systemd/system/`
`systemctl daemon-reload`
`systemctl enable tagcollector`
`service tagcollector start`
`journalctl -f -u tagcollector.service`
Dev Setup
- Use poetry
- Install poetry-dynamic-versioning (
poetry self add "poetry-dynamic-versioning[plugin]"
)
Like this:
pipx install poetry
pipx inject poetry poetry-plugin-export
poetry self add "poetry-dynamic-versioning[plugin]"
It turns out to be very hard to add private packages into Poetry itself, for use in the pyproject.toml file. Mostly because Poetry won't let you configure a private package index. I had to use a two-step approach: first, download the wheel for my private package (to the / folder, in the Docker image), then install the wheel into Poetry.
pip download --no-deps --dest / desertflood --extra-index-url https://git.desertflood.com/api/packages/jmartindf/pypi/simple
poetry self add /desertflood*.whl
Dependency Tracking
If you want to build wheels of your dependencies, you can do the following, although local path-based dependencies may not work:
poetry export -f requirements.txt -o requirements.txt --without-hashes
poetry export -f constraints.txt -o constraints.txt --without-hashes
pip wheel -r requirements.txt
Poe the Poet
pipx install poethepoet
brew tap nat-n/poethepoet
brew install nat-n/poethepoet/poethepoet
poetry self add 'poethepoet[poetry_plugin]'
poetry add --group dev poethepoet
poe _fish_completion > (brew --prefix)/share/fish/vendor_completions.d/poe.fish
Hadolint
brew install hadolint
Private PyPi Repo
poetry source add --priority=supplemental desertflood "https://git.desertflood.com/api/packages/jmartindf/pypi"
poetry config repositories.desertflood "https://git.desertflood.com/api/packages/jmartindf/pypi"
poetry config http-basic.desertflood jmartindf
Private OCI Image Repo
docker login git.desertflood.com
Docker Build Command Notes
docker buildx build [OPTIONS] PATH
--file ../path/to/Dockerfile
--platform linux/arm64,linux/amd64