An async Python client for the arXiv API with enhanced performance and flexible configuration options.
Warning
This project is currently under development and has not yet reached a stable release. We do not recommend using it in production environments.
- Asynchronous API calls for better performance
- Customized configuration client
- Flexible search and download capabilities
- Customizable rate limiting and concurrent requests
- Complete type hints and documentation
pip install aioarxiv
from aioarxiv.client.arxiv_client import ArxivClient
from aioarxiv.utils import logger
async def func():
async with ArxivClient() as client:
result = await client.search("ai", max_results=100)
logger.info(f"Total results: {result.total_result}")
You can configure the client by passing an instance of ArxivConfig
to the ArxivClient
constructor.
Configuration in Dotenv file is also one of the options, it will automatically load the configuration from the
environment variables.
from aioarxiv.config import ArxivConfig
config = ArxivConfig(
proxy="http://127.0.0.1:10808",
log_level="DEBUG",
page_size=10,
)
- Python 3.9 or higher