Skip to main content

It's easy to use, plug-in django app that once included, stores logins history (with device data, like IP, user-agent, location etc.) of all users.

Project description

Login History Too

Coverage

Overview

Simple login history tracking including IP address (along with its geo data), User Agent data and timestamp.

Quickstart

Install Login History Too:

pip install login-history-too

Settings

To enable login_history_too in your project you need to add it to INSTALLED_APPS in your projects settings.py file:

INSTALLED_APPS = (
    ...
    'login_history_too',
    ...
)

If you want to override the GEOLOCATION_METHOD to use another geolocation API:

LOGIN_HISTORY_TOO = {
    "GEOLOCATION_METHOD": "login_history_too.utils.get_ip_info"
}

Development

make env
make pip_install
make migrations
make migrate
make superuser
make serve
  • Visit http://127.0.0.1:8000/ for the default "It worked" page
  • Visit http://127.0.0.1:8000/admin/ for the Django Admin

Testing

make pytest
make coverage
make open_coverage

Deploying

# Publish to PyPI Test before the live PyPi
make release_test
make release

Issues

If you experience any issues, please create an issue on Github.

History

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.1.1 (2025-04-15)

  • Added missing static files to package.

0.1.0 (2025-02-19)

  • First release

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

login_history_too-0.1.1.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

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

login_history_too-0.1.1-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file login_history_too-0.1.1.tar.gz.

File metadata

  • Download URL: login_history_too-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for login_history_too-0.1.1.tar.gz
Algorithm Hash digest
SHA256 835ff06a30d24edf8985d36b95c6243c9ffaef45021099a83b5bc4e2d4acf02a
MD5 cec1b0792ba0ff9414de5c81bb120896
BLAKE2b-256 a760bc0afdc414b98a9bc9c14f24173dc6c733d4e61aec868651f16f7c1916a4

See more details on using hashes here.

File details

Details for the file login_history_too-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for login_history_too-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98fa1a309e6175e307a42d3f0f212ecf55991fe81a18f406b76598f35d81243f
MD5 9700a0f2c10dcefdd4977bf99704d8c1
BLAKE2b-256 5543f0136deae2d5834354bf20bb7059ffa66436b89180c83065730ed6d35584

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