semvec/pypi-packages huggingface dataset:
bean_mortgage 0.2
A small utility to create mortgage schedules for beancount.
Requires Python: >=3.7,<4

# Bean Mortage

Simple CLI tool to produce a mortgage schedule for beancount.

`pip install bean_mortgage`

## Example

``` sh
bean-mortgage 150000.00 120 0.0180 \
-c EUR \
-l Liabilities:Mortgage:Island \
-e Expenses:Fees:Mortgage:Island \
-a Assets:Bank:Checking \
-p "Banque de France" \
-d "Loan Island" \
-f 2018-03-19
```

Typically I put this in a separate file for each loan, and I edit the file as
the operations actually happen; and in the main file I put the initial
transaction, which could be in this example:

```
2018-02-20 * "M NotShadyGuy" "Got an island"
  Assets:Island                150000.00 EUR
  Liabilities:Mortgage:Stuff  -150000.00 EUR
```
timehash 1.2
Module to encode and decode timestamps to/from TimeHashes
Keywords: timehash,datetime,time

timehash
========

About
-----

timehash is an algorithm (with multiple reference implementations) for
calculating variable precision sliding windows of time. When performing
aggregations and correlations on large-scale data sets, the ability to
convert precise time values into 'malleable intervals' allows for many
novel analytics.

Using `sliding windows of
time <http://stackoverflow.com/questions/19386576/sliding-window-over-time-data-structure-and-garbage-collection>`__
is a common practice in data analysis but prior to the timehash
algorithm it was more of an art than a science.

.. image:: timehash-shaded-partial.png

Features
--------

-  convert epoch miliseconds into an interval of time, depicted by an
   ASCII character 'hash' (a 'timehash')
-  timehash values are well suited to referencing time intervals in
   key-value stores (e.g. Hbase, Acculumo, Redis)
-  The creation of a compound key of space and time (e.g.
   geohash\_timehash) is a powerful primitive for understanding
   geotemporal patterns

Implementations
---------------

-  `python
   timehash <https://github.com/abeusher/timehash/blob/master/timehash/__init__.py>`__
   - a reference implementation in pure python
-  `perl
   timehash <https://github.com/abeusher/timehash/blob/master/timehash.pl>`__
   - a reference implementation in perl
-  `java
   timehash <https://github.com/abeusher/timehash/blob/master/TimeHash.java>`__
   - a reference implementation in java
-  `javascript
   time-hash <https://github.com/disarticulate/time-hash>`__
   - port of reference implements
-  `golang
   timehash <https://github.com/abeusher/timehash/blob/master/timehash.go>`__
   - a reference implementation in Go

Usage
-----

Example of calculating a timehash value in python:

.. code:: python

    import timehash
    import time

    rightnow = time.time()
    rightnow60 = rightnow + 60.0

    rightnow_hash = timehash.encode(rightnow, precision=10)
    rightnow60_hash = timehash.encode(rightnow60, precision=10)

    print 'timehash of right now: %s' % rightnow_hash
    print 'timehash of now +60s: %s'% rightnow60_hash
     
    % timehash of right now: ae0f0ba1fc
    % timehash of now +60s: ae0f0baa1c

License
-------

`Modified BSD
License <http://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_.28.22Revised_BSD_License.22.2C_.22New_BSD_License.22.2C_or_.22Modified_BSD_License.22.29>`__

Contact
-------

- TimeHash Guru: `AbeUsher <http://www.linkedin.com/in/socialnetworkanalysis>`__
- Python Packager: `Kevin Dwyer / @pheared <https://twitter.com/pheared>`__
- Golang implementation: `Justin Shelton / @kwonstant <https://twitter.com/kwonstant>`__
- Javascript implementation: `Eric Xanderson  <https://github.com/disarticulate>`__
- Rust implementation: `Kevin Dwyer / @pheared <https://github.com/dwyerk/timeharsh>`_
- C impelmentation `Sam Mason <https://github.com/ukitake>`_
- C# impelmentation `Sam Mason <https://github.com/ukitake>`_
betterjsondb 0.1.9
A useful library for simplifying work with .json files.
Requires Python: >=3.10

# Betterjson
[Library](https://github.com/DarkJoij/betterjsondb) for easier working with JSON files in Python.

# Quick example
```json
{"names": ["Alex", "Allan"]}
```
```py
import betterjsondb

db = betterjsondb.connect(file="tests.json", prefix="~")                  # Name of file and prefix can be custom

print(                                                                    # In concole you'll see:
    db.get("all"),                                                        # {'names': ['Alex', 'Allan']}
    db.push("cars", {"BMW": "car", "Tosiba": "not_car"}, callback=True),  # True
    db.update("cars", "=", {"BMW": "car"}, callback=True),                # True
    db.delete("names", callback=True),                                    # True
    db.get("all")                                                         # {'cars': {'BMW': 'car'}}
)
```

# Important information
27.12.2021 library updated using [Python 3.10](https://www.python.org/downloads/release/python-3100/). So now its strictly requere it on your PC.

# Changelog:
#### v. 0.1.8:

After connect file if its not exists library will create it.
Added warning to not existing file.