semvec/pypi-packages huggingface dataset:
django-admin-508 1.0.3
django-admin-508 is a modern responsive django admin interface.
License: MIT
Keywords: django, admin, interface, responsive, flat, theme, custom, ui


[![](https://img.shields.io/pypi/pyversions/django-admin-508.svg?color=3776AB&logo=python&logoColor=white)](https://www.python.org/)
[![](https://img.shields.io/pypi/djversions/django-admin-508?color=0C4B33&logo=django&logoColor=white&label=django)](https://www.djangoproject.com/)

[![](https://img.shields.io/pypi/v/django-admin-508.svg?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/django-admin-508/)
[![](https://img.shields.io/pypi/l/django-admin-508.svg?color=blue)](https://github.com/raft-tech/django-admin-508/blob/main/LICENSE.txt)

# django-admin-508

`django-admin-508` is a responsive interface that aims to be accessible to the 508 Standard.

## Features

## Installation

- Run `pip install django-admin-508`
- Add `admin_interface`, `flat_responsive`, `flat` and `colorfield` to `settings.INSTALLED_APPS` **before** `django.contrib.admin`

```python
INSTALLED_APPS = (
    #...
    'admin_interface',
    'flat_responsive',  # only if django version < 2.0
    'flat',             # only if django version < 1.9
    'colorfield',
    #...
    'django.contrib.admin',
    #...
)

# only if django version >= 3.0
X_FRAME_OPTIONS = 'SAMEORIGIN'
SILENCED_SYSTEM_CHECKS = ['security.W019']
```

- Run ``python manage.py migrate``
- Restart your application server

#### Upgrade

- Run `pip install django-admin-508 --upgrade`
- Restart your application server

## Publishing Updates

https://packaging.python.org/tutorials/packaging-projects/
https://realpython.com/installable-django-app/

```
python3 -m pip install --upgrade build
python3 -m build


python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*
```


## local development
In local development, the package has a parallel django508 application that can be started using Task file. The application has the admin_interface as one of the listed apps, so when started, the admin_interface project is automatically added.


To list the available commands, run ```task help```. A django server can be started using ```task up``` command. 

### Running pytest
Pytest test files can be ran using: ```task test```. If you need to add pytest command line option, you may do so using ```PYTEST_ARGS``` variable. E.g: ```task test  PYTEST_ARGS="./tests/test_models.py -s -vv"```

## License
Released under [MIT License](LICENSE.txt).

## See also

This project started out as a fork of the excellent [Django Admin Interface](https://github.com/fabiocaccamo/django-admin-interface).
watchdog-host 1.0.3
Watchdog Host is a tool for automatically managing hosts.
License: MIT
Requires Python: >=3.10

# Watchdog-Host

Watchdog-Host is a daemon designed to **monitor bandwidth usage on cloud hosts**, helping prevent unexpected charges caused by exceeding monthly traffic quotas.

## Features

- Monthly network traffic accounting for cloud instances
- Configurable via `config.yaml`, including:
  - Bandwidth quota limits
  - Usage percentage alert thresholds
- Multiple notification channels:
  - Email
  - WeCom (WeChat Work)
  - DingTalk
- Optional **automatic shutdown** when traffic usage exceeds the configured quota
- Runs as a systemd service, suitable for long-term unattended operation

## Usage Notes

- Historical network usage prior to the first run cannot be determined:
  - **Traffic statistics for the current month will be inaccurate on the first run**
  - Accurate statistics will be available starting from the next execution cycle
- Additional watchdog capabilities may be added in the future

## Requirements

- Must be executed as the **root user**
- Running via `sudo` is **not supported**
  - This is required due to systemd management and low-level network statistics access

## Installation

```shell
pip install watchdog-host
watchdog-host init
vim /etc/watchdog/config.yaml
systemctl enable --now <service>.service
systemctl status <service>.service
```

If your system version is Ubuntu 24.04 / Debian 12 or later, use this command.

```shell
apt update
apt install -y pipx
pipx ensurepath
pipx install watchdog-host
source ~/.bashrc

pip install watchdog-host
watchdog-host init
vim /etc/watchdog/config.yaml
systemctl enable --now <service>.service
systemctl status <service>.service
```

## Uninstallation

```shell
systemctl disable --now <service>.service
watchdog-host clean
pip uninstall -y watchdog-host

# Optional
rm -f /etc/watchdog/config.yaml
rm -f /etc/watchdog/*.json
```