Skip to main content
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

https://acore-conf.readthedocs.io/en/latest/_static/acore_conf-logo.png

背景

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

Links

关于本项目

本项目是一个简单的 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"}},
)

更多 API 详细文档请参考下面的链接

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

Metadata

Release files for acore-conf 0.1.2

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

Source distribution (sdist)

Source distribution for acore-conf 0.1.2
File Size Uploaded
acore_conf-0.1.2.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acore-conf 0.1.2
File Interpreter ABI Platform
acore_conf-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.3 kB

Release files / acore_conf-0.1.2.tar.gz

Download URL acore_conf-0.1.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
024e686fdd960325c7cfb65319080c24e9d5f9e6aa9d2408bf40427bb3eb0dde
BLAKE2b-256 checksum
How to use checksums
887bfa79a5535b6c845686ee708692c26f67cd06df3af2fe15a0e185bba167cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.10

Release files / acore_conf-0.1.2-py3-none-any.whl

Download URL acore_conf-0.1.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1366026e921468758ede649ba3cba15452e93901d75447aad4effd373ebb22a7
BLAKE2b-256 checksum
How to use checksums
d2fd21657503d2c3fc792416a6f9eccfff470413dfda1eb6a47d28fa7cbf7cc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.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