Skip to content

Instantly share code, notes, and snippets.

@winiar93
winiar93 / async_post_request_example.py
Created March 23, 2023 09:23
An example script that uses the POST HTTP method to send payloads in asynchronous way.
import asyncio
import json
import aiohttp
from aiohttp import ClientConnectorError, ClientSession
payload_contact = {
"email": "example0@mail.pl",
"hubspot_id": 11111,
"first_name": "test",
@winiar93
winiar93 / dtypes_handler.py
Last active January 10, 2023 15:50
Utility functions that generate a dictionary with column name and corresponding varchar value.
import pandas as pd
import re
#example string
dtypes_correction = """
[sales] --5
,[id] --50
,[project_id]--50
,[another_column]--31
"""