Skip to main content

Mac gurl

This project provides an HTTPAdapter for requests. The adapter will leverage Apple's Foundation and Security framework to perform the HTTP requests. The Python bindings are provided by the PyObjC project. This project is based on gurl.py of the Munki project.

Important Notes

  • Currently only GET requests are supported.

Usage

import requests
from mac_gurl.requests  import MacHTTPAdapter

s = requests.Session()
s.mount("https:", MacHTTPAdapter())
s.get("YOUR_URL")

Details on the HTTPAdapter are described in the docs of requests.

Run an example script

TODO this needs to be updated

PYTHONPATH=. uv run example/example.py

# or by sourcing the venv
. .venv/bin/activate
PYTHONPATH=. python example/example.py

Development

Setup Environment

This project uses uv to manage dependencies and virtual environments.

uv sync
# activate the virtual environment
. .venv/bin/activate

# check code
ruff check

# format code
ruff format

Release files for mac-gurl 0.1.1

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

Source distribution (sdist)

Source distribution for mac-gurl 0.1.1
File Size Uploaded
mac_gurl-0.1.1.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mac-gurl 0.1.1
File Interpreter ABI Platform
mac_gurl-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / mac_gurl-0.1.1.tar.gz

Download URL mac_gurl-0.1.1.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
492dad4bf6e5240078089cf43471ca188c52630d8deba68e4230b89ea171df91
BLAKE2b-256 checksum
How to use checksums
f9a7f8242bb21f0b8d50e31c0a1622049e4a4aad291f78ab37b8bef05235d25f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Mar 31, 2025.

Transparency log

Release files / mac_gurl-0.1.1-py3-none-any.whl

Download URL mac_gurl-0.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
723e1f4c0403dd14c1e96c38b174870cf548e5f5cc82b656fdb2ae8231d68507
BLAKE2b-256 checksum
How to use checksums
c11e0d1dbb2c276f0c13a5475c3b839bb864d6f3a09ddd22df3217c8f14589ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Mar 31, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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