Rival Regions Calc
Unofficial calculator for Rival Regions. Easily calculate common known formulas from the game.
Currently supported
- Work productivity
Install
$ pip install rival-regions-calc
Demo
Production
from rival_regions_calc import Item, WorkProduction
RESOURCE = Item("oil")
WP = WorkProduction(RESOURCE)
WP.user_level = 86
WP.work_exp = 142000
WP.factory_level = 185
WP.resource_max = 371
WP.department_bonus = 1.9
WP.wage_percentage = 100
WP.tax_rate = 2
WP.profit_share = 75
WP.calculate()
print(WP.wage())
Construction
from rival_regions_calc import ConstructionCosts, Building
BUILDING = Building("hospital")
CC = ConstructionCosts(BUILDING, 1805)
CC.calculate(50)
print(CC.cash)
print(CC.gold)
print(CC.oil)
print(CC.ore)
Deep exploration
from rival_regions_calc import Item, DeepExploration
resource = Item("oil")
DE = DeepExploration(resource, 223)
DE.calculate_max()
print(DE.cash)
print(DE.gold)
print(DE.diamond)
Resource coefficient
from rival_regions_calc import ResourceCoefficient, Item
resource = Item("oil")
RC = ResourceCoefficient(resource, 266)
print(RC.calculate())
RC = ResourceCoefficient(resource, 371)
print(RC.calculate())
Development
I'll add formulas if I think they are important. If you'd like to see a more improvements you can open an issue or make pull request.
Metadata
Release files for rival-regions-calc 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rival_regions_calc-1.1.2.tar.gz | 5.6 kB | Without provenance | Details for rival_regions_calc-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rival_regions_calc-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for rival_regions_calc-1.1.2-py3-none-any.whl |
Total release size: 13.1 kB
Release files / rival_regions_calc-1.1.2.tar.gz
| Download URL | rival_regions_calc-1.1.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbcfad0476986abd2a31f155686e4728aee3de8c21cee85bbfb22d961a369c05
|
|
BLAKE2b-256 checksum How to use checksums |
eae55e7572ae72b93f8c53b726cce7e3c689c2701849ab21ea7787ccd1494247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / rival_regions_calc-1.1.2-py3-none-any.whl
| Download URL | rival_regions_calc-1.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
203fce6e9bd8961ab91ad1c796a66dffd6fc4089fb02f1e48a0d8ba50f20926b
|
|
BLAKE2b-256 checksum How to use checksums |
6dc310a9996c6fbb53ff4abbd28caf0a6ca40cd5912646f6a1045b72e741cbbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for rival-regions-calc 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.