Python Client for Generative Language API
=========================================
|preview| |pypi| |versions|
`Generative Language API`_: The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.
- `Client Library Documentation`_
- `Product Documentation`_
.. |preview| image:: https://img.shields.io/badge/support-preview-orange.svg
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
.. |pypi| image:: https://img.shields.io/pypi/v/google-ai-generativelanguage.svg
:target: https://pypi.org/project/google-ai-generativelanguage/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-ai-generativelanguage.svg
:target: https://pypi.org/project/google-ai-generativelanguage/
.. _Generative Language API: https://ai.google.dev/docs
.. _Client Library Documentation: https://googleapis.dev/python/generativelanguage/latest
.. _Product Documentation: https://ai.google.dev/docs
Quick Start
-----------
In order to use this library, you first need to go through the following steps:
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
3. `Enable the Generative Language API.`_
4. `Setup Authentication.`_
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
.. _Enable the Generative Language API.: https://ai.google.dev/docs
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
Installation
~~~~~~~~~~~~
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project's dependencies
from the dependencies of other projects.
With `venv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.
.. _`venv`: https://docs.python.org/3/library/venv.html
Code samples and snippets
~~~~~~~~~~~~~~~~~~~~~~~~~
Code samples and snippets live in the `samples/`_ folder.
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage/samples
Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
Python.
Python >= 3.7
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
Unsupported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Python <= 3.6
If you are using an `end-of-life`_
version of Python, we recommend that you update as soon as possible to an actively supported version.
.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
Mac/Linux
^^^^^^^^^
.. code-block:: console
python3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-ai-generativelanguage
Windows
^^^^^^^
.. code-block:: console
py -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-ai-generativelanguage
Next Steps
~~~~~~~~~~
- Read the `Client Library Documentation`_ for Generative Language API
to see other available methods on the client.
- Read the `Generative Language API Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `README`_ to see the full list of Cloud
APIs that we cover.
.. _Generative Language API Product documentation: https://ai.google.dev/docs
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Raw data
{
"_id": null,
"home_page": "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage",
"name": "google-ai-generativelanguage",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Google LLC",
"author_email": "googleapis-packages@google.com",
"download_url": "https://files.pythonhosted.org/packages/d2/8a/f08a90c645b9efeaf5e812395aac816f468d2e0bc79d21b3279db29e6cdd/google_ai_generativelanguage-0.6.13.tar.gz",
"platform": "Posix; MacOS X; Windows",
"description": "Python Client for Generative Language API\n=========================================\n\n|preview| |pypi| |versions|\n\n`Generative Language API`_: The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.\n\n- `Client Library Documentation`_\n- `Product Documentation`_\n\n.. |preview| image:: https://img.shields.io/badge/support-preview-orange.svg\n :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels\n.. |pypi| image:: https://img.shields.io/pypi/v/google-ai-generativelanguage.svg\n :target: https://pypi.org/project/google-ai-generativelanguage/\n.. |versions| image:: https://img.shields.io/pypi/pyversions/google-ai-generativelanguage.svg\n :target: https://pypi.org/project/google-ai-generativelanguage/\n.. _Generative Language API: https://ai.google.dev/docs\n.. _Client Library Documentation: https://googleapis.dev/python/generativelanguage/latest\n.. _Product Documentation: https://ai.google.dev/docs\n\nQuick Start\n-----------\n\nIn order to use this library, you first need to go through the following steps:\n\n1. `Select or create a Cloud Platform project.`_\n2. `Enable billing for your project.`_\n3. `Enable the Generative Language API.`_\n4. `Setup Authentication.`_\n\n.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project\n.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project\n.. _Enable the Generative Language API.: https://ai.google.dev/docs\n.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html\n\nInstallation\n~~~~~~~~~~~~\n\nInstall this library in a virtual environment using `venv`_. `venv`_ is a tool that\ncreates isolated Python environments. These isolated environments can have separate\nversions of Python packages, which allows you to isolate one project's dependencies\nfrom the dependencies of other projects.\n\nWith `venv`_, it's possible to install this library without needing system\ninstall permissions, and without clashing with the installed system\ndependencies.\n\n.. _`venv`: https://docs.python.org/3/library/venv.html\n\n\nCode samples and snippets\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nCode samples and snippets live in the `samples/`_ folder.\n\n.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage/samples\n\n\nSupported Python Versions\n^^^^^^^^^^^^^^^^^^^^^^^^^\nOur client libraries are compatible with all current `active`_ and `maintenance`_ versions of\nPython.\n\nPython >= 3.7\n\n.. _active: https://devguide.python.org/devcycle/#in-development-main-branch\n.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches\n\nUnsupported Python Versions\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\nPython <= 3.6\n\nIf you are using an `end-of-life`_\nversion of Python, we recommend that you update as soon as possible to an actively supported version.\n\n.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches\n\nMac/Linux\n^^^^^^^^^\n\n.. code-block:: console\n\n python3 -m venv <your-env>\n source <your-env>/bin/activate\n pip install google-ai-generativelanguage\n\n\nWindows\n^^^^^^^\n\n.. code-block:: console\n\n py -m venv <your-env>\n .\\<your-env>\\Scripts\\activate\n pip install google-ai-generativelanguage\n\nNext Steps\n~~~~~~~~~~\n\n- Read the `Client Library Documentation`_ for Generative Language API\n to see other available methods on the client.\n- Read the `Generative Language API Product documentation`_ to learn\n more about the product and see How-to Guides.\n- View this `README`_ to see the full list of Cloud\n APIs that we cover.\n\n.. _Generative Language API Product documentation: https://ai.google.dev/docs\n.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Google Ai Generativelanguage API client library",
"version": "0.6.13",
"project_urls": {
"Homepage": "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-ai-generativelanguage"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "54c7a4fae0de0c5610036ca4d548061eb9c37384e7c0bfa37b0d03000a27e085",
"md5": "d0493ef827d5e115ae5662221cacfdb2",
"sha256": "b7a6a42e9e39516d6cb51e163963e097177baa54adcc6602655aef613f0c9fef"
},
"downloads": -1,
"filename": "google_ai_generativelanguage-0.6.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d0493ef827d5e115ae5662221cacfdb2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 815829,
"upload_time": "2024-11-21T22:25:25",
"upload_time_iso_8601": "2024-11-21T22:25:25.819627Z",
"url": "https://files.pythonhosted.org/packages/54/c7/a4fae0de0c5610036ca4d548061eb9c37384e7c0bfa37b0d03000a27e085/google_ai_generativelanguage-0.6.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d28af08a90c645b9efeaf5e812395aac816f468d2e0bc79d21b3279db29e6cdd",
"md5": "84896839d50f979a5d6e12fb693f8b9e",
"sha256": "5d097fc4b1951b14fe0b27fb4ef618835e9778cbe200723f94c08b14de637533"
},
"downloads": -1,
"filename": "google_ai_generativelanguage-0.6.13.tar.gz",
"has_sig": false,
"md5_digest": "84896839d50f979a5d6e12fb693f8b9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 836812,
"upload_time": "2024-11-21T22:25:28",
"upload_time_iso_8601": "2024-11-21T22:25:28.061453Z",
"url": "https://files.pythonhosted.org/packages/d2/8a/f08a90c645b9efeaf5e812395aac816f468d2e0bc79d21b3279db29e6cdd/google_ai_generativelanguage-0.6.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-21 22:25:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "googleapis",
"github_project": "google-cloud-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "google-ai-generativelanguage"
}