import asyncio
import httpx

async def main():
    async with httpx.AsyncClient() as client:
        files = {'file': ('test.txt', b'Hello IPFS')}
        print("Sending request...")
        r = await client.post('http://127.0.0.1:5001/api/v0/add', files=files)
        print("Response:", r.status_code, r.text)

asyncio.run(main())
