lk-geimfari/mimesis 源码下载与部署教程

项目概述

Mimesis is a fast Python library for generating fake data in multiple languages.

项目地址

https://github.com/lk-geimfari/mimesis

项目页面预览

lk-geimfari/mimesis preview

关键指标

  • Stars:4751
  • 主要语言:Python
  • License:MIT License
  • 最近更新:2026-01-13T06:44:12Z
  • 默认分支:master

本站高速下载(国内可用)

点击下载(本站镜像)
– SHA256:b72bb24503a77ceabc9e5a3bcbc383a0a9311270e40e0fabe19c4b5e94b5ebb5

安装部署要点(README 精选)

Installation

[!IMPORTANT]
To work with Mimesis on Python versions 3.8 and 3.9, the final compatible version is Mimesis 11.1.0. Install this specific version to ensure compatibility.

[!WARNING]
Starting from version 19.0.0, Mimesis has dropped support for builtin providers.

To install mimesis, use pip:

~ pip install mimesis

Usage

The library is exceptionally user-friendly, and it only requires you to import a Data Provider object that
corresponds to the desired data type.

For instance, the Person provider can be imported to access personal information,
including name, surname, email, and other related fields:

from mimesis import Person
from mimesis.locales import Locale

person = Person(Locale.EN)

person.full_name()
# Output: 'Brande Sears'

person.email(domains=['example.com'])
# Output: 'roccelline1878@example.com'

person.email(domains=['mimesis.name'], unique=True)
# Output: 'f272a05d39ec46fdac5be4ac7be45f3f@mimesis.name'

person.telephone(mask='1-4##-8##-5##3')
# Output: '1-436-896-5213'

常用命令(从 README 提取)

~ pip install mimesis

通用部署说明

  1. 下载源码并阅读 README
  2. 安装依赖(pip/npm/yarn 等)
  3. 配置环境变量(API Key、模型路径、数据库等)
  4. 启动服务并测试访问
  5. 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)

免责声明与版权说明

本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容