MIT License

项目介绍

ppoelzl/PathOfBuildingAPI 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 33 个 Star、8 次 Fork。

仓库全名
ppoelzl/PathOfBuildingAPI
开源许可证
MIT License
Star 数
33
Fork 数
8
未关闭 Issue
13

README 摘要

Path of Building API (pobapi) =============================== :target: https://github.com/ppoelzl/PathOfBuildingAPI :alt: Maintenance :target: https://pobapi.readthedocs.io :alt: Read the Docs - Build Status :target: https://pypi.org/project/pobapi/ :alt: PyPI - Python Version :target: https://pypi.org/project/pobapi/ :alt: PyPI - Library Version :target: https://pypi.org/project/pobapi/ :alt: PyPI - Project Status…

完整内容见 GitHub 原始 README 或本页 。

常见问题

PathOfBuildingAPI 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 33 个 Star。

PathOfBuildingAPI 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 PathOfBuildingAPI 的源码?

可以直接克隆仓库:git clone https://github.com/ppoelzl/PathOfBuildingAPI.git,默认分支为 master;安装与运行步骤见仓库 README。

PathOfBuildingAPI 最近还在维护吗?

仓库最近一次更新为 2023年3月6日,当前有 13 个未关闭 Issue;Star 数为 33,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

API for Path of Building's build sharing format for builds in Path of Exile.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
51
价值分
21
活跃状态
活跃

语言占比

Python

README

Path of Building API (pobapi)

… image:: https://img.shields.io/maintenance/yes/2021 :target: https://github.com/ppoelzl/PathOfBuildingAPI :alt: Maintenance … image:: https://readthedocs.org/projects/pobapi/badge :target: https://pobapi.readthedocs.io :alt: Read the Docs - Build Status … image:: https://img.shields.io/pypi/pyversions/pobapi :target: https://pypi.org/project/pobapi/ :alt: PyPI - Python Version … image:: https://img.shields.io/pypi/v/pobapi :target: https://pypi.org/project/pobapi/ :alt: PyPI - Library Version … image:: https://img.shields.io/pypi/status/pobapi :target: https://pypi.org/project/pobapi/ :alt: PyPI - Project Status … image:: https://img.shields.io/pypi/format/pobapi :target: https://pypi.org/project/pobapi/ :alt: PyPI - Distribution Format … image:: https://img.shields.io/pypi/l/pobapi :target: https://opensource.org/licenses/MIT :alt: PyPI - License … image:: https://img.shields.io/badge/code style-black-000000.svg :target: https://github.com/psf/black :alt: Code style - black … image:: https://img.shields.io/badge/readme style-standard-brightgreen.svg :target: https://github.com/RichardLitt/standard-readme :alt: Standard Readme - Compliant …

| API for Path of Building’s build sharing format for builds in Path of Exile.

… contents:: Table of Contents :depth: 2

Background

| Path Of Building API provides a comprehensive toolbox for processing Path of Building <https://github.com/PathOfBuildingCommunity/PathOfBuilding>_ pastebins. | It is aimed at community developers:

  • looking to add Path of Building functionality to their apps.
  • upgrading from existing solutions.

Benefits from using this library:

  • Focus on your app’s core competences
  • Spend your free time on unique features
  • Backwards-compatibility as PoB’s export format changes
  • Tested and secure codebase

Install

… code-block:: console

pip install pobapi

Dependencies …

  • Python 3.7+ <https://www.python.org/>_
  • dataslots <https://pypi.org/project/dataslots/>_
  • lxml <https://pypi.org/project/lxml/>_
  • requests <https://pypi.org/project/requests/>_
  • unstdlib <https://pypi.org/project/unstdlib/>_

Usage

import pobapi url = “https://pastebin.com/bQRjfedq” build = pobapi.from_url(url) print(build.ascendancy_name) Elementalist print(build.bandit) None print(build.stats.life) 6911 if build.active_skill.name in [“Blade Vortex”, “Vaal Blade Vortex”]: … if “Storm Brand” in build.skill_names: … print(build.config.brand_attached) … True for item in build.items: … if item.name == “Inpulsa’s Broken Heart”: … print(item) … break … Rarity: Unique Name: Inpulsa’s Broken Heart Base: Sadist Garb Quality: 20 Sockets: ((‘G’, ‘G’, ‘G’, ‘B’, ‘B’, ‘B’),) LevelReq: 68 ItemLvl: 71 +64 to maximum Life 26% increased Damage if you have Shocked an Enemy Recently 33% increased Effect of Shock Shocked Enemies you Kill Explode, dealing 5% of their Maximum Life as Lightning Damage which cannot Shock Unaffected by Shock

Features

  • Look up and process:
    • Character stats (DPS, life, etc.)
    • Skill trees
    • Skills, skill groups and links
    • Gear and item sets
    • Path of Building configuration settings
    • Build author’s notes
  • Exposes all of Path of Building’s relevant stats and attributes in a simple and pythonic way.
  • Automatically calculates mod values on theorycrafted items.
  • Low memory footprint through slots and dynamically generated attributes.

Feedback

| Please open a GitHub issue <https://developer.github.com/v3/issues/>_ in this repository for any feedback you may have.

Roadmap

  • Support corruptions
  • Support enchantments

API

Documentation available at Read the Docs <https://pobapi.readthedocs.io>_.

Contributing

Setup repository using Git <https://git-scm.com/>_ (recommended):

… code-block:: console

git clone https://github.com/ppoelzl/PathOfBuildingAPI.git

Install dev dependencies using Poetry <https://python-poetry.org/>_ (recommended):

… code-block:: console

poetry install

| If you have any questions about contributing, please open a GitHub issue <https://developer.github.com/v3/issues/>. | Pull requests are gladly accepted. | Check out the Developer Guide <https://pobapi.readthedocs.io/dev.html> for more info.

Licence

MIT <https://opensource.org/licenses/MIT>_ © Peter Pölzl

评论

暂无评论