47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
id, name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, example, tested, tests, test_file_path, file_path, params, output, source_repo, source_license, source_file
| id | name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | example | tested | tests | test_file_path | file_path | params | output | source_repo | source_license | source_file | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| distance_bucket_py_geo | distance_bucket | function | py | geo | 1.0.0 | pure | distance_bucket(distance_km: float) -> str | Clasifica una distancia en km en uno de los buckets: 0-5, 5-10, 10-20, 20-40, 40-80, 80-160, 160+. |
|
false | from geo.distance_bucket import distance_bucket distance_bucket(3.0) # "0-5" distance_bucket(7.0) # "5-10" distance_bucket(200.0) # "160+" | true |
|
python/functions/geo/tests/test_distance_bucket.py | python/functions/geo/distance_bucket.py |
|
cadena con el rango al que pertenece la distancia, p.ej. '0-5' o '160+' | internal:footprint_aurgi | internal-aurgi | zonas_mapas_aurgi/backend/app.py:678 |
Ejemplo
from geo.distance_bucket import distance_bucket
distance_bucket(3.0) # "0-5"
distance_bucket(50.0) # "40-80"
distance_bucket(200.0) # "160+"
Notas
Los bordes son inclusivos por la izquierda: distance_km <= edge retorna el bucket.