Skip to main content

Application Hacking Interface

Using the simple HTTPClient

from logging import *
c = ahi.HTTPClient(cache_ttl=60, force_wait_interval=1, auto_adjust_for_rate_limiting=True, logging_level=DEBUG, proxy='http://127.0.0.1:8080', verify=True, allow_redirects=False, timeout=None)
resp = c.get('http://example.com/')
print(resp)

Using the Selenium driver for Firefox

from logging import *
from selenium.webdriver.common.keys import Keys
ff = ahi.SeleniumFirefox(headless=True, force_wait_interval=timedelta(seconds=0), logging_level=DEBUG)
ff.get('https://example.com/')
ff.html.css('#LoginForm_Password').send_keys('P4$$w0rd')
ff.html.css('#LoginForm_Password').send_keys(Keys.RETURN)
ff.execute_script('''SetLocation('\x2Fdocs\x2FProMyPlanning.aspx?_Division_=549942',event, 0)''')
ff.html.css('#Reports_Reports_Reports_MyPlanning').click()
print(ff.html)

Converting from a curl command line

girl --curl https://example.com/

Metadata

Release files for ahi 0.19.47

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

Source distribution (sdist)

Source distribution for ahi 0.19.47
File Size Uploaded Provenance Actions
ahi-0.19.47.tar.gz 32.6 kB Without provenance Details for ahi-0.19.47.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ahi 0.19.47
File Interpreter ABI Platform Actions
ahi-0.19.47-py3-none-any.whl Python 3 none any Details for ahi-0.19.47-py3-none-any.whl

Total release size: 74.1 kB

Release files / ahi-0.19.47.tar.gz

Download URL ahi-0.19.47.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2dca21db504137aa9319fffec3328a867c31fb408e86a22b3e19cceb1adeaa1e
BLAKE2b-256 checksum
How to use checksums
fb0ba9e508dff8f938ee56d3abdd9c7acdb4ebd3135a70759490100a76a18564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ahi-0.19.47-py3-none-any.whl

Download URL ahi-0.19.47-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
303a5b5a5d216996783889b37de72d004a11e16460595116a9468fa01caa2118
BLAKE2b-256 checksum
How to use checksums
0b6ae76258ccacb256435d72233ab0055097d381f8847ba5cad11f843fba2cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ahi 0.19.47

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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