semvec/pypi-packages huggingface dataset:
amuesm 3.11
A module used to create random passwords with customizable options and to encode/decode strings!
License: MIT
Requires Python: >=3.8

amuesm let's you not only create passwords with custom requirements, it can also encode and decode strings in your own custom charset! amuesm stand for:

- Annie's 
- Multi
- Use
- Encryption
- Security
- Module


___

**DISCLAIMER**

It is recommended that amuesm should only be used in your own custom databases/servers, amuesm is not secure to use when creating passwords for products like Google. We are also not responsible for any harm according to the MIT license.
___

createpass: (Creates a random password of your liking!)
```python
import amuesm

print(amuesm.createpass(['a', 'b'], 5))
```
Output: (EXAMPLE, RESULTS WILL VARY)
```
baaba
```
___

en: (Encodes text of your choice with your own custom charset!)
```python
import amuesm

print(amuesm.en('abc', ['a', 'b', 'c']))
```
Output:
```
- -- ---
```
___

de: (Decodes text of your choice with your own custom charset!)
```python
import amuesm

print(amuesm.de('- -- ---', ['a', 'b', 'c']))
```
Output:
```
abc
```
___

Extra features:

If you would like to use amuesm as a standalone tool, run in your terminal:
```
amuesm
```
and you'll be able to select all three of our features!

___

Thanks for reading, and enjoy amuesm! :)
django-device-tracker 0.3.0
Reusable device tracking app for Django projects
License: MIT
Requires Python: >=3.6

# Django Device Tracker

A reusable Django app to track user login devices — plug-and-play for any Django project using session or JWT-based authentication.

---

## 🔧 Features

- Track IP address and user-agent per login
- Compatible with JWT (e.g., simplejwt)
- Saves login timestamp and refresh token `jti`
- Admin panel support
- Lightweight, no external dependencies
- API to list user devices
- API to logout from specific device

---

## 📦 Installation

```bash
pip install django-device-tracker
```

Add to your `INSTALLED_APPS`:
```python
INSTALLED_APPS += ["device_tracker"]
```

Apply migrations:
```bash
python manage.py migrate device_tracker
```

---

## 🚀 Usage

### Manual tracking per login (JWT):

In your login/signup/OTP views:
```python
from device_tracker.utils import track_device

# After creating refresh token:
track_device(request, user, refresh_token)
```

The `refresh_token` is optional but strongly recommended for managing sessions.

### What it stores:
- `user`: ForeignKey to your user model
- `ip_address`: Auto-resolved from request headers
- `device_name`: User-Agent header
- `refresh_token_jti`: Extracted from token if provided
- `last_seen`: Timestamp of login
- `is_active`: Boolean flag (you can control this)

---

## 📡 API Endpoints

Include in your root `urls.py`:
```python
path("api/", include("device_tracker.urls")),
```

### GET `/api/devices/`
Returns list of active/inactive devices for current user.

### POST `/api/devices/<id>/logout/`
Deactivates the given device (if owned by current user) and blacklists the refresh token if provided.

---

## 🛠 Admin Support

Device tracking entries are available in Django admin under `Device` model.

---

## 🔍 Advanced Integration Ideas (Optional)

- Custom middleware to track every request or session
- Show user active devices (already provided)
- Revoke session by removing device entry or blacklisting token (already supported)

---

## 📂 Development

To install locally:
```bash
git clone https://github.com/yourusername/django-device-tracker.git
cd django-device-tracker
pip install -e .
```

---

## 🪪 License

MIT License. See `LICENSE` file.

---

## ✍️ Author

Developed by [mejomba]. Contributions and feedback welcome!