Skip to main content

简介

Web UI 表情包管理器。

功能:

  • 浏览图片。
  • 添加、删除图片。
  • 给图片打标签,并可以按标签搜索。
  • 图片分组。

安装:

要求:Python 3.6 及以上。

本软件使用 PyPI 进行分发,所以你可以使用 pip 来安装。但是更建议使用 pipx 将其安装到一个单独的虚拟环境中,避免污染全局系统依赖,如下:

$ pipx install meme-manager

验证安装成功:

$ meme-manager --version
# 或
$ meme-manager --help

使用:

# 初始化 sqlite 数据库:
$ meme-manager initdb foo.sqlite

# 运行:
$ meme-manager run foo.sqlite

# URL: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 # 读入环境变量。

# init db memes.sqlite
$ meme-manager initdb

# run on 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/*

Metadata

Release files for meme-manager 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meme-manager 0.3.1
File Size Uploaded
meme-manager-0.3.1.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for meme-manager 0.3.1
File Interpreter ABI Platform
meme_manager-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / meme-manager-0.3.1.tar.gz

Download URL meme-manager-0.3.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
db8394976c290061754fb4d5b8a871f512c39c5ac3b6daeb585a565feec6d8b5
BLAKE2b-256 checksum
How to use checksums
c7b3be434bdeae4c1eb9bca5b2934b8a8a3fb5e2aad16d3fe32c678cf955e1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release files / meme_manager-0.3.1-py3-none-any.whl

Download URL meme_manager-0.3.1-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a2fc4144f6dede47dc09fef8448f499b4a412d5bd37637f7fa7c11b7f1896dd7
BLAKE2b-256 checksum
How to use checksums
d437a47a972f2d01068700b92e60cb08aa87499defaf059c50e85325ea46139b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page