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.1.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.1.0.post0
File Size Uploaded Provenance Actions
badgr-2.1.0.post0.tar.gz 3.3 MB Without provenance Details for badgr-2.1.0.post0.tar.gz

Built distribution (wheel)

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

Total release size: 3.9 MB

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

Download URL badgr-2.1.0.post0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
7656e1443d9eda34d2c172dcbf97b81d9931f431a24f6bb4f0093c6d6408ea7e
BLAKE2b-256 checksum
How to use checksums
340ac055a5041c323e3b23199b475b30f0248ae806b6126eaba798a3a65794a1
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.1.0.post0-py3-none-any.whl

Download URL badgr-2.1.0.post0-py3-none-any.whl
Size 523.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
695d1da4b61d26665f1fa14212fed43321b1afcdaa83241d5aa5ab66de70d547
BLAKE2b-256 checksum
How to use checksums
5f3b9a7b03c5fd3af9a046b06f22f14d8bd218dd0ce51de05a48679f76ae1f46
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.1.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