{"id":16316816,"url":"https://github.com/ruu3f/perplexityai","last_synced_at":"2025-03-15T11:32:12.465Z","repository":{"id":186282850,"uuid":"673491283","full_name":"Ruu3f/perplexityai","owner":"Ruu3f","description":"A simple module to use Perplexity AI in Python.","archived":false,"fork":false,"pushed_at":"2024-05-08T18:37:02.000Z","size":49,"stargazers_count":47,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T00:43:51.332Z","etag":null,"topics":["ai","api","artificial-intelligence","perplexity","perplexityai","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/perplexityai","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ruu3f.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T18:42:57.000Z","updated_at":"2024-09-02T06:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c00c892d-b516-48a0-83b7-f84eaea31311","html_url":"https://github.com/Ruu3f/perplexityai","commit_stats":null,"previous_names":["ruu3f/perplexityai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruu3f%2Fperplexityai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruu3f%2Fperplexityai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruu3f%2Fperplexityai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruu3f%2Fperplexityai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ruu3f","download_url":"https://codeload.github.com/Ruu3f/perplexityai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221573143,"owners_count":16845774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","artificial-intelligence","perplexity","perplexityai","python"],"created_at":"2024-10-10T22:05:42.299Z","updated_at":"2024-10-26T19:39:21.769Z","avatar_url":"https://github.com/Ruu3f.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/perplexityai)](https://pypi.org/project/perplexityai)\n[![Downloads](https://static.pepy.tech/badge/perplexityai)](https://pypi.org/project/perplexityai)\n[![Status](https://img.shields.io/pypi/status/perplexityai)](https://pypi.org/project/perplexityai)\n\n# perplexityai\n\nA simple module to use Perplexity AI in Python.\n\n## Get started:\n\n```\npython -m pip install -U perplexityai\n```\n\n## Support this repository:\n- ⭐ **Star the project:** Star this repository. It means a lot to me! 💕\n\n## Example:\n\n### Perplexity:\n```python\nfrom perplexityai import Perplexity\n\nprompt = input(\"👦: \")\nfor a in Perplexity().generate_answer(prompt):\n    print(f\"🤖: {a['answer']}\")\n```\n\n### Labs:\n```python\n\"\"\"\nModels:\n[\n    \"mixtral-8x7b-instruct\",\n    \"llava-7b-chat\",\n    \"llama-2-70b-chat\",\n    \"codellama-34b-instruct\",\n    \"mistral-7b-instruct\",\n    \"pplx-7b-chat\",\n    \"pplx-70b-chat\",\n    \"pplx-7b-online\",\n    \"pplx-70b-online\",\n]\n\"\"\"\nfrom perplexityai import Labs\n\nprompt = input(\"👦: \")\nfor r in Labs().generate_answer(prompt, \"MODEL\"): \n    print(f\"🤖: {r['output']}\")\n```\n\n*Thanks to [nathanrchn's perplexityai](https://github.com/nathanrchn/perplexityai) for the original code.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruu3f%2Fperplexityai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruu3f%2Fperplexityai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruu3f%2Fperplexityai/lists"}