This is a Python script for adding DNS records to your domain connected to CloudFlare.
It takes your inputs in accordance to the record you want to create, and then makes a request to CloudFlare API with your Zone ID and your CloudFlare API key.
Caution
We recomend using Poetry, if you dont have poetry, run these commands in your shell
pip install requests
pip install python-dotenv
Run git clone -b main https://github.com/nucceteere-xyz/Python-Cloudflare-DNS-Manager.git
After that, create a .env file in the working directory.
Inside of the .env file should look like this:
ZONE_ID=YOUR_CLOUDFLARE_ZONE_ID
API_KEY=YOUR_CLOUDFLARE_API_KEY
After you do these, make sure that your env variables are set up correctly by running env_check.py
.