Skip to main content

BADGR

AnteMotion web attendance app on top of ANVIZ CrossChex Standard. It reads and writes the CrossChex SQL Server tables without changing their schema: Checks, Leaves, Planned Hours, Balances, reminders, Monthly and Annual Reports, Lock Date, Calendar Sync with Microsoft 365.

The full documentation (user guide, administration, specification, deployment, Microsoft 365, release, code reference) is built with Sphinx from docs/source and published on GitLab Pages by the pipeline of master. Build it locally with uv run --group docs make -C docs html (output in docs/build/html).

  • Specification: what the app does
  • Glossary: domain vocabulary (Check, Leave, Balance, Issue, Lock Date, …)
  • ADR 0001: why app data lives in Userinfo free-text fields
  • ADR 0002: why Calendar Sync uses an application permission and only creates events
  • Deployment: Windows service, SQL logins, nginx, test environment, cut-over
  • Backup and restore

Contents of this README: Layout · Development · Release and Microsoft 365 · Useful commands

Layout

badgr/                Django project (settings from .env, urls, wsgi, `badgr` command)
attendance/
  domain/             pure rules: days & Issues, Balances, Leaves, holidays, Lock Date, calendar events, formats
  services/           CrossChex access, reports, emails, Microsoft Graph, Calendar Sync
  views/              employee pages, auth, admin pages
  crosschex.py        unmanaged models on the CrossChex tables
  models.py           app-only data (SQLite)
  jobs.py             scheduler: reminders, Monthly Report, Lock Date move
  management/commands serve, run_job, set_password, dedupe_checks
tools/                dump_schema.py, clone_db.py
deploy/windows/       setup.ps1 (service, power, firewall, backup task)
docs/                 Sphinx documentation (source/) and ADRs (adr/)
tests/
.gitlab-ci.yml        test → build → publish

Development

uv sync
uv run pytest
BADGR_ENV_FILE=.env.test SECRET_KEY=dev DEBUG=1 uv run python manage.py migrate
BADGR_ENV_FILE=.env.test SECRET_KEY=dev DEBUG=1 uv run python manage.py runserver

.env.test points to the crosschex_test clone (see deployment §8). On macOS the ODBC driver needs DYLD_LIBRARY_PATH=/opt/homebrew/opt/openssl@3/lib.

Release and Microsoft 365

Step-by-step guides in the documentation: Release (versioning, GitLab CI, package registry, upgrading the server, rollback) and Microsoft 365 configuration (Entra app, Calendar Sync permission, email delivery).

Useful commands

Command Purpose
manage.py serve --port 8000 production server (waitress) + scheduler
manage.py set_password <email> [--admin] [--invite] force a password / grant Admin / email a link
manage.py run_job monthly_report [--today 2026-11-03] run a job now (weekly_reminder, month_end_reminder, monthly_report, lock_advance)
manage.py dedupe_checks [--apply] remove duplicated Checks
manage.py sendtestemail <address> test the email configuration
tools/dump_schema.py -s SERVER -u USER -d DB read-only schema dump
tools/clone_db.py -s SERVER -u USER copy production into crosschex_test
manage.py backup_db [--no-sql] nightly backup (Task Scheduler / cron)

On an installed package, badgr <command> replaces manage.py <command>. dump_schema.py and clone_db.py use pymssql: install it with uv sync --group tools.

License

MIT, © AnteMotion SRL. The AnteMotion name and logos are not covered by the license.

Metadata

Release files for badgr 2.2.0.post0

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

Source distribution (sdist)

Source distribution for badgr 2.2.0.post0
File Size Uploaded Provenance Actions
badgr-2.2.0.post0.tar.gz 3.5 MB Without provenance Details for badgr-2.2.0.post0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for badgr 2.2.0.post0
File Interpreter ABI Platform Actions
badgr-2.2.0.post0-py3-none-any.whl Python 3 none any Details for badgr-2.2.0.post0-py3-none-any.whl

Total release size: 4.1 MB

Release files / badgr-2.2.0.post0.tar.gz

Download URL badgr-2.2.0.post0.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
e48bea5b0f25ea4600e882917cdfe24897efabc2e37baf4c750d365bf649ce3d
BLAKE2b-256 checksum
How to use checksums
8f21fcb5d5a4ac2f65345db1e83994aaad86abbb3d8dd69d9e51128c54e05072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / badgr-2.2.0.post0-py3-none-any.whl

Download URL badgr-2.2.0.post0-py3-none-any.whl
Size 599.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c40c5446409199140a7dbdf74b03d69236dee714196321325925e81edea73221
BLAKE2b-256 checksum
How to use checksums
9d0f26ef88591f9303cac74c62c8b87b059348d6c53b3ba991203af836b0222c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for badgr 2.2.0.post0

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.

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