Skip to main content

无需编写 Django Model,直接用外部 API 数据管理

Project description

🚀 Django Dynamic API Admin

PyPI License: MIT

无需编写 Django Model,直接用外部 API 数据管理

✨ 核心功能

  • 🔄 零模型接入 - 无需创建 Django 模型,直接展示 API 数据
  • 🔍 搜索过滤 - 支持多字段组合搜索
  • 📊 智能排序 - 支持多字段任意排序
  • 📄 文件处理 - 支持 PDF 等文件在线预览/下载

🛠️ 安装

pip install django-dynamic-api-admin

🚀 快速开始

# admin.py
from django.contrib import admin
from django_dynamic_api_admin import APIAdmin, api_model


@api_model('/api/users/')
class UserAPI:
    pass


@admin.register(UserAPI)
class UserAPIAdmin(APIAdmin):
    api_url = '/api/users/'
    black_fields = ['password']

访问 Admin 页面,API 数据自动展示!

📖 文档

详见 example/ 目录

License

MIT

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_dynamic_api_admin-2.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

django_dynamic_api_admin-2.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file django_dynamic_api_admin-2.1.0.tar.gz.

File metadata

File hashes

Hashes for django_dynamic_api_admin-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a18220bcaa1b2230dce4866d8a8b9c1d65c50166ab906408d434f731618dbf09
MD5 27e1f1a182c548f5e6f95edaafc5c7a0
BLAKE2b-256 3b527c0286fb7978a3e17aa0cda16b2453318318c78bdcc0fbb5408b91335ac4

See more details on using hashes here.

File details

Details for the file django_dynamic_api_admin-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dynamic_api_admin-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b4b9e28809bd7a116e1091eb97233455b5dc4d1c002e21a3ede1f116e3bcad4
MD5 4cfddf6a3cc49e7c2803602d71a3caf2
BLAKE2b-256 1f992069b0484f89591d0891e75ddaf75fc848ec98f84bd910efedff1e6fe19a

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