Skip to main content

Package short description.

Project description

https://github.com/MacHu-GWU/acore_conf-project/workflows/CI/badge.svg https://codecov.io/gh/MacHu-GWU/acore_conf-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/acore-conf.svg https://img.shields.io/pypi/l/acore-conf.svg https://img.shields.io/pypi/pyversions/acore-conf.svg https://img.shields.io/badge/Release_History!--None.svg?style=social https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to acore_conf Documentation

背景

AzerothCore (acore) 是一个开源的魔兽世界模拟器, 其代码质量以及文档是目前 (2023 年) 我看来所有的开源魔兽世界模拟器中最好的. 它有一个 .conf 配置文件格式用于定义服务器的各种配置. 这个格式不是 acore 独有的, 而是所有的魔兽世界模拟器, 包括各个不同的资料片几乎都用的这个格式.

关于本项目

本项目是一个简单的 Python 工具, 用于管理, 修改 .conf 文件. 使得开发者可以用业内比较通用的 JSON 格式对 .conf 进行修改.

用法

from acore_conf.api import apply_changes

apply_changes(
    "/path/to/authserver.conf.dist",
    "/path/to/authserver.conf",
    data={"worldserver": {"DataDir": "/home/azeroth-server/data"}},
)

Install

acore_conf is released on PyPI, so all you need is to:

$ pip install acore-conf

To upgrade to latest version:

$ pip install --upgrade acore-conf

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

acore_conf-0.1.1.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

acore_conf-0.1.1-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

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