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

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:

  • Create a virtual environment
  • Install an-website in the venv (pip install an-website)
  • create a config.ini and configure it
  • run it (an-website / python -m an_website) with Supervisord

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.11

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.11
File Size Uploaded Provenance Actions
an_website-26.11.tar.gz 10.8 MB Without provenance Details for an_website-26.11.tar.gz

Release files / an_website-26.11.tar.gz

Download URL an_website-26.11.tar.gz
Size 10.8 MB
Tags Source
SHA-256 checksum
How to use checksums
86f04ae2a2dd203b693964725a14c656446e2eeac37e283be6390419e86edee1
BLAKE2b-256 checksum
How to use checksums
2ba993395bc1bd6685afc0dd8242dac043bd632e868eb48a89e6ad27e317131e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.9

Security for an-website 26.11

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.11 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