nahcrofDB

Key-value storage designed for speed and cheap scalability.

$ git clone https://github.com/nahcrof-code/nahcrofDB.git

Python Client

import client

# Initialize connection
client.init(
    folder="my_db", 
    url="https://db.nahcrof.com/", 
    password="api_password"
)

# Single key increment
client.makeKey("count", 5)
client.incrementKey(10, "count")
print(client.getKey("count")) # Output: 15

CLI Tools

Bulk Operations

Minimize database strain with multi-key requests.

client.makeKeys({
    "key1": "val1",
    "key2": "val2"
})

Smart Retrieval

# Chunks requests by 100 to prevent GET size errors
keys = client.getKeysIncrements(["k1", "k2", ...], log=True)

Precise Key Searching

Search across your entire dataset using specific spatial parameters.

# Search anywhere within key name
client.searchNames("user")
# Search only at start
client.searchNames("user", where="start")

Enterprise Redundancy

Scale across multiple clusters with built-in client-side failover.

# nahcrofDB_client_config.py
databases = [
    {"url": "http://secondary:8080", "password": "secure"},
]

# Activate in code
client.init(..., enterprise=True)