Rangekeeper 0.8.32__tar.gz → 0.8.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/PKG-INFO +1 -1
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/Rangekeeper.egg-info/PKG-INFO +1 -1
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/pyproject.toml +1 -1
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/flux.py +2 -2
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_dynamics.py +4 -4
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_formulas.py +11 -11
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_modules.py +5 -3
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/README.md +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/Rangekeeper.egg-info/SOURCES.txt +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/Rangekeeper.egg-info/dependency_links.txt +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/Rangekeeper.egg-info/requires.txt +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/Rangekeeper.egg-info/top_level.txt +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/__init__.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/api.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/distribution.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/duration.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/__init__.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/black_swan.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/cyclicality.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/market.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/noise.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/trend.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/dynamics/volatility.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/extrapolation.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/format.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/formula/__init__.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/formula/financial.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/graph.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/measure.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/policy.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/projection.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/segmentation.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/rangekeeper/space.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/setup.cfg +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_api.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_graph.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_measures.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_models.py +0 -0
- {rangekeeper-0.8.32 → rangekeeper-0.8.33}/tests/test_projections.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Rangekeeper
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.33
|
4
4
|
Summary: A Python library assisting financial modelling in real estate asset & development planning, decision-making, cashflow forecasting, and scenario analysis.
|
5
5
|
Author-email: Daniel Fink <danfink@mit.edu>
|
6
6
|
License-Expression: MPL-2.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Rangekeeper
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.33
|
4
4
|
Summary: A Python library assisting financial modelling in real estate asset & development planning, decision-making, cashflow forecasting, and scenario analysis.
|
5
5
|
Author-email: Daniel Fink <danfink@mit.edu>
|
6
6
|
License-Expression: MPL-2.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "Rangekeeper"
|
3
|
-
version = "0.8.
|
3
|
+
version = "0.8.33"
|
4
4
|
description = "A Python library assisting financial modelling in real estate asset & development planning, decision-making, cashflow forecasting, and scenario analysis."
|
5
5
|
authors = [
|
6
6
|
{ name = "Daniel Fink", email = "danfink@mit.edu" }
|
@@ -272,9 +272,9 @@ class Flow:
|
|
272
272
|
|
273
273
|
return cls(movements=movements, units=units, name=name)
|
274
274
|
|
275
|
-
def
|
275
|
+
def negate(self) -> Flow:
|
276
276
|
"""
|
277
|
-
Returns a Flow with movement values
|
277
|
+
Returns a Flow with movement values negated (multiplied by -1)
|
278
278
|
"""
|
279
279
|
return self.__class__(
|
280
280
|
movements=self.movements.copy(deep=True).multiply(-1),
|
@@ -108,7 +108,7 @@ class ExAnteInflexibleModel:
|
|
108
108
|
name="Operating Expenses",
|
109
109
|
movements=self.pgi.movements * params["opex_pgi_ratio"],
|
110
110
|
units=currency.units,
|
111
|
-
).
|
111
|
+
).negate()
|
112
112
|
self.noi = rk.flux.Stream(
|
113
113
|
name="Net Operating Income",
|
114
114
|
flows=[self.egi, self.opex],
|
@@ -118,7 +118,7 @@ class ExAnteInflexibleModel:
|
|
118
118
|
name="Capital Expenditures",
|
119
119
|
movements=self.pgi.movements * params["capex_pgi_ratio"],
|
120
120
|
units=currency.units,
|
121
|
-
).
|
121
|
+
).negate()
|
122
122
|
self.net_cfs = rk.flux.Stream(
|
123
123
|
name="Net Annual Cashflows",
|
124
124
|
flows=[self.noi, self.capex],
|
@@ -264,7 +264,7 @@ class ExPostInflexibleModel:
|
|
264
264
|
name="Operating Expenses",
|
265
265
|
movements=self.pgi.movements * self.params["opex_pgi_ratio"],
|
266
266
|
units=currency.units,
|
267
|
-
).
|
267
|
+
).negate()
|
268
268
|
self.noi = rk.flux.Stream(
|
269
269
|
name="Net Operating Income",
|
270
270
|
flows=[self.egi, self.opex],
|
@@ -274,7 +274,7 @@ class ExPostInflexibleModel:
|
|
274
274
|
name="Capital Expenditures",
|
275
275
|
movements=self.pgi.movements * self.params["capex_pgi_ratio"],
|
276
276
|
units=currency.units,
|
277
|
-
).
|
277
|
+
).negate()
|
278
278
|
self.net_cfs = rk.flux.Stream(
|
279
279
|
name="Net Annual Cashflows",
|
280
280
|
flows=[self.noi, self.capex],
|
@@ -100,8 +100,8 @@ class Model:
|
|
100
100
|
starting=0,
|
101
101
|
transactions=rk.flux.Stream(
|
102
102
|
flows=[
|
103
|
-
self.equity.overdraft.diff().
|
104
|
-
self.payments.
|
103
|
+
self.equity.overdraft.diff().negate(),
|
104
|
+
self.payments.negate(),
|
105
105
|
],
|
106
106
|
frequency=self.params["frequency"],
|
107
107
|
).sum(),
|
@@ -252,7 +252,7 @@ class TestFinancial:
|
|
252
252
|
data=transactions,
|
253
253
|
sequence=sequence,
|
254
254
|
units=currency.units,
|
255
|
-
).
|
255
|
+
).negate(),
|
256
256
|
frequency=self.params["frequency"],
|
257
257
|
type=rk.formula.financial.Account.Type.SIMPLE,
|
258
258
|
rate=rate,
|
@@ -277,7 +277,7 @@ class TestFinancial:
|
|
277
277
|
def test_capitalized_interest(self):
|
278
278
|
account = rk.formula.financial.Account(
|
279
279
|
starting=0,
|
280
|
-
transactions=self.model.draws.sum().
|
280
|
+
transactions=self.model.draws.sum().negate(),
|
281
281
|
frequency=self.params["frequency"],
|
282
282
|
type=rk.formula.financial.Account.Type.CAPITALIZED,
|
283
283
|
rate=self.params["interest_rate_pa"]
|
@@ -297,8 +297,8 @@ class TestFinancial:
|
|
297
297
|
transactions = rk.flux.Stream(
|
298
298
|
name="Transactions",
|
299
299
|
flows=[
|
300
|
-
self.model.draws.sum().
|
301
|
-
self.model.payments.
|
300
|
+
self.model.draws.sum().negate(),
|
301
|
+
self.model.payments.negate(),
|
302
302
|
],
|
303
303
|
frequency=self.params["frequency"],
|
304
304
|
)
|
@@ -326,13 +326,13 @@ class TestFinancial:
|
|
326
326
|
def test_balances(self):
|
327
327
|
transactions = rk.flux.Stream(
|
328
328
|
name="Transactions",
|
329
|
-
flows=[self.model.draws.sum().
|
329
|
+
flows=[self.model.draws.sum().negate()],
|
330
330
|
frequency=self.params["frequency"],
|
331
331
|
)
|
332
332
|
|
333
333
|
equity = rk.formula.financial.Account(
|
334
334
|
starting=176631.99,
|
335
|
-
transactions=transactions.sum().
|
335
|
+
transactions=transactions.sum().negate(),
|
336
336
|
frequency=self.params["frequency"],
|
337
337
|
type=rk.formula.financial.Account.Type.SIMPLE,
|
338
338
|
name="Equity Account",
|
@@ -349,8 +349,8 @@ class TestFinancial:
|
|
349
349
|
starting=0,
|
350
350
|
transactions=rk.flux.Stream(
|
351
351
|
flows=[
|
352
|
-
equity.overdraft.diff().
|
353
|
-
self.model.payments.
|
352
|
+
equity.overdraft.diff().negate(),
|
353
|
+
self.model.payments.negate(),
|
354
354
|
],
|
355
355
|
frequency=self.params["frequency"],
|
356
356
|
).sum(),
|
@@ -369,7 +369,7 @@ class TestFinancial:
|
|
369
369
|
profit = rk.flux.Stream(
|
370
370
|
flows=[
|
371
371
|
equity.diff(),
|
372
|
-
loan.overdraft.diff().
|
372
|
+
loan.overdraft.diff().negate(),
|
373
373
|
],
|
374
374
|
frequency=self.params["frequency"],
|
375
375
|
name="Profit",
|
@@ -204,7 +204,7 @@ class TestFlow:
|
|
204
204
|
assert collapse.movements.size == 1
|
205
205
|
assert collapse.movements.array[0] == 100.0
|
206
206
|
|
207
|
-
invert_flow = flow.
|
207
|
+
invert_flow = flow.negate()
|
208
208
|
|
209
209
|
def test_flow_inversion(self):
|
210
210
|
# TestFlow.invert_flow.display()
|
@@ -330,7 +330,8 @@ class TestStream:
|
|
330
330
|
assert TestStream.stream.frame.index.freqstr == "M"
|
331
331
|
|
332
332
|
product = TestStream.stream.product(
|
333
|
-
name="product",
|
333
|
+
name="product",
|
334
|
+
registry=units,
|
334
335
|
)
|
335
336
|
product.display()
|
336
337
|
|
@@ -358,7 +359,8 @@ class TestStream:
|
|
358
359
|
)
|
359
360
|
|
360
361
|
stream_sqm_agg = stream_sqm.product(
|
361
|
-
name="stream_sqm_agg",
|
362
|
+
name="stream_sqm_agg",
|
363
|
+
registry=units,
|
362
364
|
)
|
363
365
|
|
364
366
|
assert stream_sqm_agg.units == "AUD * squaremeter"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|