-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (42 loc) · 6.9 KB
/
setup.py
File metadata and controls
49 lines (42 loc) · 6.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
Kagi API
The Kagi API provides programmatic access to data that powers our search results & more. Get started on the [API Dashboard](https://kagi.com/api) to set up billing, manage API keys, and more. See our [API Pricing](https://kagi.com/api/pricing) page for standard rates. ### Official Client Libraries We offer the following libraries you can use to interact with the Kagi API. These are generated from an OpenAPI spec. - [Golang](https://github.com/kagisearch/kagi-openapi-golang) - [Python](https://github.com/kagisearch/kagi-openapi-python) - [TypeScript](https://github.com/kagisearch/kagi-openapi-typescript) - [Rust](https://github.com/kagisearch/kagi-openapi-rust) If you have a language you would like to use and it's not in the list, send us a message and we will add it to the list if it is supported. Or you can use the [spec](https://kagi.redocly.app/_spec/openapi.yaml?download) to build your own custom library. In the future we will most likely offer more crafted API wrappers and spotlight clients and applications built by our community - feel free to send them to us! ### MCP We offer a hosted MCP server at: https://mcp.kagi.com/mcp At this time, we do not support setup via OAuth2 flow, but this is on our roadmap. You will need to get your [API key from the dashboard](https://kagi.com/api/keys) and plug it into your local client with `Bearer` HTTP authentication. Here is an example to get started with Claude Code: ``` claude mcp add kagi https://mcp.kagi.com/mcp --transport http --header \"Authorization: Bearer $(read -sp 'API key: ' k; echo $k)\" --scope user ``` You can review and contribute to our [MCP server on GitHub](https://github.com/kagisearch/kagimcp/tree/rehan/v1-api)! ### Support For bug reports, feature requests, or billing related issues please reach out to [developers@kagi.com](mailto:developers@kagi.com) and we will be happy to assist you. To help us answer your reports efficiently, please be prepared to provide as much info as you can: - For bugs, include request trace IDs from the `meta.trace` response field or the `X-Kagi-Trace` response header. - If issues are easily reproduced in our [playground](https://kagi.com/api/playground/search), send us a link to the playground - the URL will contain parameters to configure the request so that we can reproduce ourselves. - Include any code snippets or precise descriptions of the request you are making, and full samples of the response bodies from the API - Include mention of which wrapper you are using if any, or links to relevant application code we can review - Include the email address associated with your Kagi login if it is not the one you are emailing from Thank you! ### Discord Join our [Discord](https://kagi.com/discord)! Good for quick questions or chatting about things you've made with our APIs! In the server you will find the `#api` forum for API related inquiries.
The version of the OpenAPI document: 1
Contact: developers@kagi.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from setuptools import setup, find_packages # noqa: H301
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "openapi-client"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.10"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
setup(
name=NAME,
version=VERSION,
description="Kagi API",
author="API Support",
author_email="developers@kagi.com",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "Kagi API"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache-2.0",
long_description_content_type='text/markdown',
long_description="""\
The Kagi API provides programmatic access to data that powers our search results & more. Get started on the [API Dashboard](https://kagi.com/api) to set up billing, manage API keys, and more. See our [API Pricing](https://kagi.com/api/pricing) page for standard rates. ### Official Client Libraries We offer the following libraries you can use to interact with the Kagi API. These are generated from an OpenAPI spec. - [Golang](https://github.com/kagisearch/kagi-openapi-golang) - [Python](https://github.com/kagisearch/kagi-openapi-python) - [TypeScript](https://github.com/kagisearch/kagi-openapi-typescript) - [Rust](https://github.com/kagisearch/kagi-openapi-rust) If you have a language you would like to use and it's not in the list, send us a message and we will add it to the list if it is supported. Or you can use the [spec](https://kagi.redocly.app/_spec/openapi.yaml?download) to build your own custom library. In the future we will most likely offer more crafted API wrappers and spotlight clients and applications built by our community - feel free to send them to us! ### MCP We offer a hosted MCP server at: https://mcp.kagi.com/mcp At this time, we do not support setup via OAuth2 flow, but this is on our roadmap. You will need to get your [API key from the dashboard](https://kagi.com/api/keys) and plug it into your local client with `Bearer` HTTP authentication. Here is an example to get started with Claude Code: ``` claude mcp add kagi https://mcp.kagi.com/mcp --transport http --header \"Authorization: Bearer $(read -sp 'API key: ' k; echo $k)\" --scope user ``` You can review and contribute to our [MCP server on GitHub](https://github.com/kagisearch/kagimcp/tree/rehan/v1-api)! ### Support For bug reports, feature requests, or billing related issues please reach out to [developers@kagi.com](mailto:developers@kagi.com) and we will be happy to assist you. To help us answer your reports efficiently, please be prepared to provide as much info as you can: - For bugs, include request trace IDs from the `meta.trace` response field or the `X-Kagi-Trace` response header. - If issues are easily reproduced in our [playground](https://kagi.com/api/playground/search), send us a link to the playground - the URL will contain parameters to configure the request so that we can reproduce ourselves. - Include any code snippets or precise descriptions of the request you are making, and full samples of the response bodies from the API - Include mention of which wrapper you are using if any, or links to relevant application code we can review - Include the email address associated with your Kagi login if it is not the one you are emailing from Thank you! ### Discord Join our [Discord](https://kagi.com/discord)! Good for quick questions or chatting about things you've made with our APIs! In the server you will find the `#api` forum for API related inquiries.
""", # noqa: E501
package_data={"openapi_client": ["py.typed"]},
)