Skip to main content

Webseite des AN

License Python Implementation PyPI
Style: Black Imports: isort Coverage Lines of Code
Downloads Downloads Downloads
Check Deploy

Large Language Models

Do not submit any code or prose written or modified by large language models or "artificial intelligence" such as GitHub Copilot or ChatGPT to this project. These tools produce code that looks plausible, which means that not only is it likely to contain bugs those bugs are likely to be difficult to notice on review. In addition, because these models were trained indiscriminately and non-consensually on open-source code with a variety of licenses, it's not obvious that we have the moral or legal right to redistribute code they generate.

How to develop

You need:

  • Git (obviously)
  • CPython 3.14+
  • Packages from pip-dev-requirements.txt
  • C and C++ compiler for some of the dependencies
  • Depending on the used version of CPython: Rust
  • Just
  • For formatting TypeScript and Markdown: dprint
  • For building JavaScript and CSS: Deno
    (just build)
  • For linting TypeScript: Node.js and pnpm
    (corepack enable or alias pnpm="corepack pnpm")

How to check

  • ./check.sh
  • REDIS_URL=redis://localhost ./check.sh test

How to run

  • python -Xdev -Xwarn_default_encoding -m an_website --redis-enabled=1 --ratelimits=0 --port=8080

(-Xdev enables development mode)

How to run (production)

Container

Run the website with something like the following:

podman run --rm --pull=newer \
    --name an-website \
    --publish 8888:8888 \
    --volume .:/data:z \
    ghcr.io/asozialesnetzwerk/an-website:dev

Run redis with included redis-cell with e.g.:

podman run --rm --pull=newer \
    --name an-website-redis-redis \
    --publish 6379:6379 \
    -v 'an_website-redis-data:/data' \
    -e 'REDIS_ARGS=--appendonly yes' \
    ghcr.io/asozialesnetzwerk/redis-cell:nightly

You can also try the experimental and untested docker compose approach which starts the website on port 1610:

docker compose up

Linux

You need:

  • CPython 3.14+
  • C and C++ compiler for some of the dependencies
  • Depending on the used version of CPython: Rust
  • Supervisord
  • Redis 6.2
  • redis-cell (for ratelimits)
  • Elasticsearch 8.19+
  • UwUFetch

How:

FreeBSD

Should work similar to Linux.

macOS

Not supported, but should work.

Windows

Not supported, but maybe works.

Metadata

Release files for an-website 26.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for an-website 26.12
File Size Uploaded Provenance Actions
an_website-26.12.tar.gz 10.9 MB Without provenance Details for an_website-26.12.tar.gz

Release files / an_website-26.12.tar.gz

Download URL an_website-26.12.tar.gz
Size 10.9 MB
Tags Source
SHA-256 checksum
How to use checksums
28eab0009f1bc1050de83d1c84f7b28bb436fa4c093a6014aa8ed1c221c4b121
BLAKE2b-256 checksum
How to use checksums
c3d260e4598050182a714a125fafca239754a139a884bd0383eac5aa91264d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for an-website 26.12

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

26.12 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page