Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: unify HTTP request library to httpx #285

Open
awwaawwa opened this issue Dec 19, 2024 · 2 comments
Open

refactor: unify HTTP request library to httpx #285

awwaawwa opened this issue Dec 19, 2024 · 2 comments

Comments

@awwaawwa
Copy link
Contributor

awwaawwa commented Dec 19, 2024

The current project's network requests include requests and urllib, among others. Among these, urllib's API is not particularly user-friendly; requests do not support async. encode/httpx: A next generation HTTP client for Python. 🦋 - GitHub natively provides async/sync APIs, and its API is similar to requests, offering better usability.

@awwaawwa awwaawwa changed the title 将HTTP请求库统一为httpx refactor: 将 HTTP 请求库统一为 httpx Dec 19, 2024
@awwaawwa awwaawwa changed the title refactor: 将 HTTP 请求库统一为 httpx refactor: unify HTTP request library to httpx Dec 19, 2024
@reycn
Copy link
Collaborator

reycn commented Dec 19, 2024

The download operation currently blocks subsequent steps, so I don't see the necessity for it. However, contributions are welcome.

@awwaawwa
Copy link
Contributor Author

Mainly, when calling some translation APIs, HTTP requests need to be sent, and currently, requests is being used for that part, so I'm thinking of unifying everything to async when I get to it, since there aren't many anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants