Skip to main content

python-jejakmasjid

Asynchronous Python client library for the Jejak Masjid API.

Used by the Home Assistant Jejak Masjid integration to discover nearby masjids, suraus, and musollas across Malaysia.

Features

  • Asynchronous: Built on aiohttp for non-blocking I/O.
  • GeoJSON Parsing: Extracts places, coordinates, place types, and amenities from the Jejak Masjid service.
  • Haversine Distance: Ranks places by proximity to coordinates.
  • Dedicated Endpoint Ready: Abstracted client configuration allowing seamless migration when custom endpoints are provided.

Installation

pip install python-jejakmasjid

Quick Start

import asyncio
import aiohttp
from jejakmasjid import async_fetch_nearby, rank

async def main():
    async with aiohttp.ClientSession() as session:
        places = await async_fetch_nearby(session, lat=3.02, lon=101.79, radius_km=3)
        ranked = rank(places, lat=3.02, lon=101.79)
        for place in ranked:
            print(f"{place['name']} ({place['type']}) - {place['distance_km']} km")

asyncio.run(main())

CLI Usage

jejakmasjid --lat 3.02 --lon 101.79 --radius 3

License

MIT

Metadata

Release files for python-jejakmasjid 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-jejakmasjid 0.3.4
File Size Uploaded Provenance Actions
python_jejakmasjid-0.3.4.tar.gz 14.2 kB With provenance Details for python_jejakmasjid-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-jejakmasjid 0.3.4
File Interpreter ABI Platform Actions
python_jejakmasjid-0.3.4-py3-none-any.whl Python 3 none any Details for python_jejakmasjid-0.3.4-py3-none-any.whl

Total release size: 26.5 kB

Release files / python_jejakmasjid-0.3.4.tar.gz

Download URL python_jejakmasjid-0.3.4.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9bf6569ccdc4098f730a5c0faf1fb5c9d19a4e5bc4c2d0ca86d711a1b7558465
BLAKE2b-256 checksum
How to use checksums
c1a6269da430199aab30f19a58b9b585a342b8bb70e9a4b25e77a71cc8ee1027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / python_jejakmasjid-0.3.4-py3-none-any.whl

Download URL python_jejakmasjid-0.3.4-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2a5beca2737cd8f54656b0f622dedb8365912b30e83dcf2117b0bd079e1884c
BLAKE2b-256 checksum
How to use checksums
3ee7d070f6eac793cd87652099afcb8f3af3ad05dd594684638b55f37020c9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for python-jejakmasjid 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for python_jejakmasjid-0.3.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page