
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A zero-dependency HTTP library designed to be simple and async context.
You enjoy using requests or httpx for HTTP client, wanna try badut ?
Badut is a very lightweight library, yet it handle the most of HTTP client needs.
NOTE: Python 3.7 or above |
pip install badut / pipenv install badut
Or manual clone this repository
import asyncio
from badut import Badut
client = Badut(json=True, timeout=5)
async def main():
res = await client.get("https://api.github.com/users/sinkaroid")
print(res)
asyncio.run(main())
async def posting():
res = await client.post("https://httpbin.org/anything",
data={"Title": "Hello Badut", "Name": "adalah sy"})
print(res)
asyncio.run(posting())
Some API requires additional authentication
import asyncio
from badut import Badut
client = Badut(json=True, timeout=5,
headers={
"User-Agent": "Badut/1.0.1",
"authorization": "Bot YouRNicET0k3nFr0mDisc0rd.XuIwOw.IXcORO2fO5XXSmugSombong",
},
)
async def fetch_discord():
res = await client.get("https://discord.com/api/v9/users/456298243618504707")
print(res)
asyncio.run(fetch_discord())
The documentation can be found https://sinkaroid.github.io/badut
FAQs
Python HTTP client designed to be simple and async context
We found that badut demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.