Skip to main content

SIMQ服务器。基于redis的消息队列,通过web接口提供对外服务。

Project description

simqsvr

SIMQ服务器。基于redis的消息队列,通过web接口提供对外服务。

安装

pip install simqsvr

接口列表

接口地址 接口名称
/simq/api/{channel}/rpush 添加消息(高优先级)
/simq/api/{channel}/lpush 添加消息(低优先级)
/simq/api/{channel}/dpush 添加延迟消息
/simq/api/{channel}/pop 获取消息执行
/simq/api/{channel}/ack 确认消息执行完成
/simq/api/{channel}/ret 退还消息
/simq/api/{channel}/query 查询消息详情
/simq/api/{channel}/cancel 取消消息(仅限待处理状态)
/simq/api/{channel}/delete 删除消息

简易使用方法

# 创建数据库
manage-simqsvr migrate
# 创建超级用户
manage-simqsvr createsuperuser

# 启动服务
manage-simqsvr runserver 0.0.0.0:80 --noreload
  • 创建数据库&创建超级用户,只是用来登录swagger接口管理界面。
  • 如果不需要使用swagger接口管理功能,可以忽略上述两个步骤。

注意事项

  • simqsvr目前仅支持基于redis的消息队列。
  • 必须要按django-redis标准来配置CACHES配置项。如:
    # decode_responses=True是必须的
    CACHES = {
        "default": {
            "BACKEND": "django_redis.cache.RedisCache",
            "LOCATION": "redis://127.0.0.1:6379/0?decode_responses=True",
        }
    }
    

版本

0.1.0

  • 版本首发。

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

simqsvr-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

simqsvr-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file simqsvr-0.1.0.tar.gz.

File metadata

  • Download URL: simqsvr-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for simqsvr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c13b6ad54f132bbe3c6548c4a1e02c63dbd37ecd0bfb8fe699b0953bdf38b179
MD5 e373c7aa237ce75bd3ac71bff17d70ec
BLAKE2b-256 18a70bcec6f183c0ea553056f8f6690294bd10719534d8a6590715db63f91148

See more details on using hashes here.

File details

Details for the file simqsvr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simqsvr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for simqsvr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ad5e41ae9bed3e4c50c015c3d5b89cb89978beddb5e564944ad66655e0748dc
MD5 e5b053b5c8696010297e8874c6f621c3
BLAKE2b-256 883a9d5095953861429ff66e85fb5ba07a591437334a8d72bb55c933ba51c698

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