Skip to main content

A meme manager with web UI

Project description

简介

Web UI 表情包管理器。

功能:

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

安装:

$ pipx install meme-manager

验证安装成功:

$ meme-manager --help

使用:

# 初始化 sqlite 数据库:
$ meme-manager initdb 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 # 读入环境变量。

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

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.3.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

meme_manager-0.3.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file meme-manager-0.3.0.tar.gz.

File metadata

  • Download URL: meme-manager-0.3.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for meme-manager-0.3.0.tar.gz
Algorithm Hash digest
SHA256 48804ec2dd92d9c6581932a06b8d6c51e25b7d77a1ca0f1db9c5ada59e96036e
MD5 56844194dd6454cbf38bea39f68a854a
BLAKE2b-256 ebc1b933b6b46aa1a883a21e0e6f8dd588e9040cac4ea98768050f3566b43290

See more details on using hashes here.

File details

Details for the file meme_manager-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: meme_manager-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for meme_manager-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe3b9a04ca249951e36972f9d3ebc84681e1a92dabbb12ecc5dc0db9e2a19b9f
MD5 eb086470a076ca2bd3bf19486a6e15d6
BLAKE2b-256 02b25016d617379dcf5acbaf14c61920399ad4de83f868542cb770e41cedc20c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page