A library for interacting with Pathfinder 1E character sheet data.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
rerole-lib
This directory contains the library code used throughout the pf-rerole project.
In general, this library is written in a functional style. It is intended that state be managed by library consumers in whatever way they see fit.
Usage
For sample data, peruse the .json files in any of the test directories.
import json
from rerole_lib import character
with open("tests/character/test_data.json") as f:
data = json.load()
print(data["skills"]["climb"])
"""
{'ranks': 2, 'class': True, 'ability': 'strength'}
"""
calculated = character.calculate(data)
print(calculated["skills"]["climb"])
"""
{'ranks': 2, 'class': True, 'ability': 'strength', 'modifier': 11}
"""
Development setup
Create and/or activate virtual environment:
$ python -m venv .venv
$ source .venv/bin/activate
Setup via poetry:
$ poetry install
Testing
Via make:
$ make test
Via poetry:
$ poetry run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rerole_lib-0.3.1.tar.gz.
File metadata
- Download URL: rerole_lib-0.3.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.6-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1af0db1080b5660cfd06a54075ac74903c70391837bac39a3934f4e0b6c31d
|
|
| MD5 |
4365182391355804c1a38fa655b6e834
|
|
| BLAKE2b-256 |
a5e48479df00b4476783a094ceeb6f5fc39a896286878ee6f949ba701dc734ac
|
File details
Details for the file rerole_lib-0.3.1-py3-none-any.whl.
File metadata
- Download URL: rerole_lib-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.6-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db341e7a199fa280fa1d52c87f9129ad9561d1b9f02ed00a5d302d52ed83e559
|
|
| MD5 |
37507e16e6a68989fc62f897c8e58b24
|
|
| BLAKE2b-256 |
3d6ebfda0644de9a2d155d83a3ac2f0c50ef51b7cae3defda020b7df12192647
|