import tweepy
from dotenv import load_dotenv # pip install python-dotenv
from os import getenv
load_dotenv()
client = tweepy.Client(consumer_key=APIKEY,
consumer_secret=apiscri,
access_token=accesstoken,
access_token_secret=accsecri)
tweet = client.create_tweet(text="Hello World, I am using Tweepy")
https://developer.twitter.com/