Skip to main content

Application Hacking Interface. An HTTP API client helper for "unofficial" APIs.

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ahi-0.19.47.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ahi-0.19.47-py3-none-any.whl (41.6 kB view details)

Uploaded Python 3

File details

Details for the file ahi-0.19.47.tar.gz.

File metadata

  • Download URL: ahi-0.19.47.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for ahi-0.19.47.tar.gz
Algorithm Hash digest
SHA256 2dca21db504137aa9319fffec3328a867c31fb408e86a22b3e19cceb1adeaa1e
MD5 ab4fd2cc1c7a2c768b90d4922882d338
BLAKE2b-256 fb0ba9e508dff8f938ee56d3abdd9c7acdb4ebd3135a70759490100a76a18564

See more details on using hashes here.

File details

Details for the file ahi-0.19.47-py3-none-any.whl.

File metadata

  • Download URL: ahi-0.19.47-py3-none-any.whl
  • Upload date:
  • Size: 41.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for ahi-0.19.47-py3-none-any.whl
Algorithm Hash digest
SHA256 303a5b5a5d216996783889b37de72d004a11e16460595116a9468fa01caa2118
MD5 c9300606e124c50e68a3bb7cd57ef785
BLAKE2b-256 0b6ae76258ccacb256435d72233ab0055097d381f8847ba5cad11f843fba2cd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page