Fediverse Pasture
This python package contains tools to test Fediverse applications. This package uses bovine for a lot of the Fediverse related logic. It should also be noted that the aim here is to debug issues caused by federation, thus everything involves starting a webserver and running requests against it.
Usage
For usage information, see the documentation.
With docker container
One can start the one actor server via
docker run --rm --name pasture\
--hostname pasture-one-actor --network fediverse-pasture\
helgekr/pasture one_actor
and then use the send tool via
docker exec pasture ./send acct:user@domain
Afterwards you should stop the container with docker stop pasture.
Development
Install the necessary dependencies via
uv sync --all-extras
To lint and check code formatting run
uv run ruff check .
uv run ruff format .
To test the code run
uv run pytest
With docker
To start the local environment in docker run
docker run --detach --rm --name pasture-dev\
--hostname pasture-one-actor\
--network fediverse-pasture\
-v .:/data --workdir /data\
-e UV_PROJECT_ENVIRONMENT=/tmp/venv\
ghcr.io/astral-sh/uv:python3.11-alpine\
uv run python -mfediverse_pasture.one_actor --port 80
and then
docker exec -ti -e UV_PROJECT_ENVIRONMENT=/tmp/venv pasture-dev \
uv run python -mfediverse_pasture.send acct:user@domain
to send a message.
Releasing
Releasing is done automatically on merge to the main branch. For this to happen, the following has to be true
- There exists a milestone with the version number
- All issues in the milestone are closed
- There exists an entry in CHANGES.md
- The package version has the same version number
See https://codeberg.org/helge/release_helper
Funding
This code was created as part of Fediverse Test Framework.
A project funded through the NGI0 Core Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101092990.
Metadata
Release files for fediverse-pasture 0.2.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fediverse_pasture-0.2.25.tar.gz | 489.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fediverse_pasture-0.2.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 549.2 kB
Release files / fediverse_pasture-0.2.25.tar.gz
| Download URL | fediverse_pasture-0.2.25.tar.gz |
|---|---|
| Size | 489.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1061ae1da179697d8d4d3fc4e266b0379a5dd16299d76b701c73b73eb1e12a1
|
|
BLAKE2b-256 checksum How to use checksums |
87476fee124b10bbf46d94b398eaba155ba6ab7e6d9932b55aac5f05c89f486f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / fediverse_pasture-0.2.25-py3-none-any.whl
| Download URL | fediverse_pasture-0.2.25-py3-none-any.whl |
|---|---|
| Size | 59.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fbf4402416b8bb8c32d091386ea108afe9ba94f892188b0d757c6ce32fa592c
|
|
BLAKE2b-256 checksum How to use checksums |
b08027b9965b57f57c353feec94bca91b48da1800318955d87b28e602cc5ada9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for fediverse-pasture 0.2.25
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.