You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/utilities
Chris f9f5626ca4
community[patch]: Fix github search issues and PRs PaginatedList has no len() error (#16806)
**Description:** 
Bugfix: Langchain_community's GitHub Api wrapper throws a TypeError when
searching for issues and/or PRs (the `search_issues_and_prs` method).
This is because PyGithub's PageinatedList type does not support the
len() method. See https://github.com/PyGithub/PyGithub/issues/1476

![image](https://github.com/langchain-ai/langchain/assets/8849021/57390b11-ed41-4f48-ba50-f3028610789c)
  **Dependencies:** None 
  **Twitter handle**: @ChrisKeoghNZ
  
I haven't registered an issue as it would take me longer to fill the
template out than to make the fix, but I'm happy to if that's deemed
essential.

I've added a simple integration test to cover this as there were no
existing unit tests and it was going to be tricky to set them up.

Co-authored-by: Chris Keogh <chris.keogh@xero.com>
6 months ago
..
__init__.py community: Add you.com utility, update you retriever integration docs (#17014) 7 months ago
alpha_vantage.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
anthropic.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
apify.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
arcee.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
arxiv.py community[patch]: Update arxiv.py with Entry ID as a return value (#14915) 8 months ago
astradb.py community: Factorize AstraDB components constructors (#16779) 7 months ago
awslambda.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
bibtex.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
bing_search.py Fix: fix Bing Search empty result exception, fix #15384 (#15387) 8 months ago
brave_search.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
clickup.py infra: add print rule to ruff (#16221) 6 months ago
dalle_image_generator.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
dataforseo_api_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
duckduckgo_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
github.py community[patch]: Fix github search issues and PRs PaginatedList has no len() error (#16806) 6 months ago
gitlab.py GITLAB_URL should take default https://gitlab.com instead of error (#14638) 8 months ago
golden_query.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
google_finance.py docs: docstrings `langchain_community` update (#14889) 8 months ago
google_jobs.py docs: docstrings `langchain_community` update (#14889) 8 months ago
google_lens.py infra: add print rule to ruff (#16221) 6 months ago
google_places_api.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
google_scholar.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
google_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
google_serper.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
google_trends.py community: Handling missing key in Google Trends API response. (#15864) 7 months ago
graphql.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
jira.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
max_compute.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
merriam_webster.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
metaphor_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
nasa.py docs: docstrings `langchain_community` update (#14889) 8 months ago
nvidia_riva.py infra: add print rule to ruff (#16221) 6 months ago
opaqueprompts.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
openapi.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
openweathermap.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
outline.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
polygon.py community: Add PolygonAPIWrapper and get_last_quote endpoint (#15971) 7 months ago
portkey.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
powerbi.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
pubmed.py infra: add print rule to ruff (#16221) 6 months ago
python.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
reddit_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
redis.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
requests.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
scenexplain.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
searchapi.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
searx_search.py infra: add print rule to ruff (#16221) 6 months ago
semanticscholar.py community: Semanticscholar tool to search 200M+ scientific articles (#15151) 8 months ago
serpapi.py Fix failing serpapi response processing for Google Maps API (#14817) 8 months ago
spark_sql.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
sql_database.py community[minor]: SQLDatabase Add fetch mode `cursor`, query parameters, query by selectable, expose execution options, and documentation (#17191) 7 months ago
stackexchange.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
steam.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
tavily_search.py Community[patch]use secret str in Tavily and HuggingFaceInferenceEmbeddings (#16109) 7 months ago
tensorflow_datasets.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
twilio.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
vertexai.py community[patch]: docstrings (#16810) 6 months ago
wikidata.py community: Wikidata tool support (#16691) 7 months ago
wikipedia.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
wolfram_alpha.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago
you.py community: Add you.com utility, update you retriever integration docs (#17014) 7 months ago
zapier.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 8 months ago