Skip to main content

klyrek-api

API discovery and endpoint inventory. Three independent, composable pieces:

  • openapi — parses an OpenAPI/Swagger JSON spec's paths object into Endpoint records (method, params, base path handled for both Swagger 2.0 basePath and OpenAPI 3.x servers[]).
  • discovery — probes a small, curated set of well-known paths where a spec or an API root commonly lives (/openapi.json, /swagger.json, /api/v1, ...), all scope-checked through klyrek-http.
  • graphql — probes common GraphQL paths with a minimal {__typename} query and confirms by the response shape ({"data": ...} / {"data": ..., "errors": ...}), not just a 200.

inventory.build_api_inventory() runs all of the above against a target and returns a deduplicated list[Endpoint]. classify.is_rest_like() is a separate, standalone heuristic for tagging URLs already discovered by klyrek-crawler as API-shaped (/api/, /v1/, numeric ID segments) without making any additional requests.

from klyrek_api.inventory import build_api_inventory

endpoints = build_api_inventory(client, "https://target.com/")

Metadata

Release files for klyrek-api 0.1.0

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

Source distribution (sdist)

Source distribution for klyrek-api 0.1.0
File Size Uploaded Provenance Actions
klyrek_api-0.1.0.tar.gz 6.0 kB Without provenance Details for klyrek_api-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for klyrek-api 0.1.0
File Interpreter ABI Platform Actions
klyrek_api-0.1.0-py3-none-any.whl Python 3 none any Details for klyrek_api-0.1.0-py3-none-any.whl

Total release size: 12.6 kB

Release files / klyrek_api-0.1.0.tar.gz

Download URL klyrek_api-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
40499376830a7349e01b7c20c777769ef900aeb6da9288ad4f516e789eb9e390
BLAKE2b-256 checksum
How to use checksums
09612700d14c304d9077fb971b9e84c9d4ab933b7e5a58434692fd9347d03234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / klyrek_api-0.1.0-py3-none-any.whl

Download URL klyrek_api-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c654cc9c7946e28a798b3cbc42d3ea161460e903b69829c5dc12964bed846bb
BLAKE2b-256 checksum
How to use checksums
b034bb12824bf909acce7361387b3ca41f8770ec74c9148bc85783684dfbe4c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Security for klyrek-api 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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