Skip to main content

Integration of django-otp and django-agent-trust.

Project description

PyPI Documentation Source

This uses django-agent-trust to add OTP-based machine authorization to django-otp.

See django-otp for more information on the OTP framework.

Development

This project is built and managed with hatch. If you don’t have hatch, I recommend installing it with pipx: pipx install hatch.

pyproject.toml defines several useful scripts for development and testing. The default environment includes all dev and test dependencies for quickly running tests. The test environment defines the test matrix for running the full validation suite. Everything is executed in the context of the Django project in test/test_project.

As a quick primer, hatch scripts can be run with hatch run [<env>:]<script>. To run linters and tests in the default environment, just run hatch run check. This should run tests with your default Python version and the latest Django. Other scripts include:

  • manage: Run a management command via the test project. This can be used to generate migrations.

  • lint: Run all linters.

  • fix: Run all fixers to address linting issues. This may not fix every issue reported by lint.

  • test: Run all tests.

  • check: Run linters and tests.

  • warn: Run tests with all warnings enabled. This is especially useful for seeing deprecation warnings in new versions of Django.

  • cov: Run tests and print a code coverage report.

To run the full test matrix, run hatch run test:run. You will need multiple specific Python versions installed for this.

You can clean up the hatch environments with hatch env prune, for example to force dependency updates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_otp_agents-1.1.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_otp_agents-1.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file django_otp_agents-1.1.0.tar.gz.

File metadata

  • Download URL: django_otp_agents-1.1.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for django_otp_agents-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3808d586a182dedfce514ed504173af71046177d7b6f941970a4b1a9c91782b8
MD5 409c50bacd8a39d8065bc49bbb71ea44
BLAKE2b-256 1d00904396a09a3a20accc1db9d223d7793f7126a4a930a29160dd1b3f6c1d42

See more details on using hashes here.

File details

Details for the file django_otp_agents-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_otp_agents-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 397c7774f58825feb1bfbc3494d9dd47d0273fb4ed440ba9a5832907ece2bf67
MD5 5d5402ef1c678b578381ac46b4207882
BLAKE2b-256 da5202a417992a8c34da1ca62cc94fc4d7102c5ee26a71c911d7b2613ef2f3fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page