semvec/pypi-packages huggingface dataset:
faster-geohash 0.1.0
A fast geohashing library
Requires Python: >=3.9
Keywords: geohash, gis

# faster-geohash
[![PyPI version](https://img.shields.io/pypi/v/faster-geohash.svg)](https://pypi.org/projects/faster-geohash) [![License](https://img.shields.io/github/license/e-nomem/faster-geohash.svg)](https://github.com/e-nomem/faster-geohash/blob/main/LICENSE)

A fast geohash library for python implemented using the [rust geohash crate](https://github.com/georust/geohash).

This library supports python 3.9-3.14 and has experimental support for the 'free-threaded' mode in python 3.14.

## Usage
```python
import faster_geohash

faster_geohash.encode((37.8324, 112.5584), precision=9)  # 'ww8p1r4t8'

faster_geohash.decode('ww8p1r4t8')  # ('37.8324', '112.5584')
```

## Building
This library uses `maturin` to compile the rust code into a python extension module. An existing rust toolchain does not have to be installed because `maturin` will bootstrap a rust toolchain in an isolated environment as necessary. Use any standard build frontend, e.g. using `uv`:
```bash
# Build from source checkout
uv build --wheel .

# Build directly from sdist
uv build --wheel path/to/faster_geohash-0.0.1.tar.gz
```

### ABI3 Support
This library supports building against the python 'limited' API/ABI3. By default it will not do so, but the option can be enabled by passing the config flag to maturin. E.g. using `uv`:
```bash
uv build --config-setting maturin.build-args=--features=abi3 --wheel <source_dir or sdist>
```
hww 1.1
This package contains the essentials for HouseWideWeb, a decentralized network system. It includes the DNS, a server framework, and a client that you can customize.
Requires Python: >=3.7
Keywords: network, decentralized, house, web, housewide, dns

# 🏠 HouseWideWeb (HWW)
Welcome to HouseWideWeb, a decentralized network system designed to be lightweight, flexible, and fun to use. Whether you're building a local service or a distributed app, HWW gives you the tools to register, resolve, and connect — all without the baggage of traditional DNS.

## 🚀 Getting Started

Here's how you can get started with HouseWideWeb easily!

### 1. Run the DNS Registry Server

This is the backbone of HWW — a simple DNS registry that maps domains to IP addresses and ports.

```
from hww.dns import DNSRegistryServer

server = DNSRegistryServer()
server.start()
```

Run this on any computer or server. It listens for `reg ` and `get` requests to register and resolve HWW domains.

### 2. Build Your HWW Server


Use the HWW server framework to create your own service.
```
from hww import HWWServer

server = HWWServer()
server.start()
```

You can extend `HWWServer` with custom logic to handle incoming connections. It's lightweight, so any computer can be a server.

### 3. Register Your Domain

Before clients can find your server, you need to register it with the DNS registry.

Send a registration request like this using the later shown client base or a custom one:

```
reg ilove.manypieces.ofpie
```

No TLDs required — go wild with names!

### 4. Connect with the HWW Client

Use the client framework to resolve domains and interact with services.

```
from hww import DNSClient, ServiceConnector

dns = DNSClient()
status, ip_port = dns.send_request("get", "hww://example.com")

if "100 OK" in status and ip_port:
    ip, port = ip_port.split(":")
    connector = ServiceConnector(ip, int(port))
    connector.interact()
else:
    print("Failed to resolve domain.")
```

### 🧠 How It Works

- DNSRegistryServer: Accepts reg <domain> to register and get <domain> to resolve.

- HWWServer: Listens for incoming connections and handles service logic.

- DNSClient: Sends requests to the DNS server.

- ServiceConnector: Connects to resolved services and enables interaction.

### 🧪 Example Flow

1. Start your DNS server.

2. Start your HWW service.

3. Register your domain with the DNS server.

4. Use the client to resolve and connect to your service.

Example domain: hww://computerstore.com 
Example registration: reg computerstore.com 
Example resolution: get computerstore.com