A meme manager with web UI
Project description
简介
Web UI 表情包管理器。
功能:
- 浏览图片。
- 添加、删除图片。
- 给图片打标签,并可以按标签搜索。
安装:
$ pipx install meme-manager
验证安装成功:
$ meme-manager --help
使用:
# 初始化 sqlite 数据库:
$ meme-manager init_db foo.sqlite
# 运行:
$ meme-manager run foo.sqlite
# 打开浏览器,在地址栏输入:http://localhost:5000/index.html
开发:
说明: 后端使用 Python Flask + waitress 开发。 前端使用 React + Antd 开发。
后端:
$ git clone https://github.com/valleygtc/meme-manager.git
$ cd meme-manager
# create venv
$ python3 -m venv .venv
$ source .venv/bin/activate
# install meme-manager and its dependencies.
$ pip install --editable .
# run unittest
$ python -m unittest discover
# ENV
$ cp env.sh.example env.sh
$ vi env.sh # 填写好程序运行所需环境变量。
$ source env.sh # 读入环境变量。
$ meme-manager init_db
# init_db memes.sqlite
$ flask run
前端:
见:https://github.com/valleygtc/meme-manager-frontend
构建与发布:
prerequsite:
$ pip install --user --upgrade setuptools wheel
$ pipx install twine
build and upload to pypi:
# 首先要 build 前端。
# 然后把前端 build 出来的 build/ 目录复制到 src/meme-manager 目录下,并改名为 frontend。
# build
$ python3 setup.py sdist bdist_wheel
# upload to pypi
$ twine upload dist/*
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
meme-manager-0.1.0.tar.gz
(1.3 MB
view hashes)
Built Distribution
Close
Hashes for meme_manager-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c39c912075af6682efcc7c0d5988b443936827964559a837b0f02256c81aab3 |
|
MD5 | 744d0448d662e0bd195f87e9704be99d |
|
BLAKE2b-256 | 66c41ecb6575549491905113528d6d1eb2d5959d9a00443d60573a7e2b65f13d |