Skip to main content

A simple library for NationStates RP stats management and evaluation

Project description

WiseNations

NOTE: This project is still in development phase, don't use it for actual production.

A simple library for NationStates RP stats management and evaluation.

Getting started

WiseNations works with stat sheets

from wisenations import SheetManager

sm = SheetManager()
sm.new_sheet("s1")
my_sheet = sm.get_sheet("s1")

Let's add some stats...

my_stats = {
    "hp": "200",
    "speed": "10",
    "damage": '30',
    "attack_speed": "speed * 2.5"
}
my_sheet.add_stats(my_stats)

Output

{'attack_speed': 'speed * 2.5', 'damage': '30', 'hp': '200', 'speed': '10'}

Evaluate expressions

result = my_sheet.solve_expressions()
print(result)

Output

{'attack_speed': '25.0', 'damage': '30', 'hp': '200', 'speed': '10'}

#CHANGELOG

[25.12.2025] 0.0.0.dev0:

Hello, world – and merry christmans!

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

wisenations-0.0.0.dev0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wisenations-0.0.0.dev0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file wisenations-0.0.0.dev0.tar.gz.

File metadata

  • Download URL: wisenations-0.0.0.dev0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wisenations-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 d34da20cdf65fe47d08ee76df4ab0b0ab3df0963d5e184c17c33178071a1486c
MD5 6e6238aa0ad0e56f43e489f0eafd2b85
BLAKE2b-256 b5cb15e730f08995e99f6809f27943231c222d7ab521b3b48e3669cf69b979e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisenations-0.0.0.dev0.tar.gz:

Publisher: release.yml on Stalot/WiseNations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wisenations-0.0.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for wisenations-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb4ef55261d93a624b433f6169e9d5cadf5b6ee2f69b016ad81f6a934c46fc7
MD5 d65b5730156a1485feb0887cd1a26c42
BLAKE2b-256 3cd5dcd03e77ef6f632f18ff9594b1d4f0e06748fded330ae70a5122b5e725e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wisenations-0.0.0.dev0-py3-none-any.whl:

Publisher: release.yml on Stalot/WiseNations

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page